Class ExamplesImpl
- java.lang.Object
-
- com.microsoft.azure.cognitiveservices.language.luis.authoring.implementation.ExamplesImpl
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.microsoft.azure.cognitiveservices.language.luis.authoring.Examples
Examples.ExamplesAddDefinition, Examples.ExamplesAddDefinitionStages, Examples.ExamplesBatchDefinition, Examples.ExamplesBatchDefinitionStages, Examples.ExamplesListDefinition, Examples.ExamplesListDefinitionStages
-
-
Constructor Summary
Constructors Constructor Description ExamplesImpl(retrofit2.Retrofit retrofit, LUISAuthoringClientImpl client)
Initializes an instance of ExamplesImpl.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.microsoft.azure.cognitiveservices.language.luis.authoring.implementation.ExamplesImpl.ExamplesAddParameters
add()
Adds a labeled example utterance in a version of the application.LabelExampleResponse
add(UUID appId, String versionId, ExampleLabelObject exampleLabelObject, AddExamplesOptionalParameter addOptionalParameter)
Adds a labeled example utterance in a version of the application.rx.Observable<LabelExampleResponse>
addAsync(UUID appId, String versionId, ExampleLabelObject exampleLabelObject, AddExamplesOptionalParameter addOptionalParameter)
Adds a labeled example utterance in a version of the application.com.microsoft.rest.ServiceFuture<LabelExampleResponse>
addAsync(UUID appId, String versionId, ExampleLabelObject exampleLabelObject, AddExamplesOptionalParameter addOptionalParameter, com.microsoft.rest.ServiceCallback<LabelExampleResponse> serviceCallback)
Adds a labeled example utterance in a version of the application.rx.Observable<com.microsoft.rest.ServiceResponse<LabelExampleResponse>>
addWithServiceResponseAsync(UUID appId, String versionId, ExampleLabelObject exampleLabelObject, AddExamplesOptionalParameter addOptionalParameter)
Adds a labeled example utterance in a version of the application.rx.Observable<com.microsoft.rest.ServiceResponse<LabelExampleResponse>>
addWithServiceResponseAsync(UUID appId, String versionId, ExampleLabelObject exampleLabelObject, Boolean enableNestedChildren)
Adds a labeled example utterance in a version of the application.com.microsoft.azure.cognitiveservices.language.luis.authoring.implementation.ExamplesImpl.ExamplesBatchParameters
batch()
Adds a batch of labeled example utterances to a version of the application.List<BatchLabelExample>
batch(UUID appId, String versionId, List<ExampleLabelObject> exampleLabelObjectArray, BatchOptionalParameter batchOptionalParameter)
Adds a batch of labeled example utterances to a version of the application.rx.Observable<List<BatchLabelExample>>
batchAsync(UUID appId, String versionId, List<ExampleLabelObject> exampleLabelObjectArray, BatchOptionalParameter batchOptionalParameter)
Adds a batch of labeled example utterances to a version of the application.com.microsoft.rest.ServiceFuture<List<BatchLabelExample>>
batchAsync(UUID appId, String versionId, List<ExampleLabelObject> exampleLabelObjectArray, BatchOptionalParameter batchOptionalParameter, com.microsoft.rest.ServiceCallback<List<BatchLabelExample>> serviceCallback)
Adds a batch of labeled example utterances to a version of the application.rx.Observable<com.microsoft.rest.ServiceResponse<List<BatchLabelExample>>>
batchWithServiceResponseAsync(UUID appId, String versionId, List<ExampleLabelObject> exampleLabelObjectArray, BatchOptionalParameter batchOptionalParameter)
Adds a batch of labeled example utterances to a version of the application.rx.Observable<com.microsoft.rest.ServiceResponse<List<BatchLabelExample>>>
batchWithServiceResponseAsync(UUID appId, String versionId, List<ExampleLabelObject> exampleLabelObjectArray, Boolean enableNestedChildren)
Adds a batch of labeled example utterances to a version of the application.OperationStatus
delete(UUID appId, String versionId, int exampleId)
Deletes the labeled example utterances with the specified ID from a version of the application.rx.Observable<OperationStatus>
deleteAsync(UUID appId, String versionId, int exampleId)
Deletes the labeled example utterances with the specified ID from a version of the application.com.microsoft.rest.ServiceFuture<OperationStatus>
deleteAsync(UUID appId, String versionId, int exampleId, com.microsoft.rest.ServiceCallback<OperationStatus> serviceCallback)
Deletes the labeled example utterances with the specified ID from a version of the application.rx.Observable<com.microsoft.rest.ServiceResponse<OperationStatus>>
deleteWithServiceResponseAsync(UUID appId, String versionId, int exampleId)
Deletes the labeled example utterances with the specified ID from a version of the application.com.microsoft.azure.cognitiveservices.language.luis.authoring.implementation.ExamplesImpl.ExamplesListParameters
list()
Returns example utterances to be reviewed from a version of the application.List<LabeledUtterance>
list(UUID appId, String versionId, ListExamplesOptionalParameter listOptionalParameter)
Returns example utterances to be reviewed from a version of the application.rx.Observable<List<LabeledUtterance>>
listAsync(UUID appId, String versionId, ListExamplesOptionalParameter listOptionalParameter)
Returns example utterances to be reviewed from a version of the application.com.microsoft.rest.ServiceFuture<List<LabeledUtterance>>
listAsync(UUID appId, String versionId, ListExamplesOptionalParameter listOptionalParameter, com.microsoft.rest.ServiceCallback<List<LabeledUtterance>> serviceCallback)
Returns example utterances to be reviewed from a version of the application.rx.Observable<com.microsoft.rest.ServiceResponse<List<LabeledUtterance>>>
listWithServiceResponseAsync(UUID appId, String versionId, ListExamplesOptionalParameter listOptionalParameter)
Returns example utterances to be reviewed from a version of the application.rx.Observable<com.microsoft.rest.ServiceResponse<List<LabeledUtterance>>>
listWithServiceResponseAsync(UUID appId, String versionId, Integer skip, Integer take, Boolean enableNestedChildren)
Returns example utterances to be reviewed from a version of the application.
-
-
-
Constructor Detail
-
ExamplesImpl
public ExamplesImpl(retrofit2.Retrofit retrofit, LUISAuthoringClientImpl client)
Initializes an instance of ExamplesImpl.- Parameters:
retrofit
- the Retrofit instance built from a Retrofit Builder.client
- the instance of the service client containing this operation class.
-
-
Method Detail
-
add
public LabelExampleResponse add(UUID appId, String versionId, ExampleLabelObject exampleLabelObject, AddExamplesOptionalParameter addOptionalParameter)
Adds a labeled example utterance in a version of the application.- Specified by:
add
in interfaceExamples
- Parameters:
appId
- The application ID.versionId
- The version ID.exampleLabelObject
- A labeled example utterance with the expected intent and entities.addOptionalParameter
- the object representing the optional parameters to be set before calling this API- Returns:
- the LabelExampleResponse object if successful.
- Throws:
IllegalArgumentException
- thrown if parameters fail the validationErrorResponseException
- thrown if the request is rejected by serverRuntimeException
- all other wrapped checked exceptions if the request fails to be sent
-
addAsync
public com.microsoft.rest.ServiceFuture<LabelExampleResponse> addAsync(UUID appId, String versionId, ExampleLabelObject exampleLabelObject, AddExamplesOptionalParameter addOptionalParameter, com.microsoft.rest.ServiceCallback<LabelExampleResponse> serviceCallback)
Adds a labeled example utterance in a version of the application.- Parameters:
appId
- The application ID.versionId
- The version ID.exampleLabelObject
- A labeled example utterance with the expected intent and entities.addOptionalParameter
- the object representing the optional parameters to be set before calling this APIserviceCallback
- the async ServiceCallback to handle successful and failed responses.- Returns:
- the
ServiceFuture
object - Throws:
IllegalArgumentException
- thrown if parameters fail the validation
-
addAsync
public rx.Observable<LabelExampleResponse> addAsync(UUID appId, String versionId, ExampleLabelObject exampleLabelObject, AddExamplesOptionalParameter addOptionalParameter)
Adds a labeled example utterance in a version of the application.- Specified by:
addAsync
in interfaceExamples
- Parameters:
appId
- The application ID.versionId
- The version ID.exampleLabelObject
- A labeled example utterance with the expected intent and entities.addOptionalParameter
- the object representing the optional parameters to be set before calling this API- Returns:
- the observable to the LabelExampleResponse object
- Throws:
IllegalArgumentException
- thrown if parameters fail the validation
-
addWithServiceResponseAsync
public rx.Observable<com.microsoft.rest.ServiceResponse<LabelExampleResponse>> addWithServiceResponseAsync(UUID appId, String versionId, ExampleLabelObject exampleLabelObject, AddExamplesOptionalParameter addOptionalParameter)
Adds a labeled example utterance in a version of the application.- Parameters:
appId
- The application ID.versionId
- The version ID.exampleLabelObject
- A labeled example utterance with the expected intent and entities.addOptionalParameter
- the object representing the optional parameters to be set before calling this API- Returns:
- the observable to the LabelExampleResponse object
- Throws:
IllegalArgumentException
- thrown if parameters fail the validation
-
addWithServiceResponseAsync
public rx.Observable<com.microsoft.rest.ServiceResponse<LabelExampleResponse>> addWithServiceResponseAsync(UUID appId, String versionId, ExampleLabelObject exampleLabelObject, Boolean enableNestedChildren)
Adds a labeled example utterance in a version of the application.- Parameters:
appId
- The application ID.versionId
- The version ID.exampleLabelObject
- A labeled example utterance with the expected intent and entities.enableNestedChildren
- Toggles nested/flat format- Returns:
- the observable to the LabelExampleResponse object
- Throws:
IllegalArgumentException
- thrown if parameters fail the validation
-
add
public com.microsoft.azure.cognitiveservices.language.luis.authoring.implementation.ExamplesImpl.ExamplesAddParameters add()
Description copied from interface:Examples
Adds a labeled example utterance in a version of the application.
-
batch
public List<BatchLabelExample> batch(UUID appId, String versionId, List<ExampleLabelObject> exampleLabelObjectArray, BatchOptionalParameter batchOptionalParameter)
Adds a batch of labeled example utterances to a version of the application.- Specified by:
batch
in interfaceExamples
- Parameters:
appId
- The application ID.versionId
- The version ID.exampleLabelObjectArray
- Array of example utterances.batchOptionalParameter
- the object representing the optional parameters to be set before calling this API- Returns:
- the List<BatchLabelExample> object if successful.
- Throws:
IllegalArgumentException
- thrown if parameters fail the validationErrorResponseException
- thrown if the request is rejected by serverRuntimeException
- all other wrapped checked exceptions if the request fails to be sent
-
batchAsync
public com.microsoft.rest.ServiceFuture<List<BatchLabelExample>> batchAsync(UUID appId, String versionId, List<ExampleLabelObject> exampleLabelObjectArray, BatchOptionalParameter batchOptionalParameter, com.microsoft.rest.ServiceCallback<List<BatchLabelExample>> serviceCallback)
Adds a batch of labeled example utterances to a version of the application.- Parameters:
appId
- The application ID.versionId
- The version ID.exampleLabelObjectArray
- Array of example utterances.batchOptionalParameter
- the object representing the optional parameters to be set before calling this APIserviceCallback
- the async ServiceCallback to handle successful and failed responses.- Returns:
- the
ServiceFuture
object - Throws:
IllegalArgumentException
- thrown if parameters fail the validation
-
batchAsync
public rx.Observable<List<BatchLabelExample>> batchAsync(UUID appId, String versionId, List<ExampleLabelObject> exampleLabelObjectArray, BatchOptionalParameter batchOptionalParameter)
Adds a batch of labeled example utterances to a version of the application.- Specified by:
batchAsync
in interfaceExamples
- Parameters:
appId
- The application ID.versionId
- The version ID.exampleLabelObjectArray
- Array of example utterances.batchOptionalParameter
- the object representing the optional parameters to be set before calling this API- Returns:
- the observable to the List<BatchLabelExample> object
- Throws:
IllegalArgumentException
- thrown if parameters fail the validation
-
batchWithServiceResponseAsync
public rx.Observable<com.microsoft.rest.ServiceResponse<List<BatchLabelExample>>> batchWithServiceResponseAsync(UUID appId, String versionId, List<ExampleLabelObject> exampleLabelObjectArray, BatchOptionalParameter batchOptionalParameter)
Adds a batch of labeled example utterances to a version of the application.- Parameters:
appId
- The application ID.versionId
- The version ID.exampleLabelObjectArray
- Array of example utterances.batchOptionalParameter
- the object representing the optional parameters to be set before calling this API- Returns:
- the observable to the List<BatchLabelExample> object
- Throws:
IllegalArgumentException
- thrown if parameters fail the validation
-
batchWithServiceResponseAsync
public rx.Observable<com.microsoft.rest.ServiceResponse<List<BatchLabelExample>>> batchWithServiceResponseAsync(UUID appId, String versionId, List<ExampleLabelObject> exampleLabelObjectArray, Boolean enableNestedChildren)
Adds a batch of labeled example utterances to a version of the application.- Parameters:
appId
- The application ID.versionId
- The version ID.exampleLabelObjectArray
- Array of example utterances.enableNestedChildren
- Toggles nested/flat format- Returns:
- the observable to the List<BatchLabelExample> object
- Throws:
IllegalArgumentException
- thrown if parameters fail the validation
-
batch
public com.microsoft.azure.cognitiveservices.language.luis.authoring.implementation.ExamplesImpl.ExamplesBatchParameters batch()
Description copied from interface:Examples
Adds a batch of labeled example utterances to a version of the application.
-
list
public List<LabeledUtterance> list(UUID appId, String versionId, ListExamplesOptionalParameter listOptionalParameter)
Returns example utterances to be reviewed from a version of the application.- Specified by:
list
in interfaceExamples
- Parameters:
appId
- The application ID.versionId
- The version ID.listOptionalParameter
- the object representing the optional parameters to be set before calling this API- Returns:
- the List<LabeledUtterance> object if successful.
- Throws:
IllegalArgumentException
- thrown if parameters fail the validationErrorResponseException
- thrown if the request is rejected by serverRuntimeException
- all other wrapped checked exceptions if the request fails to be sent
-
listAsync
public com.microsoft.rest.ServiceFuture<List<LabeledUtterance>> listAsync(UUID appId, String versionId, ListExamplesOptionalParameter listOptionalParameter, com.microsoft.rest.ServiceCallback<List<LabeledUtterance>> serviceCallback)
Returns example utterances to be reviewed from a version of the application.- Parameters:
appId
- The application ID.versionId
- The version ID.listOptionalParameter
- the object representing the optional parameters to be set before calling this APIserviceCallback
- the async ServiceCallback to handle successful and failed responses.- Returns:
- the
ServiceFuture
object - Throws:
IllegalArgumentException
- thrown if parameters fail the validation
-
listAsync
public rx.Observable<List<LabeledUtterance>> listAsync(UUID appId, String versionId, ListExamplesOptionalParameter listOptionalParameter)
Returns example utterances to be reviewed from a version of the application.- Specified by:
listAsync
in interfaceExamples
- Parameters:
appId
- The application ID.versionId
- The version ID.listOptionalParameter
- the object representing the optional parameters to be set before calling this API- Returns:
- the observable to the List<LabeledUtterance> object
- Throws:
IllegalArgumentException
- thrown if parameters fail the validation
-
listWithServiceResponseAsync
public rx.Observable<com.microsoft.rest.ServiceResponse<List<LabeledUtterance>>> listWithServiceResponseAsync(UUID appId, String versionId, ListExamplesOptionalParameter listOptionalParameter)
Returns example utterances to be reviewed from a version of the application.- Parameters:
appId
- The application ID.versionId
- The version ID.listOptionalParameter
- the object representing the optional parameters to be set before calling this API- Returns:
- the observable to the List<LabeledUtterance> object
- Throws:
IllegalArgumentException
- thrown if parameters fail the validation
-
listWithServiceResponseAsync
public rx.Observable<com.microsoft.rest.ServiceResponse<List<LabeledUtterance>>> listWithServiceResponseAsync(UUID appId, String versionId, Integer skip, Integer take, Boolean enableNestedChildren)
Returns example utterances to be reviewed from a version of the application.- Parameters:
appId
- The application ID.versionId
- The version ID.skip
- The number of entries to skip. Default value is 0.take
- The number of entries to return. Maximum page size is 500. Default is 100.enableNestedChildren
- Toggles nested/flat format- Returns:
- the observable to the List<LabeledUtterance> object
- Throws:
IllegalArgumentException
- thrown if parameters fail the validation
-
list
public com.microsoft.azure.cognitiveservices.language.luis.authoring.implementation.ExamplesImpl.ExamplesListParameters list()
Description copied from interface:Examples
Returns example utterances to be reviewed from a version of the application.
-
delete
public OperationStatus delete(UUID appId, String versionId, int exampleId)
Deletes the labeled example utterances with the specified ID from a version of the application.- Specified by:
delete
in interfaceExamples
- Parameters:
appId
- The application ID.versionId
- The version ID.exampleId
- The example ID.- Returns:
- the OperationStatus object if successful.
- Throws:
IllegalArgumentException
- thrown if parameters fail the validationErrorResponseException
- thrown if the request is rejected by serverRuntimeException
- all other wrapped checked exceptions if the request fails to be sent
-
deleteAsync
public com.microsoft.rest.ServiceFuture<OperationStatus> deleteAsync(UUID appId, String versionId, int exampleId, com.microsoft.rest.ServiceCallback<OperationStatus> serviceCallback)
Deletes the labeled example utterances with the specified ID from a version of the application.- Parameters:
appId
- The application ID.versionId
- The version ID.exampleId
- The example ID.serviceCallback
- the async ServiceCallback to handle successful and failed responses.- Returns:
- the
ServiceFuture
object - Throws:
IllegalArgumentException
- thrown if parameters fail the validation
-
deleteAsync
public rx.Observable<OperationStatus> deleteAsync(UUID appId, String versionId, int exampleId)
Deletes the labeled example utterances with the specified ID from a version of the application.- Specified by:
deleteAsync
in interfaceExamples
- Parameters:
appId
- The application ID.versionId
- The version ID.exampleId
- The example ID.- Returns:
- the observable to the OperationStatus object
- Throws:
IllegalArgumentException
- thrown if parameters fail the validation
-
deleteWithServiceResponseAsync
public rx.Observable<com.microsoft.rest.ServiceResponse<OperationStatus>> deleteWithServiceResponseAsync(UUID appId, String versionId, int exampleId)
Deletes the labeled example utterances with the specified ID from a version of the application.- Parameters:
appId
- The application ID.versionId
- The version ID.exampleId
- The example ID.- Returns:
- the observable to the OperationStatus object
- Throws:
IllegalArgumentException
- thrown if parameters fail the validation
-
-