diff --git a/CHANGELOG.md b/CHANGELOG.md
index e47ab3dd59f..ca1841a9f6e 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -3,6 +3,29 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/).
+## 3.23.0 - 2023-08-08
+### Added
+- Support for backup retention on autonomous database create operations in the Database service
+- Support for exclude tables for replication in the Database Migration service
+- Support for adding and updating auto failover maximum data loss limits for local autonomous data guards in the Database service
+- Support for limiting networking diagram ingestion in the Networking Monitoring service
+- Support for new operations for deployment upgrades in the GoldenGate service
+- Support for getting model type information and base model versions while creating language custom models in the AI Language service
+- Support for support field in class metric in the AI Language service
+- Support for Compute Cloud at Customer resource type in the Operator Access Control service
+- Support for managing account management info, account recovery settings, app roles, apps, app status changers, grants, identity propagation trusts and settings, request-able groups, requests, security questions, OAuth tokens, and user attribute settings in the Identity Domains service
+
+### Breaking Changes
+- Support for retries by default on operations in the Operator Access Control service
+- Method `public java.lang.Boolean getIsInternetAccessAllowed()` has been removed from the model ` com.oracle.bmc.vnmonitoring.model.CreateIpv6Details` in the Networking Monitoring service
+- Method `public java.lang.String getIpv6CidrBlock()` has been removed from the model `com.oracle.bmc.vnmonitoring.model.CreateVcnDetails` in the Networking Monitoring service
+- Method `public java.lang.Boolean getIsInternetAccessAllowed()` has been removed from the model `com.oracle.bmc.vnmonitoring.model.Ipv6` in the Networking Monitoring service
+- Method `public java.lang.String getPublicIpAddress()` has been removed from the model `com.oracle.bmc.vnmonitoring.model.Ipv6` in the Networking Monitoring service
+- Method `public java.lang.String getIpv6PublicCidrBlock()` has been removed from the model `com.oracle.bmc.vnmonitoring.model.Subnet` in the Networking Monitoring service
+- Method `public java.lang.Boolean getIsInternetAccessAllowed()` has been removed from the model `com.oracle.bmc.vnmonitoring.model.UpdateIpv6Details` in the Networking Monitoring service
+- Method `public java.lang.String getIpv6CidrBlock()` has been removed from the model `com.oracle.bmc.vnmonitoring.model.Vcn` in the Networking Monitoring service
+- Method `public java.lang.String getIpv6PublicCidrBlock()` has been removed from the model `com.oracle.bmc.vnmonitoring.model.Vcn` in the Networking Monitoring service
+
## 3.22.0 - 2023-08-01
### Added
- Support for the Exadata Fleet Update service
diff --git a/bmc-accessgovernancecp/pom.xml b/bmc-accessgovernancecp/pom.xml
index cae152bd96b..efbe05f69bf 100644
--- a/bmc-accessgovernancecp/pom.xml
+++ b/bmc-accessgovernancecp/pom.xml
@@ -4,7 +4,7 @@
com.oracle.oci.sdkoci-java-sdk
- 3.22.0
+ 3.23.0../pom.xmloci-java-sdk-accessgovernancecp
@@ -15,7 +15,7 @@
com.oracle.oci.sdkoci-java-sdk-common
- 3.22.0
+ 3.23.0
\ No newline at end of file
diff --git a/bmc-addons/bmc-apache-configurator-jersey-addon/pom.xml b/bmc-addons/bmc-apache-configurator-jersey-addon/pom.xml
index 045e5ab1826..1efd2f7dd73 100644
--- a/bmc-addons/bmc-apache-configurator-jersey-addon/pom.xml
+++ b/bmc-addons/bmc-apache-configurator-jersey-addon/pom.xml
@@ -4,7 +4,7 @@
com.oracle.oci.sdkoci-java-sdk-addons
- 3.22.0
+ 3.23.0../pom.xml
@@ -17,14 +17,14 @@
com.oracle.oci.sdkoci-java-sdk-bom
- 3.22.0
+ 3.23.0pomimportcom.oracle.oci.sdkoci-java-sdk-common-httpclient-jersey
- 3.22.0
+ 3.23.0pomimport
diff --git a/bmc-addons/bmc-apache-configurator-jersey3-addon/pom.xml b/bmc-addons/bmc-apache-configurator-jersey3-addon/pom.xml
index 93ddba1c6c8..9641853c012 100644
--- a/bmc-addons/bmc-apache-configurator-jersey3-addon/pom.xml
+++ b/bmc-addons/bmc-apache-configurator-jersey3-addon/pom.xml
@@ -4,7 +4,7 @@
com.oracle.oci.sdkoci-java-sdk-addons
- 3.22.0
+ 3.23.0../pom.xml
@@ -17,14 +17,14 @@
com.oracle.oci.sdkoci-java-sdk-bom
- 3.22.0
+ 3.23.0pomimportcom.oracle.oci.sdkoci-java-sdk-common-httpclient-jersey3
- 3.22.0
+ 3.23.0pomimport
diff --git a/bmc-addons/bmc-apache-connector-provider/pom.xml b/bmc-addons/bmc-apache-connector-provider/pom.xml
index 6958f4301e0..a9597911d56 100644
--- a/bmc-addons/bmc-apache-connector-provider/pom.xml
+++ b/bmc-addons/bmc-apache-connector-provider/pom.xml
@@ -5,7 +5,7 @@
com.oracle.oci.sdkoci-java-sdk-addons
- 3.22.0
+ 3.23.0../pom.xml
@@ -18,7 +18,7 @@
com.oracle.oci.sdkoci-java-sdk-common
- 3.22.0
+ 3.23.0
diff --git a/bmc-addons/bmc-graalvm-addon/pom.xml b/bmc-addons/bmc-graalvm-addon/pom.xml
index 3e276e7ecf6..3a1e0c805f0 100644
--- a/bmc-addons/bmc-graalvm-addon/pom.xml
+++ b/bmc-addons/bmc-graalvm-addon/pom.xml
@@ -4,7 +4,7 @@
com.oracle.oci.sdkoci-java-sdk-addons
- 3.22.0
+ 3.23.0../pom.xmloci-java-sdk-addons-graalvm
@@ -141,37 +141,37 @@
com.oracle.oci.sdkoci-java-sdk-common
- 3.22.0
+ 3.23.0providedcom.oracle.oci.sdkoci-java-sdk-common-httpclient
- 3.22.0
+ 3.23.0providedcom.oracle.oci.sdkoci-java-sdk-core
- 3.22.0
+ 3.23.0testcom.oracle.oci.sdkoci-java-sdk-identity
- 3.22.0
+ 3.23.0testcom.oracle.oci.sdkoci-java-sdk-objectstorage-extensions
- 3.22.0
+ 3.23.0testcom.oracle.oci.sdkoci-java-sdk-objectstorage-generated
- 3.22.0
+ 3.23.0test
diff --git a/bmc-addons/bmc-graalvm-jersey3-addon/pom.xml b/bmc-addons/bmc-graalvm-jersey3-addon/pom.xml
index ff874e1f77a..51405d32c02 100644
--- a/bmc-addons/bmc-graalvm-jersey3-addon/pom.xml
+++ b/bmc-addons/bmc-graalvm-jersey3-addon/pom.xml
@@ -4,7 +4,7 @@
com.oracle.oci.sdkoci-java-sdk-addons
- 3.22.0
+ 3.23.0../pom.xmloci-java-sdk-addons-graalvm-jersey3
@@ -142,37 +142,37 @@
com.oracle.oci.sdkoci-java-sdk-common
- 3.22.0
+ 3.23.0providedcom.oracle.oci.sdkoci-java-sdk-common-httpclient
- 3.22.0
+ 3.23.0providedcom.oracle.oci.sdkoci-java-sdk-core
- 3.22.0
+ 3.23.0testcom.oracle.oci.sdkoci-java-sdk-identity
- 3.22.0
+ 3.23.0testcom.oracle.oci.sdkoci-java-sdk-objectstorage-extensions
- 3.22.0
+ 3.23.0testcom.oracle.oci.sdkoci-java-sdk-objectstorage-generated
- 3.22.0
+ 3.23.0test
diff --git a/bmc-addons/bmc-oke-workload-identity/pom.xml b/bmc-addons/bmc-oke-workload-identity/pom.xml
index 30b930ede88..b7c09f2a45b 100644
--- a/bmc-addons/bmc-oke-workload-identity/pom.xml
+++ b/bmc-addons/bmc-oke-workload-identity/pom.xml
@@ -4,7 +4,7 @@
oci-java-sdk-addonscom.oracle.oci.sdk
- 3.22.0
+ 3.23.04.0.0
@@ -38,25 +38,25 @@
com.oracle.oci.sdkoci-java-sdk-common
- 3.22.0
+ 3.23.0compilecom.oracle.oci.sdkoci-java-sdk-core
- 3.22.0
+ 3.23.0testcom.oracle.oci.sdkoci-java-sdk-identity
- 3.22.0
+ 3.23.0testcom.oracle.oci.sdkoci-java-sdk-keymanagement
- 3.22.0
+ 3.23.0test
diff --git a/bmc-addons/bmc-resteasy-client-configurator/pom.xml b/bmc-addons/bmc-resteasy-client-configurator/pom.xml
index 1da1ebdbd3b..afcac90a4bc 100644
--- a/bmc-addons/bmc-resteasy-client-configurator/pom.xml
+++ b/bmc-addons/bmc-resteasy-client-configurator/pom.xml
@@ -4,7 +4,7 @@
com.oracle.oci.sdkoci-java-sdk-addons
- 3.22.0
+ 3.23.0../pom.xml
@@ -23,7 +23,7 @@
com.oracle.oci.sdkoci-java-sdk-common
- 3.22.0
+ 3.23.0
\ No newline at end of file
diff --git a/bmc-addons/bmc-sasl/pom.xml b/bmc-addons/bmc-sasl/pom.xml
index 0aaea2707c7..d4e53e26742 100644
--- a/bmc-addons/bmc-sasl/pom.xml
+++ b/bmc-addons/bmc-sasl/pom.xml
@@ -5,7 +5,7 @@
com.oracle.oci.sdkoci-java-sdk-addons
- 3.22.0
+ 3.23.0../pom.xml
@@ -60,7 +60,7 @@
com.oracle.oci.sdkoci-java-sdk-common
- 3.22.0
+ 3.23.0
diff --git a/bmc-addons/pom.xml b/bmc-addons/pom.xml
index 663b4659fa0..490e04c4187 100644
--- a/bmc-addons/pom.xml
+++ b/bmc-addons/pom.xml
@@ -5,7 +5,7 @@
com.oracle.oci.sdkoci-java-sdk
- 3.22.0
+ 3.23.0../pom.xml
diff --git a/bmc-adm/pom.xml b/bmc-adm/pom.xml
index 2ee8f130e83..dc79ee543ca 100644
--- a/bmc-adm/pom.xml
+++ b/bmc-adm/pom.xml
@@ -4,7 +4,7 @@
com.oracle.oci.sdkoci-java-sdk
- 3.22.0
+ 3.23.0../pom.xmloci-java-sdk-adm
@@ -15,7 +15,7 @@
com.oracle.oci.sdkoci-java-sdk-common
- 3.22.0
+ 3.23.0
\ No newline at end of file
diff --git a/bmc-aianomalydetection/pom.xml b/bmc-aianomalydetection/pom.xml
index 89d3c9dd301..88c814be38c 100644
--- a/bmc-aianomalydetection/pom.xml
+++ b/bmc-aianomalydetection/pom.xml
@@ -4,7 +4,7 @@
com.oracle.oci.sdkoci-java-sdk
- 3.22.0
+ 3.23.0../pom.xmloci-java-sdk-aianomalydetection
@@ -15,7 +15,7 @@
com.oracle.oci.sdkoci-java-sdk-common
- 3.22.0
+ 3.23.0
\ No newline at end of file
diff --git a/bmc-aidocument/pom.xml b/bmc-aidocument/pom.xml
index 0b23e6de10b..7e30d90c075 100644
--- a/bmc-aidocument/pom.xml
+++ b/bmc-aidocument/pom.xml
@@ -4,7 +4,7 @@
com.oracle.oci.sdkoci-java-sdk
- 3.22.0
+ 3.23.0../pom.xmloci-java-sdk-aidocument
@@ -15,7 +15,7 @@
com.oracle.oci.sdkoci-java-sdk-common
- 3.22.0
+ 3.23.0
\ No newline at end of file
diff --git a/bmc-ailanguage/pom.xml b/bmc-ailanguage/pom.xml
index bbbd8bf91ad..31e06ba92d3 100644
--- a/bmc-ailanguage/pom.xml
+++ b/bmc-ailanguage/pom.xml
@@ -4,7 +4,7 @@
com.oracle.oci.sdkoci-java-sdk
- 3.22.0
+ 3.23.0../pom.xmloci-java-sdk-ailanguage
@@ -15,7 +15,7 @@
com.oracle.oci.sdkoci-java-sdk-common
- 3.22.0
+ 3.23.0
diff --git a/bmc-ailanguage/src/main/java/com/oracle/bmc/ailanguage/AIServiceLanguage.java b/bmc-ailanguage/src/main/java/com/oracle/bmc/ailanguage/AIServiceLanguage.java
index 1903d8ca464..5c8b5df1e1e 100644
--- a/bmc-ailanguage/src/main/java/com/oracle/bmc/ailanguage/AIServiceLanguage.java
+++ b/bmc-ailanguage/src/main/java/com/oracle/bmc/ailanguage/AIServiceLanguage.java
@@ -528,6 +528,21 @@ DetectLanguageTextClassificationResponse detectLanguageTextClassification(
*/
GetModelResponse getModel(GetModelRequest request);
+ /**
+ * Gets model capabilities
+ *
+ * @param request The request object containing the details to send
+ * @return A response object containing details about the completed operation
+ * @throws BmcException when an error occurs. This operation uses
+ * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is
+ * provided. The specifics of the default retry strategy are described here
+ * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries
+ *
Example: Click here to see how to use GetModelType API.
+ */
+ GetModelTypeResponse getModelType(GetModelTypeRequest request);
+
/**
* Gets a Project by identifier
*
diff --git a/bmc-ailanguage/src/main/java/com/oracle/bmc/ailanguage/AIServiceLanguageAsync.java b/bmc-ailanguage/src/main/java/com/oracle/bmc/ailanguage/AIServiceLanguageAsync.java
index 46c8c544885..f0c61307244 100644
--- a/bmc-ailanguage/src/main/java/com/oracle/bmc/ailanguage/AIServiceLanguageAsync.java
+++ b/bmc-ailanguage/src/main/java/com/oracle/bmc/ailanguage/AIServiceLanguageAsync.java
@@ -519,6 +519,21 @@ java.util.concurrent.Future getModel(
GetModelRequest request,
com.oracle.bmc.responses.AsyncHandler handler);
+ /**
+ * Gets model capabilities
+ *
+ * @param request The request object containing the details to send
+ * @param handler The request handler to invoke upon completion, may be null.
+ * @return A Future that can be used to get the response if no AsyncHandler was provided. Note,
+ * if you provide an AsyncHandler and use the Future, some types of responses (like
+ * java.io.InputStream) may not be able to be read in both places as the underlying stream
+ * may only be consumed once.
+ */
+ java.util.concurrent.Future getModelType(
+ GetModelTypeRequest request,
+ com.oracle.bmc.responses.AsyncHandler
+ handler);
+
/**
* Gets a Project by identifier
*
diff --git a/bmc-ailanguage/src/main/java/com/oracle/bmc/ailanguage/AIServiceLanguageAsyncClient.java b/bmc-ailanguage/src/main/java/com/oracle/bmc/ailanguage/AIServiceLanguageAsyncClient.java
index a060c883595..18d2abded48 100644
--- a/bmc-ailanguage/src/main/java/com/oracle/bmc/ailanguage/AIServiceLanguageAsyncClient.java
+++ b/bmc-ailanguage/src/main/java/com/oracle/bmc/ailanguage/AIServiceLanguageAsyncClient.java
@@ -876,6 +876,35 @@ public java.util.concurrent.Future getModel(
.callAsync(handler);
}
+ @Override
+ public java.util.concurrent.Future getModelType(
+ GetModelTypeRequest request,
+ final com.oracle.bmc.responses.AsyncHandler
+ handler) {
+
+ Validate.notBlank(request.getModelType(), "modelType must not be blank");
+
+ return clientCall(request, GetModelTypeResponse::builder)
+ .logger(LOG, "getModelType")
+ .serviceDetails(
+ "AIServiceLanguage",
+ "GetModelType",
+ "https://docs.oracle.com/iaas/api/#/en/language/20221001/ModelTypeInfo/GetModelType")
+ .method(com.oracle.bmc.http.client.Method.GET)
+ .requestBuilder(GetModelTypeRequest::builder)
+ .basePath("/20221001")
+ .appendPathParam("modelTypes")
+ .appendPathParam(request.getModelType())
+ .accept("application/json")
+ .appendHeader("opc-request-id", request.getOpcRequestId())
+ .handleBody(
+ com.oracle.bmc.ailanguage.model.ModelTypeInfo.class,
+ GetModelTypeResponse.Builder::modelTypeInfo)
+ .handleResponseHeaderString(
+ "opc-request-id", GetModelTypeResponse.Builder::opcRequestId)
+ .callAsync(handler);
+ }
+
@Override
public java.util.concurrent.Future getProject(
GetProjectRequest request,
diff --git a/bmc-ailanguage/src/main/java/com/oracle/bmc/ailanguage/AIServiceLanguageClient.java b/bmc-ailanguage/src/main/java/com/oracle/bmc/ailanguage/AIServiceLanguageClient.java
index c7560d75522..b6cb4b4f29c 100644
--- a/bmc-ailanguage/src/main/java/com/oracle/bmc/ailanguage/AIServiceLanguageClient.java
+++ b/bmc-ailanguage/src/main/java/com/oracle/bmc/ailanguage/AIServiceLanguageClient.java
@@ -830,6 +830,33 @@ public GetModelResponse getModel(GetModelRequest request) {
.callSync();
}
+ @Override
+ public GetModelTypeResponse getModelType(GetModelTypeRequest request) {
+
+ Validate.notBlank(request.getModelType(), "modelType must not be blank");
+
+ return clientCall(request, GetModelTypeResponse::builder)
+ .logger(LOG, "getModelType")
+ .serviceDetails(
+ "AIServiceLanguage",
+ "GetModelType",
+ "https://docs.oracle.com/iaas/api/#/en/language/20221001/ModelTypeInfo/GetModelType")
+ .method(com.oracle.bmc.http.client.Method.GET)
+ .requestBuilder(GetModelTypeRequest::builder)
+ .basePath("/20221001")
+ .appendPathParam("modelTypes")
+ .appendPathParam(request.getModelType())
+ .accept("application/json")
+ .appendHeader("opc-request-id", request.getOpcRequestId())
+ .handleBody(
+ com.oracle.bmc.ailanguage.model.ModelTypeInfo.class,
+ GetModelTypeResponse.Builder::modelTypeInfo)
+ .handleResponseHeaderString(
+ "opc-request-id", GetModelTypeResponse.Builder::opcRequestId)
+ .operationUsesDefaultRetries()
+ .callSync();
+ }
+
@Override
public GetProjectResponse getProject(GetProjectRequest request) {
diff --git a/bmc-ailanguage/src/main/java/com/oracle/bmc/ailanguage/model/BatchLanguageTranslationDetails.java b/bmc-ailanguage/src/main/java/com/oracle/bmc/ailanguage/model/BatchLanguageTranslationDetails.java
index 4b2f9d2c2b4..779d9345f2d 100644
--- a/bmc-ailanguage/src/main/java/com/oracle/bmc/ailanguage/model/BatchLanguageTranslationDetails.java
+++ b/bmc-ailanguage/src/main/java/com/oracle/bmc/ailanguage/model/BatchLanguageTranslationDetails.java
@@ -56,21 +56,23 @@ public Builder compartmentId(String compartmentId) {
return this;
}
/**
- * Language code supported Automatically detect language - auto Arabic - ar Brazilian
- * Portuguese - pt-BR Czech - cs Danish - da Dutch - nl English - en Finnish - fi French -
- * fr Canadian French - fr-CA German - de Italian - it Japanese - ja Korean - ko Norwegian -
- * no Polish - pl Romanian - ro Simplified Chinese - zh-CN Spanish - es Swedish - sv
- * Traditional Chinese - zh-TW Turkish - tr Greek - el Hebrew - he
+ * Language code supported - auto : Automatically detect language - ar : Arabic - pt-BR :
+ * Brazilian Portuguese - cs : Czech - da : Danish - nl : Dutch - en : English - fi :
+ * Finnish - fr : French - fr-CA : Canadian French - de : German - it : Italian - ja :
+ * Japanese - ko : Korean - no : Norwegian - pl : Polish - ro : Romanian - zh-CN :
+ * Simplified Chinese - es : Spanish - sv : Swedish - zh-TW : Traditional Chinese - tr :
+ * Turkish - el : Greek - he : Hebrew
*/
@com.fasterxml.jackson.annotation.JsonProperty("targetLanguageCode")
private String targetLanguageCode;
/**
- * Language code supported Automatically detect language - auto Arabic - ar Brazilian
- * Portuguese - pt-BR Czech - cs Danish - da Dutch - nl English - en Finnish - fi French -
- * fr Canadian French - fr-CA German - de Italian - it Japanese - ja Korean - ko Norwegian -
- * no Polish - pl Romanian - ro Simplified Chinese - zh-CN Spanish - es Swedish - sv
- * Traditional Chinese - zh-TW Turkish - tr Greek - el Hebrew - he
+ * Language code supported - auto : Automatically detect language - ar : Arabic - pt-BR :
+ * Brazilian Portuguese - cs : Czech - da : Danish - nl : Dutch - en : English - fi :
+ * Finnish - fr : French - fr-CA : Canadian French - de : German - it : Italian - ja :
+ * Japanese - ko : Korean - no : Norwegian - pl : Polish - ro : Romanian - zh-CN :
+ * Simplified Chinese - es : Spanish - sv : Swedish - zh-TW : Traditional Chinese - tr :
+ * Turkish - el : Greek - he : Hebrew
*
* @param targetLanguageCode the value to set
* @return this builder
@@ -151,21 +153,23 @@ public String getCompartmentId() {
}
/**
- * Language code supported Automatically detect language - auto Arabic - ar Brazilian Portuguese
- * - pt-BR Czech - cs Danish - da Dutch - nl English - en Finnish - fi French - fr Canadian
- * French - fr-CA German - de Italian - it Japanese - ja Korean - ko Norwegian - no Polish - pl
- * Romanian - ro Simplified Chinese - zh-CN Spanish - es Swedish - sv Traditional Chinese -
- * zh-TW Turkish - tr Greek - el Hebrew - he
+ * Language code supported - auto : Automatically detect language - ar : Arabic - pt-BR :
+ * Brazilian Portuguese - cs : Czech - da : Danish - nl : Dutch - en : English - fi : Finnish -
+ * fr : French - fr-CA : Canadian French - de : German - it : Italian - ja : Japanese - ko :
+ * Korean - no : Norwegian - pl : Polish - ro : Romanian - zh-CN : Simplified Chinese - es :
+ * Spanish - sv : Swedish - zh-TW : Traditional Chinese - tr : Turkish - el : Greek - he :
+ * Hebrew
*/
@com.fasterxml.jackson.annotation.JsonProperty("targetLanguageCode")
private final String targetLanguageCode;
/**
- * Language code supported Automatically detect language - auto Arabic - ar Brazilian Portuguese
- * - pt-BR Czech - cs Danish - da Dutch - nl English - en Finnish - fi French - fr Canadian
- * French - fr-CA German - de Italian - it Japanese - ja Korean - ko Norwegian - no Polish - pl
- * Romanian - ro Simplified Chinese - zh-CN Spanish - es Swedish - sv Traditional Chinese -
- * zh-TW Turkish - tr Greek - el Hebrew - he
+ * Language code supported - auto : Automatically detect language - ar : Arabic - pt-BR :
+ * Brazilian Portuguese - cs : Czech - da : Danish - nl : Dutch - en : English - fi : Finnish -
+ * fr : French - fr-CA : Canadian French - de : German - it : Italian - ja : Japanese - ko :
+ * Korean - no : Norwegian - pl : Polish - ro : Romanian - zh-CN : Simplified Chinese - es :
+ * Spanish - sv : Swedish - zh-TW : Traditional Chinese - tr : Turkish - el : Greek - he :
+ * Hebrew
*
* @return the value
*/
diff --git a/bmc-ailanguage/src/main/java/com/oracle/bmc/ailanguage/model/Capabilities.java b/bmc-ailanguage/src/main/java/com/oracle/bmc/ailanguage/model/Capabilities.java
new file mode 100644
index 00000000000..8fdc76346c5
--- /dev/null
+++ b/bmc-ailanguage/src/main/java/com/oracle/bmc/ailanguage/model/Capabilities.java
@@ -0,0 +1,131 @@
+/**
+ * Copyright (c) 2016, 2023, Oracle and/or its affiliates. All rights reserved.
+ * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+ */
+package com.oracle.bmc.ailanguage.model;
+
+/**
+ * Capabilities supported
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model
+ * distinguishes fields that are {@code null} because they are unset from fields that are explicitly
+ * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a
+ * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link
+ * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set
+ * fields into account. The constructor, on the other hand, does not take the explicitly set fields
+ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code
+ * null}).
+ */
+@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20221001")
+@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = Capabilities.Builder.class)
+@com.fasterxml.jackson.annotation.JsonFilter(
+ com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME)
+public final class Capabilities extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel {
+ @Deprecated
+ @java.beans.ConstructorProperties({"capability"})
+ public Capabilities(java.util.Map capability) {
+ super();
+ this.capability = capability;
+ }
+
+ @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "")
+ public static class Builder {
+ /** Model information capabilities related to version */
+ @com.fasterxml.jackson.annotation.JsonProperty("capability")
+ private java.util.Map capability;
+
+ /**
+ * Model information capabilities related to version
+ *
+ * @param capability the value to set
+ * @return this builder
+ */
+ public Builder capability(java.util.Map capability) {
+ this.capability = capability;
+ this.__explicitlySet__.add("capability");
+ return this;
+ }
+
+ @com.fasterxml.jackson.annotation.JsonIgnore
+ private final java.util.Set __explicitlySet__ = new java.util.HashSet();
+
+ public Capabilities build() {
+ Capabilities model = new Capabilities(this.capability);
+ for (String explicitlySetProperty : this.__explicitlySet__) {
+ model.markPropertyAsExplicitlySet(explicitlySetProperty);
+ }
+ return model;
+ }
+
+ @com.fasterxml.jackson.annotation.JsonIgnore
+ public Builder copy(Capabilities model) {
+ if (model.wasPropertyExplicitlySet("capability")) {
+ this.capability(model.getCapability());
+ }
+ return this;
+ }
+ }
+
+ /** Create a new builder. */
+ public static Builder builder() {
+ return new Builder();
+ }
+
+ public Builder toBuilder() {
+ return new Builder().copy(this);
+ }
+
+ /** Model information capabilities related to version */
+ @com.fasterxml.jackson.annotation.JsonProperty("capability")
+ private final java.util.Map capability;
+
+ /**
+ * Model information capabilities related to version
+ *
+ * @return the value
+ */
+ public java.util.Map getCapability() {
+ return capability;
+ }
+
+ @Override
+ public String toString() {
+ return this.toString(true);
+ }
+
+ /**
+ * Return a string representation of the object.
+ *
+ * @param includeByteArrayContents true to include the full contents of byte arrays
+ * @return string representation
+ */
+ public String toString(boolean includeByteArrayContents) {
+ java.lang.StringBuilder sb = new java.lang.StringBuilder();
+ sb.append("Capabilities(");
+ sb.append("super=").append(super.toString());
+ sb.append("capability=").append(String.valueOf(this.capability));
+ sb.append(")");
+ return sb.toString();
+ }
+
+ @Override
+ public boolean equals(Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (!(o instanceof Capabilities)) {
+ return false;
+ }
+
+ Capabilities other = (Capabilities) o;
+ return java.util.Objects.equals(this.capability, other.capability) && super.equals(other);
+ }
+
+ @Override
+ public int hashCode() {
+ final int PRIME = 59;
+ int result = 1;
+ result = (result * PRIME) + (this.capability == null ? 43 : this.capability.hashCode());
+ result = (result * PRIME) + super.hashCode();
+ return result;
+ }
+}
diff --git a/bmc-ailanguage/src/main/java/com/oracle/bmc/ailanguage/model/Capability.java b/bmc-ailanguage/src/main/java/com/oracle/bmc/ailanguage/model/Capability.java
new file mode 100644
index 00000000000..7f073bdb6c0
--- /dev/null
+++ b/bmc-ailanguage/src/main/java/com/oracle/bmc/ailanguage/model/Capability.java
@@ -0,0 +1,131 @@
+/**
+ * Copyright (c) 2016, 2023, Oracle and/or its affiliates. All rights reserved.
+ * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+ */
+package com.oracle.bmc.ailanguage.model;
+
+/**
+ * Capability supported
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model
+ * distinguishes fields that are {@code null} because they are unset from fields that are explicitly
+ * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a
+ * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link
+ * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set
+ * fields into account. The constructor, on the other hand, does not take the explicitly set fields
+ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code
+ * null}).
+ */
+@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20221001")
+@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = Capability.Builder.class)
+@com.fasterxml.jackson.annotation.JsonFilter(
+ com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME)
+public final class Capability extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel {
+ @Deprecated
+ @java.beans.ConstructorProperties({"details"})
+ public Capability(java.util.List details) {
+ super();
+ this.details = details;
+ }
+
+ @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "")
+ public static class Builder {
+ /** values */
+ @com.fasterxml.jackson.annotation.JsonProperty("details")
+ private java.util.List details;
+
+ /**
+ * values
+ *
+ * @param details the value to set
+ * @return this builder
+ */
+ public Builder details(java.util.List details) {
+ this.details = details;
+ this.__explicitlySet__.add("details");
+ return this;
+ }
+
+ @com.fasterxml.jackson.annotation.JsonIgnore
+ private final java.util.Set __explicitlySet__ = new java.util.HashSet();
+
+ public Capability build() {
+ Capability model = new Capability(this.details);
+ for (String explicitlySetProperty : this.__explicitlySet__) {
+ model.markPropertyAsExplicitlySet(explicitlySetProperty);
+ }
+ return model;
+ }
+
+ @com.fasterxml.jackson.annotation.JsonIgnore
+ public Builder copy(Capability model) {
+ if (model.wasPropertyExplicitlySet("details")) {
+ this.details(model.getDetails());
+ }
+ return this;
+ }
+ }
+
+ /** Create a new builder. */
+ public static Builder builder() {
+ return new Builder();
+ }
+
+ public Builder toBuilder() {
+ return new Builder().copy(this);
+ }
+
+ /** values */
+ @com.fasterxml.jackson.annotation.JsonProperty("details")
+ private final java.util.List details;
+
+ /**
+ * values
+ *
+ * @return the value
+ */
+ public java.util.List getDetails() {
+ return details;
+ }
+
+ @Override
+ public String toString() {
+ return this.toString(true);
+ }
+
+ /**
+ * Return a string representation of the object.
+ *
+ * @param includeByteArrayContents true to include the full contents of byte arrays
+ * @return string representation
+ */
+ public String toString(boolean includeByteArrayContents) {
+ java.lang.StringBuilder sb = new java.lang.StringBuilder();
+ sb.append("Capability(");
+ sb.append("super=").append(super.toString());
+ sb.append("details=").append(String.valueOf(this.details));
+ sb.append(")");
+ return sb.toString();
+ }
+
+ @Override
+ public boolean equals(Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (!(o instanceof Capability)) {
+ return false;
+ }
+
+ Capability other = (Capability) o;
+ return java.util.Objects.equals(this.details, other.details) && super.equals(other);
+ }
+
+ @Override
+ public int hashCode() {
+ final int PRIME = 59;
+ int result = 1;
+ result = (result * PRIME) + (this.details == null ? 43 : this.details.hashCode());
+ result = (result * PRIME) + super.hashCode();
+ return result;
+ }
+}
diff --git a/bmc-ailanguage/src/main/java/com/oracle/bmc/ailanguage/model/ClassMetrics.java b/bmc-ailanguage/src/main/java/com/oracle/bmc/ailanguage/model/ClassMetrics.java
index 03c7ab29404..0064ea4a4f1 100644
--- a/bmc-ailanguage/src/main/java/com/oracle/bmc/ailanguage/model/ClassMetrics.java
+++ b/bmc-ailanguage/src/main/java/com/oracle/bmc/ailanguage/model/ClassMetrics.java
@@ -21,13 +21,14 @@
com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME)
public final class ClassMetrics extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel {
@Deprecated
- @java.beans.ConstructorProperties({"label", "f1", "precision", "recall"})
- public ClassMetrics(String label, Float f1, Float precision, Float recall) {
+ @java.beans.ConstructorProperties({"label", "f1", "precision", "recall", "support"})
+ public ClassMetrics(String label, Float f1, Float precision, Float recall, Float support) {
super();
this.label = label;
this.f1 = f1;
this.precision = precision;
this.recall = recall;
+ this.support = support;
}
@com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "")
@@ -102,12 +103,29 @@ public Builder recall(Float recall) {
this.__explicitlySet__.add("recall");
return this;
}
+ /** number of samples in the test set */
+ @com.fasterxml.jackson.annotation.JsonProperty("support")
+ private Float support;
+
+ /**
+ * number of samples in the test set
+ *
+ * @param support the value to set
+ * @return this builder
+ */
+ public Builder support(Float support) {
+ this.support = support;
+ this.__explicitlySet__.add("support");
+ return this;
+ }
@com.fasterxml.jackson.annotation.JsonIgnore
private final java.util.Set __explicitlySet__ = new java.util.HashSet();
public ClassMetrics build() {
- ClassMetrics model = new ClassMetrics(this.label, this.f1, this.precision, this.recall);
+ ClassMetrics model =
+ new ClassMetrics(
+ this.label, this.f1, this.precision, this.recall, this.support);
for (String explicitlySetProperty : this.__explicitlySet__) {
model.markPropertyAsExplicitlySet(explicitlySetProperty);
}
@@ -128,6 +146,9 @@ public Builder copy(ClassMetrics model) {
if (model.wasPropertyExplicitlySet("recall")) {
this.recall(model.getRecall());
}
+ if (model.wasPropertyExplicitlySet("support")) {
+ this.support(model.getSupport());
+ }
return this;
}
}
@@ -203,6 +224,19 @@ public Float getRecall() {
return recall;
}
+ /** number of samples in the test set */
+ @com.fasterxml.jackson.annotation.JsonProperty("support")
+ private final Float support;
+
+ /**
+ * number of samples in the test set
+ *
+ * @return the value
+ */
+ public Float getSupport() {
+ return support;
+ }
+
@Override
public String toString() {
return this.toString(true);
@@ -222,6 +256,7 @@ public String toString(boolean includeByteArrayContents) {
sb.append(", f1=").append(String.valueOf(this.f1));
sb.append(", precision=").append(String.valueOf(this.precision));
sb.append(", recall=").append(String.valueOf(this.recall));
+ sb.append(", support=").append(String.valueOf(this.support));
sb.append(")");
return sb.toString();
}
@@ -240,6 +275,7 @@ public boolean equals(Object o) {
&& java.util.Objects.equals(this.f1, other.f1)
&& java.util.Objects.equals(this.precision, other.precision)
&& java.util.Objects.equals(this.recall, other.recall)
+ && java.util.Objects.equals(this.support, other.support)
&& super.equals(other);
}
@@ -251,6 +287,7 @@ public int hashCode() {
result = (result * PRIME) + (this.f1 == null ? 43 : this.f1.hashCode());
result = (result * PRIME) + (this.precision == null ? 43 : this.precision.hashCode());
result = (result * PRIME) + (this.recall == null ? 43 : this.recall.hashCode());
+ result = (result * PRIME) + (this.support == null ? 43 : this.support.hashCode());
result = (result * PRIME) + super.hashCode();
return result;
}
diff --git a/bmc-ailanguage/src/main/java/com/oracle/bmc/ailanguage/model/ClassificationMultiClassModeDetails.java b/bmc-ailanguage/src/main/java/com/oracle/bmc/ailanguage/model/ClassificationMultiClassModeDetails.java
index f5c063d737c..0c08e4f7081 100644
--- a/bmc-ailanguage/src/main/java/com/oracle/bmc/ailanguage/model/ClassificationMultiClassModeDetails.java
+++ b/bmc-ailanguage/src/main/java/com/oracle/bmc/ailanguage/model/ClassificationMultiClassModeDetails.java
@@ -27,12 +27,32 @@
public final class ClassificationMultiClassModeDetails extends ClassificationType {
@com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "")
public static class Builder {
+ /**
+ * Optional if nothing specified latest base model will be used for training. Supported
+ * versions can be found at /modelTypes/{modelType}
+ */
+ @com.fasterxml.jackson.annotation.JsonProperty("version")
+ private String version;
+
+ /**
+ * Optional if nothing specified latest base model will be used for training. Supported
+ * versions can be found at /modelTypes/{modelType}
+ *
+ * @param version the value to set
+ * @return this builder
+ */
+ public Builder version(String version) {
+ this.version = version;
+ this.__explicitlySet__.add("version");
+ return this;
+ }
@com.fasterxml.jackson.annotation.JsonIgnore
private final java.util.Set __explicitlySet__ = new java.util.HashSet();
public ClassificationMultiClassModeDetails build() {
- ClassificationMultiClassModeDetails model = new ClassificationMultiClassModeDetails();
+ ClassificationMultiClassModeDetails model =
+ new ClassificationMultiClassModeDetails(this.version);
for (String explicitlySetProperty : this.__explicitlySet__) {
model.markPropertyAsExplicitlySet(explicitlySetProperty);
}
@@ -41,6 +61,9 @@ public ClassificationMultiClassModeDetails build() {
@com.fasterxml.jackson.annotation.JsonIgnore
public Builder copy(ClassificationMultiClassModeDetails model) {
+ if (model.wasPropertyExplicitlySet("version")) {
+ this.version(model.getVersion());
+ }
return this;
}
}
@@ -55,8 +78,26 @@ public Builder toBuilder() {
}
@Deprecated
- public ClassificationMultiClassModeDetails() {
+ public ClassificationMultiClassModeDetails(String version) {
super();
+ this.version = version;
+ }
+
+ /**
+ * Optional if nothing specified latest base model will be used for training. Supported versions
+ * can be found at /modelTypes/{modelType}
+ */
+ @com.fasterxml.jackson.annotation.JsonProperty("version")
+ private final String version;
+
+ /**
+ * Optional if nothing specified latest base model will be used for training. Supported versions
+ * can be found at /modelTypes/{modelType}
+ *
+ * @return the value
+ */
+ public String getVersion() {
+ return version;
}
@Override
@@ -74,6 +115,7 @@ public String toString(boolean includeByteArrayContents) {
java.lang.StringBuilder sb = new java.lang.StringBuilder();
sb.append("ClassificationMultiClassModeDetails(");
sb.append("super=").append(super.toString(includeByteArrayContents));
+ sb.append(", version=").append(String.valueOf(this.version));
sb.append(")");
return sb.toString();
}
@@ -88,13 +130,14 @@ public boolean equals(Object o) {
}
ClassificationMultiClassModeDetails other = (ClassificationMultiClassModeDetails) o;
- return super.equals(other);
+ return java.util.Objects.equals(this.version, other.version) && super.equals(other);
}
@Override
public int hashCode() {
final int PRIME = 59;
int result = super.hashCode();
+ result = (result * PRIME) + (this.version == null ? 43 : this.version.hashCode());
return result;
}
}
diff --git a/bmc-ailanguage/src/main/java/com/oracle/bmc/ailanguage/model/ClassificationMultiLabelModeDetails.java b/bmc-ailanguage/src/main/java/com/oracle/bmc/ailanguage/model/ClassificationMultiLabelModeDetails.java
index 8c1d7b7db66..faab74977ad 100644
--- a/bmc-ailanguage/src/main/java/com/oracle/bmc/ailanguage/model/ClassificationMultiLabelModeDetails.java
+++ b/bmc-ailanguage/src/main/java/com/oracle/bmc/ailanguage/model/ClassificationMultiLabelModeDetails.java
@@ -27,12 +27,32 @@
public final class ClassificationMultiLabelModeDetails extends ClassificationType {
@com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "")
public static class Builder {
+ /**
+ * Optional if nothing specified latest base model will be used for training. Supported
+ * versions can be found at /modelTypes/{modelType}
+ */
+ @com.fasterxml.jackson.annotation.JsonProperty("version")
+ private String version;
+
+ /**
+ * Optional if nothing specified latest base model will be used for training. Supported
+ * versions can be found at /modelTypes/{modelType}
+ *
+ * @param version the value to set
+ * @return this builder
+ */
+ public Builder version(String version) {
+ this.version = version;
+ this.__explicitlySet__.add("version");
+ return this;
+ }
@com.fasterxml.jackson.annotation.JsonIgnore
private final java.util.Set __explicitlySet__ = new java.util.HashSet();
public ClassificationMultiLabelModeDetails build() {
- ClassificationMultiLabelModeDetails model = new ClassificationMultiLabelModeDetails();
+ ClassificationMultiLabelModeDetails model =
+ new ClassificationMultiLabelModeDetails(this.version);
for (String explicitlySetProperty : this.__explicitlySet__) {
model.markPropertyAsExplicitlySet(explicitlySetProperty);
}
@@ -41,6 +61,9 @@ public ClassificationMultiLabelModeDetails build() {
@com.fasterxml.jackson.annotation.JsonIgnore
public Builder copy(ClassificationMultiLabelModeDetails model) {
+ if (model.wasPropertyExplicitlySet("version")) {
+ this.version(model.getVersion());
+ }
return this;
}
}
@@ -55,8 +78,26 @@ public Builder toBuilder() {
}
@Deprecated
- public ClassificationMultiLabelModeDetails() {
+ public ClassificationMultiLabelModeDetails(String version) {
super();
+ this.version = version;
+ }
+
+ /**
+ * Optional if nothing specified latest base model will be used for training. Supported versions
+ * can be found at /modelTypes/{modelType}
+ */
+ @com.fasterxml.jackson.annotation.JsonProperty("version")
+ private final String version;
+
+ /**
+ * Optional if nothing specified latest base model will be used for training. Supported versions
+ * can be found at /modelTypes/{modelType}
+ *
+ * @return the value
+ */
+ public String getVersion() {
+ return version;
}
@Override
@@ -74,6 +115,7 @@ public String toString(boolean includeByteArrayContents) {
java.lang.StringBuilder sb = new java.lang.StringBuilder();
sb.append("ClassificationMultiLabelModeDetails(");
sb.append("super=").append(super.toString(includeByteArrayContents));
+ sb.append(", version=").append(String.valueOf(this.version));
sb.append(")");
return sb.toString();
}
@@ -88,13 +130,14 @@ public boolean equals(Object o) {
}
ClassificationMultiLabelModeDetails other = (ClassificationMultiLabelModeDetails) o;
- return super.equals(other);
+ return java.util.Objects.equals(this.version, other.version) && super.equals(other);
}
@Override
public int hashCode() {
final int PRIME = 59;
int result = super.hashCode();
+ result = (result * PRIME) + (this.version == null ? 43 : this.version.hashCode());
return result;
}
}
diff --git a/bmc-ailanguage/src/main/java/com/oracle/bmc/ailanguage/model/EntityDocumentResult.java b/bmc-ailanguage/src/main/java/com/oracle/bmc/ailanguage/model/EntityDocumentResult.java
index d16959b82e0..a5b935bf6cf 100644
--- a/bmc-ailanguage/src/main/java/com/oracle/bmc/ailanguage/model/EntityDocumentResult.java
+++ b/bmc-ailanguage/src/main/java/com/oracle/bmc/ailanguage/model/EntityDocumentResult.java
@@ -65,21 +65,23 @@ public Builder entities(java.util.List entities) {
return this;
}
/**
- * Language code supported Automatically detect language - auto Arabic - ar Brazilian
- * Portuguese - pt-BR Czech - cs Danish - da Dutch - nl English - en Finnish - fi French -
- * fr Canadian French - fr-CA German - de Italian - it Japanese - ja Korean - ko Norwegian -
- * no Polish - pl Romanian - ro Simplified Chinese - zh-CN Spanish - es Swedish - sv
- * Traditional Chinese - zh-TW Turkish - tr Greek - el Hebrew - he
+ * Language code supported - auto : Automatically detect language - ar : Arabic - pt-BR :
+ * Brazilian Portuguese - cs : Czech - da : Danish - nl : Dutch - en : English - fi :
+ * Finnish - fr : French - fr-CA : Canadian French - de : German - it : Italian - ja :
+ * Japanese - ko : Korean - no : Norwegian - pl : Polish - ro : Romanian - zh-CN :
+ * Simplified Chinese - es : Spanish - sv : Swedish - zh-TW : Traditional Chinese - tr :
+ * Turkish - el : Greek - he : Hebrew
*/
@com.fasterxml.jackson.annotation.JsonProperty("languageCode")
private String languageCode;
/**
- * Language code supported Automatically detect language - auto Arabic - ar Brazilian
- * Portuguese - pt-BR Czech - cs Danish - da Dutch - nl English - en Finnish - fi French -
- * fr Canadian French - fr-CA German - de Italian - it Japanese - ja Korean - ko Norwegian -
- * no Polish - pl Romanian - ro Simplified Chinese - zh-CN Spanish - es Swedish - sv
- * Traditional Chinese - zh-TW Turkish - tr Greek - el Hebrew - he
+ * Language code supported - auto : Automatically detect language - ar : Arabic - pt-BR :
+ * Brazilian Portuguese - cs : Czech - da : Danish - nl : Dutch - en : English - fi :
+ * Finnish - fr : French - fr-CA : Canadian French - de : German - it : Italian - ja :
+ * Japanese - ko : Korean - no : Norwegian - pl : Polish - ro : Romanian - zh-CN :
+ * Simplified Chinese - es : Spanish - sv : Swedish - zh-TW : Traditional Chinese - tr :
+ * Turkish - el : Greek - he : Hebrew
*
* @param languageCode the value to set
* @return this builder
@@ -153,21 +155,23 @@ public java.util.List getEntities() {
}
/**
- * Language code supported Automatically detect language - auto Arabic - ar Brazilian Portuguese
- * - pt-BR Czech - cs Danish - da Dutch - nl English - en Finnish - fi French - fr Canadian
- * French - fr-CA German - de Italian - it Japanese - ja Korean - ko Norwegian - no Polish - pl
- * Romanian - ro Simplified Chinese - zh-CN Spanish - es Swedish - sv Traditional Chinese -
- * zh-TW Turkish - tr Greek - el Hebrew - he
+ * Language code supported - auto : Automatically detect language - ar : Arabic - pt-BR :
+ * Brazilian Portuguese - cs : Czech - da : Danish - nl : Dutch - en : English - fi : Finnish -
+ * fr : French - fr-CA : Canadian French - de : German - it : Italian - ja : Japanese - ko :
+ * Korean - no : Norwegian - pl : Polish - ro : Romanian - zh-CN : Simplified Chinese - es :
+ * Spanish - sv : Swedish - zh-TW : Traditional Chinese - tr : Turkish - el : Greek - he :
+ * Hebrew
*/
@com.fasterxml.jackson.annotation.JsonProperty("languageCode")
private final String languageCode;
/**
- * Language code supported Automatically detect language - auto Arabic - ar Brazilian Portuguese
- * - pt-BR Czech - cs Danish - da Dutch - nl English - en Finnish - fi French - fr Canadian
- * French - fr-CA German - de Italian - it Japanese - ja Korean - ko Norwegian - no Polish - pl
- * Romanian - ro Simplified Chinese - zh-CN Spanish - es Swedish - sv Traditional Chinese -
- * zh-TW Turkish - tr Greek - el Hebrew - he
+ * Language code supported - auto : Automatically detect language - ar : Arabic - pt-BR :
+ * Brazilian Portuguese - cs : Czech - da : Danish - nl : Dutch - en : English - fi : Finnish -
+ * fr : French - fr-CA : Canadian French - de : German - it : Italian - ja : Japanese - ko :
+ * Korean - no : Norwegian - pl : Polish - ro : Romanian - zh-CN : Simplified Chinese - es :
+ * Spanish - sv : Swedish - zh-TW : Traditional Chinese - tr : Turkish - el : Greek - he :
+ * Hebrew
*
* @return the value
*/
diff --git a/bmc-ailanguage/src/main/java/com/oracle/bmc/ailanguage/model/KeyPhraseDocumentResult.java b/bmc-ailanguage/src/main/java/com/oracle/bmc/ailanguage/model/KeyPhraseDocumentResult.java
index 17c8aaae168..118b36fab8c 100644
--- a/bmc-ailanguage/src/main/java/com/oracle/bmc/ailanguage/model/KeyPhraseDocumentResult.java
+++ b/bmc-ailanguage/src/main/java/com/oracle/bmc/ailanguage/model/KeyPhraseDocumentResult.java
@@ -65,21 +65,23 @@ public Builder keyPhrases(java.util.List keyPhrases) {
return this;
}
/**
- * Language code supported Automatically detect language - auto Arabic - ar Brazilian
- * Portuguese - pt-BR Czech - cs Danish - da Dutch - nl English - en Finnish - fi French -
- * fr Canadian French - fr-CA German - de Italian - it Japanese - ja Korean - ko Norwegian -
- * no Polish - pl Romanian - ro Simplified Chinese - zh-CN Spanish - es Swedish - sv
- * Traditional Chinese - zh-TW Turkish - tr Greek - el Hebrew - he
+ * Language code supported - auto : Automatically detect language - ar : Arabic - pt-BR :
+ * Brazilian Portuguese - cs : Czech - da : Danish - nl : Dutch - en : English - fi :
+ * Finnish - fr : French - fr-CA : Canadian French - de : German - it : Italian - ja :
+ * Japanese - ko : Korean - no : Norwegian - pl : Polish - ro : Romanian - zh-CN :
+ * Simplified Chinese - es : Spanish - sv : Swedish - zh-TW : Traditional Chinese - tr :
+ * Turkish - el : Greek - he : Hebrew
*/
@com.fasterxml.jackson.annotation.JsonProperty("languageCode")
private String languageCode;
/**
- * Language code supported Automatically detect language - auto Arabic - ar Brazilian
- * Portuguese - pt-BR Czech - cs Danish - da Dutch - nl English - en Finnish - fi French -
- * fr Canadian French - fr-CA German - de Italian - it Japanese - ja Korean - ko Norwegian -
- * no Polish - pl Romanian - ro Simplified Chinese - zh-CN Spanish - es Swedish - sv
- * Traditional Chinese - zh-TW Turkish - tr Greek - el Hebrew - he
+ * Language code supported - auto : Automatically detect language - ar : Arabic - pt-BR :
+ * Brazilian Portuguese - cs : Czech - da : Danish - nl : Dutch - en : English - fi :
+ * Finnish - fr : French - fr-CA : Canadian French - de : German - it : Italian - ja :
+ * Japanese - ko : Korean - no : Norwegian - pl : Polish - ro : Romanian - zh-CN :
+ * Simplified Chinese - es : Spanish - sv : Swedish - zh-TW : Traditional Chinese - tr :
+ * Turkish - el : Greek - he : Hebrew
*
* @param languageCode the value to set
* @return this builder
@@ -153,21 +155,23 @@ public java.util.List getKeyPhrases() {
}
/**
- * Language code supported Automatically detect language - auto Arabic - ar Brazilian Portuguese
- * - pt-BR Czech - cs Danish - da Dutch - nl English - en Finnish - fi French - fr Canadian
- * French - fr-CA German - de Italian - it Japanese - ja Korean - ko Norwegian - no Polish - pl
- * Romanian - ro Simplified Chinese - zh-CN Spanish - es Swedish - sv Traditional Chinese -
- * zh-TW Turkish - tr Greek - el Hebrew - he
+ * Language code supported - auto : Automatically detect language - ar : Arabic - pt-BR :
+ * Brazilian Portuguese - cs : Czech - da : Danish - nl : Dutch - en : English - fi : Finnish -
+ * fr : French - fr-CA : Canadian French - de : German - it : Italian - ja : Japanese - ko :
+ * Korean - no : Norwegian - pl : Polish - ro : Romanian - zh-CN : Simplified Chinese - es :
+ * Spanish - sv : Swedish - zh-TW : Traditional Chinese - tr : Turkish - el : Greek - he :
+ * Hebrew
*/
@com.fasterxml.jackson.annotation.JsonProperty("languageCode")
private final String languageCode;
/**
- * Language code supported Automatically detect language - auto Arabic - ar Brazilian Portuguese
- * - pt-BR Czech - cs Danish - da Dutch - nl English - en Finnish - fi French - fr Canadian
- * French - fr-CA German - de Italian - it Japanese - ja Korean - ko Norwegian - no Polish - pl
- * Romanian - ro Simplified Chinese - zh-CN Spanish - es Swedish - sv Traditional Chinese -
- * zh-TW Turkish - tr Greek - el Hebrew - he
+ * Language code supported - auto : Automatically detect language - ar : Arabic - pt-BR :
+ * Brazilian Portuguese - cs : Czech - da : Danish - nl : Dutch - en : English - fi : Finnish -
+ * fr : French - fr-CA : Canadian French - de : German - it : Italian - ja : Japanese - ko :
+ * Korean - no : Norwegian - pl : Polish - ro : Romanian - zh-CN : Simplified Chinese - es :
+ * Spanish - sv : Swedish - zh-TW : Traditional Chinese - tr : Turkish - el : Greek - he :
+ * Hebrew
*
* @return the value
*/
diff --git a/bmc-ailanguage/src/main/java/com/oracle/bmc/ailanguage/model/Model.java b/bmc-ailanguage/src/main/java/com/oracle/bmc/ailanguage/model/Model.java
index ae42465805f..6c5fbd527df 100644
--- a/bmc-ailanguage/src/main/java/com/oracle/bmc/ailanguage/model/Model.java
+++ b/bmc-ailanguage/src/main/java/com/oracle/bmc/ailanguage/model/Model.java
@@ -268,17 +268,19 @@ public Builder testStrategy(TestStrategy testStrategy) {
return this;
}
/**
- * Identifying the model by model id is difficult. This param provides ease of use for end
- * customer. <>::<>_<>::<> ex: ai-lang::NER_V1::CUSTOM-V0
+ * For pre trained models this will identify model type version used for model creation For
+ * custom identifying the model by model id is difficult. This param provides ease of use
+ * for end customer. <>::<>_<>::<> ex: ai-lang::NER_V1::CUSTOM-V0
*/
@com.fasterxml.jackson.annotation.JsonProperty("version")
private String version;
/**
- * Identifying the model by model id is difficult. This param provides ease of use for end
- * customer. <>::<>_<>::<> ex: ai-lang::NER_V1::CUSTOM-V0
+ * For pre trained models this will identify model type version used for model creation For
+ * custom identifying the model by model id is difficult. This param provides ease of use
+ * for end customer. <>::<>_<>::<> ex: ai-lang::NER_V1::CUSTOM-V0
*
* @param version the value to set
* @return this builder
@@ -654,17 +656,19 @@ public TestStrategy getTestStrategy() {
}
/**
- * Identifying the model by model id is difficult. This param provides ease of use for end
- * customer. <>::<>_<>::<> ex: ai-lang::NER_V1::CUSTOM-V0
+ * For pre trained models this will identify model type version used for model creation For
+ * custom identifying the model by model id is difficult. This param provides ease of use for
+ * end customer. <>::<>_<>::<> ex: ai-lang::NER_V1::CUSTOM-V0
*/
@com.fasterxml.jackson.annotation.JsonProperty("version")
private final String version;
/**
- * Identifying the model by model id is difficult. This param provides ease of use for end
- * customer. <>::<>_<>::<> ex: ai-lang::NER_V1::CUSTOM-V0
+ * For pre trained models this will identify model type version used for model creation For
+ * custom identifying the model by model id is difficult. This param provides ease of use for
+ * end customer. <>::<>_<>::<> ex: ai-lang::NER_V1::CUSTOM-V0
*
* @return the value
*/
diff --git a/bmc-ailanguage/src/main/java/com/oracle/bmc/ailanguage/model/ModelDetails.java b/bmc-ailanguage/src/main/java/com/oracle/bmc/ailanguage/model/ModelDetails.java
index 1a136a882ef..bae5c5294dc 100644
--- a/bmc-ailanguage/src/main/java/com/oracle/bmc/ailanguage/model/ModelDetails.java
+++ b/bmc-ailanguage/src/main/java/com/oracle/bmc/ailanguage/model/ModelDetails.java
@@ -22,12 +22,42 @@
property = "modelType",
defaultImpl = ModelDetails.class)
@com.fasterxml.jackson.annotation.JsonSubTypes({
+ @com.fasterxml.jackson.annotation.JsonSubTypes.Type(
+ value = PreTrainedKeyPhraseExtractionModelDetails.class,
+ name = "PRE_TRAINED_KEYPHRASE_EXTRACTION"),
+ @com.fasterxml.jackson.annotation.JsonSubTypes.Type(
+ value = PreTrainedHealthNluModelDetails.class,
+ name = "PRE_TRAINED_HEALTH_NLU"),
+ @com.fasterxml.jackson.annotation.JsonSubTypes.Type(
+ value = PreTrainedUniversalModel.class,
+ name = "PRE_TRAINED_UNIVERSAL"),
@com.fasterxml.jackson.annotation.JsonSubTypes.Type(
value = NamedEntityRecognitionModelDetails.class,
name = "NAMED_ENTITY_RECOGNITION"),
+ @com.fasterxml.jackson.annotation.JsonSubTypes.Type(
+ value = PreTrainedLanguageDetectionModelDetails.class,
+ name = "PRE_TRAINED_LANGUAGE_DETECTION"),
+ @com.fasterxml.jackson.annotation.JsonSubTypes.Type(
+ value = PreTrainedNamedEntityRecognitionModelDetails.class,
+ name = "PRE_TRAINED_NAMED_ENTITY_RECOGNITION"),
+ @com.fasterxml.jackson.annotation.JsonSubTypes.Type(
+ value = PreTrainedSentimentAnalysisModelDetails.class,
+ name = "PRE_TRAINED_SENTIMENT_ANALYSIS"),
+ @com.fasterxml.jackson.annotation.JsonSubTypes.Type(
+ value = PreTrainedPhiModelDetails.class,
+ name = "PRE_TRAINED_PHI"),
+ @com.fasterxml.jackson.annotation.JsonSubTypes.Type(
+ value = PreTrainedTextClassificationModelDetails.class,
+ name = "PRE_TRAINED_TEXT_CLASSIFICATION"),
@com.fasterxml.jackson.annotation.JsonSubTypes.Type(
value = TextClassificationModelDetails.class,
- name = "TEXT_CLASSIFICATION")
+ name = "TEXT_CLASSIFICATION"),
+ @com.fasterxml.jackson.annotation.JsonSubTypes.Type(
+ value = PreTrainedSummarization.class,
+ name = "PRE_TRAINED_SUMMARIZATION"),
+ @com.fasterxml.jackson.annotation.JsonSubTypes.Type(
+ value = PreTrainedPiiModelDetails.class,
+ name = "PRE_TRAINED_PII")
})
@com.fasterxml.jackson.annotation.JsonFilter(
com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME)
@@ -99,6 +129,16 @@ public int hashCode() {
public enum ModelType implements com.oracle.bmc.http.internal.BmcEnum {
NamedEntityRecognition("NAMED_ENTITY_RECOGNITION"),
TextClassification("TEXT_CLASSIFICATION"),
+ PreTrainedNamedEntityRecognition("PRE_TRAINED_NAMED_ENTITY_RECOGNITION"),
+ PreTrainedTextClassification("PRE_TRAINED_TEXT_CLASSIFICATION"),
+ PreTrainedSentimentAnalysis("PRE_TRAINED_SENTIMENT_ANALYSIS"),
+ PreTrainedKeyphraseExtraction("PRE_TRAINED_KEYPHRASE_EXTRACTION"),
+ PreTrainedLanguageDetection("PRE_TRAINED_LANGUAGE_DETECTION"),
+ PreTrainedPii("PRE_TRAINED_PII"),
+ PreTrainedTranslation("PRE_TRAINED_TRANSLATION"),
+ PreTrainedHealthNlu("PRE_TRAINED_HEALTH_NLU"),
+ PreTrainedSummarization("PRE_TRAINED_SUMMARIZATION"),
+ PreTrainedUniversal("PRE_TRAINED_UNIVERSAL"),
/**
* This value is used if a service returns a value for this enum that is not recognized by
diff --git a/bmc-ailanguage/src/main/java/com/oracle/bmc/ailanguage/model/ModelSummary.java b/bmc-ailanguage/src/main/java/com/oracle/bmc/ailanguage/model/ModelSummary.java
index 73da7ff31d3..d49a2be1e55 100644
--- a/bmc-ailanguage/src/main/java/com/oracle/bmc/ailanguage/model/ModelSummary.java
+++ b/bmc-ailanguage/src/main/java/com/oracle/bmc/ailanguage/model/ModelSummary.java
@@ -214,17 +214,19 @@ public Builder projectId(String projectId) {
return this;
}
/**
- * Identifying the model by model id is difficult. This param provides ease of use for end
- * customer. <>::<>-<>::<> ex: ai-lang::NER_V1::CUSTOM-V0
+ * For pre trained models this will identify model type version used for model creation For
+ * custom identifying the model by model id is difficult. This param provides ease of use
+ * for end customer. <>::<>-<>::<> ex: ai-lang::NER_V1::CUSTOM-V0
*/
@com.fasterxml.jackson.annotation.JsonProperty("version")
private String version;
/**
- * Identifying the model by model id is difficult. This param provides ease of use for end
- * customer. <>::<>-<>::<> ex: ai-lang::NER_V1::CUSTOM-V0
+ * For pre trained models this will identify model type version used for model creation For
+ * custom identifying the model by model id is difficult. This param provides ease of use
+ * for end customer. <>::<>-<>::<> ex: ai-lang::NER_V1::CUSTOM-V0
*
* @param version the value to set
* @return this builder
@@ -500,17 +502,19 @@ public String getProjectId() {
}
/**
- * Identifying the model by model id is difficult. This param provides ease of use for end
- * customer. <>::<>-<>::<> ex: ai-lang::NER_V1::CUSTOM-V0
+ * For pre trained models this will identify model type version used for model creation For
+ * custom identifying the model by model id is difficult. This param provides ease of use for
+ * end customer. <>::<>-<>::<> ex: ai-lang::NER_V1::CUSTOM-V0
*/
@com.fasterxml.jackson.annotation.JsonProperty("version")
private final String version;
/**
- * Identifying the model by model id is difficult. This param provides ease of use for end
- * customer. <>::<>-<>::<> ex: ai-lang::NER_V1::CUSTOM-V0
+ * For pre trained models this will identify model type version used for model creation For
+ * custom identifying the model by model id is difficult. This param provides ease of use for
+ * end customer. <>::<>-<>::<> ex: ai-lang::NER_V1::CUSTOM-V0
*
* @return the value
*/
diff --git a/bmc-ailanguage/src/main/java/com/oracle/bmc/ailanguage/model/ModelTypeInfo.java b/bmc-ailanguage/src/main/java/com/oracle/bmc/ailanguage/model/ModelTypeInfo.java
new file mode 100644
index 00000000000..55ebb6a012b
--- /dev/null
+++ b/bmc-ailanguage/src/main/java/com/oracle/bmc/ailanguage/model/ModelTypeInfo.java
@@ -0,0 +1,168 @@
+/**
+ * Copyright (c) 2016, 2023, Oracle and/or its affiliates. All rights reserved.
+ * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+ */
+package com.oracle.bmc.ailanguage.model;
+
+/**
+ * Model information like versions and capabilities
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model
+ * distinguishes fields that are {@code null} because they are unset from fields that are explicitly
+ * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a
+ * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link
+ * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set
+ * fields into account. The constructor, on the other hand, does not take the explicitly set fields
+ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code
+ * null}).
+ */
+@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20221001")
+@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = ModelTypeInfo.Builder.class)
+@com.fasterxml.jackson.annotation.JsonFilter(
+ com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME)
+public final class ModelTypeInfo extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel {
+ @Deprecated
+ @java.beans.ConstructorProperties({"versions", "capabilities"})
+ public ModelTypeInfo(
+ java.util.List versions, java.util.Map capabilities) {
+ super();
+ this.versions = versions;
+ this.capabilities = capabilities;
+ }
+
+ @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "")
+ public static class Builder {
+ /** Model versions available for this model type */
+ @com.fasterxml.jackson.annotation.JsonProperty("versions")
+ private java.util.List versions;
+
+ /**
+ * Model versions available for this model type
+ *
+ * @param versions the value to set
+ * @return this builder
+ */
+ public Builder versions(java.util.List versions) {
+ this.versions = versions;
+ this.__explicitlySet__.add("versions");
+ return this;
+ }
+ /** Model information capabilities related to version */
+ @com.fasterxml.jackson.annotation.JsonProperty("capabilities")
+ private java.util.Map capabilities;
+
+ /**
+ * Model information capabilities related to version
+ *
+ * @param capabilities the value to set
+ * @return this builder
+ */
+ public Builder capabilities(java.util.Map capabilities) {
+ this.capabilities = capabilities;
+ this.__explicitlySet__.add("capabilities");
+ return this;
+ }
+
+ @com.fasterxml.jackson.annotation.JsonIgnore
+ private final java.util.Set __explicitlySet__ = new java.util.HashSet();
+
+ public ModelTypeInfo build() {
+ ModelTypeInfo model = new ModelTypeInfo(this.versions, this.capabilities);
+ for (String explicitlySetProperty : this.__explicitlySet__) {
+ model.markPropertyAsExplicitlySet(explicitlySetProperty);
+ }
+ return model;
+ }
+
+ @com.fasterxml.jackson.annotation.JsonIgnore
+ public Builder copy(ModelTypeInfo model) {
+ if (model.wasPropertyExplicitlySet("versions")) {
+ this.versions(model.getVersions());
+ }
+ if (model.wasPropertyExplicitlySet("capabilities")) {
+ this.capabilities(model.getCapabilities());
+ }
+ return this;
+ }
+ }
+
+ /** Create a new builder. */
+ public static Builder builder() {
+ return new Builder();
+ }
+
+ public Builder toBuilder() {
+ return new Builder().copy(this);
+ }
+
+ /** Model versions available for this model type */
+ @com.fasterxml.jackson.annotation.JsonProperty("versions")
+ private final java.util.List versions;
+
+ /**
+ * Model versions available for this model type
+ *
+ * @return the value
+ */
+ public java.util.List getVersions() {
+ return versions;
+ }
+
+ /** Model information capabilities related to version */
+ @com.fasterxml.jackson.annotation.JsonProperty("capabilities")
+ private final java.util.Map capabilities;
+
+ /**
+ * Model information capabilities related to version
+ *
+ * @return the value
+ */
+ public java.util.Map getCapabilities() {
+ return capabilities;
+ }
+
+ @Override
+ public String toString() {
+ return this.toString(true);
+ }
+
+ /**
+ * Return a string representation of the object.
+ *
+ * @param includeByteArrayContents true to include the full contents of byte arrays
+ * @return string representation
+ */
+ public String toString(boolean includeByteArrayContents) {
+ java.lang.StringBuilder sb = new java.lang.StringBuilder();
+ sb.append("ModelTypeInfo(");
+ sb.append("super=").append(super.toString());
+ sb.append("versions=").append(String.valueOf(this.versions));
+ sb.append(", capabilities=").append(String.valueOf(this.capabilities));
+ sb.append(")");
+ return sb.toString();
+ }
+
+ @Override
+ public boolean equals(Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (!(o instanceof ModelTypeInfo)) {
+ return false;
+ }
+
+ ModelTypeInfo other = (ModelTypeInfo) o;
+ return java.util.Objects.equals(this.versions, other.versions)
+ && java.util.Objects.equals(this.capabilities, other.capabilities)
+ && super.equals(other);
+ }
+
+ @Override
+ public int hashCode() {
+ final int PRIME = 59;
+ int result = 1;
+ result = (result * PRIME) + (this.versions == null ? 43 : this.versions.hashCode());
+ result = (result * PRIME) + (this.capabilities == null ? 43 : this.capabilities.hashCode());
+ result = (result * PRIME) + super.hashCode();
+ return result;
+ }
+}
diff --git a/bmc-ailanguage/src/main/java/com/oracle/bmc/ailanguage/model/NamedEntityRecognitionModelDetails.java b/bmc-ailanguage/src/main/java/com/oracle/bmc/ailanguage/model/NamedEntityRecognitionModelDetails.java
index b973ab253f4..52555d85a65 100644
--- a/bmc-ailanguage/src/main/java/com/oracle/bmc/ailanguage/model/NamedEntityRecognitionModelDetails.java
+++ b/bmc-ailanguage/src/main/java/com/oracle/bmc/ailanguage/model/NamedEntityRecognitionModelDetails.java
@@ -35,13 +35,32 @@ public Builder languageCode(String languageCode) {
this.__explicitlySet__.add("languageCode");
return this;
}
+ /**
+ * Optional if nothing specified latest base model will be used for training. Supported
+ * versions can be found at /modelTypes/{modelType}
+ */
+ @com.fasterxml.jackson.annotation.JsonProperty("version")
+ private String version;
+
+ /**
+ * Optional if nothing specified latest base model will be used for training. Supported
+ * versions can be found at /modelTypes/{modelType}
+ *
+ * @param version the value to set
+ * @return this builder
+ */
+ public Builder version(String version) {
+ this.version = version;
+ this.__explicitlySet__.add("version");
+ return this;
+ }
@com.fasterxml.jackson.annotation.JsonIgnore
private final java.util.Set __explicitlySet__ = new java.util.HashSet();
public NamedEntityRecognitionModelDetails build() {
NamedEntityRecognitionModelDetails model =
- new NamedEntityRecognitionModelDetails(this.languageCode);
+ new NamedEntityRecognitionModelDetails(this.languageCode, this.version);
for (String explicitlySetProperty : this.__explicitlySet__) {
model.markPropertyAsExplicitlySet(explicitlySetProperty);
}
@@ -53,6 +72,9 @@ public Builder copy(NamedEntityRecognitionModelDetails model) {
if (model.wasPropertyExplicitlySet("languageCode")) {
this.languageCode(model.getLanguageCode());
}
+ if (model.wasPropertyExplicitlySet("version")) {
+ this.version(model.getVersion());
+ }
return this;
}
}
@@ -67,8 +89,26 @@ public Builder toBuilder() {
}
@Deprecated
- public NamedEntityRecognitionModelDetails(String languageCode) {
+ public NamedEntityRecognitionModelDetails(String languageCode, String version) {
super(languageCode);
+ this.version = version;
+ }
+
+ /**
+ * Optional if nothing specified latest base model will be used for training. Supported versions
+ * can be found at /modelTypes/{modelType}
+ */
+ @com.fasterxml.jackson.annotation.JsonProperty("version")
+ private final String version;
+
+ /**
+ * Optional if nothing specified latest base model will be used for training. Supported versions
+ * can be found at /modelTypes/{modelType}
+ *
+ * @return the value
+ */
+ public String getVersion() {
+ return version;
}
@Override
@@ -86,6 +126,7 @@ public String toString(boolean includeByteArrayContents) {
java.lang.StringBuilder sb = new java.lang.StringBuilder();
sb.append("NamedEntityRecognitionModelDetails(");
sb.append("super=").append(super.toString(includeByteArrayContents));
+ sb.append(", version=").append(String.valueOf(this.version));
sb.append(")");
return sb.toString();
}
@@ -100,13 +141,14 @@ public boolean equals(Object o) {
}
NamedEntityRecognitionModelDetails other = (NamedEntityRecognitionModelDetails) o;
- return super.equals(other);
+ return java.util.Objects.equals(this.version, other.version) && super.equals(other);
}
@Override
public int hashCode() {
final int PRIME = 59;
int result = super.hashCode();
+ result = (result * PRIME) + (this.version == null ? 43 : this.version.hashCode());
return result;
}
}
diff --git a/bmc-ailanguage/src/main/java/com/oracle/bmc/ailanguage/model/PiiEntityDocumentResult.java b/bmc-ailanguage/src/main/java/com/oracle/bmc/ailanguage/model/PiiEntityDocumentResult.java
index 2991e562f5c..370060eee05 100644
--- a/bmc-ailanguage/src/main/java/com/oracle/bmc/ailanguage/model/PiiEntityDocumentResult.java
+++ b/bmc-ailanguage/src/main/java/com/oracle/bmc/ailanguage/model/PiiEntityDocumentResult.java
@@ -84,21 +84,23 @@ public Builder maskedText(String maskedText) {
return this;
}
/**
- * Language code supported Automatically detect language - auto Arabic - ar Brazilian
- * Portuguese - pt-BR Czech - cs Danish - da Dutch - nl English - en Finnish - fi French -
- * fr Canadian French - fr-CA German - de Italian - it Japanese - ja Korean - ko Norwegian -
- * no Polish - pl Romanian - ro Simplified Chinese - zh-CN Spanish - es Swedish - sv
- * Traditional Chinese - zh-TW Turkish - tr Greek - el Hebrew - he
+ * Language code supported - auto : Automatically detect language - ar : Arabic - pt-BR :
+ * Brazilian Portuguese - cs : Czech - da : Danish - nl : Dutch - en : English - fi :
+ * Finnish - fr : French - fr-CA : Canadian French - de : German - it : Italian - ja :
+ * Japanese - ko : Korean - no : Norwegian - pl : Polish - ro : Romanian - zh-CN :
+ * Simplified Chinese - es : Spanish - sv : Swedish - zh-TW : Traditional Chinese - tr :
+ * Turkish - el : Greek - he : Hebrew
*/
@com.fasterxml.jackson.annotation.JsonProperty("languageCode")
private String languageCode;
/**
- * Language code supported Automatically detect language - auto Arabic - ar Brazilian
- * Portuguese - pt-BR Czech - cs Danish - da Dutch - nl English - en Finnish - fi French -
- * fr Canadian French - fr-CA German - de Italian - it Japanese - ja Korean - ko Norwegian -
- * no Polish - pl Romanian - ro Simplified Chinese - zh-CN Spanish - es Swedish - sv
- * Traditional Chinese - zh-TW Turkish - tr Greek - el Hebrew - he
+ * Language code supported - auto : Automatically detect language - ar : Arabic - pt-BR :
+ * Brazilian Portuguese - cs : Czech - da : Danish - nl : Dutch - en : English - fi :
+ * Finnish - fr : French - fr-CA : Canadian French - de : German - it : Italian - ja :
+ * Japanese - ko : Korean - no : Norwegian - pl : Polish - ro : Romanian - zh-CN :
+ * Simplified Chinese - es : Spanish - sv : Swedish - zh-TW : Traditional Chinese - tr :
+ * Turkish - el : Greek - he : Hebrew
*
* @param languageCode the value to set
* @return this builder
@@ -189,21 +191,23 @@ public String getMaskedText() {
}
/**
- * Language code supported Automatically detect language - auto Arabic - ar Brazilian Portuguese
- * - pt-BR Czech - cs Danish - da Dutch - nl English - en Finnish - fi French - fr Canadian
- * French - fr-CA German - de Italian - it Japanese - ja Korean - ko Norwegian - no Polish - pl
- * Romanian - ro Simplified Chinese - zh-CN Spanish - es Swedish - sv Traditional Chinese -
- * zh-TW Turkish - tr Greek - el Hebrew - he
+ * Language code supported - auto : Automatically detect language - ar : Arabic - pt-BR :
+ * Brazilian Portuguese - cs : Czech - da : Danish - nl : Dutch - en : English - fi : Finnish -
+ * fr : French - fr-CA : Canadian French - de : German - it : Italian - ja : Japanese - ko :
+ * Korean - no : Norwegian - pl : Polish - ro : Romanian - zh-CN : Simplified Chinese - es :
+ * Spanish - sv : Swedish - zh-TW : Traditional Chinese - tr : Turkish - el : Greek - he :
+ * Hebrew
*/
@com.fasterxml.jackson.annotation.JsonProperty("languageCode")
private final String languageCode;
/**
- * Language code supported Automatically detect language - auto Arabic - ar Brazilian Portuguese
- * - pt-BR Czech - cs Danish - da Dutch - nl English - en Finnish - fi French - fr Canadian
- * French - fr-CA German - de Italian - it Japanese - ja Korean - ko Norwegian - no Polish - pl
- * Romanian - ro Simplified Chinese - zh-CN Spanish - es Swedish - sv Traditional Chinese -
- * zh-TW Turkish - tr Greek - el Hebrew - he
+ * Language code supported - auto : Automatically detect language - ar : Arabic - pt-BR :
+ * Brazilian Portuguese - cs : Czech - da : Danish - nl : Dutch - en : English - fi : Finnish -
+ * fr : French - fr-CA : Canadian French - de : German - it : Italian - ja : Japanese - ko :
+ * Korean - no : Norwegian - pl : Polish - ro : Romanian - zh-CN : Simplified Chinese - es :
+ * Spanish - sv : Swedish - zh-TW : Traditional Chinese - tr : Turkish - el : Greek - he :
+ * Hebrew
*
* @return the value
*/
diff --git a/bmc-ailanguage/src/main/java/com/oracle/bmc/ailanguage/model/PreTrainedHealthNluModelDetails.java b/bmc-ailanguage/src/main/java/com/oracle/bmc/ailanguage/model/PreTrainedHealthNluModelDetails.java
new file mode 100644
index 00000000000..d5e77391e81
--- /dev/null
+++ b/bmc-ailanguage/src/main/java/com/oracle/bmc/ailanguage/model/PreTrainedHealthNluModelDetails.java
@@ -0,0 +1,154 @@
+/**
+ * Copyright (c) 2016, 2023, Oracle and/or its affiliates. All rights reserved.
+ * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+ */
+package com.oracle.bmc.ailanguage.model;
+
+/**
+ * Possible pre trained health NLU model information
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model
+ * distinguishes fields that are {@code null} because they are unset from fields that are explicitly
+ * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a
+ * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link
+ * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set
+ * fields into account. The constructor, on the other hand, does not take the explicitly set fields
+ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code
+ * null}).
+ */
+@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20221001")
+@com.fasterxml.jackson.databind.annotation.JsonDeserialize(
+ builder = PreTrainedHealthNluModelDetails.Builder.class)
+@com.fasterxml.jackson.annotation.JsonTypeInfo(
+ use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME,
+ include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY,
+ property = "modelType")
+@com.fasterxml.jackson.annotation.JsonFilter(
+ com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME)
+public final class PreTrainedHealthNluModelDetails extends ModelDetails {
+ @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "")
+ public static class Builder {
+ @com.fasterxml.jackson.annotation.JsonProperty("languageCode")
+ private String languageCode;
+
+ public Builder languageCode(String languageCode) {
+ this.languageCode = languageCode;
+ this.__explicitlySet__.add("languageCode");
+ return this;
+ }
+ /**
+ * Optional pre trained model version. if nothing specified latest pre trained model will be
+ * used. Supported versions can be found at /modelTypes/{modelType}
+ */
+ @com.fasterxml.jackson.annotation.JsonProperty("version")
+ private String version;
+
+ /**
+ * Optional pre trained model version. if nothing specified latest pre trained model will be
+ * used. Supported versions can be found at /modelTypes/{modelType}
+ *
+ * @param version the value to set
+ * @return this builder
+ */
+ public Builder version(String version) {
+ this.version = version;
+ this.__explicitlySet__.add("version");
+ return this;
+ }
+
+ @com.fasterxml.jackson.annotation.JsonIgnore
+ private final java.util.Set __explicitlySet__ = new java.util.HashSet();
+
+ public PreTrainedHealthNluModelDetails build() {
+ PreTrainedHealthNluModelDetails model =
+ new PreTrainedHealthNluModelDetails(this.languageCode, this.version);
+ for (String explicitlySetProperty : this.__explicitlySet__) {
+ model.markPropertyAsExplicitlySet(explicitlySetProperty);
+ }
+ return model;
+ }
+
+ @com.fasterxml.jackson.annotation.JsonIgnore
+ public Builder copy(PreTrainedHealthNluModelDetails model) {
+ if (model.wasPropertyExplicitlySet("languageCode")) {
+ this.languageCode(model.getLanguageCode());
+ }
+ if (model.wasPropertyExplicitlySet("version")) {
+ this.version(model.getVersion());
+ }
+ return this;
+ }
+ }
+
+ /** Create a new builder. */
+ public static Builder builder() {
+ return new Builder();
+ }
+
+ public Builder toBuilder() {
+ return new Builder().copy(this);
+ }
+
+ @Deprecated
+ public PreTrainedHealthNluModelDetails(String languageCode, String version) {
+ super(languageCode);
+ this.version = version;
+ }
+
+ /**
+ * Optional pre trained model version. if nothing specified latest pre trained model will be
+ * used. Supported versions can be found at /modelTypes/{modelType}
+ */
+ @com.fasterxml.jackson.annotation.JsonProperty("version")
+ private final String version;
+
+ /**
+ * Optional pre trained model version. if nothing specified latest pre trained model will be
+ * used. Supported versions can be found at /modelTypes/{modelType}
+ *
+ * @return the value
+ */
+ public String getVersion() {
+ return version;
+ }
+
+ @Override
+ public String toString() {
+ return this.toString(true);
+ }
+
+ /**
+ * Return a string representation of the object.
+ *
+ * @param includeByteArrayContents true to include the full contents of byte arrays
+ * @return string representation
+ */
+ public String toString(boolean includeByteArrayContents) {
+ java.lang.StringBuilder sb = new java.lang.StringBuilder();
+ sb.append("PreTrainedHealthNluModelDetails(");
+ sb.append("super=").append(super.toString(includeByteArrayContents));
+ sb.append(", version=").append(String.valueOf(this.version));
+ sb.append(")");
+ return sb.toString();
+ }
+
+ @Override
+ public boolean equals(Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (!(o instanceof PreTrainedHealthNluModelDetails)) {
+ return false;
+ }
+
+ PreTrainedHealthNluModelDetails other = (PreTrainedHealthNluModelDetails) o;
+ return java.util.Objects.equals(this.version, other.version) && super.equals(other);
+ }
+
+ @Override
+ public int hashCode() {
+ final int PRIME = 59;
+ int result = super.hashCode();
+ result = (result * PRIME) + (this.version == null ? 43 : this.version.hashCode());
+ return result;
+ }
+}
diff --git a/bmc-ailanguage/src/main/java/com/oracle/bmc/ailanguage/model/PreTrainedKeyPhraseExtractionModelDetails.java b/bmc-ailanguage/src/main/java/com/oracle/bmc/ailanguage/model/PreTrainedKeyPhraseExtractionModelDetails.java
new file mode 100644
index 00000000000..3d83866f43b
--- /dev/null
+++ b/bmc-ailanguage/src/main/java/com/oracle/bmc/ailanguage/model/PreTrainedKeyPhraseExtractionModelDetails.java
@@ -0,0 +1,155 @@
+/**
+ * Copyright (c) 2016, 2023, Oracle and/or its affiliates. All rights reserved.
+ * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+ */
+package com.oracle.bmc.ailanguage.model;
+
+/**
+ * Possible pre trained TXT model information
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model
+ * distinguishes fields that are {@code null} because they are unset from fields that are explicitly
+ * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a
+ * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link
+ * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set
+ * fields into account. The constructor, on the other hand, does not take the explicitly set fields
+ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code
+ * null}).
+ */
+@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20221001")
+@com.fasterxml.jackson.databind.annotation.JsonDeserialize(
+ builder = PreTrainedKeyPhraseExtractionModelDetails.Builder.class)
+@com.fasterxml.jackson.annotation.JsonTypeInfo(
+ use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME,
+ include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY,
+ property = "modelType")
+@com.fasterxml.jackson.annotation.JsonFilter(
+ com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME)
+public final class PreTrainedKeyPhraseExtractionModelDetails extends ModelDetails {
+ @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "")
+ public static class Builder {
+ @com.fasterxml.jackson.annotation.JsonProperty("languageCode")
+ private String languageCode;
+
+ public Builder languageCode(String languageCode) {
+ this.languageCode = languageCode;
+ this.__explicitlySet__.add("languageCode");
+ return this;
+ }
+ /**
+ * Optional pre trained model version. if nothing specified latest pre trained model will be
+ * used. Supported versions can be found at /modelTypes/{modelType}
+ */
+ @com.fasterxml.jackson.annotation.JsonProperty("version")
+ private String version;
+
+ /**
+ * Optional pre trained model version. if nothing specified latest pre trained model will be
+ * used. Supported versions can be found at /modelTypes/{modelType}
+ *
+ * @param version the value to set
+ * @return this builder
+ */
+ public Builder version(String version) {
+ this.version = version;
+ this.__explicitlySet__.add("version");
+ return this;
+ }
+
+ @com.fasterxml.jackson.annotation.JsonIgnore
+ private final java.util.Set __explicitlySet__ = new java.util.HashSet();
+
+ public PreTrainedKeyPhraseExtractionModelDetails build() {
+ PreTrainedKeyPhraseExtractionModelDetails model =
+ new PreTrainedKeyPhraseExtractionModelDetails(this.languageCode, this.version);
+ for (String explicitlySetProperty : this.__explicitlySet__) {
+ model.markPropertyAsExplicitlySet(explicitlySetProperty);
+ }
+ return model;
+ }
+
+ @com.fasterxml.jackson.annotation.JsonIgnore
+ public Builder copy(PreTrainedKeyPhraseExtractionModelDetails model) {
+ if (model.wasPropertyExplicitlySet("languageCode")) {
+ this.languageCode(model.getLanguageCode());
+ }
+ if (model.wasPropertyExplicitlySet("version")) {
+ this.version(model.getVersion());
+ }
+ return this;
+ }
+ }
+
+ /** Create a new builder. */
+ public static Builder builder() {
+ return new Builder();
+ }
+
+ public Builder toBuilder() {
+ return new Builder().copy(this);
+ }
+
+ @Deprecated
+ public PreTrainedKeyPhraseExtractionModelDetails(String languageCode, String version) {
+ super(languageCode);
+ this.version = version;
+ }
+
+ /**
+ * Optional pre trained model version. if nothing specified latest pre trained model will be
+ * used. Supported versions can be found at /modelTypes/{modelType}
+ */
+ @com.fasterxml.jackson.annotation.JsonProperty("version")
+ private final String version;
+
+ /**
+ * Optional pre trained model version. if nothing specified latest pre trained model will be
+ * used. Supported versions can be found at /modelTypes/{modelType}
+ *
+ * @return the value
+ */
+ public String getVersion() {
+ return version;
+ }
+
+ @Override
+ public String toString() {
+ return this.toString(true);
+ }
+
+ /**
+ * Return a string representation of the object.
+ *
+ * @param includeByteArrayContents true to include the full contents of byte arrays
+ * @return string representation
+ */
+ public String toString(boolean includeByteArrayContents) {
+ java.lang.StringBuilder sb = new java.lang.StringBuilder();
+ sb.append("PreTrainedKeyPhraseExtractionModelDetails(");
+ sb.append("super=").append(super.toString(includeByteArrayContents));
+ sb.append(", version=").append(String.valueOf(this.version));
+ sb.append(")");
+ return sb.toString();
+ }
+
+ @Override
+ public boolean equals(Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (!(o instanceof PreTrainedKeyPhraseExtractionModelDetails)) {
+ return false;
+ }
+
+ PreTrainedKeyPhraseExtractionModelDetails other =
+ (PreTrainedKeyPhraseExtractionModelDetails) o;
+ return java.util.Objects.equals(this.version, other.version) && super.equals(other);
+ }
+
+ @Override
+ public int hashCode() {
+ final int PRIME = 59;
+ int result = super.hashCode();
+ result = (result * PRIME) + (this.version == null ? 43 : this.version.hashCode());
+ return result;
+ }
+}
diff --git a/bmc-ailanguage/src/main/java/com/oracle/bmc/ailanguage/model/PreTrainedLanguageDetectionModelDetails.java b/bmc-ailanguage/src/main/java/com/oracle/bmc/ailanguage/model/PreTrainedLanguageDetectionModelDetails.java
new file mode 100644
index 00000000000..27bc9dbf505
--- /dev/null
+++ b/bmc-ailanguage/src/main/java/com/oracle/bmc/ailanguage/model/PreTrainedLanguageDetectionModelDetails.java
@@ -0,0 +1,154 @@
+/**
+ * Copyright (c) 2016, 2023, Oracle and/or its affiliates. All rights reserved.
+ * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+ */
+package com.oracle.bmc.ailanguage.model;
+
+/**
+ * Possible pre trained TXT model information
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model
+ * distinguishes fields that are {@code null} because they are unset from fields that are explicitly
+ * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a
+ * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link
+ * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set
+ * fields into account. The constructor, on the other hand, does not take the explicitly set fields
+ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code
+ * null}).
+ */
+@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20221001")
+@com.fasterxml.jackson.databind.annotation.JsonDeserialize(
+ builder = PreTrainedLanguageDetectionModelDetails.Builder.class)
+@com.fasterxml.jackson.annotation.JsonTypeInfo(
+ use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME,
+ include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY,
+ property = "modelType")
+@com.fasterxml.jackson.annotation.JsonFilter(
+ com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME)
+public final class PreTrainedLanguageDetectionModelDetails extends ModelDetails {
+ @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "")
+ public static class Builder {
+ @com.fasterxml.jackson.annotation.JsonProperty("languageCode")
+ private String languageCode;
+
+ public Builder languageCode(String languageCode) {
+ this.languageCode = languageCode;
+ this.__explicitlySet__.add("languageCode");
+ return this;
+ }
+ /**
+ * Optional pre trained model version. if nothing specified latest pre trained model will be
+ * used. Supported versions can be found at /modelTypes/{modelType}
+ */
+ @com.fasterxml.jackson.annotation.JsonProperty("version")
+ private String version;
+
+ /**
+ * Optional pre trained model version. if nothing specified latest pre trained model will be
+ * used. Supported versions can be found at /modelTypes/{modelType}
+ *
+ * @param version the value to set
+ * @return this builder
+ */
+ public Builder version(String version) {
+ this.version = version;
+ this.__explicitlySet__.add("version");
+ return this;
+ }
+
+ @com.fasterxml.jackson.annotation.JsonIgnore
+ private final java.util.Set __explicitlySet__ = new java.util.HashSet();
+
+ public PreTrainedLanguageDetectionModelDetails build() {
+ PreTrainedLanguageDetectionModelDetails model =
+ new PreTrainedLanguageDetectionModelDetails(this.languageCode, this.version);
+ for (String explicitlySetProperty : this.__explicitlySet__) {
+ model.markPropertyAsExplicitlySet(explicitlySetProperty);
+ }
+ return model;
+ }
+
+ @com.fasterxml.jackson.annotation.JsonIgnore
+ public Builder copy(PreTrainedLanguageDetectionModelDetails model) {
+ if (model.wasPropertyExplicitlySet("languageCode")) {
+ this.languageCode(model.getLanguageCode());
+ }
+ if (model.wasPropertyExplicitlySet("version")) {
+ this.version(model.getVersion());
+ }
+ return this;
+ }
+ }
+
+ /** Create a new builder. */
+ public static Builder builder() {
+ return new Builder();
+ }
+
+ public Builder toBuilder() {
+ return new Builder().copy(this);
+ }
+
+ @Deprecated
+ public PreTrainedLanguageDetectionModelDetails(String languageCode, String version) {
+ super(languageCode);
+ this.version = version;
+ }
+
+ /**
+ * Optional pre trained model version. if nothing specified latest pre trained model will be
+ * used. Supported versions can be found at /modelTypes/{modelType}
+ */
+ @com.fasterxml.jackson.annotation.JsonProperty("version")
+ private final String version;
+
+ /**
+ * Optional pre trained model version. if nothing specified latest pre trained model will be
+ * used. Supported versions can be found at /modelTypes/{modelType}
+ *
+ * @return the value
+ */
+ public String getVersion() {
+ return version;
+ }
+
+ @Override
+ public String toString() {
+ return this.toString(true);
+ }
+
+ /**
+ * Return a string representation of the object.
+ *
+ * @param includeByteArrayContents true to include the full contents of byte arrays
+ * @return string representation
+ */
+ public String toString(boolean includeByteArrayContents) {
+ java.lang.StringBuilder sb = new java.lang.StringBuilder();
+ sb.append("PreTrainedLanguageDetectionModelDetails(");
+ sb.append("super=").append(super.toString(includeByteArrayContents));
+ sb.append(", version=").append(String.valueOf(this.version));
+ sb.append(")");
+ return sb.toString();
+ }
+
+ @Override
+ public boolean equals(Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (!(o instanceof PreTrainedLanguageDetectionModelDetails)) {
+ return false;
+ }
+
+ PreTrainedLanguageDetectionModelDetails other = (PreTrainedLanguageDetectionModelDetails) o;
+ return java.util.Objects.equals(this.version, other.version) && super.equals(other);
+ }
+
+ @Override
+ public int hashCode() {
+ final int PRIME = 59;
+ int result = super.hashCode();
+ result = (result * PRIME) + (this.version == null ? 43 : this.version.hashCode());
+ return result;
+ }
+}
diff --git a/bmc-ailanguage/src/main/java/com/oracle/bmc/ailanguage/model/PreTrainedNamedEntityRecognitionModelDetails.java b/bmc-ailanguage/src/main/java/com/oracle/bmc/ailanguage/model/PreTrainedNamedEntityRecognitionModelDetails.java
new file mode 100644
index 00000000000..64b2f44293c
--- /dev/null
+++ b/bmc-ailanguage/src/main/java/com/oracle/bmc/ailanguage/model/PreTrainedNamedEntityRecognitionModelDetails.java
@@ -0,0 +1,156 @@
+/**
+ * Copyright (c) 2016, 2023, Oracle and/or its affiliates. All rights reserved.
+ * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+ */
+package com.oracle.bmc.ailanguage.model;
+
+/**
+ * Possible pre trained NER model information
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model
+ * distinguishes fields that are {@code null} because they are unset from fields that are explicitly
+ * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a
+ * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link
+ * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set
+ * fields into account. The constructor, on the other hand, does not take the explicitly set fields
+ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code
+ * null}).
+ */
+@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20221001")
+@com.fasterxml.jackson.databind.annotation.JsonDeserialize(
+ builder = PreTrainedNamedEntityRecognitionModelDetails.Builder.class)
+@com.fasterxml.jackson.annotation.JsonTypeInfo(
+ use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME,
+ include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY,
+ property = "modelType")
+@com.fasterxml.jackson.annotation.JsonFilter(
+ com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME)
+public final class PreTrainedNamedEntityRecognitionModelDetails extends ModelDetails {
+ @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "")
+ public static class Builder {
+ @com.fasterxml.jackson.annotation.JsonProperty("languageCode")
+ private String languageCode;
+
+ public Builder languageCode(String languageCode) {
+ this.languageCode = languageCode;
+ this.__explicitlySet__.add("languageCode");
+ return this;
+ }
+ /**
+ * Optional pre trained model version. if nothing specified latest pre trained model will be
+ * used. Supported versions can be found at /modelTypes/{modelType}
+ */
+ @com.fasterxml.jackson.annotation.JsonProperty("version")
+ private String version;
+
+ /**
+ * Optional pre trained model version. if nothing specified latest pre trained model will be
+ * used. Supported versions can be found at /modelTypes/{modelType}
+ *
+ * @param version the value to set
+ * @return this builder
+ */
+ public Builder version(String version) {
+ this.version = version;
+ this.__explicitlySet__.add("version");
+ return this;
+ }
+
+ @com.fasterxml.jackson.annotation.JsonIgnore
+ private final java.util.Set __explicitlySet__ = new java.util.HashSet();
+
+ public PreTrainedNamedEntityRecognitionModelDetails build() {
+ PreTrainedNamedEntityRecognitionModelDetails model =
+ new PreTrainedNamedEntityRecognitionModelDetails(
+ this.languageCode, this.version);
+ for (String explicitlySetProperty : this.__explicitlySet__) {
+ model.markPropertyAsExplicitlySet(explicitlySetProperty);
+ }
+ return model;
+ }
+
+ @com.fasterxml.jackson.annotation.JsonIgnore
+ public Builder copy(PreTrainedNamedEntityRecognitionModelDetails model) {
+ if (model.wasPropertyExplicitlySet("languageCode")) {
+ this.languageCode(model.getLanguageCode());
+ }
+ if (model.wasPropertyExplicitlySet("version")) {
+ this.version(model.getVersion());
+ }
+ return this;
+ }
+ }
+
+ /** Create a new builder. */
+ public static Builder builder() {
+ return new Builder();
+ }
+
+ public Builder toBuilder() {
+ return new Builder().copy(this);
+ }
+
+ @Deprecated
+ public PreTrainedNamedEntityRecognitionModelDetails(String languageCode, String version) {
+ super(languageCode);
+ this.version = version;
+ }
+
+ /**
+ * Optional pre trained model version. if nothing specified latest pre trained model will be
+ * used. Supported versions can be found at /modelTypes/{modelType}
+ */
+ @com.fasterxml.jackson.annotation.JsonProperty("version")
+ private final String version;
+
+ /**
+ * Optional pre trained model version. if nothing specified latest pre trained model will be
+ * used. Supported versions can be found at /modelTypes/{modelType}
+ *
+ * @return the value
+ */
+ public String getVersion() {
+ return version;
+ }
+
+ @Override
+ public String toString() {
+ return this.toString(true);
+ }
+
+ /**
+ * Return a string representation of the object.
+ *
+ * @param includeByteArrayContents true to include the full contents of byte arrays
+ * @return string representation
+ */
+ public String toString(boolean includeByteArrayContents) {
+ java.lang.StringBuilder sb = new java.lang.StringBuilder();
+ sb.append("PreTrainedNamedEntityRecognitionModelDetails(");
+ sb.append("super=").append(super.toString(includeByteArrayContents));
+ sb.append(", version=").append(String.valueOf(this.version));
+ sb.append(")");
+ return sb.toString();
+ }
+
+ @Override
+ public boolean equals(Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (!(o instanceof PreTrainedNamedEntityRecognitionModelDetails)) {
+ return false;
+ }
+
+ PreTrainedNamedEntityRecognitionModelDetails other =
+ (PreTrainedNamedEntityRecognitionModelDetails) o;
+ return java.util.Objects.equals(this.version, other.version) && super.equals(other);
+ }
+
+ @Override
+ public int hashCode() {
+ final int PRIME = 59;
+ int result = super.hashCode();
+ result = (result * PRIME) + (this.version == null ? 43 : this.version.hashCode());
+ return result;
+ }
+}
diff --git a/bmc-ailanguage/src/main/java/com/oracle/bmc/ailanguage/model/PreTrainedPhiModelDetails.java b/bmc-ailanguage/src/main/java/com/oracle/bmc/ailanguage/model/PreTrainedPhiModelDetails.java
new file mode 100644
index 00000000000..6c669a7ef3a
--- /dev/null
+++ b/bmc-ailanguage/src/main/java/com/oracle/bmc/ailanguage/model/PreTrainedPhiModelDetails.java
@@ -0,0 +1,154 @@
+/**
+ * Copyright (c) 2016, 2023, Oracle and/or its affiliates. All rights reserved.
+ * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+ */
+package com.oracle.bmc.ailanguage.model;
+
+/**
+ * Possible pre trained PHI model information
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model
+ * distinguishes fields that are {@code null} because they are unset from fields that are explicitly
+ * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a
+ * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link
+ * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set
+ * fields into account. The constructor, on the other hand, does not take the explicitly set fields
+ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code
+ * null}).
+ */
+@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20221001")
+@com.fasterxml.jackson.databind.annotation.JsonDeserialize(
+ builder = PreTrainedPhiModelDetails.Builder.class)
+@com.fasterxml.jackson.annotation.JsonTypeInfo(
+ use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME,
+ include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY,
+ property = "modelType")
+@com.fasterxml.jackson.annotation.JsonFilter(
+ com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME)
+public final class PreTrainedPhiModelDetails extends ModelDetails {
+ @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "")
+ public static class Builder {
+ @com.fasterxml.jackson.annotation.JsonProperty("languageCode")
+ private String languageCode;
+
+ public Builder languageCode(String languageCode) {
+ this.languageCode = languageCode;
+ this.__explicitlySet__.add("languageCode");
+ return this;
+ }
+ /**
+ * Optional pre trained model version. if nothing specified latest pre trained model will be
+ * used. Supported versions can be found at /modelTypes/{modelType}
+ */
+ @com.fasterxml.jackson.annotation.JsonProperty("version")
+ private String version;
+
+ /**
+ * Optional pre trained model version. if nothing specified latest pre trained model will be
+ * used. Supported versions can be found at /modelTypes/{modelType}
+ *
+ * @param version the value to set
+ * @return this builder
+ */
+ public Builder version(String version) {
+ this.version = version;
+ this.__explicitlySet__.add("version");
+ return this;
+ }
+
+ @com.fasterxml.jackson.annotation.JsonIgnore
+ private final java.util.Set __explicitlySet__ = new java.util.HashSet();
+
+ public PreTrainedPhiModelDetails build() {
+ PreTrainedPhiModelDetails model =
+ new PreTrainedPhiModelDetails(this.languageCode, this.version);
+ for (String explicitlySetProperty : this.__explicitlySet__) {
+ model.markPropertyAsExplicitlySet(explicitlySetProperty);
+ }
+ return model;
+ }
+
+ @com.fasterxml.jackson.annotation.JsonIgnore
+ public Builder copy(PreTrainedPhiModelDetails model) {
+ if (model.wasPropertyExplicitlySet("languageCode")) {
+ this.languageCode(model.getLanguageCode());
+ }
+ if (model.wasPropertyExplicitlySet("version")) {
+ this.version(model.getVersion());
+ }
+ return this;
+ }
+ }
+
+ /** Create a new builder. */
+ public static Builder builder() {
+ return new Builder();
+ }
+
+ public Builder toBuilder() {
+ return new Builder().copy(this);
+ }
+
+ @Deprecated
+ public PreTrainedPhiModelDetails(String languageCode, String version) {
+ super(languageCode);
+ this.version = version;
+ }
+
+ /**
+ * Optional pre trained model version. if nothing specified latest pre trained model will be
+ * used. Supported versions can be found at /modelTypes/{modelType}
+ */
+ @com.fasterxml.jackson.annotation.JsonProperty("version")
+ private final String version;
+
+ /**
+ * Optional pre trained model version. if nothing specified latest pre trained model will be
+ * used. Supported versions can be found at /modelTypes/{modelType}
+ *
+ * @return the value
+ */
+ public String getVersion() {
+ return version;
+ }
+
+ @Override
+ public String toString() {
+ return this.toString(true);
+ }
+
+ /**
+ * Return a string representation of the object.
+ *
+ * @param includeByteArrayContents true to include the full contents of byte arrays
+ * @return string representation
+ */
+ public String toString(boolean includeByteArrayContents) {
+ java.lang.StringBuilder sb = new java.lang.StringBuilder();
+ sb.append("PreTrainedPhiModelDetails(");
+ sb.append("super=").append(super.toString(includeByteArrayContents));
+ sb.append(", version=").append(String.valueOf(this.version));
+ sb.append(")");
+ return sb.toString();
+ }
+
+ @Override
+ public boolean equals(Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (!(o instanceof PreTrainedPhiModelDetails)) {
+ return false;
+ }
+
+ PreTrainedPhiModelDetails other = (PreTrainedPhiModelDetails) o;
+ return java.util.Objects.equals(this.version, other.version) && super.equals(other);
+ }
+
+ @Override
+ public int hashCode() {
+ final int PRIME = 59;
+ int result = super.hashCode();
+ result = (result * PRIME) + (this.version == null ? 43 : this.version.hashCode());
+ return result;
+ }
+}
diff --git a/bmc-ailanguage/src/main/java/com/oracle/bmc/ailanguage/model/PreTrainedPiiModelDetails.java b/bmc-ailanguage/src/main/java/com/oracle/bmc/ailanguage/model/PreTrainedPiiModelDetails.java
new file mode 100644
index 00000000000..17b61ed41c2
--- /dev/null
+++ b/bmc-ailanguage/src/main/java/com/oracle/bmc/ailanguage/model/PreTrainedPiiModelDetails.java
@@ -0,0 +1,154 @@
+/**
+ * Copyright (c) 2016, 2023, Oracle and/or its affiliates. All rights reserved.
+ * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+ */
+package com.oracle.bmc.ailanguage.model;
+
+/**
+ * Possible pre trained PII model information
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model
+ * distinguishes fields that are {@code null} because they are unset from fields that are explicitly
+ * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a
+ * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link
+ * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set
+ * fields into account. The constructor, on the other hand, does not take the explicitly set fields
+ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code
+ * null}).
+ */
+@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20221001")
+@com.fasterxml.jackson.databind.annotation.JsonDeserialize(
+ builder = PreTrainedPiiModelDetails.Builder.class)
+@com.fasterxml.jackson.annotation.JsonTypeInfo(
+ use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME,
+ include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY,
+ property = "modelType")
+@com.fasterxml.jackson.annotation.JsonFilter(
+ com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME)
+public final class PreTrainedPiiModelDetails extends ModelDetails {
+ @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "")
+ public static class Builder {
+ @com.fasterxml.jackson.annotation.JsonProperty("languageCode")
+ private String languageCode;
+
+ public Builder languageCode(String languageCode) {
+ this.languageCode = languageCode;
+ this.__explicitlySet__.add("languageCode");
+ return this;
+ }
+ /**
+ * Optional pre trained model version. if nothing specified latest pre trained model will be
+ * used. Supported versions can be found at /modelTypes/{modelType}
+ */
+ @com.fasterxml.jackson.annotation.JsonProperty("version")
+ private String version;
+
+ /**
+ * Optional pre trained model version. if nothing specified latest pre trained model will be
+ * used. Supported versions can be found at /modelTypes/{modelType}
+ *
+ * @param version the value to set
+ * @return this builder
+ */
+ public Builder version(String version) {
+ this.version = version;
+ this.__explicitlySet__.add("version");
+ return this;
+ }
+
+ @com.fasterxml.jackson.annotation.JsonIgnore
+ private final java.util.Set __explicitlySet__ = new java.util.HashSet();
+
+ public PreTrainedPiiModelDetails build() {
+ PreTrainedPiiModelDetails model =
+ new PreTrainedPiiModelDetails(this.languageCode, this.version);
+ for (String explicitlySetProperty : this.__explicitlySet__) {
+ model.markPropertyAsExplicitlySet(explicitlySetProperty);
+ }
+ return model;
+ }
+
+ @com.fasterxml.jackson.annotation.JsonIgnore
+ public Builder copy(PreTrainedPiiModelDetails model) {
+ if (model.wasPropertyExplicitlySet("languageCode")) {
+ this.languageCode(model.getLanguageCode());
+ }
+ if (model.wasPropertyExplicitlySet("version")) {
+ this.version(model.getVersion());
+ }
+ return this;
+ }
+ }
+
+ /** Create a new builder. */
+ public static Builder builder() {
+ return new Builder();
+ }
+
+ public Builder toBuilder() {
+ return new Builder().copy(this);
+ }
+
+ @Deprecated
+ public PreTrainedPiiModelDetails(String languageCode, String version) {
+ super(languageCode);
+ this.version = version;
+ }
+
+ /**
+ * Optional pre trained model version. if nothing specified latest pre trained model will be
+ * used. Supported versions can be found at /modelTypes/{modelType}
+ */
+ @com.fasterxml.jackson.annotation.JsonProperty("version")
+ private final String version;
+
+ /**
+ * Optional pre trained model version. if nothing specified latest pre trained model will be
+ * used. Supported versions can be found at /modelTypes/{modelType}
+ *
+ * @return the value
+ */
+ public String getVersion() {
+ return version;
+ }
+
+ @Override
+ public String toString() {
+ return this.toString(true);
+ }
+
+ /**
+ * Return a string representation of the object.
+ *
+ * @param includeByteArrayContents true to include the full contents of byte arrays
+ * @return string representation
+ */
+ public String toString(boolean includeByteArrayContents) {
+ java.lang.StringBuilder sb = new java.lang.StringBuilder();
+ sb.append("PreTrainedPiiModelDetails(");
+ sb.append("super=").append(super.toString(includeByteArrayContents));
+ sb.append(", version=").append(String.valueOf(this.version));
+ sb.append(")");
+ return sb.toString();
+ }
+
+ @Override
+ public boolean equals(Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (!(o instanceof PreTrainedPiiModelDetails)) {
+ return false;
+ }
+
+ PreTrainedPiiModelDetails other = (PreTrainedPiiModelDetails) o;
+ return java.util.Objects.equals(this.version, other.version) && super.equals(other);
+ }
+
+ @Override
+ public int hashCode() {
+ final int PRIME = 59;
+ int result = super.hashCode();
+ result = (result * PRIME) + (this.version == null ? 43 : this.version.hashCode());
+ return result;
+ }
+}
diff --git a/bmc-ailanguage/src/main/java/com/oracle/bmc/ailanguage/model/PreTrainedSentimentAnalysisModelDetails.java b/bmc-ailanguage/src/main/java/com/oracle/bmc/ailanguage/model/PreTrainedSentimentAnalysisModelDetails.java
new file mode 100644
index 00000000000..edcf7278c36
--- /dev/null
+++ b/bmc-ailanguage/src/main/java/com/oracle/bmc/ailanguage/model/PreTrainedSentimentAnalysisModelDetails.java
@@ -0,0 +1,154 @@
+/**
+ * Copyright (c) 2016, 2023, Oracle and/or its affiliates. All rights reserved.
+ * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+ */
+package com.oracle.bmc.ailanguage.model;
+
+/**
+ * Possible pre trained TXT model information
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model
+ * distinguishes fields that are {@code null} because they are unset from fields that are explicitly
+ * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a
+ * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link
+ * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set
+ * fields into account. The constructor, on the other hand, does not take the explicitly set fields
+ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code
+ * null}).
+ */
+@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20221001")
+@com.fasterxml.jackson.databind.annotation.JsonDeserialize(
+ builder = PreTrainedSentimentAnalysisModelDetails.Builder.class)
+@com.fasterxml.jackson.annotation.JsonTypeInfo(
+ use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME,
+ include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY,
+ property = "modelType")
+@com.fasterxml.jackson.annotation.JsonFilter(
+ com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME)
+public final class PreTrainedSentimentAnalysisModelDetails extends ModelDetails {
+ @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "")
+ public static class Builder {
+ @com.fasterxml.jackson.annotation.JsonProperty("languageCode")
+ private String languageCode;
+
+ public Builder languageCode(String languageCode) {
+ this.languageCode = languageCode;
+ this.__explicitlySet__.add("languageCode");
+ return this;
+ }
+ /**
+ * Optional pre trained model version. if nothing specified latest pre trained model will be
+ * used. Supported versions can be found at /modelTypes/{modelType}
+ */
+ @com.fasterxml.jackson.annotation.JsonProperty("version")
+ private String version;
+
+ /**
+ * Optional pre trained model version. if nothing specified latest pre trained model will be
+ * used. Supported versions can be found at /modelTypes/{modelType}
+ *
+ * @param version the value to set
+ * @return this builder
+ */
+ public Builder version(String version) {
+ this.version = version;
+ this.__explicitlySet__.add("version");
+ return this;
+ }
+
+ @com.fasterxml.jackson.annotation.JsonIgnore
+ private final java.util.Set __explicitlySet__ = new java.util.HashSet();
+
+ public PreTrainedSentimentAnalysisModelDetails build() {
+ PreTrainedSentimentAnalysisModelDetails model =
+ new PreTrainedSentimentAnalysisModelDetails(this.languageCode, this.version);
+ for (String explicitlySetProperty : this.__explicitlySet__) {
+ model.markPropertyAsExplicitlySet(explicitlySetProperty);
+ }
+ return model;
+ }
+
+ @com.fasterxml.jackson.annotation.JsonIgnore
+ public Builder copy(PreTrainedSentimentAnalysisModelDetails model) {
+ if (model.wasPropertyExplicitlySet("languageCode")) {
+ this.languageCode(model.getLanguageCode());
+ }
+ if (model.wasPropertyExplicitlySet("version")) {
+ this.version(model.getVersion());
+ }
+ return this;
+ }
+ }
+
+ /** Create a new builder. */
+ public static Builder builder() {
+ return new Builder();
+ }
+
+ public Builder toBuilder() {
+ return new Builder().copy(this);
+ }
+
+ @Deprecated
+ public PreTrainedSentimentAnalysisModelDetails(String languageCode, String version) {
+ super(languageCode);
+ this.version = version;
+ }
+
+ /**
+ * Optional pre trained model version. if nothing specified latest pre trained model will be
+ * used. Supported versions can be found at /modelTypes/{modelType}
+ */
+ @com.fasterxml.jackson.annotation.JsonProperty("version")
+ private final String version;
+
+ /**
+ * Optional pre trained model version. if nothing specified latest pre trained model will be
+ * used. Supported versions can be found at /modelTypes/{modelType}
+ *
+ * @return the value
+ */
+ public String getVersion() {
+ return version;
+ }
+
+ @Override
+ public String toString() {
+ return this.toString(true);
+ }
+
+ /**
+ * Return a string representation of the object.
+ *
+ * @param includeByteArrayContents true to include the full contents of byte arrays
+ * @return string representation
+ */
+ public String toString(boolean includeByteArrayContents) {
+ java.lang.StringBuilder sb = new java.lang.StringBuilder();
+ sb.append("PreTrainedSentimentAnalysisModelDetails(");
+ sb.append("super=").append(super.toString(includeByteArrayContents));
+ sb.append(", version=").append(String.valueOf(this.version));
+ sb.append(")");
+ return sb.toString();
+ }
+
+ @Override
+ public boolean equals(Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (!(o instanceof PreTrainedSentimentAnalysisModelDetails)) {
+ return false;
+ }
+
+ PreTrainedSentimentAnalysisModelDetails other = (PreTrainedSentimentAnalysisModelDetails) o;
+ return java.util.Objects.equals(this.version, other.version) && super.equals(other);
+ }
+
+ @Override
+ public int hashCode() {
+ final int PRIME = 59;
+ int result = super.hashCode();
+ result = (result * PRIME) + (this.version == null ? 43 : this.version.hashCode());
+ return result;
+ }
+}
diff --git a/bmc-ailanguage/src/main/java/com/oracle/bmc/ailanguage/model/PreTrainedSummarization.java b/bmc-ailanguage/src/main/java/com/oracle/bmc/ailanguage/model/PreTrainedSummarization.java
new file mode 100644
index 00000000000..475e3bc84df
--- /dev/null
+++ b/bmc-ailanguage/src/main/java/com/oracle/bmc/ailanguage/model/PreTrainedSummarization.java
@@ -0,0 +1,154 @@
+/**
+ * Copyright (c) 2016, 2023, Oracle and/or its affiliates. All rights reserved.
+ * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+ */
+package com.oracle.bmc.ailanguage.model;
+
+/**
+ * Possible pre trained summarization information
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model
+ * distinguishes fields that are {@code null} because they are unset from fields that are explicitly
+ * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a
+ * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link
+ * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set
+ * fields into account. The constructor, on the other hand, does not take the explicitly set fields
+ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code
+ * null}).
+ */
+@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20221001")
+@com.fasterxml.jackson.databind.annotation.JsonDeserialize(
+ builder = PreTrainedSummarization.Builder.class)
+@com.fasterxml.jackson.annotation.JsonTypeInfo(
+ use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME,
+ include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY,
+ property = "modelType")
+@com.fasterxml.jackson.annotation.JsonFilter(
+ com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME)
+public final class PreTrainedSummarization extends ModelDetails {
+ @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "")
+ public static class Builder {
+ @com.fasterxml.jackson.annotation.JsonProperty("languageCode")
+ private String languageCode;
+
+ public Builder languageCode(String languageCode) {
+ this.languageCode = languageCode;
+ this.__explicitlySet__.add("languageCode");
+ return this;
+ }
+ /**
+ * Optional pre trained model version. if nothing specified latest pre trained model will be
+ * used. Supported versions can be found at /modelTypes/{modelType}
+ */
+ @com.fasterxml.jackson.annotation.JsonProperty("version")
+ private String version;
+
+ /**
+ * Optional pre trained model version. if nothing specified latest pre trained model will be
+ * used. Supported versions can be found at /modelTypes/{modelType}
+ *
+ * @param version the value to set
+ * @return this builder
+ */
+ public Builder version(String version) {
+ this.version = version;
+ this.__explicitlySet__.add("version");
+ return this;
+ }
+
+ @com.fasterxml.jackson.annotation.JsonIgnore
+ private final java.util.Set __explicitlySet__ = new java.util.HashSet();
+
+ public PreTrainedSummarization build() {
+ PreTrainedSummarization model =
+ new PreTrainedSummarization(this.languageCode, this.version);
+ for (String explicitlySetProperty : this.__explicitlySet__) {
+ model.markPropertyAsExplicitlySet(explicitlySetProperty);
+ }
+ return model;
+ }
+
+ @com.fasterxml.jackson.annotation.JsonIgnore
+ public Builder copy(PreTrainedSummarization model) {
+ if (model.wasPropertyExplicitlySet("languageCode")) {
+ this.languageCode(model.getLanguageCode());
+ }
+ if (model.wasPropertyExplicitlySet("version")) {
+ this.version(model.getVersion());
+ }
+ return this;
+ }
+ }
+
+ /** Create a new builder. */
+ public static Builder builder() {
+ return new Builder();
+ }
+
+ public Builder toBuilder() {
+ return new Builder().copy(this);
+ }
+
+ @Deprecated
+ public PreTrainedSummarization(String languageCode, String version) {
+ super(languageCode);
+ this.version = version;
+ }
+
+ /**
+ * Optional pre trained model version. if nothing specified latest pre trained model will be
+ * used. Supported versions can be found at /modelTypes/{modelType}
+ */
+ @com.fasterxml.jackson.annotation.JsonProperty("version")
+ private final String version;
+
+ /**
+ * Optional pre trained model version. if nothing specified latest pre trained model will be
+ * used. Supported versions can be found at /modelTypes/{modelType}
+ *
+ * @return the value
+ */
+ public String getVersion() {
+ return version;
+ }
+
+ @Override
+ public String toString() {
+ return this.toString(true);
+ }
+
+ /**
+ * Return a string representation of the object.
+ *
+ * @param includeByteArrayContents true to include the full contents of byte arrays
+ * @return string representation
+ */
+ public String toString(boolean includeByteArrayContents) {
+ java.lang.StringBuilder sb = new java.lang.StringBuilder();
+ sb.append("PreTrainedSummarization(");
+ sb.append("super=").append(super.toString(includeByteArrayContents));
+ sb.append(", version=").append(String.valueOf(this.version));
+ sb.append(")");
+ return sb.toString();
+ }
+
+ @Override
+ public boolean equals(Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (!(o instanceof PreTrainedSummarization)) {
+ return false;
+ }
+
+ PreTrainedSummarization other = (PreTrainedSummarization) o;
+ return java.util.Objects.equals(this.version, other.version) && super.equals(other);
+ }
+
+ @Override
+ public int hashCode() {
+ final int PRIME = 59;
+ int result = super.hashCode();
+ result = (result * PRIME) + (this.version == null ? 43 : this.version.hashCode());
+ return result;
+ }
+}
diff --git a/bmc-ailanguage/src/main/java/com/oracle/bmc/ailanguage/model/PreTrainedTextClassificationModelDetails.java b/bmc-ailanguage/src/main/java/com/oracle/bmc/ailanguage/model/PreTrainedTextClassificationModelDetails.java
new file mode 100644
index 00000000000..f29cb11ca52
--- /dev/null
+++ b/bmc-ailanguage/src/main/java/com/oracle/bmc/ailanguage/model/PreTrainedTextClassificationModelDetails.java
@@ -0,0 +1,155 @@
+/**
+ * Copyright (c) 2016, 2023, Oracle and/or its affiliates. All rights reserved.
+ * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+ */
+package com.oracle.bmc.ailanguage.model;
+
+/**
+ * Possible pre trained TXT model information
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model
+ * distinguishes fields that are {@code null} because they are unset from fields that are explicitly
+ * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a
+ * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link
+ * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set
+ * fields into account. The constructor, on the other hand, does not take the explicitly set fields
+ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code
+ * null}).
+ */
+@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20221001")
+@com.fasterxml.jackson.databind.annotation.JsonDeserialize(
+ builder = PreTrainedTextClassificationModelDetails.Builder.class)
+@com.fasterxml.jackson.annotation.JsonTypeInfo(
+ use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME,
+ include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY,
+ property = "modelType")
+@com.fasterxml.jackson.annotation.JsonFilter(
+ com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME)
+public final class PreTrainedTextClassificationModelDetails extends ModelDetails {
+ @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "")
+ public static class Builder {
+ @com.fasterxml.jackson.annotation.JsonProperty("languageCode")
+ private String languageCode;
+
+ public Builder languageCode(String languageCode) {
+ this.languageCode = languageCode;
+ this.__explicitlySet__.add("languageCode");
+ return this;
+ }
+ /**
+ * Optional pre trained model version. if nothing specified latest pre trained model will be
+ * used. Supported versions can be found at /modelTypes/{modelType}
+ */
+ @com.fasterxml.jackson.annotation.JsonProperty("version")
+ private String version;
+
+ /**
+ * Optional pre trained model version. if nothing specified latest pre trained model will be
+ * used. Supported versions can be found at /modelTypes/{modelType}
+ *
+ * @param version the value to set
+ * @return this builder
+ */
+ public Builder version(String version) {
+ this.version = version;
+ this.__explicitlySet__.add("version");
+ return this;
+ }
+
+ @com.fasterxml.jackson.annotation.JsonIgnore
+ private final java.util.Set __explicitlySet__ = new java.util.HashSet();
+
+ public PreTrainedTextClassificationModelDetails build() {
+ PreTrainedTextClassificationModelDetails model =
+ new PreTrainedTextClassificationModelDetails(this.languageCode, this.version);
+ for (String explicitlySetProperty : this.__explicitlySet__) {
+ model.markPropertyAsExplicitlySet(explicitlySetProperty);
+ }
+ return model;
+ }
+
+ @com.fasterxml.jackson.annotation.JsonIgnore
+ public Builder copy(PreTrainedTextClassificationModelDetails model) {
+ if (model.wasPropertyExplicitlySet("languageCode")) {
+ this.languageCode(model.getLanguageCode());
+ }
+ if (model.wasPropertyExplicitlySet("version")) {
+ this.version(model.getVersion());
+ }
+ return this;
+ }
+ }
+
+ /** Create a new builder. */
+ public static Builder builder() {
+ return new Builder();
+ }
+
+ public Builder toBuilder() {
+ return new Builder().copy(this);
+ }
+
+ @Deprecated
+ public PreTrainedTextClassificationModelDetails(String languageCode, String version) {
+ super(languageCode);
+ this.version = version;
+ }
+
+ /**
+ * Optional pre trained model version. if nothing specified latest pre trained model will be
+ * used. Supported versions can be found at /modelTypes/{modelType}
+ */
+ @com.fasterxml.jackson.annotation.JsonProperty("version")
+ private final String version;
+
+ /**
+ * Optional pre trained model version. if nothing specified latest pre trained model will be
+ * used. Supported versions can be found at /modelTypes/{modelType}
+ *
+ * @return the value
+ */
+ public String getVersion() {
+ return version;
+ }
+
+ @Override
+ public String toString() {
+ return this.toString(true);
+ }
+
+ /**
+ * Return a string representation of the object.
+ *
+ * @param includeByteArrayContents true to include the full contents of byte arrays
+ * @return string representation
+ */
+ public String toString(boolean includeByteArrayContents) {
+ java.lang.StringBuilder sb = new java.lang.StringBuilder();
+ sb.append("PreTrainedTextClassificationModelDetails(");
+ sb.append("super=").append(super.toString(includeByteArrayContents));
+ sb.append(", version=").append(String.valueOf(this.version));
+ sb.append(")");
+ return sb.toString();
+ }
+
+ @Override
+ public boolean equals(Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (!(o instanceof PreTrainedTextClassificationModelDetails)) {
+ return false;
+ }
+
+ PreTrainedTextClassificationModelDetails other =
+ (PreTrainedTextClassificationModelDetails) o;
+ return java.util.Objects.equals(this.version, other.version) && super.equals(other);
+ }
+
+ @Override
+ public int hashCode() {
+ final int PRIME = 59;
+ int result = super.hashCode();
+ result = (result * PRIME) + (this.version == null ? 43 : this.version.hashCode());
+ return result;
+ }
+}
diff --git a/bmc-ailanguage/src/main/java/com/oracle/bmc/ailanguage/model/PreTrainedUniversalModel.java b/bmc-ailanguage/src/main/java/com/oracle/bmc/ailanguage/model/PreTrainedUniversalModel.java
new file mode 100644
index 00000000000..7021782e121
--- /dev/null
+++ b/bmc-ailanguage/src/main/java/com/oracle/bmc/ailanguage/model/PreTrainedUniversalModel.java
@@ -0,0 +1,154 @@
+/**
+ * Copyright (c) 2016, 2023, Oracle and/or its affiliates. All rights reserved.
+ * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+ */
+package com.oracle.bmc.ailanguage.model;
+
+/**
+ * Possible pre trained universal model information
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model
+ * distinguishes fields that are {@code null} because they are unset from fields that are explicitly
+ * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a
+ * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link
+ * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set
+ * fields into account. The constructor, on the other hand, does not take the explicitly set fields
+ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code
+ * null}).
+ */
+@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20221001")
+@com.fasterxml.jackson.databind.annotation.JsonDeserialize(
+ builder = PreTrainedUniversalModel.Builder.class)
+@com.fasterxml.jackson.annotation.JsonTypeInfo(
+ use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME,
+ include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY,
+ property = "modelType")
+@com.fasterxml.jackson.annotation.JsonFilter(
+ com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME)
+public final class PreTrainedUniversalModel extends ModelDetails {
+ @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "")
+ public static class Builder {
+ @com.fasterxml.jackson.annotation.JsonProperty("languageCode")
+ private String languageCode;
+
+ public Builder languageCode(String languageCode) {
+ this.languageCode = languageCode;
+ this.__explicitlySet__.add("languageCode");
+ return this;
+ }
+ /**
+ * Optional pre trained model version. if nothing specified latest pre trained model will be
+ * used. Supported versions can be found at /modelTypes/{modelType}
+ */
+ @com.fasterxml.jackson.annotation.JsonProperty("version")
+ private String version;
+
+ /**
+ * Optional pre trained model version. if nothing specified latest pre trained model will be
+ * used. Supported versions can be found at /modelTypes/{modelType}
+ *
+ * @param version the value to set
+ * @return this builder
+ */
+ public Builder version(String version) {
+ this.version = version;
+ this.__explicitlySet__.add("version");
+ return this;
+ }
+
+ @com.fasterxml.jackson.annotation.JsonIgnore
+ private final java.util.Set __explicitlySet__ = new java.util.HashSet();
+
+ public PreTrainedUniversalModel build() {
+ PreTrainedUniversalModel model =
+ new PreTrainedUniversalModel(this.languageCode, this.version);
+ for (String explicitlySetProperty : this.__explicitlySet__) {
+ model.markPropertyAsExplicitlySet(explicitlySetProperty);
+ }
+ return model;
+ }
+
+ @com.fasterxml.jackson.annotation.JsonIgnore
+ public Builder copy(PreTrainedUniversalModel model) {
+ if (model.wasPropertyExplicitlySet("languageCode")) {
+ this.languageCode(model.getLanguageCode());
+ }
+ if (model.wasPropertyExplicitlySet("version")) {
+ this.version(model.getVersion());
+ }
+ return this;
+ }
+ }
+
+ /** Create a new builder. */
+ public static Builder builder() {
+ return new Builder();
+ }
+
+ public Builder toBuilder() {
+ return new Builder().copy(this);
+ }
+
+ @Deprecated
+ public PreTrainedUniversalModel(String languageCode, String version) {
+ super(languageCode);
+ this.version = version;
+ }
+
+ /**
+ * Optional pre trained model version. if nothing specified latest pre trained model will be
+ * used. Supported versions can be found at /modelTypes/{modelType}
+ */
+ @com.fasterxml.jackson.annotation.JsonProperty("version")
+ private final String version;
+
+ /**
+ * Optional pre trained model version. if nothing specified latest pre trained model will be
+ * used. Supported versions can be found at /modelTypes/{modelType}
+ *
+ * @return the value
+ */
+ public String getVersion() {
+ return version;
+ }
+
+ @Override
+ public String toString() {
+ return this.toString(true);
+ }
+
+ /**
+ * Return a string representation of the object.
+ *
+ * @param includeByteArrayContents true to include the full contents of byte arrays
+ * @return string representation
+ */
+ public String toString(boolean includeByteArrayContents) {
+ java.lang.StringBuilder sb = new java.lang.StringBuilder();
+ sb.append("PreTrainedUniversalModel(");
+ sb.append("super=").append(super.toString(includeByteArrayContents));
+ sb.append(", version=").append(String.valueOf(this.version));
+ sb.append(")");
+ return sb.toString();
+ }
+
+ @Override
+ public boolean equals(Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (!(o instanceof PreTrainedUniversalModel)) {
+ return false;
+ }
+
+ PreTrainedUniversalModel other = (PreTrainedUniversalModel) o;
+ return java.util.Objects.equals(this.version, other.version) && super.equals(other);
+ }
+
+ @Override
+ public int hashCode() {
+ final int PRIME = 59;
+ int result = super.hashCode();
+ result = (result * PRIME) + (this.version == null ? 43 : this.version.hashCode());
+ return result;
+ }
+}
diff --git a/bmc-ailanguage/src/main/java/com/oracle/bmc/ailanguage/model/SentimentDocumentResult.java b/bmc-ailanguage/src/main/java/com/oracle/bmc/ailanguage/model/SentimentDocumentResult.java
index 1311913dc2e..b99cbd8a4a9 100644
--- a/bmc-ailanguage/src/main/java/com/oracle/bmc/ailanguage/model/SentimentDocumentResult.java
+++ b/bmc-ailanguage/src/main/java/com/oracle/bmc/ailanguage/model/SentimentDocumentResult.java
@@ -125,21 +125,23 @@ public Builder sentences(java.util.List sentences) {
return this;
}
/**
- * Language code supported Automatically detect language - auto Arabic - ar Brazilian
- * Portuguese - pt-BR Czech - cs Danish - da Dutch - nl English - en Finnish - fi French -
- * fr Canadian French - fr-CA German - de Italian - it Japanese - ja Korean - ko Norwegian -
- * no Polish - pl Romanian - ro Simplified Chinese - zh-CN Spanish - es Swedish - sv
- * Traditional Chinese - zh-TW Turkish - tr Greek - el Hebrew - he
+ * Language code supported - auto : Automatically detect language - ar : Arabic - pt-BR :
+ * Brazilian Portuguese - cs : Czech - da : Danish - nl : Dutch - en : English - fi :
+ * Finnish - fr : French - fr-CA : Canadian French - de : German - it : Italian - ja :
+ * Japanese - ko : Korean - no : Norwegian - pl : Polish - ro : Romanian - zh-CN :
+ * Simplified Chinese - es : Spanish - sv : Swedish - zh-TW : Traditional Chinese - tr :
+ * Turkish - el : Greek - he : Hebrew
*/
@com.fasterxml.jackson.annotation.JsonProperty("languageCode")
private String languageCode;
/**
- * Language code supported Automatically detect language - auto Arabic - ar Brazilian
- * Portuguese - pt-BR Czech - cs Danish - da Dutch - nl English - en Finnish - fi French -
- * fr Canadian French - fr-CA German - de Italian - it Japanese - ja Korean - ko Norwegian -
- * no Polish - pl Romanian - ro Simplified Chinese - zh-CN Spanish - es Swedish - sv
- * Traditional Chinese - zh-TW Turkish - tr Greek - el Hebrew - he
+ * Language code supported - auto : Automatically detect language - ar : Arabic - pt-BR :
+ * Brazilian Portuguese - cs : Czech - da : Danish - nl : Dutch - en : English - fi :
+ * Finnish - fr : French - fr-CA : Canadian French - de : German - it : Italian - ja :
+ * Japanese - ko : Korean - no : Norwegian - pl : Polish - ro : Romanian - zh-CN :
+ * Simplified Chinese - es : Spanish - sv : Swedish - zh-TW : Traditional Chinese - tr :
+ * Turkish - el : Greek - he : Hebrew
*
* @param languageCode the value to set
* @return this builder
@@ -267,21 +269,23 @@ public java.util.List getSentences() {
}
/**
- * Language code supported Automatically detect language - auto Arabic - ar Brazilian Portuguese
- * - pt-BR Czech - cs Danish - da Dutch - nl English - en Finnish - fi French - fr Canadian
- * French - fr-CA German - de Italian - it Japanese - ja Korean - ko Norwegian - no Polish - pl
- * Romanian - ro Simplified Chinese - zh-CN Spanish - es Swedish - sv Traditional Chinese -
- * zh-TW Turkish - tr Greek - el Hebrew - he
+ * Language code supported - auto : Automatically detect language - ar : Arabic - pt-BR :
+ * Brazilian Portuguese - cs : Czech - da : Danish - nl : Dutch - en : English - fi : Finnish -
+ * fr : French - fr-CA : Canadian French - de : German - it : Italian - ja : Japanese - ko :
+ * Korean - no : Norwegian - pl : Polish - ro : Romanian - zh-CN : Simplified Chinese - es :
+ * Spanish - sv : Swedish - zh-TW : Traditional Chinese - tr : Turkish - el : Greek - he :
+ * Hebrew
*/
@com.fasterxml.jackson.annotation.JsonProperty("languageCode")
private final String languageCode;
/**
- * Language code supported Automatically detect language - auto Arabic - ar Brazilian Portuguese
- * - pt-BR Czech - cs Danish - da Dutch - nl English - en Finnish - fi French - fr Canadian
- * French - fr-CA German - de Italian - it Japanese - ja Korean - ko Norwegian - no Polish - pl
- * Romanian - ro Simplified Chinese - zh-CN Spanish - es Swedish - sv Traditional Chinese -
- * zh-TW Turkish - tr Greek - el Hebrew - he
+ * Language code supported - auto : Automatically detect language - ar : Arabic - pt-BR :
+ * Brazilian Portuguese - cs : Czech - da : Danish - nl : Dutch - en : English - fi : Finnish -
+ * fr : French - fr-CA : Canadian French - de : German - it : Italian - ja : Japanese - ko :
+ * Korean - no : Norwegian - pl : Polish - ro : Romanian - zh-CN : Simplified Chinese - es :
+ * Spanish - sv : Swedish - zh-TW : Traditional Chinese - tr : Turkish - el : Greek - he :
+ * Hebrew
*
* @return the value
*/
diff --git a/bmc-ailanguage/src/main/java/com/oracle/bmc/ailanguage/model/TextClassificationDocumentResult.java b/bmc-ailanguage/src/main/java/com/oracle/bmc/ailanguage/model/TextClassificationDocumentResult.java
index 98e3ad17763..f23b6108c2f 100644
--- a/bmc-ailanguage/src/main/java/com/oracle/bmc/ailanguage/model/TextClassificationDocumentResult.java
+++ b/bmc-ailanguage/src/main/java/com/oracle/bmc/ailanguage/model/TextClassificationDocumentResult.java
@@ -67,21 +67,23 @@ public Builder textClassification(java.util.List textClassif
return this;
}
/**
- * Language code supported Automatically detect language - auto Arabic - ar Brazilian
- * Portuguese - pt-BR Czech - cs Danish - da Dutch - nl English - en Finnish - fi French -
- * fr Canadian French - fr-CA German - de Italian - it Japanese - ja Korean - ko Norwegian -
- * no Polish - pl Romanian - ro Simplified Chinese - zh-CN Spanish - es Swedish - sv
- * Traditional Chinese - zh-TW Turkish - tr Greek - el Hebrew - he
+ * Language code supported - auto : Automatically detect language - ar : Arabic - pt-BR :
+ * Brazilian Portuguese - cs : Czech - da : Danish - nl : Dutch - en : English - fi :
+ * Finnish - fr : French - fr-CA : Canadian French - de : German - it : Italian - ja :
+ * Japanese - ko : Korean - no : Norwegian - pl : Polish - ro : Romanian - zh-CN :
+ * Simplified Chinese - es : Spanish - sv : Swedish - zh-TW : Traditional Chinese - tr :
+ * Turkish - el : Greek - he : Hebrew
*/
@com.fasterxml.jackson.annotation.JsonProperty("languageCode")
private String languageCode;
/**
- * Language code supported Automatically detect language - auto Arabic - ar Brazilian
- * Portuguese - pt-BR Czech - cs Danish - da Dutch - nl English - en Finnish - fi French -
- * fr Canadian French - fr-CA German - de Italian - it Japanese - ja Korean - ko Norwegian -
- * no Polish - pl Romanian - ro Simplified Chinese - zh-CN Spanish - es Swedish - sv
- * Traditional Chinese - zh-TW Turkish - tr Greek - el Hebrew - he
+ * Language code supported - auto : Automatically detect language - ar : Arabic - pt-BR :
+ * Brazilian Portuguese - cs : Czech - da : Danish - nl : Dutch - en : English - fi :
+ * Finnish - fr : French - fr-CA : Canadian French - de : German - it : Italian - ja :
+ * Japanese - ko : Korean - no : Norwegian - pl : Polish - ro : Romanian - zh-CN :
+ * Simplified Chinese - es : Spanish - sv : Swedish - zh-TW : Traditional Chinese - tr :
+ * Turkish - el : Greek - he : Hebrew
*
* @param languageCode the value to set
* @return this builder
@@ -156,21 +158,23 @@ public java.util.List getTextClassification() {
}
/**
- * Language code supported Automatically detect language - auto Arabic - ar Brazilian Portuguese
- * - pt-BR Czech - cs Danish - da Dutch - nl English - en Finnish - fi French - fr Canadian
- * French - fr-CA German - de Italian - it Japanese - ja Korean - ko Norwegian - no Polish - pl
- * Romanian - ro Simplified Chinese - zh-CN Spanish - es Swedish - sv Traditional Chinese -
- * zh-TW Turkish - tr Greek - el Hebrew - he
+ * Language code supported - auto : Automatically detect language - ar : Arabic - pt-BR :
+ * Brazilian Portuguese - cs : Czech - da : Danish - nl : Dutch - en : English - fi : Finnish -
+ * fr : French - fr-CA : Canadian French - de : German - it : Italian - ja : Japanese - ko :
+ * Korean - no : Norwegian - pl : Polish - ro : Romanian - zh-CN : Simplified Chinese - es :
+ * Spanish - sv : Swedish - zh-TW : Traditional Chinese - tr : Turkish - el : Greek - he :
+ * Hebrew
*/
@com.fasterxml.jackson.annotation.JsonProperty("languageCode")
private final String languageCode;
/**
- * Language code supported Automatically detect language - auto Arabic - ar Brazilian Portuguese
- * - pt-BR Czech - cs Danish - da Dutch - nl English - en Finnish - fi French - fr Canadian
- * French - fr-CA German - de Italian - it Japanese - ja Korean - ko Norwegian - no Polish - pl
- * Romanian - ro Simplified Chinese - zh-CN Spanish - es Swedish - sv Traditional Chinese -
- * zh-TW Turkish - tr Greek - el Hebrew - he
+ * Language code supported - auto : Automatically detect language - ar : Arabic - pt-BR :
+ * Brazilian Portuguese - cs : Czech - da : Danish - nl : Dutch - en : English - fi : Finnish -
+ * fr : French - fr-CA : Canadian French - de : German - it : Italian - ja : Japanese - ko :
+ * Korean - no : Norwegian - pl : Polish - ro : Romanian - zh-CN : Simplified Chinese - es :
+ * Spanish - sv : Swedish - zh-TW : Traditional Chinese - tr : Turkish - el : Greek - he :
+ * Hebrew
*
* @return the value
*/
diff --git a/bmc-ailanguage/src/main/java/com/oracle/bmc/ailanguage/model/TextDocument.java b/bmc-ailanguage/src/main/java/com/oracle/bmc/ailanguage/model/TextDocument.java
index b65a6d63597..0241c402e1b 100644
--- a/bmc-ailanguage/src/main/java/com/oracle/bmc/ailanguage/model/TextDocument.java
+++ b/bmc-ailanguage/src/main/java/com/oracle/bmc/ailanguage/model/TextDocument.java
@@ -62,21 +62,17 @@ public Builder text(String text) {
return this;
}
/**
- * Language code supported Automatically detect language - auto Arabic - ar Brazilian
- * Portuguese - pt-BR Czech - cs Danish - da Dutch - nl English - en Finnish - fi French -
- * fr Canadian French - fr-CA German - de Italian - it Japanese - ja Korean - ko Norwegian -
- * no Polish - pl Romanian - ro Simplified Chinese - zh-CN Spanish - es Swedish - sv
- * Traditional Chinese - zh-TW Turkish - tr Greek - el Hebrew - he
+ * Language code of the document. Please refer to respective model [API
+ * documentation](https://docs.cloud.oracle.com/iaas/language/using/overview.htm) for
+ * supported languages.
*/
@com.fasterxml.jackson.annotation.JsonProperty("languageCode")
private String languageCode;
/**
- * Language code supported Automatically detect language - auto Arabic - ar Brazilian
- * Portuguese - pt-BR Czech - cs Danish - da Dutch - nl English - en Finnish - fi French -
- * fr Canadian French - fr-CA German - de Italian - it Japanese - ja Korean - ko Norwegian -
- * no Polish - pl Romanian - ro Simplified Chinese - zh-CN Spanish - es Swedish - sv
- * Traditional Chinese - zh-TW Turkish - tr Greek - el Hebrew - he
+ * Language code of the document. Please refer to respective model [API
+ * documentation](https://docs.cloud.oracle.com/iaas/language/using/overview.htm) for
+ * supported languages.
*
* @param languageCode the value to set
* @return this builder
@@ -149,21 +145,17 @@ public String getText() {
}
/**
- * Language code supported Automatically detect language - auto Arabic - ar Brazilian Portuguese
- * - pt-BR Czech - cs Danish - da Dutch - nl English - en Finnish - fi French - fr Canadian
- * French - fr-CA German - de Italian - it Japanese - ja Korean - ko Norwegian - no Polish - pl
- * Romanian - ro Simplified Chinese - zh-CN Spanish - es Swedish - sv Traditional Chinese -
- * zh-TW Turkish - tr Greek - el Hebrew - he
+ * Language code of the document. Please refer to respective model [API
+ * documentation](https://docs.cloud.oracle.com/iaas/language/using/overview.htm) for supported
+ * languages.
*/
@com.fasterxml.jackson.annotation.JsonProperty("languageCode")
private final String languageCode;
/**
- * Language code supported Automatically detect language - auto Arabic - ar Brazilian Portuguese
- * - pt-BR Czech - cs Danish - da Dutch - nl English - en Finnish - fi French - fr Canadian
- * French - fr-CA German - de Italian - it Japanese - ja Korean - ko Norwegian - no Polish - pl
- * Romanian - ro Simplified Chinese - zh-CN Spanish - es Swedish - sv Traditional Chinese -
- * zh-TW Turkish - tr Greek - el Hebrew - he
+ * Language code of the document. Please refer to respective model [API
+ * documentation](https://docs.cloud.oracle.com/iaas/language/using/overview.htm) for supported
+ * languages.
*
* @return the value
*/
diff --git a/bmc-ailanguage/src/main/java/com/oracle/bmc/ailanguage/model/TranslationDocumentResult.java b/bmc-ailanguage/src/main/java/com/oracle/bmc/ailanguage/model/TranslationDocumentResult.java
index ee599d8b6d7..07c4a43657a 100644
--- a/bmc-ailanguage/src/main/java/com/oracle/bmc/ailanguage/model/TranslationDocumentResult.java
+++ b/bmc-ailanguage/src/main/java/com/oracle/bmc/ailanguage/model/TranslationDocumentResult.java
@@ -74,21 +74,23 @@ public Builder translatedText(String translatedText) {
return this;
}
/**
- * Language code supported Automatically detect language - auto Arabic - ar Brazilian
- * Portuguese - pt-BR Czech - cs Danish - da Dutch - nl English - en Finnish - fi French -
- * fr Canadian French - fr-CA German - de Italian - it Japanese - ja Korean - ko Norwegian -
- * no Polish - pl Romanian - ro Simplified Chinese - zh-CN Spanish - es Swedish - sv
- * Traditional Chinese - zh-TW Turkish - tr Greek - el Hebrew - he
+ * Language code supported - auto : Automatically detect language - ar : Arabic - pt-BR :
+ * Brazilian Portuguese - cs : Czech - da : Danish - nl : Dutch - en : English - fi :
+ * Finnish - fr : French - fr-CA : Canadian French - de : German - it : Italian - ja :
+ * Japanese - ko : Korean - no : Norwegian - pl : Polish - ro : Romanian - zh-CN :
+ * Simplified Chinese - es : Spanish - sv : Swedish - zh-TW : Traditional Chinese - tr :
+ * Turkish - el : Greek - he : Hebrew
*/
@com.fasterxml.jackson.annotation.JsonProperty("sourceLanguageCode")
private String sourceLanguageCode;
/**
- * Language code supported Automatically detect language - auto Arabic - ar Brazilian
- * Portuguese - pt-BR Czech - cs Danish - da Dutch - nl English - en Finnish - fi French -
- * fr Canadian French - fr-CA German - de Italian - it Japanese - ja Korean - ko Norwegian -
- * no Polish - pl Romanian - ro Simplified Chinese - zh-CN Spanish - es Swedish - sv
- * Traditional Chinese - zh-TW Turkish - tr Greek - el Hebrew - he
+ * Language code supported - auto : Automatically detect language - ar : Arabic - pt-BR :
+ * Brazilian Portuguese - cs : Czech - da : Danish - nl : Dutch - en : English - fi :
+ * Finnish - fr : French - fr-CA : Canadian French - de : German - it : Italian - ja :
+ * Japanese - ko : Korean - no : Norwegian - pl : Polish - ro : Romanian - zh-CN :
+ * Simplified Chinese - es : Spanish - sv : Swedish - zh-TW : Traditional Chinese - tr :
+ * Turkish - el : Greek - he : Hebrew
*
* @param sourceLanguageCode the value to set
* @return this builder
@@ -99,21 +101,23 @@ public Builder sourceLanguageCode(String sourceLanguageCode) {
return this;
}
/**
- * Language code supported Automatically detect language - auto Arabic - ar Brazilian
- * Portuguese - pt-BR Czech - cs Danish - da Dutch - nl English - en Finnish - fi French -
- * fr Canadian French - fr-CA German - de Italian - it Japanese - ja Korean - ko Norwegian -
- * no Polish - pl Romanian - ro Simplified Chinese - zh-CN Spanish - es Swedish - sv
- * Traditional Chinese - zh-TW Turkish - tr Greek - el Hebrew - he
+ * Language code supported - auto : Automatically detect language - ar : Arabic - pt-BR :
+ * Brazilian Portuguese - cs : Czech - da : Danish - nl : Dutch - en : English - fi :
+ * Finnish - fr : French - fr-CA : Canadian French - de : German - it : Italian - ja :
+ * Japanese - ko : Korean - no : Norwegian - pl : Polish - ro : Romanian - zh-CN :
+ * Simplified Chinese - es : Spanish - sv : Swedish - zh-TW : Traditional Chinese - tr :
+ * Turkish - el : Greek - he : Hebrew
*/
@com.fasterxml.jackson.annotation.JsonProperty("targetLanguageCode")
private String targetLanguageCode;
/**
- * Language code supported Automatically detect language - auto Arabic - ar Brazilian
- * Portuguese - pt-BR Czech - cs Danish - da Dutch - nl English - en Finnish - fi French -
- * fr Canadian French - fr-CA German - de Italian - it Japanese - ja Korean - ko Norwegian -
- * no Polish - pl Romanian - ro Simplified Chinese - zh-CN Spanish - es Swedish - sv
- * Traditional Chinese - zh-TW Turkish - tr Greek - el Hebrew - he
+ * Language code supported - auto : Automatically detect language - ar : Arabic - pt-BR :
+ * Brazilian Portuguese - cs : Czech - da : Danish - nl : Dutch - en : English - fi :
+ * Finnish - fr : French - fr-CA : Canadian French - de : German - it : Italian - ja :
+ * Japanese - ko : Korean - no : Norwegian - pl : Polish - ro : Romanian - zh-CN :
+ * Simplified Chinese - es : Spanish - sv : Swedish - zh-TW : Traditional Chinese - tr :
+ * Turkish - el : Greek - he : Hebrew
*
* @param targetLanguageCode the value to set
* @return this builder
@@ -194,21 +198,23 @@ public String getTranslatedText() {
}
/**
- * Language code supported Automatically detect language - auto Arabic - ar Brazilian Portuguese
- * - pt-BR Czech - cs Danish - da Dutch - nl English - en Finnish - fi French - fr Canadian
- * French - fr-CA German - de Italian - it Japanese - ja Korean - ko Norwegian - no Polish - pl
- * Romanian - ro Simplified Chinese - zh-CN Spanish - es Swedish - sv Traditional Chinese -
- * zh-TW Turkish - tr Greek - el Hebrew - he
+ * Language code supported - auto : Automatically detect language - ar : Arabic - pt-BR :
+ * Brazilian Portuguese - cs : Czech - da : Danish - nl : Dutch - en : English - fi : Finnish -
+ * fr : French - fr-CA : Canadian French - de : German - it : Italian - ja : Japanese - ko :
+ * Korean - no : Norwegian - pl : Polish - ro : Romanian - zh-CN : Simplified Chinese - es :
+ * Spanish - sv : Swedish - zh-TW : Traditional Chinese - tr : Turkish - el : Greek - he :
+ * Hebrew
*/
@com.fasterxml.jackson.annotation.JsonProperty("sourceLanguageCode")
private final String sourceLanguageCode;
/**
- * Language code supported Automatically detect language - auto Arabic - ar Brazilian Portuguese
- * - pt-BR Czech - cs Danish - da Dutch - nl English - en Finnish - fi French - fr Canadian
- * French - fr-CA German - de Italian - it Japanese - ja Korean - ko Norwegian - no Polish - pl
- * Romanian - ro Simplified Chinese - zh-CN Spanish - es Swedish - sv Traditional Chinese -
- * zh-TW Turkish - tr Greek - el Hebrew - he
+ * Language code supported - auto : Automatically detect language - ar : Arabic - pt-BR :
+ * Brazilian Portuguese - cs : Czech - da : Danish - nl : Dutch - en : English - fi : Finnish -
+ * fr : French - fr-CA : Canadian French - de : German - it : Italian - ja : Japanese - ko :
+ * Korean - no : Norwegian - pl : Polish - ro : Romanian - zh-CN : Simplified Chinese - es :
+ * Spanish - sv : Swedish - zh-TW : Traditional Chinese - tr : Turkish - el : Greek - he :
+ * Hebrew
*
* @return the value
*/
@@ -217,21 +223,23 @@ public String getSourceLanguageCode() {
}
/**
- * Language code supported Automatically detect language - auto Arabic - ar Brazilian Portuguese
- * - pt-BR Czech - cs Danish - da Dutch - nl English - en Finnish - fi French - fr Canadian
- * French - fr-CA German - de Italian - it Japanese - ja Korean - ko Norwegian - no Polish - pl
- * Romanian - ro Simplified Chinese - zh-CN Spanish - es Swedish - sv Traditional Chinese -
- * zh-TW Turkish - tr Greek - el Hebrew - he
+ * Language code supported - auto : Automatically detect language - ar : Arabic - pt-BR :
+ * Brazilian Portuguese - cs : Czech - da : Danish - nl : Dutch - en : English - fi : Finnish -
+ * fr : French - fr-CA : Canadian French - de : German - it : Italian - ja : Japanese - ko :
+ * Korean - no : Norwegian - pl : Polish - ro : Romanian - zh-CN : Simplified Chinese - es :
+ * Spanish - sv : Swedish - zh-TW : Traditional Chinese - tr : Turkish - el : Greek - he :
+ * Hebrew
*/
@com.fasterxml.jackson.annotation.JsonProperty("targetLanguageCode")
private final String targetLanguageCode;
/**
- * Language code supported Automatically detect language - auto Arabic - ar Brazilian Portuguese
- * - pt-BR Czech - cs Danish - da Dutch - nl English - en Finnish - fi French - fr Canadian
- * French - fr-CA German - de Italian - it Japanese - ja Korean - ko Norwegian - no Polish - pl
- * Romanian - ro Simplified Chinese - zh-CN Spanish - es Swedish - sv Traditional Chinese -
- * zh-TW Turkish - tr Greek - el Hebrew - he
+ * Language code supported - auto : Automatically detect language - ar : Arabic - pt-BR :
+ * Brazilian Portuguese - cs : Czech - da : Danish - nl : Dutch - en : English - fi : Finnish -
+ * fr : French - fr-CA : Canadian French - de : German - it : Italian - ja : Japanese - ko :
+ * Korean - no : Norwegian - pl : Polish - ro : Romanian - zh-CN : Simplified Chinese - es :
+ * Spanish - sv : Swedish - zh-TW : Traditional Chinese - tr : Turkish - el : Greek - he :
+ * Hebrew
*
* @return the value
*/
diff --git a/bmc-ailanguage/src/main/java/com/oracle/bmc/ailanguage/requests/GetModelTypeRequest.java b/bmc-ailanguage/src/main/java/com/oracle/bmc/ailanguage/requests/GetModelTypeRequest.java
new file mode 100644
index 00000000000..ab57c7df851
--- /dev/null
+++ b/bmc-ailanguage/src/main/java/com/oracle/bmc/ailanguage/requests/GetModelTypeRequest.java
@@ -0,0 +1,190 @@
+/**
+ * Copyright (c) 2016, 2023, Oracle and/or its affiliates. All rights reserved.
+ * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+ */
+package com.oracle.bmc.ailanguage.requests;
+
+import com.oracle.bmc.ailanguage.model.*;
+/**
+ * Example: Click here to see how to use GetModelTypeRequest.
+ */
+@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20221001")
+public class GetModelTypeRequest extends com.oracle.bmc.requests.BmcRequest {
+
+ /** Results like version and model supported info by specifying model type */
+ private String modelType;
+
+ /** Results like version and model supported info by specifying model type */
+ public String getModelType() {
+ return modelType;
+ }
+ /** The client request ID for tracing. */
+ private String opcRequestId;
+
+ /** The client request ID for tracing. */
+ public String getOpcRequestId() {
+ return opcRequestId;
+ }
+
+ public static class Builder
+ implements com.oracle.bmc.requests.BmcRequest.Builder<
+ GetModelTypeRequest, java.lang.Void> {
+ private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null;
+ private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null;
+
+ /** Results like version and model supported info by specifying model type */
+ private String modelType = null;
+
+ /**
+ * Results like version and model supported info by specifying model type
+ *
+ * @param modelType the value to set
+ * @return this builder instance
+ */
+ public Builder modelType(String modelType) {
+ this.modelType = modelType;
+ return this;
+ }
+
+ /** The client request ID for tracing. */
+ private String opcRequestId = null;
+
+ /**
+ * The client request ID for tracing.
+ *
+ * @param opcRequestId the value to set
+ * @return this builder instance
+ */
+ public Builder opcRequestId(String opcRequestId) {
+ this.opcRequestId = opcRequestId;
+ return this;
+ }
+
+ /**
+ * Set the invocation callback for the request to be built.
+ *
+ * @param invocationCallback the invocation callback to be set for the request
+ * @return this builder instance
+ */
+ public Builder invocationCallback(
+ com.oracle.bmc.http.client.RequestInterceptor invocationCallback) {
+ this.invocationCallback = invocationCallback;
+ return this;
+ }
+
+ /**
+ * Set the retry configuration for the request to be built.
+ *
+ * @param retryConfiguration the retry configuration to be used for the request
+ * @return this builder instance
+ */
+ public Builder retryConfiguration(
+ com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) {
+ this.retryConfiguration = retryConfiguration;
+ return this;
+ }
+
+ /**
+ * Copy method to populate the builder with values from the given instance.
+ *
+ * @return this builder instance
+ */
+ public Builder copy(GetModelTypeRequest o) {
+ modelType(o.getModelType());
+ opcRequestId(o.getOpcRequestId());
+ invocationCallback(o.getInvocationCallback());
+ retryConfiguration(o.getRetryConfiguration());
+ return this;
+ }
+
+ /**
+ * Build the instance of GetModelTypeRequest as configured by this builder
+ *
+ *
Note that this method takes calls to {@link
+ * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account,
+ * while the method {@link Builder#buildWithoutInvocationCallback} does not.
+ *
+ *
This is the preferred method to build an instance.
+ *
+ * @return instance of GetModelTypeRequest
+ */
+ public GetModelTypeRequest build() {
+ GetModelTypeRequest request = buildWithoutInvocationCallback();
+ request.setInvocationCallback(invocationCallback);
+ request.setRetryConfiguration(retryConfiguration);
+ return request;
+ }
+
+ /**
+ * Build the instance of GetModelTypeRequest as configured by this builder
+ *
+ *