com.pulumi.googlenative.dialogflow.v3beta1.outputs.GetIntentResult Maven / Gradle / Ivy
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package com.pulumi.googlenative.dialogflow.v3beta1.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.googlenative.dialogflow.v3beta1.outputs.GoogleCloudDialogflowCxV3beta1IntentParameterResponse;
import com.pulumi.googlenative.dialogflow.v3beta1.outputs.GoogleCloudDialogflowCxV3beta1IntentTrainingPhraseResponse;
import java.lang.Boolean;
import java.lang.Integer;
import java.lang.String;
import java.util.List;
import java.util.Map;
import java.util.Objects;
@CustomType
public final class GetIntentResult {
/**
* @return Human readable description for better understanding an intent like its scope, content, result etc. Maximum character limit: 140 characters.
*
*/
private String description;
/**
* @return The human-readable name of the intent, unique within the agent.
*
*/
private String displayName;
/**
* @return Indicates whether this is a fallback intent. Currently only default fallback intent is allowed in the agent, which is added upon agent creation. Adding training phrases to fallback intent is useful in the case of requests that are mistakenly matched, since training phrases assigned to fallback intents act as negative examples that triggers no-match event.
*
*/
private Boolean isFallback;
/**
* @return The key/value metadata to label an intent. Labels can contain lowercase letters, digits and the symbols '-' and '_'. International characters are allowed, including letters from unicase alphabets. Keys must start with a letter. Keys and values can be no longer than 63 characters and no more than 128 bytes. Prefix "sys-" is reserved for Dialogflow defined labels. Currently allowed Dialogflow defined labels include: * sys-head * sys-contextual The above labels do not require value. "sys-head" means the intent is a head intent. "sys-contextual" means the intent is a contextual intent.
*
*/
private Map labels;
/**
* @return The unique identifier of the intent. Required for the Intents.UpdateIntent method. Intents.CreateIntent populates the name automatically. Format: `projects//locations//agents//intents/`.
*
*/
private String name;
/**
* @return The collection of parameters associated with the intent.
*
*/
private List parameters;
/**
* @return The priority of this intent. Higher numbers represent higher priorities. - If the supplied value is unspecified or 0, the service translates the value to 500,000, which corresponds to the `Normal` priority in the console. - If the supplied value is negative, the intent is ignored in runtime detect intent requests.
*
*/
private Integer priority;
/**
* @return The collection of training phrases the agent is trained on to identify the intent.
*
*/
private List trainingPhrases;
private GetIntentResult() {}
/**
* @return Human readable description for better understanding an intent like its scope, content, result etc. Maximum character limit: 140 characters.
*
*/
public String description() {
return this.description;
}
/**
* @return The human-readable name of the intent, unique within the agent.
*
*/
public String displayName() {
return this.displayName;
}
/**
* @return Indicates whether this is a fallback intent. Currently only default fallback intent is allowed in the agent, which is added upon agent creation. Adding training phrases to fallback intent is useful in the case of requests that are mistakenly matched, since training phrases assigned to fallback intents act as negative examples that triggers no-match event.
*
*/
public Boolean isFallback() {
return this.isFallback;
}
/**
* @return The key/value metadata to label an intent. Labels can contain lowercase letters, digits and the symbols '-' and '_'. International characters are allowed, including letters from unicase alphabets. Keys must start with a letter. Keys and values can be no longer than 63 characters and no more than 128 bytes. Prefix "sys-" is reserved for Dialogflow defined labels. Currently allowed Dialogflow defined labels include: * sys-head * sys-contextual The above labels do not require value. "sys-head" means the intent is a head intent. "sys-contextual" means the intent is a contextual intent.
*
*/
public Map labels() {
return this.labels;
}
/**
* @return The unique identifier of the intent. Required for the Intents.UpdateIntent method. Intents.CreateIntent populates the name automatically. Format: `projects//locations//agents//intents/`.
*
*/
public String name() {
return this.name;
}
/**
* @return The collection of parameters associated with the intent.
*
*/
public List parameters() {
return this.parameters;
}
/**
* @return The priority of this intent. Higher numbers represent higher priorities. - If the supplied value is unspecified or 0, the service translates the value to 500,000, which corresponds to the `Normal` priority in the console. - If the supplied value is negative, the intent is ignored in runtime detect intent requests.
*
*/
public Integer priority() {
return this.priority;
}
/**
* @return The collection of training phrases the agent is trained on to identify the intent.
*
*/
public List trainingPhrases() {
return this.trainingPhrases;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetIntentResult defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String description;
private String displayName;
private Boolean isFallback;
private Map labels;
private String name;
private List parameters;
private Integer priority;
private List trainingPhrases;
public Builder() {}
public Builder(GetIntentResult defaults) {
Objects.requireNonNull(defaults);
this.description = defaults.description;
this.displayName = defaults.displayName;
this.isFallback = defaults.isFallback;
this.labels = defaults.labels;
this.name = defaults.name;
this.parameters = defaults.parameters;
this.priority = defaults.priority;
this.trainingPhrases = defaults.trainingPhrases;
}
@CustomType.Setter
public Builder description(String description) {
this.description = Objects.requireNonNull(description);
return this;
}
@CustomType.Setter
public Builder displayName(String displayName) {
this.displayName = Objects.requireNonNull(displayName);
return this;
}
@CustomType.Setter
public Builder isFallback(Boolean isFallback) {
this.isFallback = Objects.requireNonNull(isFallback);
return this;
}
@CustomType.Setter
public Builder labels(Map labels) {
this.labels = Objects.requireNonNull(labels);
return this;
}
@CustomType.Setter
public Builder name(String name) {
this.name = Objects.requireNonNull(name);
return this;
}
@CustomType.Setter
public Builder parameters(List parameters) {
this.parameters = Objects.requireNonNull(parameters);
return this;
}
public Builder parameters(GoogleCloudDialogflowCxV3beta1IntentParameterResponse... parameters) {
return parameters(List.of(parameters));
}
@CustomType.Setter
public Builder priority(Integer priority) {
this.priority = Objects.requireNonNull(priority);
return this;
}
@CustomType.Setter
public Builder trainingPhrases(List trainingPhrases) {
this.trainingPhrases = Objects.requireNonNull(trainingPhrases);
return this;
}
public Builder trainingPhrases(GoogleCloudDialogflowCxV3beta1IntentTrainingPhraseResponse... trainingPhrases) {
return trainingPhrases(List.of(trainingPhrases));
}
public GetIntentResult build() {
final var o = new GetIntentResult();
o.description = description;
o.displayName = displayName;
o.isFallback = isFallback;
o.labels = labels;
o.name = name;
o.parameters = parameters;
o.priority = priority;
o.trainingPhrases = trainingPhrases;
return o;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy