idx
int64
0
41.2k
question
stringlengths
74
4.04k
target
stringlengths
7
750
26,100
public ServiceCall < TrainingDataSet > listTrainingData ( ListTrainingDataOptions listTrainingDataOptions ) { Validator . notNull ( listTrainingDataOptions , "listTrainingDataOptions cannot be null" ) ; String [ ] pathSegments = { "v1/environments" , "collections" , "training_data" } ; String [ ] pathParameters = { lis...
List training data .
26,101
public ServiceCall < TrainingExampleList > listTrainingExamples ( ListTrainingExamplesOptions listTrainingExamplesOptions ) { Validator . notNull ( listTrainingExamplesOptions , "listTrainingExamplesOptions cannot be null" ) ; String [ ] pathSegments = { "v1/environments" , "collections" , "training_data" , "examples" ...
List examples for a training data query .
26,102
public ServiceCall < TrainingExample > updateTrainingExample ( UpdateTrainingExampleOptions updateTrainingExampleOptions ) { Validator . notNull ( updateTrainingExampleOptions , "updateTrainingExampleOptions cannot be null" ) ; String [ ] pathSegments = { "v1/environments" , "collections" , "training_data" , "examples"...
Change label or cross reference for example .
26,103
public ServiceCall < CreateEventResponse > createEvent ( CreateEventOptions createEventOptions ) { Validator . notNull ( createEventOptions , "createEventOptions cannot be null" ) ; String [ ] pathSegments = { "v1/events" } ; RequestBuilder builder = RequestBuilder . post ( RequestBuilder . constructHttpUrl ( getEndPoi...
Create event .
26,104
public ServiceCall < MetricResponse > getMetricsEventRate ( GetMetricsEventRateOptions getMetricsEventRateOptions ) { String [ ] pathSegments = { "v1/metrics/event_rate" } ; RequestBuilder builder = RequestBuilder . get ( RequestBuilder . constructHttpUrl ( getEndPoint ( ) , pathSegments ) ) ; builder . query ( "versio...
Percentage of queries with an associated event .
26,105
public ServiceCall < MetricTokenResponse > getMetricsQueryTokenEvent ( GetMetricsQueryTokenEventOptions getMetricsQueryTokenEventOptions ) { String [ ] pathSegments = { "v1/metrics/top_query_tokens_with_event_rate" } ; RequestBuilder builder = RequestBuilder . get ( RequestBuilder . constructHttpUrl ( getEndPoint ( ) ,...
Most frequent query tokens with an event .
26,106
public ServiceCall < LogQueryResponse > queryLog ( QueryLogOptions queryLogOptions ) { String [ ] pathSegments = { "v1/logs" } ; RequestBuilder builder = RequestBuilder . get ( RequestBuilder . constructHttpUrl ( getEndPoint ( ) , pathSegments ) ) ; builder . query ( "version" , versionDate ) ; Map < String , String > ...
Search the query and event log .
26,107
public ServiceCall < Credentials > getCredentials ( GetCredentialsOptions getCredentialsOptions ) { Validator . notNull ( getCredentialsOptions , "getCredentialsOptions cannot be null" ) ; String [ ] pathSegments = { "v1/environments" , "credentials" } ; String [ ] pathParameters = { getCredentialsOptions . environment...
View Credentials .
26,108
public ServiceCall < CredentialsList > listCredentials ( ListCredentialsOptions listCredentialsOptions ) { Validator . notNull ( listCredentialsOptions , "listCredentialsOptions cannot be null" ) ; String [ ] pathSegments = { "v1/environments" , "credentials" } ; String [ ] pathParameters = { listCredentialsOptions . e...
List credentials .
26,109
public ServiceCall < Credentials > updateCredentials ( UpdateCredentialsOptions updateCredentialsOptions ) { Validator . notNull ( updateCredentialsOptions , "updateCredentialsOptions cannot be null" ) ; String [ ] pathSegments = { "v1/environments" , "credentials" } ; String [ ] pathParameters = { updateCredentialsOpt...
Update credentials .
26,110
public ServiceCall < Gateway > createGateway ( CreateGatewayOptions createGatewayOptions ) { Validator . notNull ( createGatewayOptions , "createGatewayOptions cannot be null" ) ; String [ ] pathSegments = { "v1/environments" , "gateways" } ; String [ ] pathParameters = { createGatewayOptions . environmentId ( ) } ; Re...
Create Gateway .
26,111
public ServiceCall < Gateway > getGateway ( GetGatewayOptions getGatewayOptions ) { Validator . notNull ( getGatewayOptions , "getGatewayOptions cannot be null" ) ; String [ ] pathSegments = { "v1/environments" , "gateways" } ; String [ ] pathParameters = { getGatewayOptions . environmentId ( ) , getGatewayOptions . ga...
List Gateway Details .
26,112
public ServiceCall < GatewayList > listGateways ( ListGatewaysOptions listGatewaysOptions ) { Validator . notNull ( listGatewaysOptions , "listGatewaysOptions cannot be null" ) ; String [ ] pathSegments = { "v1/environments" , "gateways" } ; String [ ] pathParameters = { listGatewaysOptions . environmentId ( ) } ; Requ...
List Gateways .
26,113
public ServiceCall < SpeechModel > getModel ( GetModelOptions getModelOptions ) { Validator . notNull ( getModelOptions , "getModelOptions cannot be null" ) ; String [ ] pathSegments = { "v1/models" } ; String [ ] pathParameters = { getModelOptions . modelId ( ) } ; RequestBuilder builder = RequestBuilder . get ( Reque...
Get a model .
26,114
public WebSocket recognizeUsingWebSocket ( RecognizeOptions recognizeOptions , RecognizeCallback callback ) { Validator . notNull ( recognizeOptions , "recognizeOptions cannot be null" ) ; Validator . notNull ( recognizeOptions . audio ( ) , "audio cannot be null" ) ; Validator . notNull ( callback , "callback cannot b...
Sends audio and returns transcription results for recognition requests over a WebSocket connection . Requests and responses are enabled over a single TCP connection that abstracts much of the complexity of the request to offer efficient implementation low latency high throughput and an asynchronous response . By defaul...
26,115
public ServiceCall < RecognitionJob > checkJob ( CheckJobOptions checkJobOptions ) { Validator . notNull ( checkJobOptions , "checkJobOptions cannot be null" ) ; String [ ] pathSegments = { "v1/recognitions" } ; String [ ] pathParameters = { checkJobOptions . id ( ) } ; RequestBuilder builder = RequestBuilder . get ( R...
Check a job .
26,116
public ServiceCall < RecognitionJobs > checkJobs ( CheckJobsOptions checkJobsOptions ) { String [ ] pathSegments = { "v1/recognitions" } ; RequestBuilder builder = RequestBuilder . get ( RequestBuilder . constructHttpUrl ( getEndPoint ( ) , pathSegments ) ) ; Map < String , String > sdkHeaders = SdkCommon . getSdkHeade...
Check jobs .
26,117
public ServiceCall < Void > deleteJob ( DeleteJobOptions deleteJobOptions ) { Validator . notNull ( deleteJobOptions , "deleteJobOptions cannot be null" ) ; String [ ] pathSegments = { "v1/recognitions" } ; String [ ] pathParameters = { deleteJobOptions . id ( ) } ; RequestBuilder builder = RequestBuilder . delete ( Re...
Delete a job .
26,118
public ServiceCall < RegisterStatus > registerCallback ( RegisterCallbackOptions registerCallbackOptions ) { Validator . notNull ( registerCallbackOptions , "registerCallbackOptions cannot be null" ) ; String [ ] pathSegments = { "v1/register_callback" } ; RequestBuilder builder = RequestBuilder . post ( RequestBuilder...
Register a callback .
26,119
public ServiceCall < Void > unregisterCallback ( UnregisterCallbackOptions unregisterCallbackOptions ) { Validator . notNull ( unregisterCallbackOptions , "unregisterCallbackOptions cannot be null" ) ; String [ ] pathSegments = { "v1/unregister_callback" } ; RequestBuilder builder = RequestBuilder . post ( RequestBuild...
Unregister a callback .
26,120
public ServiceCall < LanguageModel > createLanguageModel ( CreateLanguageModelOptions createLanguageModelOptions ) { Validator . notNull ( createLanguageModelOptions , "createLanguageModelOptions cannot be null" ) ; String [ ] pathSegments = { "v1/customizations" } ; RequestBuilder builder = RequestBuilder . post ( Req...
Create a custom language model .
26,121
public ServiceCall < Void > deleteLanguageModel ( DeleteLanguageModelOptions deleteLanguageModelOptions ) { Validator . notNull ( deleteLanguageModelOptions , "deleteLanguageModelOptions cannot be null" ) ; String [ ] pathSegments = { "v1/customizations" } ; String [ ] pathParameters = { deleteLanguageModelOptions . cu...
Delete a custom language model .
26,122
public ServiceCall < LanguageModel > getLanguageModel ( GetLanguageModelOptions getLanguageModelOptions ) { Validator . notNull ( getLanguageModelOptions , "getLanguageModelOptions cannot be null" ) ; String [ ] pathSegments = { "v1/customizations" } ; String [ ] pathParameters = { getLanguageModelOptions . customizati...
Get a custom language model .
26,123
public ServiceCall < LanguageModels > listLanguageModels ( ListLanguageModelsOptions listLanguageModelsOptions ) { String [ ] pathSegments = { "v1/customizations" } ; RequestBuilder builder = RequestBuilder . get ( RequestBuilder . constructHttpUrl ( getEndPoint ( ) , pathSegments ) ) ; Map < String , String > sdkHeade...
List custom language models .
26,124
public ServiceCall < Void > trainLanguageModel ( TrainLanguageModelOptions trainLanguageModelOptions ) { Validator . notNull ( trainLanguageModelOptions , "trainLanguageModelOptions cannot be null" ) ; String [ ] pathSegments = { "v1/customizations" , "train" } ; String [ ] pathParameters = { trainLanguageModelOptions ...
Train a custom language model .
26,125
public ServiceCall < Void > addCorpus ( AddCorpusOptions addCorpusOptions ) { Validator . notNull ( addCorpusOptions , "addCorpusOptions cannot be null" ) ; String [ ] pathSegments = { "v1/customizations" , "corpora" } ; String [ ] pathParameters = { addCorpusOptions . customizationId ( ) , addCorpusOptions . corpusNam...
Add a corpus .
26,126
public ServiceCall < Void > deleteCorpus ( DeleteCorpusOptions deleteCorpusOptions ) { Validator . notNull ( deleteCorpusOptions , "deleteCorpusOptions cannot be null" ) ; String [ ] pathSegments = { "v1/customizations" , "corpora" } ; String [ ] pathParameters = { deleteCorpusOptions . customizationId ( ) , deleteCorp...
Delete a corpus .
26,127
public ServiceCall < Corpus > getCorpus ( GetCorpusOptions getCorpusOptions ) { Validator . notNull ( getCorpusOptions , "getCorpusOptions cannot be null" ) ; String [ ] pathSegments = { "v1/customizations" , "corpora" } ; String [ ] pathParameters = { getCorpusOptions . customizationId ( ) , getCorpusOptions . corpusN...
Get a corpus .
26,128
public ServiceCall < Corpora > listCorpora ( ListCorporaOptions listCorporaOptions ) { Validator . notNull ( listCorporaOptions , "listCorporaOptions cannot be null" ) ; String [ ] pathSegments = { "v1/customizations" , "corpora" } ; String [ ] pathParameters = { listCorporaOptions . customizationId ( ) } ; RequestBuil...
List corpora .
26,129
public ServiceCall < Void > addGrammar ( AddGrammarOptions addGrammarOptions ) { Validator . notNull ( addGrammarOptions , "addGrammarOptions cannot be null" ) ; String [ ] pathSegments = { "v1/customizations" , "grammars" } ; String [ ] pathParameters = { addGrammarOptions . customizationId ( ) , addGrammarOptions . g...
Add a grammar .
26,130
public ServiceCall < Void > deleteGrammar ( DeleteGrammarOptions deleteGrammarOptions ) { Validator . notNull ( deleteGrammarOptions , "deleteGrammarOptions cannot be null" ) ; String [ ] pathSegments = { "v1/customizations" , "grammars" } ; String [ ] pathParameters = { deleteGrammarOptions . customizationId ( ) , del...
Delete a grammar .
26,131
public ServiceCall < Grammar > getGrammar ( GetGrammarOptions getGrammarOptions ) { Validator . notNull ( getGrammarOptions , "getGrammarOptions cannot be null" ) ; String [ ] pathSegments = { "v1/customizations" , "grammars" } ; String [ ] pathParameters = { getGrammarOptions . customizationId ( ) , getGrammarOptions ...
Get a grammar .
26,132
public ServiceCall < Grammars > listGrammars ( ListGrammarsOptions listGrammarsOptions ) { Validator . notNull ( listGrammarsOptions , "listGrammarsOptions cannot be null" ) ; String [ ] pathSegments = { "v1/customizations" , "grammars" } ; String [ ] pathParameters = { listGrammarsOptions . customizationId ( ) } ; Req...
List grammars .
26,133
public ServiceCall < AcousticModel > createAcousticModel ( CreateAcousticModelOptions createAcousticModelOptions ) { Validator . notNull ( createAcousticModelOptions , "createAcousticModelOptions cannot be null" ) ; String [ ] pathSegments = { "v1/acoustic_customizations" } ; RequestBuilder builder = RequestBuilder . p...
Create a custom acoustic model .
26,134
public ServiceCall < AcousticModel > getAcousticModel ( GetAcousticModelOptions getAcousticModelOptions ) { Validator . notNull ( getAcousticModelOptions , "getAcousticModelOptions cannot be null" ) ; String [ ] pathSegments = { "v1/acoustic_customizations" } ; String [ ] pathParameters = { getAcousticModelOptions . cu...
Get a custom acoustic model .
26,135
public ServiceCall < AcousticModels > listAcousticModels ( ListAcousticModelsOptions listAcousticModelsOptions ) { String [ ] pathSegments = { "v1/acoustic_customizations" } ; RequestBuilder builder = RequestBuilder . get ( RequestBuilder . constructHttpUrl ( getEndPoint ( ) , pathSegments ) ) ; Map < String , String >...
List custom acoustic models .
26,136
public ServiceCall < Void > resetAcousticModel ( ResetAcousticModelOptions resetAcousticModelOptions ) { Validator . notNull ( resetAcousticModelOptions , "resetAcousticModelOptions cannot be null" ) ; String [ ] pathSegments = { "v1/acoustic_customizations" , "reset" } ; String [ ] pathParameters = { resetAcousticMode...
Reset a custom acoustic model .
26,137
public ServiceCall < Void > trainAcousticModel ( TrainAcousticModelOptions trainAcousticModelOptions ) { Validator . notNull ( trainAcousticModelOptions , "trainAcousticModelOptions cannot be null" ) ; String [ ] pathSegments = { "v1/acoustic_customizations" , "train" } ; String [ ] pathParameters = { trainAcousticMode...
Train a custom acoustic model .
26,138
public ServiceCall < Void > upgradeAcousticModel ( UpgradeAcousticModelOptions upgradeAcousticModelOptions ) { Validator . notNull ( upgradeAcousticModelOptions , "upgradeAcousticModelOptions cannot be null" ) ; String [ ] pathSegments = { "v1/acoustic_customizations" , "upgrade_model" } ; String [ ] pathParameters = {...
Upgrade a custom acoustic model .
26,139
public ServiceCall < Void > addAudio ( AddAudioOptions addAudioOptions ) { Validator . notNull ( addAudioOptions , "addAudioOptions cannot be null" ) ; String [ ] pathSegments = { "v1/acoustic_customizations" , "audio" } ; String [ ] pathParameters = { addAudioOptions . customizationId ( ) , addAudioOptions . audioName...
Add an audio resource .
26,140
public ServiceCall < Void > deleteAudio ( DeleteAudioOptions deleteAudioOptions ) { Validator . notNull ( deleteAudioOptions , "deleteAudioOptions cannot be null" ) ; String [ ] pathSegments = { "v1/acoustic_customizations" , "audio" } ; String [ ] pathParameters = { deleteAudioOptions . customizationId ( ) , deleteAud...
Delete an audio resource .
26,141
public ServiceCall < AudioListing > getAudio ( GetAudioOptions getAudioOptions ) { Validator . notNull ( getAudioOptions , "getAudioOptions cannot be null" ) ; String [ ] pathSegments = { "v1/acoustic_customizations" , "audio" } ; String [ ] pathParameters = { getAudioOptions . customizationId ( ) , getAudioOptions . a...
Get an audio resource .
26,142
public ServiceCall < AudioResources > listAudio ( ListAudioOptions listAudioOptions ) { Validator . notNull ( listAudioOptions , "listAudioOptions cannot be null" ) ; String [ ] pathSegments = { "v1/acoustic_customizations" , "audio" } ; String [ ] pathParameters = { listAudioOptions . customizationId ( ) } ; RequestBu...
List audio resources .
26,143
public ServiceCall < MessageResponse > message ( MessageOptions messageOptions ) { Validator . notNull ( messageOptions , "messageOptions cannot be null" ) ; String [ ] pathSegments = { "v1/workspaces" , "message" } ; String [ ] pathParameters = { messageOptions . workspaceId ( ) } ; RequestBuilder builder = RequestBui...
Get response to user input .
26,144
public ServiceCall < Workspace > createWorkspace ( CreateWorkspaceOptions createWorkspaceOptions ) { String [ ] pathSegments = { "v1/workspaces" } ; RequestBuilder builder = RequestBuilder . post ( RequestBuilder . constructHttpUrl ( getEndPoint ( ) , pathSegments ) ) ; builder . query ( "version" , versionDate ) ; Map...
Create workspace .
26,145
public ServiceCall < Workspace > getWorkspace ( GetWorkspaceOptions getWorkspaceOptions ) { Validator . notNull ( getWorkspaceOptions , "getWorkspaceOptions cannot be null" ) ; String [ ] pathSegments = { "v1/workspaces" } ; String [ ] pathParameters = { getWorkspaceOptions . workspaceId ( ) } ; RequestBuilder builder ...
Get information about a workspace .
26,146
public ServiceCall < WorkspaceCollection > listWorkspaces ( ListWorkspacesOptions listWorkspacesOptions ) { String [ ] pathSegments = { "v1/workspaces" } ; RequestBuilder builder = RequestBuilder . get ( RequestBuilder . constructHttpUrl ( getEndPoint ( ) , pathSegments ) ) ; builder . query ( "version" , versionDate )...
List workspaces .
26,147
public ServiceCall < Workspace > updateWorkspace ( UpdateWorkspaceOptions updateWorkspaceOptions ) { Validator . notNull ( updateWorkspaceOptions , "updateWorkspaceOptions cannot be null" ) ; String [ ] pathSegments = { "v1/workspaces" } ; String [ ] pathParameters = { updateWorkspaceOptions . workspaceId ( ) } ; Reque...
Update workspace .
26,148
public ServiceCall < Intent > createIntent ( CreateIntentOptions createIntentOptions ) { Validator . notNull ( createIntentOptions , "createIntentOptions cannot be null" ) ; String [ ] pathSegments = { "v1/workspaces" , "intents" } ; String [ ] pathParameters = { createIntentOptions . workspaceId ( ) } ; RequestBuilder...
Create intent .
26,149
public ServiceCall < Intent > getIntent ( GetIntentOptions getIntentOptions ) { Validator . notNull ( getIntentOptions , "getIntentOptions cannot be null" ) ; String [ ] pathSegments = { "v1/workspaces" , "intents" } ; String [ ] pathParameters = { getIntentOptions . workspaceId ( ) , getIntentOptions . intent ( ) } ; ...
Get intent .
26,150
public ServiceCall < IntentCollection > listIntents ( ListIntentsOptions listIntentsOptions ) { Validator . notNull ( listIntentsOptions , "listIntentsOptions cannot be null" ) ; String [ ] pathSegments = { "v1/workspaces" , "intents" } ; String [ ] pathParameters = { listIntentsOptions . workspaceId ( ) } ; RequestBui...
List intents .
26,151
public ServiceCall < Intent > updateIntent ( UpdateIntentOptions updateIntentOptions ) { Validator . notNull ( updateIntentOptions , "updateIntentOptions cannot be null" ) ; String [ ] pathSegments = { "v1/workspaces" , "intents" } ; String [ ] pathParameters = { updateIntentOptions . workspaceId ( ) , updateIntentOpti...
Update intent .
26,152
public ServiceCall < Example > createExample ( CreateExampleOptions createExampleOptions ) { Validator . notNull ( createExampleOptions , "createExampleOptions cannot be null" ) ; String [ ] pathSegments = { "v1/workspaces" , "intents" , "examples" } ; String [ ] pathParameters = { createExampleOptions . workspaceId ( ...
Create user input example .
26,153
public ServiceCall < Example > getExample ( GetExampleOptions getExampleOptions ) { Validator . notNull ( getExampleOptions , "getExampleOptions cannot be null" ) ; String [ ] pathSegments = { "v1/workspaces" , "intents" , "examples" } ; String [ ] pathParameters = { getExampleOptions . workspaceId ( ) , getExampleOpti...
Get user input example .
26,154
public ServiceCall < ExampleCollection > listExamples ( ListExamplesOptions listExamplesOptions ) { Validator . notNull ( listExamplesOptions , "listExamplesOptions cannot be null" ) ; String [ ] pathSegments = { "v1/workspaces" , "intents" , "examples" } ; String [ ] pathParameters = { listExamplesOptions . workspaceI...
List user input examples .
26,155
public ServiceCall < Counterexample > getCounterexample ( GetCounterexampleOptions getCounterexampleOptions ) { Validator . notNull ( getCounterexampleOptions , "getCounterexampleOptions cannot be null" ) ; String [ ] pathSegments = { "v1/workspaces" , "counterexamples" } ; String [ ] pathParameters = { getCounterexamp...
Get counterexample .
26,156
public ServiceCall < CounterexampleCollection > listCounterexamples ( ListCounterexamplesOptions listCounterexamplesOptions ) { Validator . notNull ( listCounterexamplesOptions , "listCounterexamplesOptions cannot be null" ) ; String [ ] pathSegments = { "v1/workspaces" , "counterexamples" } ; String [ ] pathParameters...
List counterexamples .
26,157
public ServiceCall < Counterexample > updateCounterexample ( UpdateCounterexampleOptions updateCounterexampleOptions ) { Validator . notNull ( updateCounterexampleOptions , "updateCounterexampleOptions cannot be null" ) ; String [ ] pathSegments = { "v1/workspaces" , "counterexamples" } ; String [ ] pathParameters = { ...
Update counterexample .
26,158
public ServiceCall < Entity > createEntity ( CreateEntityOptions createEntityOptions ) { Validator . notNull ( createEntityOptions , "createEntityOptions cannot be null" ) ; String [ ] pathSegments = { "v1/workspaces" , "entities" } ; String [ ] pathParameters = { createEntityOptions . workspaceId ( ) } ; RequestBuilde...
Create entity .
26,159
public ServiceCall < Entity > getEntity ( GetEntityOptions getEntityOptions ) { Validator . notNull ( getEntityOptions , "getEntityOptions cannot be null" ) ; String [ ] pathSegments = { "v1/workspaces" , "entities" } ; String [ ] pathParameters = { getEntityOptions . workspaceId ( ) , getEntityOptions . entity ( ) } ;...
Get entity .
26,160
public ServiceCall < EntityCollection > listEntities ( ListEntitiesOptions listEntitiesOptions ) { Validator . notNull ( listEntitiesOptions , "listEntitiesOptions cannot be null" ) ; String [ ] pathSegments = { "v1/workspaces" , "entities" } ; String [ ] pathParameters = { listEntitiesOptions . workspaceId ( ) } ; Req...
List entities .
26,161
public ServiceCall < Entity > updateEntity ( UpdateEntityOptions updateEntityOptions ) { Validator . notNull ( updateEntityOptions , "updateEntityOptions cannot be null" ) ; String [ ] pathSegments = { "v1/workspaces" , "entities" } ; String [ ] pathParameters = { updateEntityOptions . workspaceId ( ) , updateEntityOpt...
Update entity .
26,162
public ServiceCall < Value > createValue ( CreateValueOptions createValueOptions ) { Validator . notNull ( createValueOptions , "createValueOptions cannot be null" ) ; String [ ] pathSegments = { "v1/workspaces" , "entities" , "values" } ; String [ ] pathParameters = { createValueOptions . workspaceId ( ) , createValue...
Create entity value .
26,163
public ServiceCall < Void > deleteValue ( DeleteValueOptions deleteValueOptions ) { Validator . notNull ( deleteValueOptions , "deleteValueOptions cannot be null" ) ; String [ ] pathSegments = { "v1/workspaces" , "entities" , "values" } ; String [ ] pathParameters = { deleteValueOptions . workspaceId ( ) , deleteValueO...
Delete entity value .
26,164
public ServiceCall < Value > getValue ( GetValueOptions getValueOptions ) { Validator . notNull ( getValueOptions , "getValueOptions cannot be null" ) ; String [ ] pathSegments = { "v1/workspaces" , "entities" , "values" } ; String [ ] pathParameters = { getValueOptions . workspaceId ( ) , getValueOptions . entity ( ) ...
Get entity value .
26,165
public ServiceCall < ValueCollection > listValues ( ListValuesOptions listValuesOptions ) { Validator . notNull ( listValuesOptions , "listValuesOptions cannot be null" ) ; String [ ] pathSegments = { "v1/workspaces" , "entities" , "values" } ; String [ ] pathParameters = { listValuesOptions . workspaceId ( ) , listVal...
List entity values .
26,166
public ServiceCall < Value > updateValue ( UpdateValueOptions updateValueOptions ) { Validator . notNull ( updateValueOptions , "updateValueOptions cannot be null" ) ; String [ ] pathSegments = { "v1/workspaces" , "entities" , "values" } ; String [ ] pathParameters = { updateValueOptions . workspaceId ( ) , updateValue...
Update entity value .
26,167
public ServiceCall < Synonym > getSynonym ( GetSynonymOptions getSynonymOptions ) { Validator . notNull ( getSynonymOptions , "getSynonymOptions cannot be null" ) ; String [ ] pathSegments = { "v1/workspaces" , "entities" , "values" , "synonyms" } ; String [ ] pathParameters = { getSynonymOptions . workspaceId ( ) , ge...
Get entity value synonym .
26,168
public ServiceCall < SynonymCollection > listSynonyms ( ListSynonymsOptions listSynonymsOptions ) { Validator . notNull ( listSynonymsOptions , "listSynonymsOptions cannot be null" ) ; String [ ] pathSegments = { "v1/workspaces" , "entities" , "values" , "synonyms" } ; String [ ] pathParameters = { listSynonymsOptions ...
List entity value synonyms .
26,169
public ServiceCall < Synonym > updateSynonym ( UpdateSynonymOptions updateSynonymOptions ) { Validator . notNull ( updateSynonymOptions , "updateSynonymOptions cannot be null" ) ; String [ ] pathSegments = { "v1/workspaces" , "entities" , "values" , "synonyms" } ; String [ ] pathParameters = { updateSynonymOptions . wo...
Update entity value synonym .
26,170
public ServiceCall < DialogNode > getDialogNode ( GetDialogNodeOptions getDialogNodeOptions ) { Validator . notNull ( getDialogNodeOptions , "getDialogNodeOptions cannot be null" ) ; String [ ] pathSegments = { "v1/workspaces" , "dialog_nodes" } ; String [ ] pathParameters = { getDialogNodeOptions . workspaceId ( ) , g...
Get dialog node .
26,171
public ServiceCall < DialogNodeCollection > listDialogNodes ( ListDialogNodesOptions listDialogNodesOptions ) { Validator . notNull ( listDialogNodesOptions , "listDialogNodesOptions cannot be null" ) ; String [ ] pathSegments = { "v1/workspaces" , "dialog_nodes" } ; String [ ] pathParameters = { listDialogNodesOptions...
List dialog nodes .
26,172
public ServiceCall < LogCollection > listAllLogs ( ListAllLogsOptions listAllLogsOptions ) { Validator . notNull ( listAllLogsOptions , "listAllLogsOptions cannot be null" ) ; String [ ] pathSegments = { "v1/logs" } ; RequestBuilder builder = RequestBuilder . get ( RequestBuilder . constructHttpUrl ( getEndPoint ( ) , ...
List log events in all workspaces .
26,173
public ServiceCall < LogCollection > listLogs ( ListLogsOptions listLogsOptions ) { Validator . notNull ( listLogsOptions , "listLogsOptions cannot be null" ) ; String [ ] pathSegments = { "v1/workspaces" , "logs" } ; String [ ] pathParameters = { listLogsOptions . workspaceId ( ) } ; RequestBuilder builder = RequestBu...
List log events in a workspace .
26,174
public ServiceCall < ToneAnalysis > tone ( ToneOptions toneOptions ) { Validator . notNull ( toneOptions , "toneOptions cannot be null" ) ; String [ ] pathSegments = { "v3/tone" } ; RequestBuilder builder = RequestBuilder . post ( RequestBuilder . constructHttpUrl ( getEndPoint ( ) , pathSegments ) ) ; builder . query ...
Analyze general tone .
26,175
public ServiceCall < UtteranceAnalyses > toneChat ( ToneChatOptions toneChatOptions ) { Validator . notNull ( toneChatOptions , "toneChatOptions cannot be null" ) ; String [ ] pathSegments = { "v3/tone_chat" } ; RequestBuilder builder = RequestBuilder . post ( RequestBuilder . constructHttpUrl ( getEndPoint ( ) , pathS...
Analyze customer engagement tone .
26,176
public String getName ( String oldName ) { if ( oldName != null && this . existing . containsKey ( oldName ) ) { return this . existing . get ( oldName ) ; } final String name = this . prefix + this . counter ; this . counter ++ ; if ( oldName != null ) { this . existing . put ( oldName , name ) ; } return name ; }
Gets the new name for the given old name where if no old name is given a new name will be generated .
26,177
static boolean isNode ( Object v ) { if ( v instanceof Map && ! ( ( ( Map ) v ) . containsKey ( "@value" ) || ( ( Map ) v ) . containsKey ( "@set" ) || ( ( Map ) v ) . containsKey ( "@list" ) ) ) { return ( ( Map < String , Object > ) v ) . size ( ) > 1 || ! ( ( Map ) v ) . containsKey ( "@id" ) ; } return false ; }
Returns true if the given value is a subject with properties .
26,178
static boolean isNodeReference ( Object v ) { return ( v instanceof Map && ( ( Map < String , Object > ) v ) . size ( ) == 1 && ( ( Map < String , Object > ) v ) . containsKey ( "@id" ) ) ; }
Returns true if the given value is a subject reference .
26,179
static void fillNodesToPrune ( Object input , final Map < String , Object > toPrune ) { if ( isArray ( input ) ) { for ( final Object i : ( List < Object > ) input ) { fillNodesToPrune ( i , toPrune ) ; } } else if ( isObject ( input ) ) { if ( isValue ( input ) ) { return ; } if ( isList ( input ) ) { fillNodesToPrune...
Gets the objects on which we ll prune the blank node ID
26,180
static boolean isBlankNode ( Object v ) { if ( v instanceof Map ) { final Map < String , Object > map = ( Map < String , Object > ) v ; if ( map . containsKey ( "@id" ) ) { return ( ( String ) map . get ( "@id" ) ) . startsWith ( "_:" ) ; } else { return map . isEmpty ( ) || ! map . containsKey ( "@value" ) || map . co...
Returns true if the given value is a blank node .
26,181
static Boolean isList ( Object v ) { return ( v instanceof Map && ( ( Map < String , Object > ) v ) . containsKey ( "@list" ) ) ; }
Returns true if the given value is a JSON - LD List
26,182
static Boolean isValue ( Object v ) { return ( v instanceof Map && ( ( Map < String , Object > ) v ) . containsKey ( "@value" ) ) ; }
Returns true if the given value is a JSON - LD value
26,183
public static String removeDotSegments ( String path , boolean hasAuthority ) { String rval = "" ; if ( path . indexOf ( "/" ) == 0 ) { rval = "/" ; } final List < String > input = new ArrayList < String > ( Arrays . asList ( path . split ( "/" ) ) ) ; if ( path . endsWith ( "/" ) ) { input . add ( "" ) ; } final List ...
Removes dot segments from a JsonLdUrl path .
26,184
private static void parseAuthority ( JsonLdUrl parsed ) { if ( parsed . href . indexOf ( ":" ) == - 1 && parsed . href . indexOf ( "//" ) == 0 && "" . equals ( parsed . host ) ) { parsed . pathname = parsed . pathname . substring ( 2 ) ; final int idx = parsed . pathname . indexOf ( "/" ) ; if ( idx == - 1 ) { parsed ....
Parses the authority for the pre - parsed given JsonLdUrl .
26,185
public static void escape ( String str , StringBuilder rval ) { for ( int i = 0 ; i < str . length ( ) ; i ++ ) { final char hi = str . charAt ( i ) ; if ( hi <= 0x8 || hi == 0xB || hi == 0xC || ( hi >= 0xE && hi <= 0x1F ) || ( hi >= 0x7F && hi <= 0xA0 ) || ( ( hi >= 0x24F && ! Character . isHighSurrogate ( hi ) ) ) ) ...
Escapes the given string according to the N - Quads escape rules
26,186
public Map < String , Object > getContext ( ) { final Map < String , Object > rval = newMap ( ) ; rval . putAll ( context ) ; if ( rval . containsKey ( "" ) ) { rval . put ( "@vocab" , rval . remove ( "" ) ) ; } return rval ; }
Returns a valid context containing any namespaces set
26,187
public void parseContext ( Object contextLike ) throws JsonLdError { Context context ; if ( api != null ) { context = new Context ( api . opts ) ; } else { context = new Context ( ) ; } context = context . parse ( contextLike ) ; final Map < String , String > prefixes = context . getPrefixes ( true ) ; for ( final Stri...
parses a context object and sets any namespaces found within it
26,188
public void addTriple ( final String subject , final String predicate , final String object ) { addQuad ( subject , predicate , object , "@default" ) ; }
Adds a triple to the default graph of this dataset
26,189
private Node objectToRDF ( Object item ) { if ( isValue ( item ) ) { final Object value = ( ( Map < String , Object > ) item ) . get ( "@value" ) ; final Object datatype = ( ( Map < String , Object > ) item ) . get ( "@type" ) ; if ( value instanceof Boolean || value instanceof Number ) { if ( value instanceof Boolean ...
Converts a JSON - LD value object to an RDF literal or a JSON - LD string or node object to an RDF resource .
26,190
public DocumentLoader addInjectedDoc ( String url , String doc ) throws JsonLdError { try { m_injectedDocs . put ( url , JsonUtils . fromString ( doc ) ) ; return this ; } catch ( final Exception e ) { throw new JsonLdError ( JsonLdError . Error . LOADING_INJECTED_CONTEXT_FAILED , url , e ) ; } }
Avoid resolving a document by instead using the given serialised representation .
26,191
public RemoteDocument loadDocument ( String url ) throws JsonLdError { if ( m_injectedDocs . containsKey ( url ) ) { try { return new RemoteDocument ( url , m_injectedDocs . get ( url ) ) ; } catch ( final Exception e ) { throw new JsonLdError ( JsonLdError . Error . LOADING_INJECTED_CONTEXT_FAILED , url , e ) ; } } el...
Loads the URL if possible returning it as a RemoteDocument .
26,192
public static String toPrettyString ( Object jsonObject ) throws JsonGenerationException , IOException { final StringWriter sw = new StringWriter ( ) ; writePrettyPrint ( sw , jsonObject ) ; return sw . toString ( ) ; }
Writes the given JSON - LD Object out to a String using indentation and new lines to improve readability .
26,193
public static void write ( Writer writer , Object jsonObject ) throws JsonGenerationException , IOException { final JsonGenerator jw = JSON_FACTORY . createGenerator ( writer ) ; jw . writeObject ( jsonObject ) ; }
Writes the given JSON - LD Object out to the given Writer .
26,194
public static void writePrettyPrint ( Writer writer , Object jsonObject ) throws JsonGenerationException , IOException { final JsonGenerator jw = JSON_FACTORY . createGenerator ( writer ) ; jw . useDefaultPrettyPrinter ( ) ; jw . writeObject ( jsonObject ) ; }
Writes the given JSON - LD Object out to the given Writer using indentation and new lines to improve readability .
26,195
public static Map < String , Object > newMap ( String key , Object value ) { final Map < String , Object > result = newMap ( ) ; result . put ( key , value ) ; return result ; }
Helper function for creating maps and tuning them as necessary .
26,196
public static Object fromRDF ( Object dataset , JsonLdOptions options ) throws JsonLdError { RDFParser parser = null ; if ( options . format == null && dataset instanceof String ) { options . format = JsonLdConsts . APPLICATION_NQUADS ; } if ( rdfParsers . containsKey ( options . format ) ) { parser = rdfParsers . get ...
Converts an RDF dataset to JSON - LD .
26,197
public static Object normalize ( Object input , JsonLdOptions options ) throws JsonLdError { final JsonLdOptions opts = options . copy ( ) ; opts . format = null ; final RDFDataset dataset = ( RDFDataset ) toRDF ( input , opts ) ; return new JsonLdApi ( options ) . normalize ( dataset ) ; }
Performs RDF dataset normalization on the given JSON - LD input . The output is an RDF dataset unless the format option is used .
26,198
public Object compactValue ( String activeProperty , Map < String , Object > value ) { int numberMembers = value . size ( ) ; if ( value . containsKey ( JsonLdConsts . INDEX ) && JsonLdConsts . INDEX . equals ( this . getContainer ( activeProperty ) ) ) { numberMembers -- ; } if ( numberMembers > 2 ) { return value ; }...
Value Compaction Algorithm
26,199
@ SuppressWarnings ( "unchecked" ) public Context parse ( Object localContext , List < String > remoteContexts ) throws JsonLdError { return parse ( localContext , remoteContexts , false ) ; }
Context Processing Algorithm