com.google.cloud.dialogflow.cx.v3.Agent Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of proto-google-cloud-dialogflow-cx-v3 Show documentation
Show all versions of proto-google-cloud-dialogflow-cx-v3 Show documentation
PROTO library for proto-google-cloud-dialogflow-cx-v3
/*
* Copyright 2020 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/cloud/dialogflow/cx/v3/agent.proto
package com.google.cloud.dialogflow.cx.v3;
/**
*
*
*
* Agents are best described as Natural Language Understanding (NLU) modules
* that transform user requests into actionable data. You can include agents
* in your app, product, or service to determine user intent and respond to the
* user in a natural way.
* After you create an agent, you can add [Intents][google.cloud.dialogflow.cx.v3.Intent],
* [Entity Types][google.cloud.dialogflow.cx.v3.EntityType], [Flows][google.cloud.dialogflow.cx.v3.Flow], [Fulfillments][google.cloud.dialogflow.cx.v3.Fulfillment],
* [Webhooks][google.cloud.dialogflow.cx.v3.Webhook], and so on to manage the conversation flows..
*
*
* Protobuf type {@code google.cloud.dialogflow.cx.v3.Agent}
*/
public final class Agent extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:google.cloud.dialogflow.cx.v3.Agent)
AgentOrBuilder {
private static final long serialVersionUID = 0L;
// Use Agent.newBuilder() to construct.
private Agent(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Agent() {
name_ = "";
displayName_ = "";
defaultLanguageCode_ = "";
supportedLanguageCodes_ = com.google.protobuf.LazyStringArrayList.EMPTY;
timeZone_ = "";
description_ = "";
avatarUri_ = "";
startFlow_ = "";
securitySettings_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new Agent();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
return this.unknownFields;
}
private Agent(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10:
{
java.lang.String s = input.readStringRequireUtf8();
name_ = s;
break;
}
case 18:
{
java.lang.String s = input.readStringRequireUtf8();
displayName_ = s;
break;
}
case 26:
{
java.lang.String s = input.readStringRequireUtf8();
defaultLanguageCode_ = s;
break;
}
case 34:
{
java.lang.String s = input.readStringRequireUtf8();
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
supportedLanguageCodes_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000001;
}
supportedLanguageCodes_.add(s);
break;
}
case 42:
{
java.lang.String s = input.readStringRequireUtf8();
timeZone_ = s;
break;
}
case 50:
{
java.lang.String s = input.readStringRequireUtf8();
description_ = s;
break;
}
case 58:
{
java.lang.String s = input.readStringRequireUtf8();
avatarUri_ = s;
break;
}
case 106:
{
com.google.cloud.dialogflow.cx.v3.SpeechToTextSettings.Builder subBuilder = null;
if (speechToTextSettings_ != null) {
subBuilder = speechToTextSettings_.toBuilder();
}
speechToTextSettings_ =
input.readMessage(
com.google.cloud.dialogflow.cx.v3.SpeechToTextSettings.parser(),
extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(speechToTextSettings_);
speechToTextSettings_ = subBuilder.buildPartial();
}
break;
}
case 130:
{
java.lang.String s = input.readStringRequireUtf8();
startFlow_ = s;
break;
}
case 138:
{
java.lang.String s = input.readStringRequireUtf8();
securitySettings_ = s;
break;
}
case 144:
{
enableStackdriverLogging_ = input.readBool();
break;
}
case 160:
{
enableSpellCorrection_ = input.readBool();
break;
}
case 178:
{
com.google.cloud.dialogflow.cx.v3.AdvancedSettings.Builder subBuilder = null;
if (advancedSettings_ != null) {
subBuilder = advancedSettings_.toBuilder();
}
advancedSettings_ =
input.readMessage(
com.google.cloud.dialogflow.cx.v3.AdvancedSettings.parser(),
extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(advancedSettings_);
advancedSettings_ = subBuilder.buildPartial();
}
break;
}
default:
{
if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
supportedLanguageCodes_ = supportedLanguageCodes_.getUnmodifiableView();
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.dialogflow.cx.v3.AgentProto
.internal_static_google_cloud_dialogflow_cx_v3_Agent_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.dialogflow.cx.v3.AgentProto
.internal_static_google_cloud_dialogflow_cx_v3_Agent_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.dialogflow.cx.v3.Agent.class,
com.google.cloud.dialogflow.cx.v3.Agent.Builder.class);
}
public static final int NAME_FIELD_NUMBER = 1;
private volatile java.lang.Object name_;
/**
*
*
*
* The unique identifier of the agent.
* Required for the [Agents.UpdateAgent][google.cloud.dialogflow.cx.v3.Agents.UpdateAgent] method. [Agents.CreateAgent][google.cloud.dialogflow.cx.v3.Agents.CreateAgent]
* populates the name automatically.
* Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>`.
*
*
* string name = 1;
*
* @return The name.
*/
@java.lang.Override
public java.lang.String getName() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
}
}
/**
*
*
*
* The unique identifier of the agent.
* Required for the [Agents.UpdateAgent][google.cloud.dialogflow.cx.v3.Agents.UpdateAgent] method. [Agents.CreateAgent][google.cloud.dialogflow.cx.v3.Agents.CreateAgent]
* populates the name automatically.
* Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>`.
*
*
* string name = 1;
*
* @return The bytes for name.
*/
@java.lang.Override
public com.google.protobuf.ByteString getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int DISPLAY_NAME_FIELD_NUMBER = 2;
private volatile java.lang.Object displayName_;
/**
*
*
*
* Required. The human-readable name of the agent, unique within the location.
*
*
* string display_name = 2 [(.google.api.field_behavior) = REQUIRED];
*
* @return The displayName.
*/
@java.lang.Override
public java.lang.String getDisplayName() {
java.lang.Object ref = displayName_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
displayName_ = s;
return s;
}
}
/**
*
*
*
* Required. The human-readable name of the agent, unique within the location.
*
*
* string display_name = 2 [(.google.api.field_behavior) = REQUIRED];
*
* @return The bytes for displayName.
*/
@java.lang.Override
public com.google.protobuf.ByteString getDisplayNameBytes() {
java.lang.Object ref = displayName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
displayName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int DEFAULT_LANGUAGE_CODE_FIELD_NUMBER = 3;
private volatile java.lang.Object defaultLanguageCode_;
/**
*
*
*
* Required. Immutable. The default language of the agent as a language tag.
* See [Language
* Support](https://cloud.google.com/dialogflow/cx/docs/reference/language)
* for a list of the currently supported language codes.
* This field cannot be set by the [Agents.UpdateAgent][google.cloud.dialogflow.cx.v3.Agents.UpdateAgent] method.
*
*
*
* string default_language_code = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
*
*
* @return The defaultLanguageCode.
*/
@java.lang.Override
public java.lang.String getDefaultLanguageCode() {
java.lang.Object ref = defaultLanguageCode_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
defaultLanguageCode_ = s;
return s;
}
}
/**
*
*
*
* Required. Immutable. The default language of the agent as a language tag.
* See [Language
* Support](https://cloud.google.com/dialogflow/cx/docs/reference/language)
* for a list of the currently supported language codes.
* This field cannot be set by the [Agents.UpdateAgent][google.cloud.dialogflow.cx.v3.Agents.UpdateAgent] method.
*
*
*
* string default_language_code = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
*
*
* @return The bytes for defaultLanguageCode.
*/
@java.lang.Override
public com.google.protobuf.ByteString getDefaultLanguageCodeBytes() {
java.lang.Object ref = defaultLanguageCode_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
defaultLanguageCode_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int SUPPORTED_LANGUAGE_CODES_FIELD_NUMBER = 4;
private com.google.protobuf.LazyStringList supportedLanguageCodes_;
/**
*
*
*
* The list of all languages supported by the agent (except for the
* `default_language_code`).
*
*
* repeated string supported_language_codes = 4;
*
* @return A list containing the supportedLanguageCodes.
*/
public com.google.protobuf.ProtocolStringList getSupportedLanguageCodesList() {
return supportedLanguageCodes_;
}
/**
*
*
*
* The list of all languages supported by the agent (except for the
* `default_language_code`).
*
*
* repeated string supported_language_codes = 4;
*
* @return The count of supportedLanguageCodes.
*/
public int getSupportedLanguageCodesCount() {
return supportedLanguageCodes_.size();
}
/**
*
*
*
* The list of all languages supported by the agent (except for the
* `default_language_code`).
*
*
* repeated string supported_language_codes = 4;
*
* @param index The index of the element to return.
* @return The supportedLanguageCodes at the given index.
*/
public java.lang.String getSupportedLanguageCodes(int index) {
return supportedLanguageCodes_.get(index);
}
/**
*
*
*
* The list of all languages supported by the agent (except for the
* `default_language_code`).
*
*
* repeated string supported_language_codes = 4;
*
* @param index The index of the value to return.
* @return The bytes of the supportedLanguageCodes at the given index.
*/
public com.google.protobuf.ByteString getSupportedLanguageCodesBytes(int index) {
return supportedLanguageCodes_.getByteString(index);
}
public static final int TIME_ZONE_FIELD_NUMBER = 5;
private volatile java.lang.Object timeZone_;
/**
*
*
*
* Required. The time zone of the agent from the [time zone
* database](https://www.iana.org/time-zones), e.g., America/New_York,
* Europe/Paris.
*
*
* string time_zone = 5 [(.google.api.field_behavior) = REQUIRED];
*
* @return The timeZone.
*/
@java.lang.Override
public java.lang.String getTimeZone() {
java.lang.Object ref = timeZone_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
timeZone_ = s;
return s;
}
}
/**
*
*
*
* Required. The time zone of the agent from the [time zone
* database](https://www.iana.org/time-zones), e.g., America/New_York,
* Europe/Paris.
*
*
* string time_zone = 5 [(.google.api.field_behavior) = REQUIRED];
*
* @return The bytes for timeZone.
*/
@java.lang.Override
public com.google.protobuf.ByteString getTimeZoneBytes() {
java.lang.Object ref = timeZone_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
timeZone_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int DESCRIPTION_FIELD_NUMBER = 6;
private volatile java.lang.Object description_;
/**
*
*
*
* The description of the agent. The maximum length is 500 characters. If
* exceeded, the request is rejected.
*
*
* string description = 6;
*
* @return The description.
*/
@java.lang.Override
public java.lang.String getDescription() {
java.lang.Object ref = description_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
description_ = s;
return s;
}
}
/**
*
*
*
* The description of the agent. The maximum length is 500 characters. If
* exceeded, the request is rejected.
*
*
* string description = 6;
*
* @return The bytes for description.
*/
@java.lang.Override
public com.google.protobuf.ByteString getDescriptionBytes() {
java.lang.Object ref = description_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
description_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int AVATAR_URI_FIELD_NUMBER = 7;
private volatile java.lang.Object avatarUri_;
/**
*
*
*
* The URI of the agent's avatar. Avatars are used throughout the Dialogflow
* console and in the self-hosted [Web
* Demo](https://cloud.google.com/dialogflow/docs/integrations/web-demo)
* integration.
*
*
* string avatar_uri = 7;
*
* @return The avatarUri.
*/
@java.lang.Override
public java.lang.String getAvatarUri() {
java.lang.Object ref = avatarUri_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
avatarUri_ = s;
return s;
}
}
/**
*
*
*
* The URI of the agent's avatar. Avatars are used throughout the Dialogflow
* console and in the self-hosted [Web
* Demo](https://cloud.google.com/dialogflow/docs/integrations/web-demo)
* integration.
*
*
* string avatar_uri = 7;
*
* @return The bytes for avatarUri.
*/
@java.lang.Override
public com.google.protobuf.ByteString getAvatarUriBytes() {
java.lang.Object ref = avatarUri_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
avatarUri_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int SPEECH_TO_TEXT_SETTINGS_FIELD_NUMBER = 13;
private com.google.cloud.dialogflow.cx.v3.SpeechToTextSettings speechToTextSettings_;
/**
*
*
*
* Speech recognition related settings.
*
*
* .google.cloud.dialogflow.cx.v3.SpeechToTextSettings speech_to_text_settings = 13;
*
* @return Whether the speechToTextSettings field is set.
*/
@java.lang.Override
public boolean hasSpeechToTextSettings() {
return speechToTextSettings_ != null;
}
/**
*
*
*
* Speech recognition related settings.
*
*
* .google.cloud.dialogflow.cx.v3.SpeechToTextSettings speech_to_text_settings = 13;
*
* @return The speechToTextSettings.
*/
@java.lang.Override
public com.google.cloud.dialogflow.cx.v3.SpeechToTextSettings getSpeechToTextSettings() {
return speechToTextSettings_ == null
? com.google.cloud.dialogflow.cx.v3.SpeechToTextSettings.getDefaultInstance()
: speechToTextSettings_;
}
/**
*
*
*
* Speech recognition related settings.
*
*
* .google.cloud.dialogflow.cx.v3.SpeechToTextSettings speech_to_text_settings = 13;
*/
@java.lang.Override
public com.google.cloud.dialogflow.cx.v3.SpeechToTextSettingsOrBuilder
getSpeechToTextSettingsOrBuilder() {
return getSpeechToTextSettings();
}
public static final int START_FLOW_FIELD_NUMBER = 16;
private volatile java.lang.Object startFlow_;
/**
*
*
*
* Immutable. Name of the start flow in this agent. A start flow will be automatically
* created when the agent is created, and can only be deleted by deleting the
* agent.
* Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
* ID>/flows/<Flow ID>`.
*
*
*
* string start_flow = 16 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
*
*
* @return The startFlow.
*/
@java.lang.Override
public java.lang.String getStartFlow() {
java.lang.Object ref = startFlow_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
startFlow_ = s;
return s;
}
}
/**
*
*
*
* Immutable. Name of the start flow in this agent. A start flow will be automatically
* created when the agent is created, and can only be deleted by deleting the
* agent.
* Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
* ID>/flows/<Flow ID>`.
*
*
*
* string start_flow = 16 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
*
*
* @return The bytes for startFlow.
*/
@java.lang.Override
public com.google.protobuf.ByteString getStartFlowBytes() {
java.lang.Object ref = startFlow_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
startFlow_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int SECURITY_SETTINGS_FIELD_NUMBER = 17;
private volatile java.lang.Object securitySettings_;
/**
*
*
*
* Name of the [SecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettings] reference for the agent.
* Format: `projects/<Project ID>/locations/<Location
* ID>/securitySettings/<Security Settings ID>`.
*
*
* string security_settings = 17 [(.google.api.resource_reference) = { ... }
*
* @return The securitySettings.
*/
@java.lang.Override
public java.lang.String getSecuritySettings() {
java.lang.Object ref = securitySettings_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
securitySettings_ = s;
return s;
}
}
/**
*
*
*
* Name of the [SecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettings] reference for the agent.
* Format: `projects/<Project ID>/locations/<Location
* ID>/securitySettings/<Security Settings ID>`.
*
*
* string security_settings = 17 [(.google.api.resource_reference) = { ... }
*
* @return The bytes for securitySettings.
*/
@java.lang.Override
public com.google.protobuf.ByteString getSecuritySettingsBytes() {
java.lang.Object ref = securitySettings_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
securitySettings_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ENABLE_STACKDRIVER_LOGGING_FIELD_NUMBER = 18;
private boolean enableStackdriverLogging_;
/**
*
*
*
* Indicates if stackdriver logging is enabled for the agent.
* Please use [agent.advanced_settings][google.cloud.dialogflow.cx.v3.AdvancedSettings.LoggingSettings]
* instead.
*
*
* bool enable_stackdriver_logging = 18 [deprecated = true];
*
* @return The enableStackdriverLogging.
*/
@java.lang.Override
@java.lang.Deprecated
public boolean getEnableStackdriverLogging() {
return enableStackdriverLogging_;
}
public static final int ENABLE_SPELL_CORRECTION_FIELD_NUMBER = 20;
private boolean enableSpellCorrection_;
/**
*
*
*
* Indicates if automatic spell correction is enabled in detect intent
* requests.
*
*
* bool enable_spell_correction = 20;
*
* @return The enableSpellCorrection.
*/
@java.lang.Override
public boolean getEnableSpellCorrection() {
return enableSpellCorrection_;
}
public static final int ADVANCED_SETTINGS_FIELD_NUMBER = 22;
private com.google.cloud.dialogflow.cx.v3.AdvancedSettings advancedSettings_;
/**
*
*
*
* Hierarchical advanced settings for this agent. The settings exposed at the
* lower level overrides the settings exposed at the higher level.
*
*
* .google.cloud.dialogflow.cx.v3.AdvancedSettings advanced_settings = 22;
*
* @return Whether the advancedSettings field is set.
*/
@java.lang.Override
public boolean hasAdvancedSettings() {
return advancedSettings_ != null;
}
/**
*
*
*
* Hierarchical advanced settings for this agent. The settings exposed at the
* lower level overrides the settings exposed at the higher level.
*
*
* .google.cloud.dialogflow.cx.v3.AdvancedSettings advanced_settings = 22;
*
* @return The advancedSettings.
*/
@java.lang.Override
public com.google.cloud.dialogflow.cx.v3.AdvancedSettings getAdvancedSettings() {
return advancedSettings_ == null
? com.google.cloud.dialogflow.cx.v3.AdvancedSettings.getDefaultInstance()
: advancedSettings_;
}
/**
*
*
*
* Hierarchical advanced settings for this agent. The settings exposed at the
* lower level overrides the settings exposed at the higher level.
*
*
* .google.cloud.dialogflow.cx.v3.AdvancedSettings advanced_settings = 22;
*/
@java.lang.Override
public com.google.cloud.dialogflow.cx.v3.AdvancedSettingsOrBuilder
getAdvancedSettingsOrBuilder() {
return getAdvancedSettings();
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
if (!getNameBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
}
if (!getDisplayNameBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, displayName_);
}
if (!getDefaultLanguageCodeBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, defaultLanguageCode_);
}
for (int i = 0; i < supportedLanguageCodes_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(
output, 4, supportedLanguageCodes_.getRaw(i));
}
if (!getTimeZoneBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, timeZone_);
}
if (!getDescriptionBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 6, description_);
}
if (!getAvatarUriBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 7, avatarUri_);
}
if (speechToTextSettings_ != null) {
output.writeMessage(13, getSpeechToTextSettings());
}
if (!getStartFlowBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 16, startFlow_);
}
if (!getSecuritySettingsBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 17, securitySettings_);
}
if (enableStackdriverLogging_ != false) {
output.writeBool(18, enableStackdriverLogging_);
}
if (enableSpellCorrection_ != false) {
output.writeBool(20, enableSpellCorrection_);
}
if (advancedSettings_ != null) {
output.writeMessage(22, getAdvancedSettings());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getNameBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
}
if (!getDisplayNameBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_);
}
if (!getDefaultLanguageCodeBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, defaultLanguageCode_);
}
{
int dataSize = 0;
for (int i = 0; i < supportedLanguageCodes_.size(); i++) {
dataSize += computeStringSizeNoTag(supportedLanguageCodes_.getRaw(i));
}
size += dataSize;
size += 1 * getSupportedLanguageCodesList().size();
}
if (!getTimeZoneBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, timeZone_);
}
if (!getDescriptionBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, description_);
}
if (!getAvatarUriBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, avatarUri_);
}
if (speechToTextSettings_ != null) {
size +=
com.google.protobuf.CodedOutputStream.computeMessageSize(13, getSpeechToTextSettings());
}
if (!getStartFlowBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(16, startFlow_);
}
if (!getSecuritySettingsBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(17, securitySettings_);
}
if (enableStackdriverLogging_ != false) {
size += com.google.protobuf.CodedOutputStream.computeBoolSize(18, enableStackdriverLogging_);
}
if (enableSpellCorrection_ != false) {
size += com.google.protobuf.CodedOutputStream.computeBoolSize(20, enableSpellCorrection_);
}
if (advancedSettings_ != null) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(22, getAdvancedSettings());
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.google.cloud.dialogflow.cx.v3.Agent)) {
return super.equals(obj);
}
com.google.cloud.dialogflow.cx.v3.Agent other = (com.google.cloud.dialogflow.cx.v3.Agent) obj;
if (!getName().equals(other.getName())) return false;
if (!getDisplayName().equals(other.getDisplayName())) return false;
if (!getDefaultLanguageCode().equals(other.getDefaultLanguageCode())) return false;
if (!getSupportedLanguageCodesList().equals(other.getSupportedLanguageCodesList()))
return false;
if (!getTimeZone().equals(other.getTimeZone())) return false;
if (!getDescription().equals(other.getDescription())) return false;
if (!getAvatarUri().equals(other.getAvatarUri())) return false;
if (hasSpeechToTextSettings() != other.hasSpeechToTextSettings()) return false;
if (hasSpeechToTextSettings()) {
if (!getSpeechToTextSettings().equals(other.getSpeechToTextSettings())) return false;
}
if (!getStartFlow().equals(other.getStartFlow())) return false;
if (!getSecuritySettings().equals(other.getSecuritySettings())) return false;
if (getEnableStackdriverLogging() != other.getEnableStackdriverLogging()) return false;
if (getEnableSpellCorrection() != other.getEnableSpellCorrection()) return false;
if (hasAdvancedSettings() != other.hasAdvancedSettings()) return false;
if (hasAdvancedSettings()) {
if (!getAdvancedSettings().equals(other.getAdvancedSettings())) return false;
}
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER;
hash = (53 * hash) + getDisplayName().hashCode();
hash = (37 * hash) + DEFAULT_LANGUAGE_CODE_FIELD_NUMBER;
hash = (53 * hash) + getDefaultLanguageCode().hashCode();
if (getSupportedLanguageCodesCount() > 0) {
hash = (37 * hash) + SUPPORTED_LANGUAGE_CODES_FIELD_NUMBER;
hash = (53 * hash) + getSupportedLanguageCodesList().hashCode();
}
hash = (37 * hash) + TIME_ZONE_FIELD_NUMBER;
hash = (53 * hash) + getTimeZone().hashCode();
hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER;
hash = (53 * hash) + getDescription().hashCode();
hash = (37 * hash) + AVATAR_URI_FIELD_NUMBER;
hash = (53 * hash) + getAvatarUri().hashCode();
if (hasSpeechToTextSettings()) {
hash = (37 * hash) + SPEECH_TO_TEXT_SETTINGS_FIELD_NUMBER;
hash = (53 * hash) + getSpeechToTextSettings().hashCode();
}
hash = (37 * hash) + START_FLOW_FIELD_NUMBER;
hash = (53 * hash) + getStartFlow().hashCode();
hash = (37 * hash) + SECURITY_SETTINGS_FIELD_NUMBER;
hash = (53 * hash) + getSecuritySettings().hashCode();
hash = (37 * hash) + ENABLE_STACKDRIVER_LOGGING_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableStackdriverLogging());
hash = (37 * hash) + ENABLE_SPELL_CORRECTION_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableSpellCorrection());
if (hasAdvancedSettings()) {
hash = (37 * hash) + ADVANCED_SETTINGS_FIELD_NUMBER;
hash = (53 * hash) + getAdvancedSettings().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.cloud.dialogflow.cx.v3.Agent parseFrom(java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.dialogflow.cx.v3.Agent parseFrom(
java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.cloud.dialogflow.cx.v3.Agent parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.dialogflow.cx.v3.Agent parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.cloud.dialogflow.cx.v3.Agent parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.dialogflow.cx.v3.Agent parseFrom(
byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.cloud.dialogflow.cx.v3.Agent parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.cloud.dialogflow.cx.v3.Agent parseFrom(
java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
PARSER, input, extensionRegistry);
}
public static com.google.cloud.dialogflow.cx.v3.Agent parseDelimitedFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.cloud.dialogflow.cx.v3.Agent parseDelimitedFrom(
java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
PARSER, input, extensionRegistry);
}
public static com.google.cloud.dialogflow.cx.v3.Agent parseFrom(
com.google.protobuf.CodedInputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.cloud.dialogflow.cx.v3.Agent parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() {
return newBuilder();
}
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.google.cloud.dialogflow.cx.v3.Agent prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
*
*
* Agents are best described as Natural Language Understanding (NLU) modules
* that transform user requests into actionable data. You can include agents
* in your app, product, or service to determine user intent and respond to the
* user in a natural way.
* After you create an agent, you can add [Intents][google.cloud.dialogflow.cx.v3.Intent],
* [Entity Types][google.cloud.dialogflow.cx.v3.EntityType], [Flows][google.cloud.dialogflow.cx.v3.Flow], [Fulfillments][google.cloud.dialogflow.cx.v3.Fulfillment],
* [Webhooks][google.cloud.dialogflow.cx.v3.Webhook], and so on to manage the conversation flows..
*
*
* Protobuf type {@code google.cloud.dialogflow.cx.v3.Agent}
*/
public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.cx.v3.Agent)
com.google.cloud.dialogflow.cx.v3.AgentOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.dialogflow.cx.v3.AgentProto
.internal_static_google_cloud_dialogflow_cx_v3_Agent_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.dialogflow.cx.v3.AgentProto
.internal_static_google_cloud_dialogflow_cx_v3_Agent_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.dialogflow.cx.v3.Agent.class,
com.google.cloud.dialogflow.cx.v3.Agent.Builder.class);
}
// Construct using com.google.cloud.dialogflow.cx.v3.Agent.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
}
@java.lang.Override
public Builder clear() {
super.clear();
name_ = "";
displayName_ = "";
defaultLanguageCode_ = "";
supportedLanguageCodes_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
timeZone_ = "";
description_ = "";
avatarUri_ = "";
if (speechToTextSettingsBuilder_ == null) {
speechToTextSettings_ = null;
} else {
speechToTextSettings_ = null;
speechToTextSettingsBuilder_ = null;
}
startFlow_ = "";
securitySettings_ = "";
enableStackdriverLogging_ = false;
enableSpellCorrection_ = false;
if (advancedSettingsBuilder_ == null) {
advancedSettings_ = null;
} else {
advancedSettings_ = null;
advancedSettingsBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return com.google.cloud.dialogflow.cx.v3.AgentProto
.internal_static_google_cloud_dialogflow_cx_v3_Agent_descriptor;
}
@java.lang.Override
public com.google.cloud.dialogflow.cx.v3.Agent getDefaultInstanceForType() {
return com.google.cloud.dialogflow.cx.v3.Agent.getDefaultInstance();
}
@java.lang.Override
public com.google.cloud.dialogflow.cx.v3.Agent build() {
com.google.cloud.dialogflow.cx.v3.Agent result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.cloud.dialogflow.cx.v3.Agent buildPartial() {
com.google.cloud.dialogflow.cx.v3.Agent result =
new com.google.cloud.dialogflow.cx.v3.Agent(this);
int from_bitField0_ = bitField0_;
result.name_ = name_;
result.displayName_ = displayName_;
result.defaultLanguageCode_ = defaultLanguageCode_;
if (((bitField0_ & 0x00000001) != 0)) {
supportedLanguageCodes_ = supportedLanguageCodes_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000001);
}
result.supportedLanguageCodes_ = supportedLanguageCodes_;
result.timeZone_ = timeZone_;
result.description_ = description_;
result.avatarUri_ = avatarUri_;
if (speechToTextSettingsBuilder_ == null) {
result.speechToTextSettings_ = speechToTextSettings_;
} else {
result.speechToTextSettings_ = speechToTextSettingsBuilder_.build();
}
result.startFlow_ = startFlow_;
result.securitySettings_ = securitySettings_;
result.enableStackdriverLogging_ = enableStackdriverLogging_;
result.enableSpellCorrection_ = enableSpellCorrection_;
if (advancedSettingsBuilder_ == null) {
result.advancedSettings_ = advancedSettings_;
} else {
result.advancedSettings_ = advancedSettingsBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.google.cloud.dialogflow.cx.v3.Agent) {
return mergeFrom((com.google.cloud.dialogflow.cx.v3.Agent) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.Agent other) {
if (other == com.google.cloud.dialogflow.cx.v3.Agent.getDefaultInstance()) return this;
if (!other.getName().isEmpty()) {
name_ = other.name_;
onChanged();
}
if (!other.getDisplayName().isEmpty()) {
displayName_ = other.displayName_;
onChanged();
}
if (!other.getDefaultLanguageCode().isEmpty()) {
defaultLanguageCode_ = other.defaultLanguageCode_;
onChanged();
}
if (!other.supportedLanguageCodes_.isEmpty()) {
if (supportedLanguageCodes_.isEmpty()) {
supportedLanguageCodes_ = other.supportedLanguageCodes_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureSupportedLanguageCodesIsMutable();
supportedLanguageCodes_.addAll(other.supportedLanguageCodes_);
}
onChanged();
}
if (!other.getTimeZone().isEmpty()) {
timeZone_ = other.timeZone_;
onChanged();
}
if (!other.getDescription().isEmpty()) {
description_ = other.description_;
onChanged();
}
if (!other.getAvatarUri().isEmpty()) {
avatarUri_ = other.avatarUri_;
onChanged();
}
if (other.hasSpeechToTextSettings()) {
mergeSpeechToTextSettings(other.getSpeechToTextSettings());
}
if (!other.getStartFlow().isEmpty()) {
startFlow_ = other.startFlow_;
onChanged();
}
if (!other.getSecuritySettings().isEmpty()) {
securitySettings_ = other.securitySettings_;
onChanged();
}
if (other.getEnableStackdriverLogging() != false) {
setEnableStackdriverLogging(other.getEnableStackdriverLogging());
}
if (other.getEnableSpellCorrection() != false) {
setEnableSpellCorrection(other.getEnableSpellCorrection());
}
if (other.hasAdvancedSettings()) {
mergeAdvancedSettings(other.getAdvancedSettings());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.google.cloud.dialogflow.cx.v3.Agent parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.google.cloud.dialogflow.cx.v3.Agent) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object name_ = "";
/**
*
*
*
* The unique identifier of the agent.
* Required for the [Agents.UpdateAgent][google.cloud.dialogflow.cx.v3.Agents.UpdateAgent] method. [Agents.CreateAgent][google.cloud.dialogflow.cx.v3.Agents.CreateAgent]
* populates the name automatically.
* Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>`.
*
*
* string name = 1;
*
* @return The name.
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* The unique identifier of the agent.
* Required for the [Agents.UpdateAgent][google.cloud.dialogflow.cx.v3.Agents.UpdateAgent] method. [Agents.CreateAgent][google.cloud.dialogflow.cx.v3.Agents.CreateAgent]
* populates the name automatically.
* Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>`.
*
*
* string name = 1;
*
* @return The bytes for name.
*/
public com.google.protobuf.ByteString getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* The unique identifier of the agent.
* Required for the [Agents.UpdateAgent][google.cloud.dialogflow.cx.v3.Agents.UpdateAgent] method. [Agents.CreateAgent][google.cloud.dialogflow.cx.v3.Agents.CreateAgent]
* populates the name automatically.
* Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>`.
*
*
* string name = 1;
*
* @param value The name to set.
* @return This builder for chaining.
*/
public Builder setName(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
name_ = value;
onChanged();
return this;
}
/**
*
*
*
* The unique identifier of the agent.
* Required for the [Agents.UpdateAgent][google.cloud.dialogflow.cx.v3.Agents.UpdateAgent] method. [Agents.CreateAgent][google.cloud.dialogflow.cx.v3.Agents.CreateAgent]
* populates the name automatically.
* Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>`.
*
*
* string name = 1;
*
* @return This builder for chaining.
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
/**
*
*
*
* The unique identifier of the agent.
* Required for the [Agents.UpdateAgent][google.cloud.dialogflow.cx.v3.Agents.UpdateAgent] method. [Agents.CreateAgent][google.cloud.dialogflow.cx.v3.Agents.CreateAgent]
* populates the name automatically.
* Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>`.
*
*
* string name = 1;
*
* @param value The bytes for name to set.
* @return This builder for chaining.
*/
public Builder setNameBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
name_ = value;
onChanged();
return this;
}
private java.lang.Object displayName_ = "";
/**
*
*
*
* Required. The human-readable name of the agent, unique within the location.
*
*
* string display_name = 2 [(.google.api.field_behavior) = REQUIRED];
*
* @return The displayName.
*/
public java.lang.String getDisplayName() {
java.lang.Object ref = displayName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
displayName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* Required. The human-readable name of the agent, unique within the location.
*
*
* string display_name = 2 [(.google.api.field_behavior) = REQUIRED];
*
* @return The bytes for displayName.
*/
public com.google.protobuf.ByteString getDisplayNameBytes() {
java.lang.Object ref = displayName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
displayName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* Required. The human-readable name of the agent, unique within the location.
*
*
* string display_name = 2 [(.google.api.field_behavior) = REQUIRED];
*
* @param value The displayName to set.
* @return This builder for chaining.
*/
public Builder setDisplayName(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
displayName_ = value;
onChanged();
return this;
}
/**
*
*
*
* Required. The human-readable name of the agent, unique within the location.
*
*
* string display_name = 2 [(.google.api.field_behavior) = REQUIRED];
*
* @return This builder for chaining.
*/
public Builder clearDisplayName() {
displayName_ = getDefaultInstance().getDisplayName();
onChanged();
return this;
}
/**
*
*
*
* Required. The human-readable name of the agent, unique within the location.
*
*
* string display_name = 2 [(.google.api.field_behavior) = REQUIRED];
*
* @param value The bytes for displayName to set.
* @return This builder for chaining.
*/
public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
displayName_ = value;
onChanged();
return this;
}
private java.lang.Object defaultLanguageCode_ = "";
/**
*
*
*
* Required. Immutable. The default language of the agent as a language tag.
* See [Language
* Support](https://cloud.google.com/dialogflow/cx/docs/reference/language)
* for a list of the currently supported language codes.
* This field cannot be set by the [Agents.UpdateAgent][google.cloud.dialogflow.cx.v3.Agents.UpdateAgent] method.
*
*
*
* string default_language_code = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
*
*
* @return The defaultLanguageCode.
*/
public java.lang.String getDefaultLanguageCode() {
java.lang.Object ref = defaultLanguageCode_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
defaultLanguageCode_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* Required. Immutable. The default language of the agent as a language tag.
* See [Language
* Support](https://cloud.google.com/dialogflow/cx/docs/reference/language)
* for a list of the currently supported language codes.
* This field cannot be set by the [Agents.UpdateAgent][google.cloud.dialogflow.cx.v3.Agents.UpdateAgent] method.
*
*
*
* string default_language_code = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
*
*
* @return The bytes for defaultLanguageCode.
*/
public com.google.protobuf.ByteString getDefaultLanguageCodeBytes() {
java.lang.Object ref = defaultLanguageCode_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
defaultLanguageCode_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* Required. Immutable. The default language of the agent as a language tag.
* See [Language
* Support](https://cloud.google.com/dialogflow/cx/docs/reference/language)
* for a list of the currently supported language codes.
* This field cannot be set by the [Agents.UpdateAgent][google.cloud.dialogflow.cx.v3.Agents.UpdateAgent] method.
*
*
*
* string default_language_code = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
*
*
* @param value The defaultLanguageCode to set.
* @return This builder for chaining.
*/
public Builder setDefaultLanguageCode(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
defaultLanguageCode_ = value;
onChanged();
return this;
}
/**
*
*
*
* Required. Immutable. The default language of the agent as a language tag.
* See [Language
* Support](https://cloud.google.com/dialogflow/cx/docs/reference/language)
* for a list of the currently supported language codes.
* This field cannot be set by the [Agents.UpdateAgent][google.cloud.dialogflow.cx.v3.Agents.UpdateAgent] method.
*
*
*
* string default_language_code = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
*
*
* @return This builder for chaining.
*/
public Builder clearDefaultLanguageCode() {
defaultLanguageCode_ = getDefaultInstance().getDefaultLanguageCode();
onChanged();
return this;
}
/**
*
*
*
* Required. Immutable. The default language of the agent as a language tag.
* See [Language
* Support](https://cloud.google.com/dialogflow/cx/docs/reference/language)
* for a list of the currently supported language codes.
* This field cannot be set by the [Agents.UpdateAgent][google.cloud.dialogflow.cx.v3.Agents.UpdateAgent] method.
*
*
*
* string default_language_code = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
*
*
* @param value The bytes for defaultLanguageCode to set.
* @return This builder for chaining.
*/
public Builder setDefaultLanguageCodeBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
defaultLanguageCode_ = value;
onChanged();
return this;
}
private com.google.protobuf.LazyStringList supportedLanguageCodes_ =
com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureSupportedLanguageCodesIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
supportedLanguageCodes_ =
new com.google.protobuf.LazyStringArrayList(supportedLanguageCodes_);
bitField0_ |= 0x00000001;
}
}
/**
*
*
*
* The list of all languages supported by the agent (except for the
* `default_language_code`).
*
*
* repeated string supported_language_codes = 4;
*
* @return A list containing the supportedLanguageCodes.
*/
public com.google.protobuf.ProtocolStringList getSupportedLanguageCodesList() {
return supportedLanguageCodes_.getUnmodifiableView();
}
/**
*
*
*
* The list of all languages supported by the agent (except for the
* `default_language_code`).
*
*
* repeated string supported_language_codes = 4;
*
* @return The count of supportedLanguageCodes.
*/
public int getSupportedLanguageCodesCount() {
return supportedLanguageCodes_.size();
}
/**
*
*
*
* The list of all languages supported by the agent (except for the
* `default_language_code`).
*
*
* repeated string supported_language_codes = 4;
*
* @param index The index of the element to return.
* @return The supportedLanguageCodes at the given index.
*/
public java.lang.String getSupportedLanguageCodes(int index) {
return supportedLanguageCodes_.get(index);
}
/**
*
*
*
* The list of all languages supported by the agent (except for the
* `default_language_code`).
*
*
* repeated string supported_language_codes = 4;
*
* @param index The index of the value to return.
* @return The bytes of the supportedLanguageCodes at the given index.
*/
public com.google.protobuf.ByteString getSupportedLanguageCodesBytes(int index) {
return supportedLanguageCodes_.getByteString(index);
}
/**
*
*
*
* The list of all languages supported by the agent (except for the
* `default_language_code`).
*
*
* repeated string supported_language_codes = 4;
*
* @param index The index to set the value at.
* @param value The supportedLanguageCodes to set.
* @return This builder for chaining.
*/
public Builder setSupportedLanguageCodes(int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureSupportedLanguageCodesIsMutable();
supportedLanguageCodes_.set(index, value);
onChanged();
return this;
}
/**
*
*
*
* The list of all languages supported by the agent (except for the
* `default_language_code`).
*
*
* repeated string supported_language_codes = 4;
*
* @param value The supportedLanguageCodes to add.
* @return This builder for chaining.
*/
public Builder addSupportedLanguageCodes(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureSupportedLanguageCodesIsMutable();
supportedLanguageCodes_.add(value);
onChanged();
return this;
}
/**
*
*
*
* The list of all languages supported by the agent (except for the
* `default_language_code`).
*
*
* repeated string supported_language_codes = 4;
*
* @param values The supportedLanguageCodes to add.
* @return This builder for chaining.
*/
public Builder addAllSupportedLanguageCodes(java.lang.Iterable values) {
ensureSupportedLanguageCodesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(values, supportedLanguageCodes_);
onChanged();
return this;
}
/**
*
*
*
* The list of all languages supported by the agent (except for the
* `default_language_code`).
*
*
* repeated string supported_language_codes = 4;
*
* @return This builder for chaining.
*/
public Builder clearSupportedLanguageCodes() {
supportedLanguageCodes_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
*
*
* The list of all languages supported by the agent (except for the
* `default_language_code`).
*
*
* repeated string supported_language_codes = 4;
*
* @param value The bytes of the supportedLanguageCodes to add.
* @return This builder for chaining.
*/
public Builder addSupportedLanguageCodesBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureSupportedLanguageCodesIsMutable();
supportedLanguageCodes_.add(value);
onChanged();
return this;
}
private java.lang.Object timeZone_ = "";
/**
*
*
*
* Required. The time zone of the agent from the [time zone
* database](https://www.iana.org/time-zones), e.g., America/New_York,
* Europe/Paris.
*
*
* string time_zone = 5 [(.google.api.field_behavior) = REQUIRED];
*
* @return The timeZone.
*/
public java.lang.String getTimeZone() {
java.lang.Object ref = timeZone_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
timeZone_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* Required. The time zone of the agent from the [time zone
* database](https://www.iana.org/time-zones), e.g., America/New_York,
* Europe/Paris.
*
*
* string time_zone = 5 [(.google.api.field_behavior) = REQUIRED];
*
* @return The bytes for timeZone.
*/
public com.google.protobuf.ByteString getTimeZoneBytes() {
java.lang.Object ref = timeZone_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
timeZone_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* Required. The time zone of the agent from the [time zone
* database](https://www.iana.org/time-zones), e.g., America/New_York,
* Europe/Paris.
*
*
* string time_zone = 5 [(.google.api.field_behavior) = REQUIRED];
*
* @param value The timeZone to set.
* @return This builder for chaining.
*/
public Builder setTimeZone(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
timeZone_ = value;
onChanged();
return this;
}
/**
*
*
*
* Required. The time zone of the agent from the [time zone
* database](https://www.iana.org/time-zones), e.g., America/New_York,
* Europe/Paris.
*
*
* string time_zone = 5 [(.google.api.field_behavior) = REQUIRED];
*
* @return This builder for chaining.
*/
public Builder clearTimeZone() {
timeZone_ = getDefaultInstance().getTimeZone();
onChanged();
return this;
}
/**
*
*
*
* Required. The time zone of the agent from the [time zone
* database](https://www.iana.org/time-zones), e.g., America/New_York,
* Europe/Paris.
*
*
* string time_zone = 5 [(.google.api.field_behavior) = REQUIRED];
*
* @param value The bytes for timeZone to set.
* @return This builder for chaining.
*/
public Builder setTimeZoneBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
timeZone_ = value;
onChanged();
return this;
}
private java.lang.Object description_ = "";
/**
*
*
*
* The description of the agent. The maximum length is 500 characters. If
* exceeded, the request is rejected.
*
*
* string description = 6;
*
* @return The description.
*/
public java.lang.String getDescription() {
java.lang.Object ref = description_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
description_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* The description of the agent. The maximum length is 500 characters. If
* exceeded, the request is rejected.
*
*
* string description = 6;
*
* @return The bytes for description.
*/
public com.google.protobuf.ByteString getDescriptionBytes() {
java.lang.Object ref = description_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
description_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* The description of the agent. The maximum length is 500 characters. If
* exceeded, the request is rejected.
*
*
* string description = 6;
*
* @param value The description to set.
* @return This builder for chaining.
*/
public Builder setDescription(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
description_ = value;
onChanged();
return this;
}
/**
*
*
*
* The description of the agent. The maximum length is 500 characters. If
* exceeded, the request is rejected.
*
*
* string description = 6;
*
* @return This builder for chaining.
*/
public Builder clearDescription() {
description_ = getDefaultInstance().getDescription();
onChanged();
return this;
}
/**
*
*
*
* The description of the agent. The maximum length is 500 characters. If
* exceeded, the request is rejected.
*
*
* string description = 6;
*
* @param value The bytes for description to set.
* @return This builder for chaining.
*/
public Builder setDescriptionBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
description_ = value;
onChanged();
return this;
}
private java.lang.Object avatarUri_ = "";
/**
*
*
*
* The URI of the agent's avatar. Avatars are used throughout the Dialogflow
* console and in the self-hosted [Web
* Demo](https://cloud.google.com/dialogflow/docs/integrations/web-demo)
* integration.
*
*
* string avatar_uri = 7;
*
* @return The avatarUri.
*/
public java.lang.String getAvatarUri() {
java.lang.Object ref = avatarUri_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
avatarUri_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* The URI of the agent's avatar. Avatars are used throughout the Dialogflow
* console and in the self-hosted [Web
* Demo](https://cloud.google.com/dialogflow/docs/integrations/web-demo)
* integration.
*
*
* string avatar_uri = 7;
*
* @return The bytes for avatarUri.
*/
public com.google.protobuf.ByteString getAvatarUriBytes() {
java.lang.Object ref = avatarUri_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
avatarUri_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* The URI of the agent's avatar. Avatars are used throughout the Dialogflow
* console and in the self-hosted [Web
* Demo](https://cloud.google.com/dialogflow/docs/integrations/web-demo)
* integration.
*
*
* string avatar_uri = 7;
*
* @param value The avatarUri to set.
* @return This builder for chaining.
*/
public Builder setAvatarUri(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
avatarUri_ = value;
onChanged();
return this;
}
/**
*
*
*
* The URI of the agent's avatar. Avatars are used throughout the Dialogflow
* console and in the self-hosted [Web
* Demo](https://cloud.google.com/dialogflow/docs/integrations/web-demo)
* integration.
*
*
* string avatar_uri = 7;
*
* @return This builder for chaining.
*/
public Builder clearAvatarUri() {
avatarUri_ = getDefaultInstance().getAvatarUri();
onChanged();
return this;
}
/**
*
*
*
* The URI of the agent's avatar. Avatars are used throughout the Dialogflow
* console and in the self-hosted [Web
* Demo](https://cloud.google.com/dialogflow/docs/integrations/web-demo)
* integration.
*
*
* string avatar_uri = 7;
*
* @param value The bytes for avatarUri to set.
* @return This builder for chaining.
*/
public Builder setAvatarUriBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
avatarUri_ = value;
onChanged();
return this;
}
private com.google.cloud.dialogflow.cx.v3.SpeechToTextSettings speechToTextSettings_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.dialogflow.cx.v3.SpeechToTextSettings,
com.google.cloud.dialogflow.cx.v3.SpeechToTextSettings.Builder,
com.google.cloud.dialogflow.cx.v3.SpeechToTextSettingsOrBuilder>
speechToTextSettingsBuilder_;
/**
*
*
*
* Speech recognition related settings.
*
*
* .google.cloud.dialogflow.cx.v3.SpeechToTextSettings speech_to_text_settings = 13;
*
*
* @return Whether the speechToTextSettings field is set.
*/
public boolean hasSpeechToTextSettings() {
return speechToTextSettingsBuilder_ != null || speechToTextSettings_ != null;
}
/**
*
*
*
* Speech recognition related settings.
*
*
* .google.cloud.dialogflow.cx.v3.SpeechToTextSettings speech_to_text_settings = 13;
*
*
* @return The speechToTextSettings.
*/
public com.google.cloud.dialogflow.cx.v3.SpeechToTextSettings getSpeechToTextSettings() {
if (speechToTextSettingsBuilder_ == null) {
return speechToTextSettings_ == null
? com.google.cloud.dialogflow.cx.v3.SpeechToTextSettings.getDefaultInstance()
: speechToTextSettings_;
} else {
return speechToTextSettingsBuilder_.getMessage();
}
}
/**
*
*
*
* Speech recognition related settings.
*
*
* .google.cloud.dialogflow.cx.v3.SpeechToTextSettings speech_to_text_settings = 13;
*
*/
public Builder setSpeechToTextSettings(
com.google.cloud.dialogflow.cx.v3.SpeechToTextSettings value) {
if (speechToTextSettingsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
speechToTextSettings_ = value;
onChanged();
} else {
speechToTextSettingsBuilder_.setMessage(value);
}
return this;
}
/**
*
*
*
* Speech recognition related settings.
*
*
* .google.cloud.dialogflow.cx.v3.SpeechToTextSettings speech_to_text_settings = 13;
*
*/
public Builder setSpeechToTextSettings(
com.google.cloud.dialogflow.cx.v3.SpeechToTextSettings.Builder builderForValue) {
if (speechToTextSettingsBuilder_ == null) {
speechToTextSettings_ = builderForValue.build();
onChanged();
} else {
speechToTextSettingsBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
*
*
* Speech recognition related settings.
*
*
* .google.cloud.dialogflow.cx.v3.SpeechToTextSettings speech_to_text_settings = 13;
*
*/
public Builder mergeSpeechToTextSettings(
com.google.cloud.dialogflow.cx.v3.SpeechToTextSettings value) {
if (speechToTextSettingsBuilder_ == null) {
if (speechToTextSettings_ != null) {
speechToTextSettings_ =
com.google.cloud.dialogflow.cx.v3.SpeechToTextSettings.newBuilder(
speechToTextSettings_)
.mergeFrom(value)
.buildPartial();
} else {
speechToTextSettings_ = value;
}
onChanged();
} else {
speechToTextSettingsBuilder_.mergeFrom(value);
}
return this;
}
/**
*
*
*
* Speech recognition related settings.
*
*
* .google.cloud.dialogflow.cx.v3.SpeechToTextSettings speech_to_text_settings = 13;
*
*/
public Builder clearSpeechToTextSettings() {
if (speechToTextSettingsBuilder_ == null) {
speechToTextSettings_ = null;
onChanged();
} else {
speechToTextSettings_ = null;
speechToTextSettingsBuilder_ = null;
}
return this;
}
/**
*
*
*
* Speech recognition related settings.
*
*
* .google.cloud.dialogflow.cx.v3.SpeechToTextSettings speech_to_text_settings = 13;
*
*/
public com.google.cloud.dialogflow.cx.v3.SpeechToTextSettings.Builder
getSpeechToTextSettingsBuilder() {
onChanged();
return getSpeechToTextSettingsFieldBuilder().getBuilder();
}
/**
*
*
*
* Speech recognition related settings.
*
*
* .google.cloud.dialogflow.cx.v3.SpeechToTextSettings speech_to_text_settings = 13;
*
*/
public com.google.cloud.dialogflow.cx.v3.SpeechToTextSettingsOrBuilder
getSpeechToTextSettingsOrBuilder() {
if (speechToTextSettingsBuilder_ != null) {
return speechToTextSettingsBuilder_.getMessageOrBuilder();
} else {
return speechToTextSettings_ == null
? com.google.cloud.dialogflow.cx.v3.SpeechToTextSettings.getDefaultInstance()
: speechToTextSettings_;
}
}
/**
*
*
*
* Speech recognition related settings.
*
*
* .google.cloud.dialogflow.cx.v3.SpeechToTextSettings speech_to_text_settings = 13;
*
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.dialogflow.cx.v3.SpeechToTextSettings,
com.google.cloud.dialogflow.cx.v3.SpeechToTextSettings.Builder,
com.google.cloud.dialogflow.cx.v3.SpeechToTextSettingsOrBuilder>
getSpeechToTextSettingsFieldBuilder() {
if (speechToTextSettingsBuilder_ == null) {
speechToTextSettingsBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.dialogflow.cx.v3.SpeechToTextSettings,
com.google.cloud.dialogflow.cx.v3.SpeechToTextSettings.Builder,
com.google.cloud.dialogflow.cx.v3.SpeechToTextSettingsOrBuilder>(
getSpeechToTextSettings(), getParentForChildren(), isClean());
speechToTextSettings_ = null;
}
return speechToTextSettingsBuilder_;
}
private java.lang.Object startFlow_ = "";
/**
*
*
*
* Immutable. Name of the start flow in this agent. A start flow will be automatically
* created when the agent is created, and can only be deleted by deleting the
* agent.
* Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
* ID>/flows/<Flow ID>`.
*
*
*
* string start_flow = 16 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
*
*
* @return The startFlow.
*/
public java.lang.String getStartFlow() {
java.lang.Object ref = startFlow_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
startFlow_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* Immutable. Name of the start flow in this agent. A start flow will be automatically
* created when the agent is created, and can only be deleted by deleting the
* agent.
* Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
* ID>/flows/<Flow ID>`.
*
*
*
* string start_flow = 16 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
*
*
* @return The bytes for startFlow.
*/
public com.google.protobuf.ByteString getStartFlowBytes() {
java.lang.Object ref = startFlow_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
startFlow_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* Immutable. Name of the start flow in this agent. A start flow will be automatically
* created when the agent is created, and can only be deleted by deleting the
* agent.
* Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
* ID>/flows/<Flow ID>`.
*
*
*
* string start_flow = 16 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
*
*
* @param value The startFlow to set.
* @return This builder for chaining.
*/
public Builder setStartFlow(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
startFlow_ = value;
onChanged();
return this;
}
/**
*
*
*
* Immutable. Name of the start flow in this agent. A start flow will be automatically
* created when the agent is created, and can only be deleted by deleting the
* agent.
* Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
* ID>/flows/<Flow ID>`.
*
*
*
* string start_flow = 16 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
*
*
* @return This builder for chaining.
*/
public Builder clearStartFlow() {
startFlow_ = getDefaultInstance().getStartFlow();
onChanged();
return this;
}
/**
*
*
*
* Immutable. Name of the start flow in this agent. A start flow will be automatically
* created when the agent is created, and can only be deleted by deleting the
* agent.
* Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
* ID>/flows/<Flow ID>`.
*
*
*
* string start_flow = 16 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
*
*
* @param value The bytes for startFlow to set.
* @return This builder for chaining.
*/
public Builder setStartFlowBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
startFlow_ = value;
onChanged();
return this;
}
private java.lang.Object securitySettings_ = "";
/**
*
*
*
* Name of the [SecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettings] reference for the agent.
* Format: `projects/<Project ID>/locations/<Location
* ID>/securitySettings/<Security Settings ID>`.
*
*
* string security_settings = 17 [(.google.api.resource_reference) = { ... }
*
* @return The securitySettings.
*/
public java.lang.String getSecuritySettings() {
java.lang.Object ref = securitySettings_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
securitySettings_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* Name of the [SecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettings] reference for the agent.
* Format: `projects/<Project ID>/locations/<Location
* ID>/securitySettings/<Security Settings ID>`.
*
*
* string security_settings = 17 [(.google.api.resource_reference) = { ... }
*
* @return The bytes for securitySettings.
*/
public com.google.protobuf.ByteString getSecuritySettingsBytes() {
java.lang.Object ref = securitySettings_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
securitySettings_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* Name of the [SecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettings] reference for the agent.
* Format: `projects/<Project ID>/locations/<Location
* ID>/securitySettings/<Security Settings ID>`.
*
*
* string security_settings = 17 [(.google.api.resource_reference) = { ... }
*
* @param value The securitySettings to set.
* @return This builder for chaining.
*/
public Builder setSecuritySettings(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
securitySettings_ = value;
onChanged();
return this;
}
/**
*
*
*
* Name of the [SecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettings] reference for the agent.
* Format: `projects/<Project ID>/locations/<Location
* ID>/securitySettings/<Security Settings ID>`.
*
*
* string security_settings = 17 [(.google.api.resource_reference) = { ... }
*
* @return This builder for chaining.
*/
public Builder clearSecuritySettings() {
securitySettings_ = getDefaultInstance().getSecuritySettings();
onChanged();
return this;
}
/**
*
*
*
* Name of the [SecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettings] reference for the agent.
* Format: `projects/<Project ID>/locations/<Location
* ID>/securitySettings/<Security Settings ID>`.
*
*
* string security_settings = 17 [(.google.api.resource_reference) = { ... }
*
* @param value The bytes for securitySettings to set.
* @return This builder for chaining.
*/
public Builder setSecuritySettingsBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
securitySettings_ = value;
onChanged();
return this;
}
private boolean enableStackdriverLogging_;
/**
*
*
*
* Indicates if stackdriver logging is enabled for the agent.
* Please use [agent.advanced_settings][google.cloud.dialogflow.cx.v3.AdvancedSettings.LoggingSettings]
* instead.
*
*
* bool enable_stackdriver_logging = 18 [deprecated = true];
*
* @return The enableStackdriverLogging.
*/
@java.lang.Override
@java.lang.Deprecated
public boolean getEnableStackdriverLogging() {
return enableStackdriverLogging_;
}
/**
*
*
*
* Indicates if stackdriver logging is enabled for the agent.
* Please use [agent.advanced_settings][google.cloud.dialogflow.cx.v3.AdvancedSettings.LoggingSettings]
* instead.
*
*
* bool enable_stackdriver_logging = 18 [deprecated = true];
*
* @param value The enableStackdriverLogging to set.
* @return This builder for chaining.
*/
@java.lang.Deprecated
public Builder setEnableStackdriverLogging(boolean value) {
enableStackdriverLogging_ = value;
onChanged();
return this;
}
/**
*
*
*
* Indicates if stackdriver logging is enabled for the agent.
* Please use [agent.advanced_settings][google.cloud.dialogflow.cx.v3.AdvancedSettings.LoggingSettings]
* instead.
*
*
* bool enable_stackdriver_logging = 18 [deprecated = true];
*
* @return This builder for chaining.
*/
@java.lang.Deprecated
public Builder clearEnableStackdriverLogging() {
enableStackdriverLogging_ = false;
onChanged();
return this;
}
private boolean enableSpellCorrection_;
/**
*
*
*
* Indicates if automatic spell correction is enabled in detect intent
* requests.
*
*
* bool enable_spell_correction = 20;
*
* @return The enableSpellCorrection.
*/
@java.lang.Override
public boolean getEnableSpellCorrection() {
return enableSpellCorrection_;
}
/**
*
*
*
* Indicates if automatic spell correction is enabled in detect intent
* requests.
*
*
* bool enable_spell_correction = 20;
*
* @param value The enableSpellCorrection to set.
* @return This builder for chaining.
*/
public Builder setEnableSpellCorrection(boolean value) {
enableSpellCorrection_ = value;
onChanged();
return this;
}
/**
*
*
*
* Indicates if automatic spell correction is enabled in detect intent
* requests.
*
*
* bool enable_spell_correction = 20;
*
* @return This builder for chaining.
*/
public Builder clearEnableSpellCorrection() {
enableSpellCorrection_ = false;
onChanged();
return this;
}
private com.google.cloud.dialogflow.cx.v3.AdvancedSettings advancedSettings_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.dialogflow.cx.v3.AdvancedSettings,
com.google.cloud.dialogflow.cx.v3.AdvancedSettings.Builder,
com.google.cloud.dialogflow.cx.v3.AdvancedSettingsOrBuilder>
advancedSettingsBuilder_;
/**
*
*
*
* Hierarchical advanced settings for this agent. The settings exposed at the
* lower level overrides the settings exposed at the higher level.
*
*
* .google.cloud.dialogflow.cx.v3.AdvancedSettings advanced_settings = 22;
*
* @return Whether the advancedSettings field is set.
*/
public boolean hasAdvancedSettings() {
return advancedSettingsBuilder_ != null || advancedSettings_ != null;
}
/**
*
*
*
* Hierarchical advanced settings for this agent. The settings exposed at the
* lower level overrides the settings exposed at the higher level.
*
*
* .google.cloud.dialogflow.cx.v3.AdvancedSettings advanced_settings = 22;
*
* @return The advancedSettings.
*/
public com.google.cloud.dialogflow.cx.v3.AdvancedSettings getAdvancedSettings() {
if (advancedSettingsBuilder_ == null) {
return advancedSettings_ == null
? com.google.cloud.dialogflow.cx.v3.AdvancedSettings.getDefaultInstance()
: advancedSettings_;
} else {
return advancedSettingsBuilder_.getMessage();
}
}
/**
*
*
*
* Hierarchical advanced settings for this agent. The settings exposed at the
* lower level overrides the settings exposed at the higher level.
*
*
* .google.cloud.dialogflow.cx.v3.AdvancedSettings advanced_settings = 22;
*/
public Builder setAdvancedSettings(com.google.cloud.dialogflow.cx.v3.AdvancedSettings value) {
if (advancedSettingsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
advancedSettings_ = value;
onChanged();
} else {
advancedSettingsBuilder_.setMessage(value);
}
return this;
}
/**
*
*
*
* Hierarchical advanced settings for this agent. The settings exposed at the
* lower level overrides the settings exposed at the higher level.
*
*
* .google.cloud.dialogflow.cx.v3.AdvancedSettings advanced_settings = 22;
*/
public Builder setAdvancedSettings(
com.google.cloud.dialogflow.cx.v3.AdvancedSettings.Builder builderForValue) {
if (advancedSettingsBuilder_ == null) {
advancedSettings_ = builderForValue.build();
onChanged();
} else {
advancedSettingsBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
*
*
* Hierarchical advanced settings for this agent. The settings exposed at the
* lower level overrides the settings exposed at the higher level.
*
*
* .google.cloud.dialogflow.cx.v3.AdvancedSettings advanced_settings = 22;
*/
public Builder mergeAdvancedSettings(com.google.cloud.dialogflow.cx.v3.AdvancedSettings value) {
if (advancedSettingsBuilder_ == null) {
if (advancedSettings_ != null) {
advancedSettings_ =
com.google.cloud.dialogflow.cx.v3.AdvancedSettings.newBuilder(advancedSettings_)
.mergeFrom(value)
.buildPartial();
} else {
advancedSettings_ = value;
}
onChanged();
} else {
advancedSettingsBuilder_.mergeFrom(value);
}
return this;
}
/**
*
*
*
* Hierarchical advanced settings for this agent. The settings exposed at the
* lower level overrides the settings exposed at the higher level.
*
*
* .google.cloud.dialogflow.cx.v3.AdvancedSettings advanced_settings = 22;
*/
public Builder clearAdvancedSettings() {
if (advancedSettingsBuilder_ == null) {
advancedSettings_ = null;
onChanged();
} else {
advancedSettings_ = null;
advancedSettingsBuilder_ = null;
}
return this;
}
/**
*
*
*
* Hierarchical advanced settings for this agent. The settings exposed at the
* lower level overrides the settings exposed at the higher level.
*
*
* .google.cloud.dialogflow.cx.v3.AdvancedSettings advanced_settings = 22;
*/
public com.google.cloud.dialogflow.cx.v3.AdvancedSettings.Builder getAdvancedSettingsBuilder() {
onChanged();
return getAdvancedSettingsFieldBuilder().getBuilder();
}
/**
*
*
*
* Hierarchical advanced settings for this agent. The settings exposed at the
* lower level overrides the settings exposed at the higher level.
*
*
* .google.cloud.dialogflow.cx.v3.AdvancedSettings advanced_settings = 22;
*/
public com.google.cloud.dialogflow.cx.v3.AdvancedSettingsOrBuilder
getAdvancedSettingsOrBuilder() {
if (advancedSettingsBuilder_ != null) {
return advancedSettingsBuilder_.getMessageOrBuilder();
} else {
return advancedSettings_ == null
? com.google.cloud.dialogflow.cx.v3.AdvancedSettings.getDefaultInstance()
: advancedSettings_;
}
}
/**
*
*
*
* Hierarchical advanced settings for this agent. The settings exposed at the
* lower level overrides the settings exposed at the higher level.
*
*
* .google.cloud.dialogflow.cx.v3.AdvancedSettings advanced_settings = 22;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.dialogflow.cx.v3.AdvancedSettings,
com.google.cloud.dialogflow.cx.v3.AdvancedSettings.Builder,
com.google.cloud.dialogflow.cx.v3.AdvancedSettingsOrBuilder>
getAdvancedSettingsFieldBuilder() {
if (advancedSettingsBuilder_ == null) {
advancedSettingsBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.dialogflow.cx.v3.AdvancedSettings,
com.google.cloud.dialogflow.cx.v3.AdvancedSettings.Builder,
com.google.cloud.dialogflow.cx.v3.AdvancedSettingsOrBuilder>(
getAdvancedSettings(), getParentForChildren(), isClean());
advancedSettings_ = null;
}
return advancedSettingsBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.cx.v3.Agent)
}
// @@protoc_insertion_point(class_scope:google.cloud.dialogflow.cx.v3.Agent)
private static final com.google.cloud.dialogflow.cx.v3.Agent DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.cloud.dialogflow.cx.v3.Agent();
}
public static com.google.cloud.dialogflow.cx.v3.Agent getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Agent parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Agent(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.google.cloud.dialogflow.cx.v3.Agent getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy