diff --git a/java-dialogflow/README.md b/java-dialogflow/README.md
index c085dd0313cb..aaa210969297 100644
--- a/java-dialogflow/README.md
+++ b/java-dialogflow/README.md
@@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file:
* Indicates whether the answer/item was clicked by the human agent * or not. Default to false. - * For knowledge search, the answer record is considered to be clicked if the - * answer was copied or any URI was clicked. + * For knowledge search and knowledge assist, the answer record is considered + * to be clicked if the answer was copied or any URI was clicked. ** *
bool clicked = 3;
@@ -1369,8 +1369,8 @@ public Builder clearAgentAssistantDetailFeedback() {
* * Indicates whether the answer/item was clicked by the human agent * or not. Default to false. - * For knowledge search, the answer record is considered to be clicked if the - * answer was copied or any URI was clicked. + * For knowledge search and knowledge assist, the answer record is considered + * to be clicked if the answer was copied or any URI was clicked. ** *
bool clicked = 3;
@@ -1387,8 +1387,8 @@ public boolean getClicked() {
* * Indicates whether the answer/item was clicked by the human agent * or not. Default to false. - * For knowledge search, the answer record is considered to be clicked if the - * answer was copied or any URI was clicked. + * For knowledge search and knowledge assist, the answer record is considered + * to be clicked if the answer was copied or any URI was clicked. ** *
bool clicked = 3;
@@ -1409,8 +1409,8 @@ public Builder setClicked(boolean value) {
* * Indicates whether the answer/item was clicked by the human agent * or not. Default to false. - * For knowledge search, the answer record is considered to be clicked if the - * answer was copied or any URI was clicked. + * For knowledge search and knowledge assist, the answer record is considered + * to be clicked if the answer was copied or any URI was clicked. ** *
bool clicked = 3;
diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AnswerFeedbackOrBuilder.java b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AnswerFeedbackOrBuilder.java
index 16a3664eda24..809f6ad8b816 100644
--- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AnswerFeedbackOrBuilder.java
+++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AnswerFeedbackOrBuilder.java
@@ -93,8 +93,8 @@ public interface AnswerFeedbackOrBuilder
* * Indicates whether the answer/item was clicked by the human agent * or not. Default to false. - * For knowledge search, the answer record is considered to be clicked if the - * answer was copied or any URI was clicked. + * For knowledge search and knowledge assist, the answer record is considered + * to be clicked if the answer was copied or any URI was clicked. ** *
bool clicked = 3;
diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AutomatedAgentConfig.java b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AutomatedAgentConfig.java
index 7914c3cfdb4f..d359f4e78940 100644
--- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AutomatedAgentConfig.java
+++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AutomatedAgentConfig.java
@@ -149,6 +149,64 @@ public com.google.protobuf.ByteString getAgentBytes() {
}
}
+ public static final int SESSION_TTL_FIELD_NUMBER = 3;
+ private com.google.protobuf.Duration sessionTtl_;
+ /**
+ *
+ *
+ * + * Optional. Sets Dialogflow CX session life time. + * By default, a Dialogflow CX session remains active and its data is stored + * for 30 minutes after the last request is sent for the session. This value + * should be no longer than 1 day. + *+ * + *
.google.protobuf.Duration session_ttl = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the sessionTtl field is set.
+ */
+ @java.lang.Override
+ public boolean hasSessionTtl() {
+ return sessionTtl_ != null;
+ }
+ /**
+ *
+ *
+ * + * Optional. Sets Dialogflow CX session life time. + * By default, a Dialogflow CX session remains active and its data is stored + * for 30 minutes after the last request is sent for the session. This value + * should be no longer than 1 day. + *+ * + *
.google.protobuf.Duration session_ttl = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The sessionTtl.
+ */
+ @java.lang.Override
+ public com.google.protobuf.Duration getSessionTtl() {
+ return sessionTtl_ == null ? com.google.protobuf.Duration.getDefaultInstance() : sessionTtl_;
+ }
+ /**
+ *
+ *
+ * + * Optional. Sets Dialogflow CX session life time. + * By default, a Dialogflow CX session remains active and its data is stored + * for 30 minutes after the last request is sent for the session. This value + * should be no longer than 1 day. + *+ * + *
.google.protobuf.Duration session_ttl = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public com.google.protobuf.DurationOrBuilder getSessionTtlOrBuilder() {
+ return sessionTtl_ == null ? com.google.protobuf.Duration.getDefaultInstance() : sessionTtl_;
+ }
+
private byte memoizedIsInitialized = -1;
@java.lang.Override
@@ -166,6 +224,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(agent_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, agent_);
}
+ if (sessionTtl_ != null) {
+ output.writeMessage(3, getSessionTtl());
+ }
getUnknownFields().writeTo(output);
}
@@ -178,6 +239,9 @@ public int getSerializedSize() {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(agent_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, agent_);
}
+ if (sessionTtl_ != null) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getSessionTtl());
+ }
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
@@ -195,6 +259,10 @@ public boolean equals(final java.lang.Object obj) {
(com.google.cloud.dialogflow.v2.AutomatedAgentConfig) obj;
if (!getAgent().equals(other.getAgent())) return false;
+ if (hasSessionTtl() != other.hasSessionTtl()) return false;
+ if (hasSessionTtl()) {
+ if (!getSessionTtl().equals(other.getSessionTtl())) return false;
+ }
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@@ -208,6 +276,10 @@ public int hashCode() {
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + AGENT_FIELD_NUMBER;
hash = (53 * hash) + getAgent().hashCode();
+ if (hasSessionTtl()) {
+ hash = (37 * hash) + SESSION_TTL_FIELD_NUMBER;
+ hash = (53 * hash) + getSessionTtl().hashCode();
+ }
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
@@ -348,6 +420,11 @@ public Builder clear() {
super.clear();
bitField0_ = 0;
agent_ = "";
+ sessionTtl_ = null;
+ if (sessionTtlBuilder_ != null) {
+ sessionTtlBuilder_.dispose();
+ sessionTtlBuilder_ = null;
+ }
return this;
}
@@ -387,6 +464,9 @@ private void buildPartial0(com.google.cloud.dialogflow.v2.AutomatedAgentConfig r
if (((from_bitField0_ & 0x00000001) != 0)) {
result.agent_ = agent_;
}
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.sessionTtl_ = sessionTtlBuilder_ == null ? sessionTtl_ : sessionTtlBuilder_.build();
+ }
}
@java.lang.Override
@@ -440,6 +520,9 @@ public Builder mergeFrom(com.google.cloud.dialogflow.v2.AutomatedAgentConfig oth
bitField0_ |= 0x00000001;
onChanged();
}
+ if (other.hasSessionTtl()) {
+ mergeSessionTtl(other.getSessionTtl());
+ }
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
@@ -472,6 +555,12 @@ public Builder mergeFrom(
bitField0_ |= 0x00000001;
break;
} // case 10
+ case 26:
+ {
+ input.readMessage(getSessionTtlFieldBuilder().getBuilder(), extensionRegistry);
+ bitField0_ |= 0x00000002;
+ break;
+ } // case 26
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
@@ -687,6 +776,225 @@ public Builder setAgentBytes(com.google.protobuf.ByteString value) {
return this;
}
+ private com.google.protobuf.Duration sessionTtl_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Duration,
+ com.google.protobuf.Duration.Builder,
+ com.google.protobuf.DurationOrBuilder>
+ sessionTtlBuilder_;
+ /**
+ *
+ *
+ * + * Optional. Sets Dialogflow CX session life time. + * By default, a Dialogflow CX session remains active and its data is stored + * for 30 minutes after the last request is sent for the session. This value + * should be no longer than 1 day. + *+ * + *
.google.protobuf.Duration session_ttl = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the sessionTtl field is set.
+ */
+ public boolean hasSessionTtl() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+ /**
+ *
+ *
+ * + * Optional. Sets Dialogflow CX session life time. + * By default, a Dialogflow CX session remains active and its data is stored + * for 30 minutes after the last request is sent for the session. This value + * should be no longer than 1 day. + *+ * + *
.google.protobuf.Duration session_ttl = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The sessionTtl.
+ */
+ public com.google.protobuf.Duration getSessionTtl() {
+ if (sessionTtlBuilder_ == null) {
+ return sessionTtl_ == null
+ ? com.google.protobuf.Duration.getDefaultInstance()
+ : sessionTtl_;
+ } else {
+ return sessionTtlBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ * + * Optional. Sets Dialogflow CX session life time. + * By default, a Dialogflow CX session remains active and its data is stored + * for 30 minutes after the last request is sent for the session. This value + * should be no longer than 1 day. + *+ * + *
.google.protobuf.Duration session_ttl = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder setSessionTtl(com.google.protobuf.Duration value) {
+ if (sessionTtlBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ sessionTtl_ = value;
+ } else {
+ sessionTtlBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. Sets Dialogflow CX session life time. + * By default, a Dialogflow CX session remains active and its data is stored + * for 30 minutes after the last request is sent for the session. This value + * should be no longer than 1 day. + *+ * + *
.google.protobuf.Duration session_ttl = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder setSessionTtl(com.google.protobuf.Duration.Builder builderForValue) {
+ if (sessionTtlBuilder_ == null) {
+ sessionTtl_ = builderForValue.build();
+ } else {
+ sessionTtlBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. Sets Dialogflow CX session life time. + * By default, a Dialogflow CX session remains active and its data is stored + * for 30 minutes after the last request is sent for the session. This value + * should be no longer than 1 day. + *+ * + *
.google.protobuf.Duration session_ttl = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder mergeSessionTtl(com.google.protobuf.Duration value) {
+ if (sessionTtlBuilder_ == null) {
+ if (((bitField0_ & 0x00000002) != 0)
+ && sessionTtl_ != null
+ && sessionTtl_ != com.google.protobuf.Duration.getDefaultInstance()) {
+ getSessionTtlBuilder().mergeFrom(value);
+ } else {
+ sessionTtl_ = value;
+ }
+ } else {
+ sessionTtlBuilder_.mergeFrom(value);
+ }
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. Sets Dialogflow CX session life time. + * By default, a Dialogflow CX session remains active and its data is stored + * for 30 minutes after the last request is sent for the session. This value + * should be no longer than 1 day. + *+ * + *
.google.protobuf.Duration session_ttl = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder clearSessionTtl() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ sessionTtl_ = null;
+ if (sessionTtlBuilder_ != null) {
+ sessionTtlBuilder_.dispose();
+ sessionTtlBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. Sets Dialogflow CX session life time. + * By default, a Dialogflow CX session remains active and its data is stored + * for 30 minutes after the last request is sent for the session. This value + * should be no longer than 1 day. + *+ * + *
.google.protobuf.Duration session_ttl = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.protobuf.Duration.Builder getSessionTtlBuilder() {
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return getSessionTtlFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * Optional. Sets Dialogflow CX session life time. + * By default, a Dialogflow CX session remains active and its data is stored + * for 30 minutes after the last request is sent for the session. This value + * should be no longer than 1 day. + *+ * + *
.google.protobuf.Duration session_ttl = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.protobuf.DurationOrBuilder getSessionTtlOrBuilder() {
+ if (sessionTtlBuilder_ != null) {
+ return sessionTtlBuilder_.getMessageOrBuilder();
+ } else {
+ return sessionTtl_ == null
+ ? com.google.protobuf.Duration.getDefaultInstance()
+ : sessionTtl_;
+ }
+ }
+ /**
+ *
+ *
+ * + * Optional. Sets Dialogflow CX session life time. + * By default, a Dialogflow CX session remains active and its data is stored + * for 30 minutes after the last request is sent for the session. This value + * should be no longer than 1 day. + *+ * + *
.google.protobuf.Duration session_ttl = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Duration,
+ com.google.protobuf.Duration.Builder,
+ com.google.protobuf.DurationOrBuilder>
+ getSessionTtlFieldBuilder() {
+ if (sessionTtlBuilder_ == null) {
+ sessionTtlBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Duration,
+ com.google.protobuf.Duration.Builder,
+ com.google.protobuf.DurationOrBuilder>(
+ getSessionTtl(), getParentForChildren(), isClean());
+ sessionTtl_ = null;
+ }
+ return sessionTtlBuilder_;
+ }
+
@java.lang.Override
public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AutomatedAgentConfigOrBuilder.java b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AutomatedAgentConfigOrBuilder.java
index 78b3ff9f6dc4..774d914f8ae3 100644
--- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AutomatedAgentConfigOrBuilder.java
+++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AutomatedAgentConfigOrBuilder.java
@@ -83,4 +83,51 @@ public interface AutomatedAgentConfigOrBuilder
* @return The bytes for agent.
*/
com.google.protobuf.ByteString getAgentBytes();
+
+ /**
+ *
+ *
+ * + * Optional. Sets Dialogflow CX session life time. + * By default, a Dialogflow CX session remains active and its data is stored + * for 30 minutes after the last request is sent for the session. This value + * should be no longer than 1 day. + *+ * + *
.google.protobuf.Duration session_ttl = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the sessionTtl field is set.
+ */
+ boolean hasSessionTtl();
+ /**
+ *
+ *
+ * + * Optional. Sets Dialogflow CX session life time. + * By default, a Dialogflow CX session remains active and its data is stored + * for 30 minutes after the last request is sent for the session. This value + * should be no longer than 1 day. + *+ * + *
.google.protobuf.Duration session_ttl = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The sessionTtl.
+ */
+ com.google.protobuf.Duration getSessionTtl();
+ /**
+ *
+ *
+ * + * Optional. Sets Dialogflow CX session life time. + * By default, a Dialogflow CX session remains active and its data is stored + * for 30 minutes after the last request is sent for the session. This value + * should be no longer than 1 day. + *+ * + *
.google.protobuf.Duration session_ttl = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ com.google.protobuf.DurationOrBuilder getSessionTtlOrBuilder();
}
diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ConversationProfileProto.java b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ConversationProfileProto.java
index 8114ecf73d72..2deeb8c4d627 100644
--- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ConversationProfileProto.java
+++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ConversationProfileProto.java
@@ -164,248 +164,250 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "google/cloud/dialogflow/v2/audio_config."
+ "proto\032,google/cloud/dialogflow/v2/partic"
+ "ipant.proto\032#google/longrunning/operatio"
- + "ns.proto\032\033google/protobuf/empty.proto\032 g"
- + "oogle/protobuf/field_mask.proto\032\037google/"
- + "protobuf/timestamp.proto\"\363\010\n\023Conversatio"
- + "nProfile\022\014\n\004name\030\001 \001(\t\022\032\n\014display_name\030\002"
- + " \001(\tB\004\342A\001\002\0225\n\013create_time\030\013 \001(\0132\032.google"
- + ".protobuf.TimestampB\004\342A\001\003\0225\n\013update_time"
- + "\030\014 \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003"
- + "\022P\n\026automated_agent_config\030\003 \001(\01320.googl"
- + "e.cloud.dialogflow.v2.AutomatedAgentConf"
- + "ig\022[\n\034human_agent_assistant_config\030\004 \001(\013"
- + "25.google.cloud.dialogflow.v2.HumanAgent"
- + "AssistantConfig\022W\n\032human_agent_handoff_c"
- + "onfig\030\005 \001(\01323.google.cloud.dialogflow.v2"
- + ".HumanAgentHandoffConfig\022K\n\023notification"
- + "_config\030\006 \001(\0132..google.cloud.dialogflow."
- + "v2.NotificationConfig\022A\n\016logging_config\030"
- + "\007 \001(\0132).google.cloud.dialogflow.v2.Loggi"
- + "ngConfig\022]\n%new_message_event_notificati"
- + "on_config\030\010 \001(\0132..google.cloud.dialogflo"
- + "w.v2.NotificationConfig\022B\n\nstt_config\030\t "
- + "\001(\0132..google.cloud.dialogflow.v2.SpeechT"
- + "oTextConfig\022\025\n\rlanguage_code\030\n \001(\t\022\021\n\tti"
- + "me_zone\030\016 \001(\t\022L\n\021security_settings\030\r \001(\t"
- + "B1\372A.\n,dialogflow.googleapis.com/CXSecur"
- + "itySettings\022F\n\ntts_config\030\022 \001(\01322.google"
- + ".cloud.dialogflow.v2.SynthesizeSpeechCon"
- + "fig:\310\001\352A\304\001\n-dialogflow.googleapis.com/Co"
- + "nversationProfile\022>projects/{project}/co"
- + "nversationProfiles/{conversation_profile"
- + "}\022Sprojects/{project}/locations/{locatio"
- + "n}/conversationProfiles/{conversation_pr"
- + "ofile}\"\220\001\n\037ListConversationProfilesReque"
- + "st\022F\n\006parent\030\001 \001(\tB6\342A\001\002\372A/\022-dialogflow."
- + "googleapis.com/ConversationProfile\022\021\n\tpa"
- + "ge_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"\213\001\n Li"
- + "stConversationProfilesResponse\022N\n\025conver"
- + "sation_profiles\030\001 \003(\0132/.google.cloud.dia"
- + "logflow.v2.ConversationProfile\022\027\n\017next_p"
- + "age_token\030\002 \001(\t\"e\n\035GetConversationProfil"
- + "eRequest\022D\n\004name\030\001 \001(\tB6\342A\001\002\372A/\n-dialogf"
- + "low.googleapis.com/ConversationProfile\"\277"
- + "\001\n CreateConversationProfileRequest\022F\n\006p"
- + "arent\030\001 \001(\tB6\342A\001\002\372A/\022-dialogflow.googlea"
- + "pis.com/ConversationProfile\022S\n\024conversat"
- + "ion_profile\030\002 \001(\0132/.google.cloud.dialogf"
- + "low.v2.ConversationProfileB\004\342A\001\002\"\256\001\n Upd"
- + "ateConversationProfileRequest\022S\n\024convers"
- + "ation_profile\030\001 \001(\0132/.google.cloud.dialo"
- + "gflow.v2.ConversationProfileB\004\342A\001\002\0225\n\013up"
- + "date_mask\030\002 \001(\0132\032.google.protobuf.FieldM"
- + "askB\004\342A\001\002\"h\n DeleteConversationProfileRe"
- + "quest\022D\n\004name\030\001 \001(\tB6\342A\001\002\372A/\n-dialogflow"
- + ".googleapis.com/ConversationProfile\"O\n\024A"
- + "utomatedAgentConfig\0227\n\005agent\030\001 \001(\tB(\342A\001\002"
- + "\372A!\n\037dialogflow.googleapis.com/Agent\"\204\024\n"
- + "\031HumanAgentAssistantConfig\022K\n\023notificati"
- + "on_config\030\002 \001(\0132..google.cloud.dialogflo"
- + "w.v2.NotificationConfig\022m\n\035human_agent_s"
- + "uggestion_config\030\003 \001(\0132F.google.cloud.di"
- + "alogflow.v2.HumanAgentAssistantConfig.Su"
- + "ggestionConfig\022j\n\032end_user_suggestion_co"
- + "nfig\030\004 \001(\0132F.google.cloud.dialogflow.v2."
- + "HumanAgentAssistantConfig.SuggestionConf"
- + "ig\022l\n\027message_analysis_config\030\005 \001(\0132K.go"
- + "ogle.cloud.dialogflow.v2.HumanAgentAssis"
- + "tantConfig.MessageAnalysisConfig\032H\n\031Sugg"
- + "estionTriggerSettings\022\024\n\014no_smalltalk\030\001 "
- + "\001(\010\022\025\n\ronly_end_user\030\002 \001(\010\032\314\004\n\027Suggestio"
- + "nFeatureConfig\022I\n\022suggestion_feature\030\005 \001"
- + "(\0132-.google.cloud.dialogflow.v2.Suggesti"
- + "onFeature\022%\n\035enable_event_based_suggesti"
- + "on\030\003 \001(\010\022t\n\033suggestion_trigger_settings\030"
- + "\n \001(\0132O.google.cloud.dialogflow.v2.Human"
- + "AgentAssistantConfig.SuggestionTriggerSe"
- + "ttings\022a\n\014query_config\030\006 \001(\0132K.google.cl"
- + "oud.dialogflow.v2.HumanAgentAssistantCon"
- + "fig.SuggestionQueryConfig\022p\n\031conversatio"
- + "n_model_config\030\007 \001(\0132M.google.cloud.dial"
- + "ogflow.v2.HumanAgentAssistantConfig.Conv"
- + "ersationModelConfig\022t\n\033conversation_proc"
- + "ess_config\030\010 \001(\0132O.google.cloud.dialogfl"
- + "ow.v2.HumanAgentAssistantConfig.Conversa"
- + "tionProcessConfig\032\236\001\n\020SuggestionConfig\022f"
- + "\n\017feature_configs\030\002 \003(\0132M.google.cloud.d"
- + "ialogflow.v2.HumanAgentAssistantConfig.S"
- + "uggestionFeatureConfig\022\"\n\032group_suggesti"
- + "on_responses\030\003 \001(\010\032\377\007\n\025SuggestionQueryCo"
- + "nfig\022\213\001\n\033knowledge_base_query_source\030\001 \001"
- + "(\0132d.google.cloud.dialogflow.v2.HumanAge"
- + "ntAssistantConfig.SuggestionQueryConfig."
- + "KnowledgeBaseQuerySourceH\000\022\200\001\n\025document_"
- + "query_source\030\002 \001(\0132_.google.cloud.dialog"
- + "flow.v2.HumanAgentAssistantConfig.Sugges"
- + "tionQueryConfig.DocumentQuerySourceH\000\022\204\001"
- + "\n\027dialogflow_query_source\030\003 \001(\0132a.google"
- + ".cloud.dialogflow.v2.HumanAgentAssistant"
- + "Config.SuggestionQueryConfig.DialogflowQ"
- + "uerySourceH\000\022\023\n\013max_results\030\004 \001(\005\022\034\n\024con"
- + "fidence_threshold\030\005 \001(\002\022\202\001\n\027context_filt"
- + "er_settings\030\007 \001(\0132a.google.cloud.dialogf"
+ + "ns.proto\032\036google/protobuf/duration.proto"
+ + "\032\033google/protobuf/empty.proto\032 google/pr"
+ + "otobuf/field_mask.proto\032\037google/protobuf"
+ + "/timestamp.proto\"\363\010\n\023ConversationProfile"
+ + "\022\014\n\004name\030\001 \001(\t\022\032\n\014display_name\030\002 \001(\tB\004\342A"
+ + "\001\002\0225\n\013create_time\030\013 \001(\0132\032.google.protobu"
+ + "f.TimestampB\004\342A\001\003\0225\n\013update_time\030\014 \001(\0132\032"
+ + ".google.protobuf.TimestampB\004\342A\001\003\022P\n\026auto"
+ + "mated_agent_config\030\003 \001(\01320.google.cloud."
+ + "dialogflow.v2.AutomatedAgentConfig\022[\n\034hu"
+ + "man_agent_assistant_config\030\004 \001(\01325.googl"
+ + "e.cloud.dialogflow.v2.HumanAgentAssistan"
+ + "tConfig\022W\n\032human_agent_handoff_config\030\005 "
+ + "\001(\01323.google.cloud.dialogflow.v2.HumanAg"
+ + "entHandoffConfig\022K\n\023notification_config\030"
+ + "\006 \001(\0132..google.cloud.dialogflow.v2.Notif"
+ + "icationConfig\022A\n\016logging_config\030\007 \001(\0132)."
+ + "google.cloud.dialogflow.v2.LoggingConfig"
+ + "\022]\n%new_message_event_notification_confi"
+ + "g\030\010 \001(\0132..google.cloud.dialogflow.v2.Not"
+ + "ificationConfig\022B\n\nstt_config\030\t \001(\0132..go"
+ + "ogle.cloud.dialogflow.v2.SpeechToTextCon"
+ + "fig\022\025\n\rlanguage_code\030\n \001(\t\022\021\n\ttime_zone\030"
+ + "\016 \001(\t\022L\n\021security_settings\030\r \001(\tB1\372A.\n,d"
+ + "ialogflow.googleapis.com/CXSecuritySetti"
+ + "ngs\022F\n\ntts_config\030\022 \001(\01322.google.cloud.d"
+ + "ialogflow.v2.SynthesizeSpeechConfig:\310\001\352A"
+ + "\304\001\n-dialogflow.googleapis.com/Conversati"
+ + "onProfile\022>projects/{project}/conversati"
+ + "onProfiles/{conversation_profile}\022Sproje"
+ + "cts/{project}/locations/{location}/conve"
+ + "rsationProfiles/{conversation_profile}\"\220"
+ + "\001\n\037ListConversationProfilesRequest\022F\n\006pa"
+ + "rent\030\001 \001(\tB6\342A\001\002\372A/\022-dialogflow.googleap"
+ + "is.com/ConversationProfile\022\021\n\tpage_size\030"
+ + "\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"\213\001\n ListConver"
+ + "sationProfilesResponse\022N\n\025conversation_p"
+ + "rofiles\030\001 \003(\0132/.google.cloud.dialogflow."
+ + "v2.ConversationProfile\022\027\n\017next_page_toke"
+ + "n\030\002 \001(\t\"e\n\035GetConversationProfileRequest"
+ + "\022D\n\004name\030\001 \001(\tB6\342A\001\002\372A/\n-dialogflow.goog"
+ + "leapis.com/ConversationProfile\"\277\001\n Creat"
+ + "eConversationProfileRequest\022F\n\006parent\030\001 "
+ + "\001(\tB6\342A\001\002\372A/\022-dialogflow.googleapis.com/"
+ + "ConversationProfile\022S\n\024conversation_prof"
+ + "ile\030\002 \001(\0132/.google.cloud.dialogflow.v2.C"
+ + "onversationProfileB\004\342A\001\002\"\256\001\n UpdateConve"
+ + "rsationProfileRequest\022S\n\024conversation_pr"
+ + "ofile\030\001 \001(\0132/.google.cloud.dialogflow.v2"
+ + ".ConversationProfileB\004\342A\001\002\0225\n\013update_mas"
+ + "k\030\002 \001(\0132\032.google.protobuf.FieldMaskB\004\342A\001"
+ + "\002\"h\n DeleteConversationProfileRequest\022D\n"
+ + "\004name\030\001 \001(\tB6\342A\001\002\372A/\n-dialogflow.googlea"
+ + "pis.com/ConversationProfile\"\205\001\n\024Automate"
+ + "dAgentConfig\0227\n\005agent\030\001 \001(\tB(\342A\001\002\372A!\n\037di"
+ + "alogflow.googleapis.com/Agent\0224\n\013session"
+ + "_ttl\030\003 \001(\0132\031.google.protobuf.DurationB\004\342"
+ + "A\001\001\"\204\024\n\031HumanAgentAssistantConfig\022K\n\023not"
+ + "ification_config\030\002 \001(\0132..google.cloud.di"
+ + "alogflow.v2.NotificationConfig\022m\n\035human_"
+ + "agent_suggestion_config\030\003 \001(\0132F.google.c"
+ + "loud.dialogflow.v2.HumanAgentAssistantCo"
+ + "nfig.SuggestionConfig\022j\n\032end_user_sugges"
+ + "tion_config\030\004 \001(\0132F.google.cloud.dialogf"
+ "low.v2.HumanAgentAssistantConfig.Suggest"
- + "ionQueryConfig.ContextFilterSettings\032e\n\030"
- + "KnowledgeBaseQuerySource\022I\n\017knowledge_ba"
- + "ses\030\001 \003(\tB0\342A\001\002\372A)\n\'dialogflow.googleapi"
- + "s.com/KnowledgeBase\032U\n\023DocumentQuerySour"
- + "ce\022>\n\tdocuments\030\001 \003(\tB+\342A\001\002\372A$\n\"dialogfl"
- + "ow.googleapis.com/Document\032P\n\025Dialogflow"
- + "QuerySource\0227\n\005agent\030\001 \001(\tB(\342A\001\002\372A!\n\037dia"
- + "logflow.googleapis.com/Agent\032v\n\025ContextF"
- + "ilterSettings\022\035\n\025drop_handoff_messages\030\001"
- + " \001(\010\022#\n\033drop_virtual_agent_messages\030\002 \001("
- + "\010\022\031\n\021drop_ivr_messages\030\003 \001(\010B\016\n\014query_so"
- + "urce\032z\n\027ConversationModelConfig\022?\n\005model"
- + "\030\001 \001(\tB0\372A-\n+dialogflow.googleapis.com/C"
- + "onversationModel\022\036\n\026baseline_model_versi"
- + "on\030\010 \001(\t\032;\n\031ConversationProcessConfig\022\036\n"
- + "\026recent_sentences_count\030\002 \001(\005\032\\\n\025Message"
- + "AnalysisConfig\022 \n\030enable_entity_extracti"
- + "on\030\002 \001(\010\022!\n\031enable_sentiment_analysis\030\003 "
- + "\001(\010\"\311\003\n\027HumanAgentHandoffConfig\022b\n\022live_"
- + "person_config\030\001 \001(\0132D.google.cloud.dialo"
- + "gflow.v2.HumanAgentHandoffConfig.LivePer"
- + "sonConfigH\000\022u\n\034salesforce_live_agent_con"
- + "fig\030\002 \001(\0132M.google.cloud.dialogflow.v2.H"
- + "umanAgentHandoffConfig.SalesforceLiveAge"
- + "ntConfigH\000\0320\n\020LivePersonConfig\022\034\n\016accoun"
- + "t_number\030\001 \001(\tB\004\342A\001\002\032\217\001\n\031SalesforceLiveA"
- + "gentConfig\022\035\n\017organization_id\030\001 \001(\tB\004\342A\001"
- + "\002\022\033\n\rdeployment_id\030\002 \001(\tB\004\342A\001\002\022\027\n\tbutton"
- + "_id\030\003 \001(\tB\004\342A\001\002\022\035\n\017endpoint_domain\030\004 \001(\t"
- + "B\004\342A\001\002B\017\n\ragent_service\"\277\001\n\022Notification"
- + "Config\022\r\n\005topic\030\001 \001(\t\022T\n\016message_format\030"
- + "\002 \001(\0162<.google.cloud.dialogflow.v2.Notif"
- + "icationConfig.MessageFormat\"D\n\rMessageFo"
- + "rmat\022\036\n\032MESSAGE_FORMAT_UNSPECIFIED\020\000\022\t\n\005"
- + "PROTO\020\001\022\010\n\004JSON\020\002\"3\n\rLoggingConfig\022\"\n\032en"
- + "able_stackdriver_logging\030\003 \001(\010\"\245\001\n\021Sugge"
- + "stionFeature\022@\n\004type\030\001 \001(\01622.google.clou"
- + "d.dialogflow.v2.SuggestionFeature.Type\"N"
- + "\n\004Type\022\024\n\020TYPE_UNSPECIFIED\020\000\022\026\n\022ARTICLE_"
- + "SUGGESTION\020\001\022\007\n\003FAQ\020\002\022\017\n\013SMART_REPLY\020\003\"\215"
- + "\002\n!SetSuggestionFeatureConfigRequest\022\"\n\024"
- + "conversation_profile\030\001 \001(\tB\004\342A\001\002\022L\n\020part"
- + "icipant_role\030\002 \001(\0162,.google.cloud.dialog"
- + "flow.v2.Participant.RoleB\004\342A\001\002\022v\n\031sugges"
- + "tion_feature_config\030\003 \001(\0132M.google.cloud"
+ + "ionConfig\022l\n\027message_analysis_config\030\005 \001"
+ + "(\0132K.google.cloud.dialogflow.v2.HumanAge"
+ + "ntAssistantConfig.MessageAnalysisConfig\032"
+ + "H\n\031SuggestionTriggerSettings\022\024\n\014no_small"
+ + "talk\030\001 \001(\010\022\025\n\ronly_end_user\030\002 \001(\010\032\314\004\n\027Su"
+ + "ggestionFeatureConfig\022I\n\022suggestion_feat"
+ + "ure\030\005 \001(\0132-.google.cloud.dialogflow.v2.S"
+ + "uggestionFeature\022%\n\035enable_event_based_s"
+ + "uggestion\030\003 \001(\010\022t\n\033suggestion_trigger_se"
+ + "ttings\030\n \001(\0132O.google.cloud.dialogflow.v"
+ + "2.HumanAgentAssistantConfig.SuggestionTr"
+ + "iggerSettings\022a\n\014query_config\030\006 \001(\0132K.go"
+ + "ogle.cloud.dialogflow.v2.HumanAgentAssis"
+ + "tantConfig.SuggestionQueryConfig\022p\n\031conv"
+ + "ersation_model_config\030\007 \001(\0132M.google.clo"
+ + "ud.dialogflow.v2.HumanAgentAssistantConf"
+ + "ig.ConversationModelConfig\022t\n\033conversati"
+ + "on_process_config\030\010 \001(\0132O.google.cloud.d"
+ + "ialogflow.v2.HumanAgentAssistantConfig.C"
+ + "onversationProcessConfig\032\236\001\n\020SuggestionC"
+ + "onfig\022f\n\017feature_configs\030\002 \003(\0132M.google."
+ + "cloud.dialogflow.v2.HumanAgentAssistantC"
+ + "onfig.SuggestionFeatureConfig\022\"\n\032group_s"
+ + "uggestion_responses\030\003 \001(\010\032\377\007\n\025Suggestion"
+ + "QueryConfig\022\213\001\n\033knowledge_base_query_sou"
+ + "rce\030\001 \001(\0132d.google.cloud.dialogflow.v2.H"
+ + "umanAgentAssistantConfig.SuggestionQuery"
+ + "Config.KnowledgeBaseQuerySourceH\000\022\200\001\n\025do"
+ + "cument_query_source\030\002 \001(\0132_.google.cloud"
+ ".dialogflow.v2.HumanAgentAssistantConfig"
- + ".SuggestionFeatureConfigB\004\342A\001\002\"\362\001\n#Clear"
- + "SuggestionFeatureConfigRequest\022\"\n\024conver"
- + "sation_profile\030\001 \001(\tB\004\342A\001\002\022L\n\020participan"
- + "t_role\030\002 \001(\0162,.google.cloud.dialogflow.v"
- + "2.Participant.RoleB\004\342A\001\002\022Y\n\027suggestion_f"
- + "eature_type\030\003 \001(\01622.google.cloud.dialogf"
- + "low.v2.SuggestionFeature.TypeB\004\342A\001\002\"\245\002\n+"
- + "SetSuggestionFeatureConfigOperationMetad"
- + "ata\022\034\n\024conversation_profile\030\001 \001(\t\022L\n\020par"
+ + ".SuggestionQueryConfig.DocumentQuerySour"
+ + "ceH\000\022\204\001\n\027dialogflow_query_source\030\003 \001(\0132a"
+ + ".google.cloud.dialogflow.v2.HumanAgentAs"
+ + "sistantConfig.SuggestionQueryConfig.Dial"
+ + "ogflowQuerySourceH\000\022\023\n\013max_results\030\004 \001(\005"
+ + "\022\034\n\024confidence_threshold\030\005 \001(\002\022\202\001\n\027conte"
+ + "xt_filter_settings\030\007 \001(\0132a.google.cloud."
+ + "dialogflow.v2.HumanAgentAssistantConfig."
+ + "SuggestionQueryConfig.ContextFilterSetti"
+ + "ngs\032e\n\030KnowledgeBaseQuerySource\022I\n\017knowl"
+ + "edge_bases\030\001 \003(\tB0\342A\001\002\372A)\n\'dialogflow.go"
+ + "ogleapis.com/KnowledgeBase\032U\n\023DocumentQu"
+ + "erySource\022>\n\tdocuments\030\001 \003(\tB+\342A\001\002\372A$\n\"d"
+ + "ialogflow.googleapis.com/Document\032P\n\025Dia"
+ + "logflowQuerySource\0227\n\005agent\030\001 \001(\tB(\342A\001\002\372"
+ + "A!\n\037dialogflow.googleapis.com/Agent\032v\n\025C"
+ + "ontextFilterSettings\022\035\n\025drop_handoff_mes"
+ + "sages\030\001 \001(\010\022#\n\033drop_virtual_agent_messag"
+ + "es\030\002 \001(\010\022\031\n\021drop_ivr_messages\030\003 \001(\010B\016\n\014q"
+ + "uery_source\032z\n\027ConversationModelConfig\022?"
+ + "\n\005model\030\001 \001(\tB0\372A-\n+dialogflow.googleapi"
+ + "s.com/ConversationModel\022\036\n\026baseline_mode"
+ + "l_version\030\010 \001(\t\032;\n\031ConversationProcessCo"
+ + "nfig\022\036\n\026recent_sentences_count\030\002 \001(\005\032\\\n\025"
+ + "MessageAnalysisConfig\022 \n\030enable_entity_e"
+ + "xtraction\030\002 \001(\010\022!\n\031enable_sentiment_anal"
+ + "ysis\030\003 \001(\010\"\311\003\n\027HumanAgentHandoffConfig\022b"
+ + "\n\022live_person_config\030\001 \001(\0132D.google.clou"
+ + "d.dialogflow.v2.HumanAgentHandoffConfig."
+ + "LivePersonConfigH\000\022u\n\034salesforce_live_ag"
+ + "ent_config\030\002 \001(\0132M.google.cloud.dialogfl"
+ + "ow.v2.HumanAgentHandoffConfig.Salesforce"
+ + "LiveAgentConfigH\000\0320\n\020LivePersonConfig\022\034\n"
+ + "\016account_number\030\001 \001(\tB\004\342A\001\002\032\217\001\n\031Salesfor"
+ + "ceLiveAgentConfig\022\035\n\017organization_id\030\001 \001"
+ + "(\tB\004\342A\001\002\022\033\n\rdeployment_id\030\002 \001(\tB\004\342A\001\002\022\027\n"
+ + "\tbutton_id\030\003 \001(\tB\004\342A\001\002\022\035\n\017endpoint_domai"
+ + "n\030\004 \001(\tB\004\342A\001\002B\017\n\ragent_service\"\277\001\n\022Notif"
+ + "icationConfig\022\r\n\005topic\030\001 \001(\t\022T\n\016message_"
+ + "format\030\002 \001(\0162<.google.cloud.dialogflow.v"
+ + "2.NotificationConfig.MessageFormat\"D\n\rMe"
+ + "ssageFormat\022\036\n\032MESSAGE_FORMAT_UNSPECIFIE"
+ + "D\020\000\022\t\n\005PROTO\020\001\022\010\n\004JSON\020\002\"3\n\rLoggingConfi"
+ + "g\022\"\n\032enable_stackdriver_logging\030\003 \001(\010\"\245\001"
+ + "\n\021SuggestionFeature\022@\n\004type\030\001 \001(\01622.goog"
+ + "le.cloud.dialogflow.v2.SuggestionFeature"
+ + ".Type\"N\n\004Type\022\024\n\020TYPE_UNSPECIFIED\020\000\022\026\n\022A"
+ + "RTICLE_SUGGESTION\020\001\022\007\n\003FAQ\020\002\022\017\n\013SMART_RE"
+ + "PLY\020\003\"\215\002\n!SetSuggestionFeatureConfigRequ"
+ + "est\022\"\n\024conversation_profile\030\001 \001(\tB\004\342A\001\002\022"
+ + "L\n\020participant_role\030\002 \001(\0162,.google.cloud"
+ + ".dialogflow.v2.Participant.RoleB\004\342A\001\002\022v\n"
+ + "\031suggestion_feature_config\030\003 \001(\0132M.googl"
+ + "e.cloud.dialogflow.v2.HumanAgentAssistan"
+ + "tConfig.SuggestionFeatureConfigB\004\342A\001\002\"\362\001"
+ + "\n#ClearSuggestionFeatureConfigRequest\022\"\n"
+ + "\024conversation_profile\030\001 \001(\tB\004\342A\001\002\022L\n\020par"
+ "ticipant_role\030\002 \001(\0162,.google.cloud.dialo"
+ "gflow.v2.Participant.RoleB\004\342A\001\002\022Y\n\027sugge"
+ "stion_feature_type\030\003 \001(\01622.google.cloud."
+ "dialogflow.v2.SuggestionFeature.TypeB\004\342A"
- + "\001\002\022/\n\013create_time\030\004 \001(\0132\032.google.protobu"
- + "f.Timestamp\"\247\002\n-ClearSuggestionFeatureCo"
- + "nfigOperationMetadata\022\034\n\024conversation_pr"
- + "ofile\030\001 \001(\t\022L\n\020participant_role\030\002 \001(\0162,."
- + "google.cloud.dialogflow.v2.Participant.R"
- + "oleB\004\342A\001\002\022Y\n\027suggestion_feature_type\030\003 \001"
- + "(\01622.google.cloud.dialogflow.v2.Suggesti"
- + "onFeature.TypeB\004\342A\001\002\022/\n\013create_time\030\004 \001("
- + "\0132\032.google.protobuf.Timestamp2\263\024\n\024Conver"
- + "sationProfiles\022\220\002\n\030ListConversationProfi"
- + "les\022;.google.cloud.dialogflow.v2.ListCon"
- + "versationProfilesRequest\032<.google.cloud."
- + "dialogflow.v2.ListConversationProfilesRe"
- + "sponse\"y\332A\006parent\202\323\344\223\002j\022,/v2/{parent=pro"
- + "jects/*}/conversationProfilesZ:\0228/v2/{pa"
- + "rent=projects/*/locations/*}/conversatio"
- + "nProfiles\022\375\001\n\026GetConversationProfile\0229.g"
- + "oogle.cloud.dialogflow.v2.GetConversatio"
+ + "\001\002\"\245\002\n+SetSuggestionFeatureConfigOperati"
+ + "onMetadata\022\034\n\024conversation_profile\030\001 \001(\t"
+ + "\022L\n\020participant_role\030\002 \001(\0162,.google.clou"
+ + "d.dialogflow.v2.Participant.RoleB\004\342A\001\002\022Y"
+ + "\n\027suggestion_feature_type\030\003 \001(\01622.google"
+ + ".cloud.dialogflow.v2.SuggestionFeature.T"
+ + "ypeB\004\342A\001\002\022/\n\013create_time\030\004 \001(\0132\032.google."
+ + "protobuf.Timestamp\"\247\002\n-ClearSuggestionFe"
+ + "atureConfigOperationMetadata\022\034\n\024conversa"
+ + "tion_profile\030\001 \001(\t\022L\n\020participant_role\030\002"
+ + " \001(\0162,.google.cloud.dialogflow.v2.Partic"
+ + "ipant.RoleB\004\342A\001\002\022Y\n\027suggestion_feature_t"
+ + "ype\030\003 \001(\01622.google.cloud.dialogflow.v2.S"
+ + "uggestionFeature.TypeB\004\342A\001\002\022/\n\013create_ti"
+ + "me\030\004 \001(\0132\032.google.protobuf.Timestamp2\263\024\n"
+ + "\024ConversationProfiles\022\220\002\n\030ListConversati"
+ + "onProfiles\022;.google.cloud.dialogflow.v2."
+ + "ListConversationProfilesRequest\032<.google"
+ + ".cloud.dialogflow.v2.ListConversationPro"
+ + "filesResponse\"y\332A\006parent\202\323\344\223\002j\022,/v2/{par"
+ + "ent=projects/*}/conversationProfilesZ:\0228"
+ + "/v2/{parent=projects/*/locations/*}/conv"
+ + "ersationProfiles\022\375\001\n\026GetConversationProf"
+ + "ile\0229.google.cloud.dialogflow.v2.GetConv"
+ + "ersationProfileRequest\032/.google.cloud.di"
+ + "alogflow.v2.ConversationProfile\"w\332A\004name"
+ + "\202\323\344\223\002j\022,/v2/{name=projects/*/conversatio"
+ + "nProfiles/*}Z:\0228/v2/{name=projects/*/loc"
+ + "ations/*/conversationProfiles/*}\022\310\002\n\031Cre"
+ + "ateConversationProfile\022<.google.cloud.di"
+ + "alogflow.v2.CreateConversationProfileReq"
+ + "uest\032/.google.cloud.dialogflow.v2.Conver"
+ + "sationProfile\"\273\001\332A\033parent,conversation_p"
+ + "rofile\202\323\344\223\002\226\001\",/v2/{parent=projects/*}/c"
+ + "onversationProfiles:\024conversation_profil"
+ + "eZP\"8/v2/{parent=projects/*/locations/*}"
+ + "/conversationProfiles:\024conversation_prof"
+ + "ile\022\367\002\n\031UpdateConversationProfile\022<.goog"
+ + "le.cloud.dialogflow.v2.UpdateConversatio"
+ "nProfileRequest\032/.google.cloud.dialogflo"
- + "w.v2.ConversationProfile\"w\332A\004name\202\323\344\223\002j\022"
- + ",/v2/{name=projects/*/conversationProfil"
- + "es/*}Z:\0228/v2/{name=projects/*/locations/"
- + "*/conversationProfiles/*}\022\310\002\n\031CreateConv"
- + "ersationProfile\022<.google.cloud.dialogflo"
- + "w.v2.CreateConversationProfileRequest\032/."
- + "google.cloud.dialogflow.v2.ConversationP"
- + "rofile\"\273\001\332A\033parent,conversation_profile\202"
- + "\323\344\223\002\226\001\",/v2/{parent=projects/*}/conversa"
- + "tionProfiles:\024conversation_profileZP\"8/v"
- + "2/{parent=projects/*/locations/*}/conver"
- + "sationProfiles:\024conversation_profile\022\367\002\n"
- + "\031UpdateConversationProfile\022<.google.clou"
- + "d.dialogflow.v2.UpdateConversationProfil"
- + "eRequest\032/.google.cloud.dialogflow.v2.Co"
- + "nversationProfile\"\352\001\332A conversation_prof"
- + "ile,update_mask\202\323\344\223\002\300\0012A/v2/{conversatio"
- + "n_profile.name=projects/*/conversationPr"
- + "ofiles/*}:\024conversation_profileZe2M/v2/{"
- + "conversation_profile.name=projects/*/loc"
- + "ations/*/conversationProfiles/*}:\024conver"
- + "sation_profile\022\352\001\n\031DeleteConversationPro"
- + "file\022<.google.cloud.dialogflow.v2.Delete"
- + "ConversationProfileRequest\032\026.google.prot"
- + "obuf.Empty\"w\332A\004name\202\323\344\223\002j*,/v2/{name=pro"
- + "jects/*/conversationProfiles/*}Z:*8/v2/{"
- + "name=projects/*/locations/*/conversation"
- + "Profiles/*}\022\350\003\n\032SetSuggestionFeatureConf"
- + "ig\022=.google.cloud.dialogflow.v2.SetSugge"
- + "stionFeatureConfigRequest\032\035.google.longr"
- + "unning.Operation\"\353\002\312AB\n\023ConversationProf"
- + "ile\022+SetSuggestionFeatureConfigOperation"
- + "Metadata\332A\024conversation_profile\332A?conver"
- + "sation_profile,participant_role,suggesti"
- + "on_feature_config\202\323\344\223\002\306\001\"W/v2/{conversat"
- + "ion_profile=projects/*/conversationProfi"
- + "les/*}:setSuggestionFeatureConfig:\001*Zh\"c"
- + "/v2/{conversation_profile=projects/*/loc"
- + "ations/*/conversationProfiles/*}:setSugg"
- + "estionFeatureConfig:\001*\022\360\003\n\034ClearSuggesti"
- + "onFeatureConfig\022?.google.cloud.dialogflo"
- + "w.v2.ClearSuggestionFeatureConfigRequest"
- + "\032\035.google.longrunning.Operation\"\357\002\312AD\n\023C"
- + "onversationProfile\022-ClearSuggestionFeatu"
- + "reConfigOperationMetadata\332A\024conversation"
- + "_profile\332A=conversation_profile,particip"
- + "ant_role,suggestion_feature_type\202\323\344\223\002\312\001\""
- + "Y/v2/{conversation_profile=projects/*/co"
- + "nversationProfiles/*}:clearSuggestionFea"
- + "tureConfig:\001*Zj\"e/v2/{conversation_profi"
- + "le=projects/*/locations/*/conversationPr"
- + "ofiles/*}:clearSuggestionFeatureConfig:\001"
- + "*\032x\312A\031dialogflow.googleapis.com\322AYhttps:"
- + "//www.googleapis.com/auth/cloud-platform"
- + ",https://www.googleapis.com/auth/dialogf"
- + "lowB\240\002\n\036com.google.cloud.dialogflow.v2B\030"
- + "ConversationProfileProtoP\001Z>cloud.google"
- + ".com/go/dialogflow/apiv2/dialogflowpb;di"
- + "alogflowpb\370\001\001\242\002\002DF\252\002\032Google.Cloud.Dialog"
- + "flow.V2\352A|\n,dialogflow.googleapis.com/CX"
- + "SecuritySettings\022Lprojects/{project}/loc"
- + "ations/{location}/securitySettings/{secu"
- + "rity_settings}b\006proto3"
+ + "w.v2.ConversationProfile\"\352\001\332A conversati"
+ + "on_profile,update_mask\202\323\344\223\002\300\0012A/v2/{conv"
+ + "ersation_profile.name=projects/*/convers"
+ + "ationProfiles/*}:\024conversation_profileZe"
+ + "2M/v2/{conversation_profile.name=project"
+ + "s/*/locations/*/conversationProfiles/*}:"
+ + "\024conversation_profile\022\352\001\n\031DeleteConversa"
+ + "tionProfile\022<.google.cloud.dialogflow.v2"
+ + ".DeleteConversationProfileRequest\032\026.goog"
+ + "le.protobuf.Empty\"w\332A\004name\202\323\344\223\002j*,/v2/{n"
+ + "ame=projects/*/conversationProfiles/*}Z:"
+ + "*8/v2/{name=projects/*/locations/*/conve"
+ + "rsationProfiles/*}\022\350\003\n\032SetSuggestionFeat"
+ + "ureConfig\022=.google.cloud.dialogflow.v2.S"
+ + "etSuggestionFeatureConfigRequest\032\035.googl"
+ + "e.longrunning.Operation\"\353\002\312AB\n\023Conversat"
+ + "ionProfile\022+SetSuggestionFeatureConfigOp"
+ + "erationMetadata\332A\024conversation_profile\332A"
+ + "?conversation_profile,participant_role,s"
+ + "uggestion_feature_config\202\323\344\223\002\306\001\"W/v2/{co"
+ + "nversation_profile=projects/*/conversati"
+ + "onProfiles/*}:setSuggestionFeatureConfig"
+ + ":\001*Zh\"c/v2/{conversation_profile=project"
+ + "s/*/locations/*/conversationProfiles/*}:"
+ + "setSuggestionFeatureConfig:\001*\022\360\003\n\034ClearS"
+ + "uggestionFeatureConfig\022?.google.cloud.di"
+ + "alogflow.v2.ClearSuggestionFeatureConfig"
+ + "Request\032\035.google.longrunning.Operation\"\357"
+ + "\002\312AD\n\023ConversationProfile\022-ClearSuggesti"
+ + "onFeatureConfigOperationMetadata\332A\024conve"
+ + "rsation_profile\332A=conversation_profile,p"
+ + "articipant_role,suggestion_feature_type\202"
+ + "\323\344\223\002\312\001\"Y/v2/{conversation_profile=projec"
+ + "ts/*/conversationProfiles/*}:clearSugges"
+ + "tionFeatureConfig:\001*Zj\"e/v2/{conversatio"
+ + "n_profile=projects/*/locations/*/convers"
+ + "ationProfiles/*}:clearSuggestionFeatureC"
+ + "onfig:\001*\032x\312A\031dialogflow.googleapis.com\322A"
+ + "Yhttps://www.googleapis.com/auth/cloud-p"
+ + "latform,https://www.googleapis.com/auth/"
+ + "dialogflowB\240\002\n\036com.google.cloud.dialogfl"
+ + "ow.v2B\030ConversationProfileProtoP\001Z>cloud"
+ + ".google.com/go/dialogflow/apiv2/dialogfl"
+ + "owpb;dialogflowpb\370\001\001\242\002\002DF\252\002\032Google.Cloud"
+ + ".Dialogflow.V2\352A|\n,dialogflow.googleapis"
+ + ".com/CXSecuritySettings\022Lprojects/{proje"
+ + "ct}/locations/{location}/securitySetting"
+ + "s/{security_settings}b\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
@@ -418,6 +420,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
com.google.cloud.dialogflow.v2.AudioConfigProto.getDescriptor(),
com.google.cloud.dialogflow.v2.ParticipantProto.getDescriptor(),
com.google.longrunning.OperationsProto.getDescriptor(),
+ com.google.protobuf.DurationProto.getDescriptor(),
com.google.protobuf.EmptyProto.getDescriptor(),
com.google.protobuf.FieldMaskProto.getDescriptor(),
com.google.protobuf.TimestampProto.getDescriptor(),
@@ -498,7 +501,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_cloud_dialogflow_v2_AutomatedAgentConfig_descriptor,
new java.lang.String[] {
- "Agent",
+ "Agent", "SessionTtl",
});
internal_static_google_cloud_dialogflow_v2_HumanAgentAssistantConfig_descriptor =
getDescriptor().getMessageTypes().get(8);
@@ -736,6 +739,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
com.google.cloud.dialogflow.v2.AudioConfigProto.getDescriptor();
com.google.cloud.dialogflow.v2.ParticipantProto.getDescriptor();
com.google.longrunning.OperationsProto.getDescriptor();
+ com.google.protobuf.DurationProto.getDescriptor();
com.google.protobuf.EmptyProto.getDescriptor();
com.google.protobuf.FieldMaskProto.getDescriptor();
com.google.protobuf.TimestampProto.getDescriptor();
diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/Document.java b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/Document.java
index 5e42e8e37525..1b7d7e74267d 100644
--- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/Document.java
+++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/Document.java
@@ -2036,7 +2036,7 @@ public com.google.protobuf.ByteString getRawContent() {
*
* If a reload fails with internal errors, the system will try to reload the
* document on the next day.
- * If a reload fails with non-retriable errors (e.g. PERMISION_DENIED), the
+ * If a reload fails with non-retriable errors (e.g. PERMISSION_DENIED), the
* system will not try to reload the document anymore. You need to manually
* reload the document successfully by calling `ReloadDocument` and clear the
* errors.
@@ -3814,7 +3814,7 @@ public Builder clearRawContent() {
*
* If a reload fails with internal errors, the system will try to reload the
* document on the next day.
- * If a reload fails with non-retriable errors (e.g. PERMISION_DENIED), the
+ * If a reload fails with non-retriable errors (e.g. PERMISSION_DENIED), the
* system will not try to reload the document anymore. You need to manually
* reload the document successfully by calling `ReloadDocument` and clear the
* errors.
@@ -3844,7 +3844,7 @@ public boolean getEnableAutoReload() {
*
* If a reload fails with internal errors, the system will try to reload the
* document on the next day.
- * If a reload fails with non-retriable errors (e.g. PERMISION_DENIED), the
+ * If a reload fails with non-retriable errors (e.g. PERMISSION_DENIED), the
* system will not try to reload the document anymore. You need to manually
* reload the document successfully by calling `ReloadDocument` and clear the
* errors.
@@ -3878,7 +3878,7 @@ public Builder setEnableAutoReload(boolean value) {
*
* If a reload fails with internal errors, the system will try to reload the
* document on the next day.
- * If a reload fails with non-retriable errors (e.g. PERMISION_DENIED), the
+ * If a reload fails with non-retriable errors (e.g. PERMISSION_DENIED), the
* system will not try to reload the document anymore. You need to manually
* reload the document successfully by calling `ReloadDocument` and clear the
* errors.
diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DocumentOrBuilder.java b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DocumentOrBuilder.java
index 1810337de9db..a94394dd315b 100644
--- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DocumentOrBuilder.java
+++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DocumentOrBuilder.java
@@ -283,7 +283,7 @@ public interface DocumentOrBuilder
*
* If a reload fails with internal errors, the system will try to reload the
* document on the next day.
- * If a reload fails with non-retriable errors (e.g. PERMISION_DENIED), the
+ * If a reload fails with non-retriable errors (e.g. PERMISSION_DENIED), the
* system will not try to reload the document anymore. You need to manually
* reload the document successfully by calling `ReloadDocument` and clear the
* errors.
diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DocumentProto.java b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DocumentProto.java
index 86f753481ab8..14e51d222c2c 100644
--- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DocumentProto.java
+++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DocumentProto.java
@@ -152,125 +152,125 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "entRequest\022;\n\006parent\030\001 \001(\tB+\342A\001\002\372A$\022\"dia"
+ "logflow.googleapis.com/Document\022<\n\010docum"
+ "ent\030\002 \001(\0132$.google.cloud.dialogflow.v2.D"
- + "ocumentB\004\342A\001\002\"\226\002\n\026ImportDocumentsRequest"
+ + "ocumentB\004\342A\001\002\"\234\002\n\026ImportDocumentsRequest"
+ "\022;\n\006parent\030\001 \001(\tB+\342A\001\002\372A$\022\"dialogflow.go"
- + "ogleapis.com/Document\022<\n\ngcs_source\030\002 \001("
+ + "ogleapis.com/Document\022B\n\ngcs_source\030\002 \001("
+ "\0132&.google.cloud.dialogflow.v2.GcsSource"
- + "sH\000\022S\n\021document_template\030\003 \001(\01322.google."
- + "cloud.dialogflow.v2.ImportDocumentTempla"
- + "teB\004\342A\001\002\022\"\n\032import_gcs_custom_metadata\030\004"
- + " \001(\010B\010\n\006source\"\211\002\n\026ImportDocumentTemplat"
- + "e\022\027\n\tmime_type\030\001 \001(\tB\004\342A\001\002\022Q\n\017knowledge_"
- + "types\030\002 \003(\01622.google.cloud.dialogflow.v2"
- + ".Document.KnowledgeTypeB\004\342A\001\002\022R\n\010metadat"
- + "a\030\003 \003(\0132@.google.cloud.dialogflow.v2.Imp"
- + "ortDocumentTemplate.MetadataEntry\032/\n\rMet"
- + "adataEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\002"
- + "8\001\"?\n\027ImportDocumentsResponse\022$\n\010warning"
- + "s\030\001 \003(\0132\022.google.rpc.Status\"R\n\025DeleteDoc"
- + "umentRequest\0229\n\004name\030\001 \001(\tB+\342A\001\002\372A$\n\"dia"
- + "logflow.googleapis.com/Document\"\214\001\n\025Upda"
- + "teDocumentRequest\022<\n\010document\030\001 \001(\0132$.go"
- + "ogle.cloud.dialogflow.v2.DocumentB\004\342A\001\002\022"
- + "5\n\013update_mask\030\002 \001(\0132\032.google.protobuf.F"
- + "ieldMaskB\004\342A\001\001\"\321\001\n\025ReloadDocumentRequest"
- + "\0229\n\004name\030\001 \001(\tB+\342A\001\002\372A$\n\"dialogflow.goog"
- + "leapis.com/Document\022\033\n\013content_uri\030\003 \001(\t"
- + "B\004\342A\001\001H\000\022(\n\032import_gcs_custom_metadata\030\004"
- + " \001(\010B\004\342A\001\001\022,\n\036smart_messaging_partial_up"
- + "date\030\005 \001(\010B\004\342A\001\001B\010\n\006source\"\355\001\n\025ExportDoc"
- + "umentRequest\0229\n\004name\030\001 \001(\tB+\342A\001\002\372A$\n\"dia"
- + "logflow.googleapis.com/Document\022E\n\017gcs_d"
- + "estination\030\002 \001(\0132*.google.cloud.dialogfl"
- + "ow.v2.GcsDestinationH\000\022\033\n\023export_full_co"
- + "ntent\030\003 \001(\010\022&\n\036smart_messaging_partial_u"
- + "pdate\030\005 \001(\010B\r\n\013destination\"g\n\027ExportOper"
- + "ationMetadata\022L\n\030exported_gcs_destinatio"
- + "n\030\001 \001(\0132*.google.cloud.dialogflow.v2.Gcs"
- + "Destination\"\273\002\n\032KnowledgeOperationMetada"
- + "ta\022Q\n\005state\030\001 \001(\0162<.google.cloud.dialogf"
- + "low.v2.KnowledgeOperationMetadata.StateB"
- + "\004\342A\001\003\022\026\n\016knowledge_base\030\003 \001(\t\022X\n\031export_"
- + "operation_metadata\030\004 \001(\01323.google.cloud."
- + "dialogflow.v2.ExportOperationMetadataH\000\""
- + "B\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\013\n\007PENDI"
- + "NG\020\001\022\013\n\007RUNNING\020\002\022\010\n\004DONE\020\003B\024\n\022operation"
- + "_metadata2\254\026\n\tDocuments\022\271\002\n\rListDocument"
- + "s\0220.google.cloud.dialogflow.v2.ListDocum"
- + "entsRequest\0321.google.cloud.dialogflow.v2"
- + ".ListDocumentsResponse\"\302\001\332A\006parent\202\323\344\223\002\262"
- + "\001\0222/v2/{parent=projects/*/knowledgeBases"
- + "/*}/documentsZ@\022>/v2/{parent=projects/*/"
- + "locations/*/knowledgeBases/*}/documentsZ"
- + ":\0228/v2/{parent=projects/*/agent/knowledg"
- + "eBases/*}/documents\022\246\002\n\013GetDocument\022..go"
- + "ogle.cloud.dialogflow.v2.GetDocumentRequ"
- + "est\032$.google.cloud.dialogflow.v2.Documen"
- + "t\"\300\001\332A\004name\202\323\344\223\002\262\001\0222/v2/{name=projects/*"
- + "/knowledgeBases/*/documents/*}Z@\022>/v2/{n"
- + "ame=projects/*/locations/*/knowledgeBase"
- + "s/*/documents/*}Z:\0228/v2/{name=projects/*"
- + "/agent/knowledgeBases/*/documents/*}\022\367\002\n"
- + "\016CreateDocument\0221.google.cloud.dialogflo"
- + "w.v2.CreateDocumentRequest\032\035.google.long"
- + "running.Operation\"\222\002\312A&\n\010Document\022\032Knowl"
- + "edgeOperationMetadata\332A\017parent,document\202"
- + "\323\344\223\002\320\001\"2/v2/{parent=projects/*/knowledge"
- + "Bases/*}/documents:\010documentZJ\">/v2/{par"
- + "ent=projects/*/locations/*/knowledgeBase"
- + "s/*}/documents:\010documentZD\"8/v2/{parent="
- + "projects/*/agent/knowledgeBases/*}/docum"
- + "ents:\010document\022\260\002\n\017ImportDocuments\0222.goo"
- + "gle.cloud.dialogflow.v2.ImportDocumentsR"
- + "equest\032\035.google.longrunning.Operation\"\311\001"
- + "\312A5\n\027ImportDocumentsResponse\022\032KnowledgeO"
- + "perationMetadata\202\323\344\223\002\212\001\"9/v2/{parent=pro"
- + "jects/*/knowledgeBases/*}/documents:impo"
- + "rt:\001*ZJ\"E/v2/{parent=projects/*/location"
- + "s/*/knowledgeBases/*}/documents:import:\001"
- + "*\022\333\002\n\016DeleteDocument\0221.google.cloud.dial"
- + "ogflow.v2.DeleteDocumentRequest\032\035.google"
- + ".longrunning.Operation\"\366\001\312A3\n\025google.pro"
- + "tobuf.Empty\022\032KnowledgeOperationMetadata\332"
- + "A\004name\202\323\344\223\002\262\001*2/v2/{name=projects/*/know"
- + "ledgeBases/*/documents/*}Z@*>/v2/{name=p"
- + "rojects/*/locations/*/knowledgeBases/*/d"
- + "ocuments/*}Z:*8/v2/{name=projects/*/agen"
- + "t/knowledgeBases/*/documents/*}\022\227\003\n\016Upda"
- + "teDocument\0221.google.cloud.dialogflow.v2."
- + "UpdateDocumentRequest\032\035.google.longrunni"
- + "ng.Operation\"\262\002\312A&\n\010Document\022\032KnowledgeO"
- + "perationMetadata\332A\024document,update_mask\202"
- + "\323\344\223\002\353\0012;/v2/{document.name=projects/*/kn"
- + "owledgeBases/*/documents/*}:\010documentZS2"
- + "G/v2/{document.name=projects/*/locations"
- + "/*/knowledgeBases/*/documents/*}:\010docume"
- + "ntZM2A/v2/{document.name=projects/*/agen"
- + "t/knowledgeBases/*/documents/*}:\010documen"
- + "t\022\370\002\n\016ReloadDocument\0221.google.cloud.dial"
- + "ogflow.v2.ReloadDocumentRequest\032\035.google"
- + ".longrunning.Operation\"\223\002\312A&\n\010Document\022\032"
- + "KnowledgeOperationMetadata\332A\020name,conten"
- + "t_uri\202\323\344\223\002\320\001\"9/v2/{name=projects/*/knowl"
- + "edgeBases/*/documents/*}:reload:\001*ZJ\"E/v"
- + "2/{name=projects/*/locations/*/knowledge"
- + "Bases/*/documents/*}:reload:\001*ZD\"?/v2/{n"
- + "ame=projects/*/agent/knowledgeBases/*/do"
- + "cuments/*}:reload:\001*\022\237\002\n\016ExportDocument\022"
- + "1.google.cloud.dialogflow.v2.ExportDocum"
- + "entRequest\032\035.google.longrunning.Operatio"
- + "n\"\272\001\312A&\n\010Document\022\032KnowledgeOperationMet"
- + "adata\202\323\344\223\002\212\001\"9/v2/{name=projects/*/knowl"
- + "edgeBases/*/documents/*}:export:\001*ZJ\"E/v"
- + "2/{name=projects/*/locations/*/knowledge"
- + "Bases/*/documents/*}:export:\001*\032x\312A\031dialo"
- + "gflow.googleapis.com\322AYhttps://www.googl"
- + "eapis.com/auth/cloud-platform,https://ww"
- + "w.googleapis.com/auth/dialogflowB\226\001\n\036com"
- + ".google.cloud.dialogflow.v2B\rDocumentPro"
- + "toP\001Z>cloud.google.com/go/dialogflow/api"
- + "v2/dialogflowpb;dialogflowpb\370\001\001\242\002\002DF\252\002\032G"
- + "oogle.Cloud.Dialogflow.V2b\006proto3"
+ + "sB\004\342A\001\001H\000\022S\n\021document_template\030\003 \001(\01322.g"
+ + "oogle.cloud.dialogflow.v2.ImportDocument"
+ + "TemplateB\004\342A\001\002\022\"\n\032import_gcs_custom_meta"
+ + "data\030\004 \001(\010B\010\n\006source\"\211\002\n\026ImportDocumentT"
+ + "emplate\022\027\n\tmime_type\030\001 \001(\tB\004\342A\001\002\022Q\n\017know"
+ + "ledge_types\030\002 \003(\01622.google.cloud.dialogf"
+ + "low.v2.Document.KnowledgeTypeB\004\342A\001\002\022R\n\010m"
+ + "etadata\030\003 \003(\0132@.google.cloud.dialogflow."
+ + "v2.ImportDocumentTemplate.MetadataEntry\032"
+ + "/\n\rMetadataEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002"
+ + " \001(\t:\0028\001\"?\n\027ImportDocumentsResponse\022$\n\010w"
+ + "arnings\030\001 \003(\0132\022.google.rpc.Status\"R\n\025Del"
+ + "eteDocumentRequest\0229\n\004name\030\001 \001(\tB+\342A\001\002\372A"
+ + "$\n\"dialogflow.googleapis.com/Document\"\214\001"
+ + "\n\025UpdateDocumentRequest\022<\n\010document\030\001 \001("
+ + "\0132$.google.cloud.dialogflow.v2.DocumentB"
+ + "\004\342A\001\002\0225\n\013update_mask\030\002 \001(\0132\032.google.prot"
+ + "obuf.FieldMaskB\004\342A\001\001\"\321\001\n\025ReloadDocumentR"
+ + "equest\0229\n\004name\030\001 \001(\tB+\342A\001\002\372A$\n\"dialogflo"
+ + "w.googleapis.com/Document\022\033\n\013content_uri"
+ + "\030\003 \001(\tB\004\342A\001\001H\000\022(\n\032import_gcs_custom_meta"
+ + "data\030\004 \001(\010B\004\342A\001\001\022,\n\036smart_messaging_part"
+ + "ial_update\030\005 \001(\010B\004\342A\001\001B\010\n\006source\"\355\001\n\025Exp"
+ + "ortDocumentRequest\0229\n\004name\030\001 \001(\tB+\342A\001\002\372A"
+ + "$\n\"dialogflow.googleapis.com/Document\022E\n"
+ + "\017gcs_destination\030\002 \001(\0132*.google.cloud.di"
+ + "alogflow.v2.GcsDestinationH\000\022\033\n\023export_f"
+ + "ull_content\030\003 \001(\010\022&\n\036smart_messaging_par"
+ + "tial_update\030\005 \001(\010B\r\n\013destination\"g\n\027Expo"
+ + "rtOperationMetadata\022L\n\030exported_gcs_dest"
+ + "ination\030\001 \001(\0132*.google.cloud.dialogflow."
+ + "v2.GcsDestination\"\273\002\n\032KnowledgeOperation"
+ + "Metadata\022Q\n\005state\030\001 \001(\0162<.google.cloud.d"
+ + "ialogflow.v2.KnowledgeOperationMetadata."
+ + "StateB\004\342A\001\003\022\026\n\016knowledge_base\030\003 \001(\t\022X\n\031e"
+ + "xport_operation_metadata\030\004 \001(\01323.google."
+ + "cloud.dialogflow.v2.ExportOperationMetad"
+ + "ataH\000\"B\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\013\n"
+ + "\007PENDING\020\001\022\013\n\007RUNNING\020\002\022\010\n\004DONE\020\003B\024\n\022ope"
+ + "ration_metadata2\254\026\n\tDocuments\022\271\002\n\rListDo"
+ + "cuments\0220.google.cloud.dialogflow.v2.Lis"
+ + "tDocumentsRequest\0321.google.cloud.dialogf"
+ + "low.v2.ListDocumentsResponse\"\302\001\332A\006parent"
+ + "\202\323\344\223\002\262\001\0222/v2/{parent=projects/*/knowledg"
+ + "eBases/*}/documentsZ@\022>/v2/{parent=proje"
+ + "cts/*/locations/*/knowledgeBases/*}/docu"
+ + "mentsZ:\0228/v2/{parent=projects/*/agent/kn"
+ + "owledgeBases/*}/documents\022\246\002\n\013GetDocumen"
+ + "t\022..google.cloud.dialogflow.v2.GetDocume"
+ + "ntRequest\032$.google.cloud.dialogflow.v2.D"
+ + "ocument\"\300\001\332A\004name\202\323\344\223\002\262\001\0222/v2/{name=proj"
+ + "ects/*/knowledgeBases/*/documents/*}Z@\022>"
+ + "/v2/{name=projects/*/locations/*/knowled"
+ + "geBases/*/documents/*}Z:\0228/v2/{name=proj"
+ + "ects/*/agent/knowledgeBases/*/documents/"
+ + "*}\022\367\002\n\016CreateDocument\0221.google.cloud.dia"
+ + "logflow.v2.CreateDocumentRequest\032\035.googl"
+ + "e.longrunning.Operation\"\222\002\312A&\n\010Document\022"
+ + "\032KnowledgeOperationMetadata\332A\017parent,doc"
+ + "ument\202\323\344\223\002\320\001\"2/v2/{parent=projects/*/kno"
+ + "wledgeBases/*}/documents:\010documentZJ\">/v"
+ + "2/{parent=projects/*/locations/*/knowled"
+ + "geBases/*}/documents:\010documentZD\"8/v2/{p"
+ + "arent=projects/*/agent/knowledgeBases/*}"
+ + "/documents:\010document\022\260\002\n\017ImportDocuments"
+ + "\0222.google.cloud.dialogflow.v2.ImportDocu"
+ + "mentsRequest\032\035.google.longrunning.Operat"
+ + "ion\"\311\001\312A5\n\027ImportDocumentsResponse\022\032Know"
+ + "ledgeOperationMetadata\202\323\344\223\002\212\001\"9/v2/{pare"
+ + "nt=projects/*/knowledgeBases/*}/document"
+ + "s:import:\001*ZJ\"E/v2/{parent=projects/*/lo"
+ + "cations/*/knowledgeBases/*}/documents:im"
+ + "port:\001*\022\333\002\n\016DeleteDocument\0221.google.clou"
+ + "d.dialogflow.v2.DeleteDocumentRequest\032\035."
+ + "google.longrunning.Operation\"\366\001\312A3\n\025goog"
+ + "le.protobuf.Empty\022\032KnowledgeOperationMet"
+ + "adata\332A\004name\202\323\344\223\002\262\001*2/v2/{name=projects/"
+ + "*/knowledgeBases/*/documents/*}Z@*>/v2/{"
+ + "name=projects/*/locations/*/knowledgeBas"
+ + "es/*/documents/*}Z:*8/v2/{name=projects/"
+ + "*/agent/knowledgeBases/*/documents/*}\022\227\003"
+ + "\n\016UpdateDocument\0221.google.cloud.dialogfl"
+ + "ow.v2.UpdateDocumentRequest\032\035.google.lon"
+ + "grunning.Operation\"\262\002\312A&\n\010Document\022\032Know"
+ + "ledgeOperationMetadata\332A\024document,update"
+ + "_mask\202\323\344\223\002\353\0012;/v2/{document.name=project"
+ + "s/*/knowledgeBases/*/documents/*}:\010docum"
+ + "entZS2G/v2/{document.name=projects/*/loc"
+ + "ations/*/knowledgeBases/*/documents/*}:\010"
+ + "documentZM2A/v2/{document.name=projects/"
+ + "*/agent/knowledgeBases/*/documents/*}:\010d"
+ + "ocument\022\370\002\n\016ReloadDocument\0221.google.clou"
+ + "d.dialogflow.v2.ReloadDocumentRequest\032\035."
+ + "google.longrunning.Operation\"\223\002\312A&\n\010Docu"
+ + "ment\022\032KnowledgeOperationMetadata\332A\020name,"
+ + "content_uri\202\323\344\223\002\320\001\"9/v2/{name=projects/*"
+ + "/knowledgeBases/*/documents/*}:reload:\001*"
+ + "ZJ\"E/v2/{name=projects/*/locations/*/kno"
+ + "wledgeBases/*/documents/*}:reload:\001*ZD\"?"
+ + "/v2/{name=projects/*/agent/knowledgeBase"
+ + "s/*/documents/*}:reload:\001*\022\237\002\n\016ExportDoc"
+ + "ument\0221.google.cloud.dialogflow.v2.Expor"
+ + "tDocumentRequest\032\035.google.longrunning.Op"
+ + "eration\"\272\001\312A&\n\010Document\022\032KnowledgeOperat"
+ + "ionMetadata\202\323\344\223\002\212\001\"9/v2/{name=projects/*"
+ + "/knowledgeBases/*/documents/*}:export:\001*"
+ + "ZJ\"E/v2/{name=projects/*/locations/*/kno"
+ + "wledgeBases/*/documents/*}:export:\001*\032x\312A"
+ + "\031dialogflow.googleapis.com\322AYhttps://www"
+ + ".googleapis.com/auth/cloud-platform,http"
+ + "s://www.googleapis.com/auth/dialogflowB\226"
+ + "\001\n\036com.google.cloud.dialogflow.v2B\rDocum"
+ + "entProtoP\001Z>cloud.google.com/go/dialogfl"
+ + "ow/apiv2/dialogflowpb;dialogflowpb\370\001\001\242\002\002"
+ + "DF\252\002\032Google.Cloud.Dialogflow.V2b\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/HumanAgentAssistantConfig.java b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/HumanAgentAssistantConfig.java
index 0f38ce1f6af8..f5a47e7cdbef 100644
--- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/HumanAgentAssistantConfig.java
+++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/HumanAgentAssistantConfig.java
@@ -4615,7 +4615,8 @@ public interface SuggestionQueryConfigOrBuilder
* If this field is not set, it defaults to 0.0, which means that all
* suggestions are returned.
*
- * Supported features: ARTICLE_SUGGESTION, FAQ, SMART_REPLY, SMART_COMPOSE.
+ * Supported features: ARTICLE_SUGGESTION, FAQ, SMART_REPLY, SMART_COMPOSE,
+ * KNOWLEDGE_SEARCH, KNOWLEDGE_ASSIST, ENTITY_EXTRACTION.
*
*
* float confidence_threshold = 5;
@@ -6574,7 +6575,7 @@ public interface DialogflowQuerySourceOrBuilder
*
* * Required. The name of a Dialogflow virtual agent used for end user side - * intent detection and suggestion. Format: `projects/<Project Number/ + * intent detection and suggestion. Format: `projects/<Project * ID>/locations/<Location ID>/agent`. When multiple agents are allowed in * the same Dialogflow project. *@@ -6591,7 +6592,7 @@ public interface DialogflowQuerySourceOrBuilder * *
* Required. The name of a Dialogflow virtual agent used for end user side - * intent detection and suggestion. Format: `projects/<Project Number/ + * intent detection and suggestion. Format: `projects/<Project * ID>/locations/<Location ID>/agent`. When multiple agents are allowed in * the same Dialogflow project. *@@ -6662,7 +6663,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
* Required. The name of a Dialogflow virtual agent used for end user side - * intent detection and suggestion. Format: `projects/<Project Number/ + * intent detection and suggestion. Format: `projects/<Project * ID>/locations/<Location ID>/agent`. When multiple agents are allowed in * the same Dialogflow project. *@@ -6690,7 +6691,7 @@ public java.lang.String getAgent() { * *
* Required. The name of a Dialogflow virtual agent used for end user side - * intent detection and suggestion. Format: `projects/<Project Number/ + * intent detection and suggestion. Format: `projects/<Project * ID>/locations/<Location ID>/agent`. When multiple agents are allowed in * the same Dialogflow project. *@@ -7128,7 +7129,7 @@ public Builder mergeFrom( * *
* Required. The name of a Dialogflow virtual agent used for end user side - * intent detection and suggestion. Format: `projects/<Project Number/ + * intent detection and suggestion. Format: `projects/<Project * ID>/locations/<Location ID>/agent`. When multiple agents are allowed in * the same Dialogflow project. *@@ -7155,7 +7156,7 @@ public java.lang.String getAgent() { * *
* Required. The name of a Dialogflow virtual agent used for end user side - * intent detection and suggestion. Format: `projects/<Project Number/ + * intent detection and suggestion. Format: `projects/<Project * ID>/locations/<Location ID>/agent`. When multiple agents are allowed in * the same Dialogflow project. *@@ -7182,7 +7183,7 @@ public com.google.protobuf.ByteString getAgentBytes() { * *
* Required. The name of a Dialogflow virtual agent used for end user side - * intent detection and suggestion. Format: `projects/<Project Number/ + * intent detection and suggestion. Format: `projects/<Project * ID>/locations/<Location ID>/agent`. When multiple agents are allowed in * the same Dialogflow project. *@@ -7208,7 +7209,7 @@ public Builder setAgent(java.lang.String value) { * *
* Required. The name of a Dialogflow virtual agent used for end user side - * intent detection and suggestion. Format: `projects/<Project Number/ + * intent detection and suggestion. Format: `projects/<Project * ID>/locations/<Location ID>/agent`. When multiple agents are allowed in * the same Dialogflow project. *@@ -7230,7 +7231,7 @@ public Builder clearAgent() { * *
* Required. The name of a Dialogflow virtual agent used for end user side - * intent detection and suggestion. Format: `projects/<Project Number/ + * intent detection and suggestion. Format: `projects/<Project * ID>/locations/<Location ID>/agent`. When multiple agents are allowed in * the same Dialogflow project. *@@ -8458,7 +8459,8 @@ public int getMaxResults() { * If this field is not set, it defaults to 0.0, which means that all * suggestions are returned. * - * Supported features: ARTICLE_SUGGESTION, FAQ, SMART_REPLY, SMART_COMPOSE. + * Supported features: ARTICLE_SUGGESTION, FAQ, SMART_REPLY, SMART_COMPOSE, + * KNOWLEDGE_SEARCH, KNOWLEDGE_ASSIST, ENTITY_EXTRACTION. * * *
float confidence_threshold = 5;
@@ -10020,7 +10022,8 @@ public Builder clearMaxResults() {
* If this field is not set, it defaults to 0.0, which means that all
* suggestions are returned.
*
- * Supported features: ARTICLE_SUGGESTION, FAQ, SMART_REPLY, SMART_COMPOSE.
+ * Supported features: ARTICLE_SUGGESTION, FAQ, SMART_REPLY, SMART_COMPOSE,
+ * KNOWLEDGE_SEARCH, KNOWLEDGE_ASSIST, ENTITY_EXTRACTION.
*
*
* float confidence_threshold = 5;
@@ -10053,7 +10056,8 @@ public float getConfidenceThreshold() {
* If this field is not set, it defaults to 0.0, which means that all
* suggestions are returned.
*
- * Supported features: ARTICLE_SUGGESTION, FAQ, SMART_REPLY, SMART_COMPOSE.
+ * Supported features: ARTICLE_SUGGESTION, FAQ, SMART_REPLY, SMART_COMPOSE,
+ * KNOWLEDGE_SEARCH, KNOWLEDGE_ASSIST, ENTITY_EXTRACTION.
*
*
* float confidence_threshold = 5;
@@ -10090,7 +10094,8 @@ public Builder setConfidenceThreshold(float value) {
* If this field is not set, it defaults to 0.0, which means that all
* suggestions are returned.
*
- * Supported features: ARTICLE_SUGGESTION, FAQ, SMART_REPLY, SMART_COMPOSE.
+ * Supported features: ARTICLE_SUGGESTION, FAQ, SMART_REPLY, SMART_COMPOSE,
+ * KNOWLEDGE_SEARCH, KNOWLEDGE_ASSIST, ENTITY_EXTRACTION.
*
*
* float confidence_threshold = 5;
diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ImportDocumentsRequest.java b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ImportDocumentsRequest.java
index f072d681d657..ed38f3e55150 100644
--- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ImportDocumentsRequest.java
+++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ImportDocumentsRequest.java
@@ -173,7 +173,7 @@ public com.google.protobuf.ByteString getParentBytes() {
*
*
* - * The Google Cloud Storage location for the documents. + * Optional. The Google Cloud Storage location for the documents. * The path can include a wildcard. * * These URIs may have the forms @@ -181,7 +181,9 @@ public com.google.protobuf.ByteString getParentBytes() { * `gs://<bucket-name>/<object-path>/*.<extension>`. ** - *
.google.cloud.dialogflow.v2.GcsSources gcs_source = 2;
+ *
+ * .google.cloud.dialogflow.v2.GcsSources gcs_source = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
*
* @return Whether the gcsSource field is set.
*/
@@ -193,7 +195,7 @@ public boolean hasGcsSource() {
*
*
* - * The Google Cloud Storage location for the documents. + * Optional. The Google Cloud Storage location for the documents. * The path can include a wildcard. * * These URIs may have the forms @@ -201,7 +203,9 @@ public boolean hasGcsSource() { * `gs://<bucket-name>/<object-path>/*.<extension>`. ** - *
.google.cloud.dialogflow.v2.GcsSources gcs_source = 2;
+ *
+ * .google.cloud.dialogflow.v2.GcsSources gcs_source = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
*
* @return The gcsSource.
*/
@@ -216,7 +220,7 @@ public com.google.cloud.dialogflow.v2.GcsSources getGcsSource() {
*
*
* - * The Google Cloud Storage location for the documents. + * Optional. The Google Cloud Storage location for the documents. * The path can include a wildcard. * * These URIs may have the forms @@ -224,7 +228,9 @@ public com.google.cloud.dialogflow.v2.GcsSources getGcsSource() { * `gs://<bucket-name>/<object-path>/*.<extension>`. ** - *
.google.cloud.dialogflow.v2.GcsSources gcs_source = 2;
+ *
+ * .google.cloud.dialogflow.v2.GcsSources gcs_source = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
*/
@java.lang.Override
public com.google.cloud.dialogflow.v2.GcsSourcesOrBuilder getGcsSourceOrBuilder() {
@@ -913,7 +919,7 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
*
*
* - * The Google Cloud Storage location for the documents. + * Optional. The Google Cloud Storage location for the documents. * The path can include a wildcard. * * These URIs may have the forms @@ -921,7 +927,9 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * `gs://<bucket-name>/<object-path>/*.<extension>`. ** - *
.google.cloud.dialogflow.v2.GcsSources gcs_source = 2;
+ *
+ * .google.cloud.dialogflow.v2.GcsSources gcs_source = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
*
* @return Whether the gcsSource field is set.
*/
@@ -933,7 +941,7 @@ public boolean hasGcsSource() {
*
*
* - * The Google Cloud Storage location for the documents. + * Optional. The Google Cloud Storage location for the documents. * The path can include a wildcard. * * These URIs may have the forms @@ -941,7 +949,9 @@ public boolean hasGcsSource() { * `gs://<bucket-name>/<object-path>/*.<extension>`. ** - *
.google.cloud.dialogflow.v2.GcsSources gcs_source = 2;
+ *
+ * .google.cloud.dialogflow.v2.GcsSources gcs_source = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
*
* @return The gcsSource.
*/
@@ -963,7 +973,7 @@ public com.google.cloud.dialogflow.v2.GcsSources getGcsSource() {
*
*
* - * The Google Cloud Storage location for the documents. + * Optional. The Google Cloud Storage location for the documents. * The path can include a wildcard. * * These URIs may have the forms @@ -971,7 +981,9 @@ public com.google.cloud.dialogflow.v2.GcsSources getGcsSource() { * `gs://<bucket-name>/<object-path>/*.<extension>`. ** - *
.google.cloud.dialogflow.v2.GcsSources gcs_source = 2;
+ *
+ * .google.cloud.dialogflow.v2.GcsSources gcs_source = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
*/
public Builder setGcsSource(com.google.cloud.dialogflow.v2.GcsSources value) {
if (gcsSourceBuilder_ == null) {
@@ -990,7 +1002,7 @@ public Builder setGcsSource(com.google.cloud.dialogflow.v2.GcsSources value) {
*
*
* - * The Google Cloud Storage location for the documents. + * Optional. The Google Cloud Storage location for the documents. * The path can include a wildcard. * * These URIs may have the forms @@ -998,7 +1010,9 @@ public Builder setGcsSource(com.google.cloud.dialogflow.v2.GcsSources value) { * `gs://<bucket-name>/<object-path>/*.<extension>`. ** - *
.google.cloud.dialogflow.v2.GcsSources gcs_source = 2;
+ *
+ * .google.cloud.dialogflow.v2.GcsSources gcs_source = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
*/
public Builder setGcsSource(com.google.cloud.dialogflow.v2.GcsSources.Builder builderForValue) {
if (gcsSourceBuilder_ == null) {
@@ -1014,7 +1028,7 @@ public Builder setGcsSource(com.google.cloud.dialogflow.v2.GcsSources.Builder bu
*
*
* - * The Google Cloud Storage location for the documents. + * Optional. The Google Cloud Storage location for the documents. * The path can include a wildcard. * * These URIs may have the forms @@ -1022,7 +1036,9 @@ public Builder setGcsSource(com.google.cloud.dialogflow.v2.GcsSources.Builder bu * `gs://<bucket-name>/<object-path>/*.<extension>`. ** - *
.google.cloud.dialogflow.v2.GcsSources gcs_source = 2;
+ *
+ * .google.cloud.dialogflow.v2.GcsSources gcs_source = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
*/
public Builder mergeGcsSource(com.google.cloud.dialogflow.v2.GcsSources value) {
if (gcsSourceBuilder_ == null) {
@@ -1051,7 +1067,7 @@ public Builder mergeGcsSource(com.google.cloud.dialogflow.v2.GcsSources value) {
*
*
* - * The Google Cloud Storage location for the documents. + * Optional. The Google Cloud Storage location for the documents. * The path can include a wildcard. * * These URIs may have the forms @@ -1059,7 +1075,9 @@ public Builder mergeGcsSource(com.google.cloud.dialogflow.v2.GcsSources value) { * `gs://<bucket-name>/<object-path>/*.<extension>`. ** - *
.google.cloud.dialogflow.v2.GcsSources gcs_source = 2;
+ *
+ * .google.cloud.dialogflow.v2.GcsSources gcs_source = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
*/
public Builder clearGcsSource() {
if (gcsSourceBuilder_ == null) {
@@ -1081,7 +1099,7 @@ public Builder clearGcsSource() {
*
*
* - * The Google Cloud Storage location for the documents. + * Optional. The Google Cloud Storage location for the documents. * The path can include a wildcard. * * These URIs may have the forms @@ -1089,7 +1107,9 @@ public Builder clearGcsSource() { * `gs://<bucket-name>/<object-path>/*.<extension>`. ** - *
.google.cloud.dialogflow.v2.GcsSources gcs_source = 2;
+ *
+ * .google.cloud.dialogflow.v2.GcsSources gcs_source = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
*/
public com.google.cloud.dialogflow.v2.GcsSources.Builder getGcsSourceBuilder() {
return getGcsSourceFieldBuilder().getBuilder();
@@ -1098,7 +1118,7 @@ public com.google.cloud.dialogflow.v2.GcsSources.Builder getGcsSourceBuilder() {
*
*
* - * The Google Cloud Storage location for the documents. + * Optional. The Google Cloud Storage location for the documents. * The path can include a wildcard. * * These URIs may have the forms @@ -1106,7 +1126,9 @@ public com.google.cloud.dialogflow.v2.GcsSources.Builder getGcsSourceBuilder() { * `gs://<bucket-name>/<object-path>/*.<extension>`. ** - *
.google.cloud.dialogflow.v2.GcsSources gcs_source = 2;
+ *
+ * .google.cloud.dialogflow.v2.GcsSources gcs_source = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
*/
@java.lang.Override
public com.google.cloud.dialogflow.v2.GcsSourcesOrBuilder getGcsSourceOrBuilder() {
@@ -1123,7 +1145,7 @@ public com.google.cloud.dialogflow.v2.GcsSourcesOrBuilder getGcsSourceOrBuilder(
*
*
* - * The Google Cloud Storage location for the documents. + * Optional. The Google Cloud Storage location for the documents. * The path can include a wildcard. * * These URIs may have the forms @@ -1131,7 +1153,9 @@ public com.google.cloud.dialogflow.v2.GcsSourcesOrBuilder getGcsSourceOrBuilder( * `gs://<bucket-name>/<object-path>/*.<extension>`. ** - *
.google.cloud.dialogflow.v2.GcsSources gcs_source = 2;
+ *
+ * .google.cloud.dialogflow.v2.GcsSources gcs_source = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.dialogflow.v2.GcsSources,
diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ImportDocumentsRequestOrBuilder.java b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ImportDocumentsRequestOrBuilder.java
index a5ef2a15c26b..13bc35e40abd 100644
--- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ImportDocumentsRequestOrBuilder.java
+++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ImportDocumentsRequestOrBuilder.java
@@ -60,7 +60,7 @@ public interface ImportDocumentsRequestOrBuilder
*
*
* - * The Google Cloud Storage location for the documents. + * Optional. The Google Cloud Storage location for the documents. * The path can include a wildcard. * * These URIs may have the forms @@ -68,7 +68,9 @@ public interface ImportDocumentsRequestOrBuilder * `gs://<bucket-name>/<object-path>/*.<extension>`. ** - *
.google.cloud.dialogflow.v2.GcsSources gcs_source = 2;
+ *
+ * .google.cloud.dialogflow.v2.GcsSources gcs_source = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
*
* @return Whether the gcsSource field is set.
*/
@@ -77,7 +79,7 @@ public interface ImportDocumentsRequestOrBuilder
*
*
* - * The Google Cloud Storage location for the documents. + * Optional. The Google Cloud Storage location for the documents. * The path can include a wildcard. * * These URIs may have the forms @@ -85,7 +87,9 @@ public interface ImportDocumentsRequestOrBuilder * `gs://<bucket-name>/<object-path>/*.<extension>`. ** - *
.google.cloud.dialogflow.v2.GcsSources gcs_source = 2;
+ *
+ * .google.cloud.dialogflow.v2.GcsSources gcs_source = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
*
* @return The gcsSource.
*/
@@ -94,7 +98,7 @@ public interface ImportDocumentsRequestOrBuilder
*
*
* - * The Google Cloud Storage location for the documents. + * Optional. The Google Cloud Storage location for the documents. * The path can include a wildcard. * * These URIs may have the forms @@ -102,7 +106,9 @@ public interface ImportDocumentsRequestOrBuilder * `gs://<bucket-name>/<object-path>/*.<extension>`. ** - *
.google.cloud.dialogflow.v2.GcsSources gcs_source = 2;
+ *
+ * .google.cloud.dialogflow.v2.GcsSources gcs_source = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
*/
com.google.cloud.dialogflow.v2.GcsSourcesOrBuilder getGcsSourceOrBuilder();
diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SuggestConversationSummaryRequest.java b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SuggestConversationSummaryRequest.java
index 9e8ea8b08769..8e38914faa89 100644
--- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SuggestConversationSummaryRequest.java
+++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SuggestConversationSummaryRequest.java
@@ -211,7 +211,7 @@ public int getContextSize() {
*
*
* - * Parameters for a human assist query. + * Parameters for a human assist query. Only used for POC/demo purpose. ** *
.google.cloud.dialogflow.v2.AssistQueryParameters assist_query_params = 5;
@@ -226,7 +226,7 @@ public boolean hasAssistQueryParams() {
*
*
* - * Parameters for a human assist query. + * Parameters for a human assist query. Only used for POC/demo purpose. ** *
.google.cloud.dialogflow.v2.AssistQueryParameters assist_query_params = 5;
@@ -243,7 +243,7 @@ public com.google.cloud.dialogflow.v2.AssistQueryParameters getAssistQueryParams
*
*
* - * Parameters for a human assist query. + * Parameters for a human assist query. Only used for POC/demo purpose. ** *
.google.cloud.dialogflow.v2.AssistQueryParameters assist_query_params = 5;
@@ -1011,7 +1011,7 @@ public Builder clearContextSize() {
*
*
* - * Parameters for a human assist query. + * Parameters for a human assist query. Only used for POC/demo purpose. ** *
.google.cloud.dialogflow.v2.AssistQueryParameters assist_query_params = 5;
@@ -1025,7 +1025,7 @@ public boolean hasAssistQueryParams() {
*
*
* - * Parameters for a human assist query. + * Parameters for a human assist query. Only used for POC/demo purpose. ** *
.google.cloud.dialogflow.v2.AssistQueryParameters assist_query_params = 5;
@@ -1045,7 +1045,7 @@ public com.google.cloud.dialogflow.v2.AssistQueryParameters getAssistQueryParams
*
*
* - * Parameters for a human assist query. + * Parameters for a human assist query. Only used for POC/demo purpose. ** *
.google.cloud.dialogflow.v2.AssistQueryParameters assist_query_params = 5;
@@ -1068,7 +1068,7 @@ public Builder setAssistQueryParams(
*
*
* - * Parameters for a human assist query. + * Parameters for a human assist query. Only used for POC/demo purpose. ** *
.google.cloud.dialogflow.v2.AssistQueryParameters assist_query_params = 5;
@@ -1088,7 +1088,7 @@ public Builder setAssistQueryParams(
*
*
* - * Parameters for a human assist query. + * Parameters for a human assist query. Only used for POC/demo purpose. ** *
.google.cloud.dialogflow.v2.AssistQueryParameters assist_query_params = 5;
@@ -1115,7 +1115,7 @@ public Builder mergeAssistQueryParams(
*
*
* - * Parameters for a human assist query. + * Parameters for a human assist query. Only used for POC/demo purpose. ** *
.google.cloud.dialogflow.v2.AssistQueryParameters assist_query_params = 5;
@@ -1134,7 +1134,7 @@ public Builder clearAssistQueryParams() {
*
*
* - * Parameters for a human assist query. + * Parameters for a human assist query. Only used for POC/demo purpose. ** *
.google.cloud.dialogflow.v2.AssistQueryParameters assist_query_params = 5;
@@ -1149,7 +1149,7 @@ public Builder clearAssistQueryParams() {
*
*
* - * Parameters for a human assist query. + * Parameters for a human assist query. Only used for POC/demo purpose. ** *
.google.cloud.dialogflow.v2.AssistQueryParameters assist_query_params = 5;
@@ -1168,7 +1168,7 @@ public Builder clearAssistQueryParams() {
*
*
* - * Parameters for a human assist query. + * Parameters for a human assist query. Only used for POC/demo purpose. ** *
.google.cloud.dialogflow.v2.AssistQueryParameters assist_query_params = 5;
diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SuggestConversationSummaryRequestOrBuilder.java b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SuggestConversationSummaryRequestOrBuilder.java
index be9838bcb085..350fc0ae6ec9 100644
--- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SuggestConversationSummaryRequestOrBuilder.java
+++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SuggestConversationSummaryRequestOrBuilder.java
@@ -110,7 +110,7 @@ public interface SuggestConversationSummaryRequestOrBuilder
*
*
* - * Parameters for a human assist query. + * Parameters for a human assist query. Only used for POC/demo purpose. ** *
.google.cloud.dialogflow.v2.AssistQueryParameters assist_query_params = 5;
@@ -122,7 +122,7 @@ public interface SuggestConversationSummaryRequestOrBuilder
*
*
* - * Parameters for a human assist query. + * Parameters for a human assist query. Only used for POC/demo purpose. ** *
.google.cloud.dialogflow.v2.AssistQueryParameters assist_query_params = 5;
@@ -134,7 +134,7 @@ public interface SuggestConversationSummaryRequestOrBuilder
*
*
* - * Parameters for a human assist query. + * Parameters for a human assist query. Only used for POC/demo purpose. ** *
.google.cloud.dialogflow.v2.AssistQueryParameters assist_query_params = 5;
diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/answer_record.proto b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/answer_record.proto
index 8f2587caa950..aa3c271ddf65 100644
--- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/answer_record.proto
+++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/answer_record.proto
@@ -208,8 +208,8 @@ message AnswerFeedback {
// Indicates whether the answer/item was clicked by the human agent
// or not. Default to false.
- // For knowledge search, the answer record is considered to be clicked if the
- // answer was copied or any URI was clicked.
+ // For knowledge search and knowledge assist, the answer record is considered
+ // to be clicked if the answer was copied or any URI was clicked.
bool clicked = 3;
// Time when the answer/item was clicked.
diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/conversation.proto b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/conversation.proto
index 625fec3a6c10..7863d4267c11 100644
--- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/conversation.proto
+++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/conversation.proto
@@ -434,7 +434,7 @@ message SuggestConversationSummaryRequest {
// suggestion. By default 500 and at most 1000.
int32 context_size = 4;
- // Parameters for a human assist query.
+ // Parameters for a human assist query. Only used for POC/demo purpose.
AssistQueryParameters assist_query_params = 5;
}
diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/conversation_profile.proto b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/conversation_profile.proto
index 0ab690689e07..79834832dbb9 100644
--- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/conversation_profile.proto
+++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/conversation_profile.proto
@@ -23,6 +23,7 @@ import "google/api/resource.proto";
import "google/cloud/dialogflow/v2/audio_config.proto";
import "google/cloud/dialogflow/v2/participant.proto";
import "google/longrunning/operations.proto";
+import "google/protobuf/duration.proto";
import "google/protobuf/empty.proto";
import "google/protobuf/field_mask.proto";
import "google/protobuf/timestamp.proto";
@@ -381,6 +382,13 @@ message AutomatedAgentConfig {
type: "dialogflow.googleapis.com/Agent"
}
];
+
+ // Optional. Sets Dialogflow CX session life time.
+ // By default, a Dialogflow CX session remains active and its data is stored
+ // for 30 minutes after the last request is sent for the session. This value
+ // should be no longer than 1 day.
+ google.protobuf.Duration session_ttl = 3
+ [(google.api.field_behavior) = OPTIONAL];
}
// Defines the Human Agent Assist to connect to a conversation.
@@ -479,7 +487,7 @@ message HumanAgentAssistantConfig {
// Supported feature: DIALOGFLOW_ASSIST.
message DialogflowQuerySource {
// Required. The name of a Dialogflow virtual agent used for end user side
- // intent detection and suggestion. Format: `projects/+ * Output only. The Dialogflow assist answer. + *+ * + *
+ * .google.cloud.dialogflow.v2beta1.DialogflowAssistAnswer dialogflow_assist_answer = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the dialogflowAssistAnswer field is set.
+ */
+ @java.lang.Override
+ public boolean hasDialogflowAssistAnswer() {
+ return answerCase_ == 7;
+ }
+ /**
+ *
+ *
+ * + * Output only. The Dialogflow assist answer. + *+ * + *
+ * .google.cloud.dialogflow.v2beta1.DialogflowAssistAnswer dialogflow_assist_answer = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The dialogflowAssistAnswer.
+ */
+ @java.lang.Override
+ public com.google.cloud.dialogflow.v2beta1.DialogflowAssistAnswer getDialogflowAssistAnswer() {
+ if (answerCase_ == 7) {
+ return (com.google.cloud.dialogflow.v2beta1.DialogflowAssistAnswer) answer_;
+ }
+ return com.google.cloud.dialogflow.v2beta1.DialogflowAssistAnswer.getDefaultInstance();
+ }
+ /**
+ *
+ *
+ * + * Output only. The Dialogflow assist answer. + *+ * + *
+ * .google.cloud.dialogflow.v2beta1.DialogflowAssistAnswer dialogflow_assist_answer = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.dialogflow.v2beta1.DialogflowAssistAnswerOrBuilder
+ getDialogflowAssistAnswerOrBuilder() {
+ if (answerCase_ == 7) {
+ return (com.google.cloud.dialogflow.v2beta1.DialogflowAssistAnswer) answer_;
+ }
+ return com.google.cloud.dialogflow.v2beta1.DialogflowAssistAnswer.getDefaultInstance();
+ }
+
private byte memoizedIsInitialized = -1;
@java.lang.Override
@@ -244,6 +305,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (answerCase_ == 6) {
output.writeMessage(6, (com.google.cloud.dialogflow.v2beta1.FaqAnswer) answer_);
}
+ if (answerCase_ == 7) {
+ output.writeMessage(7, (com.google.cloud.dialogflow.v2beta1.DialogflowAssistAnswer) answer_);
+ }
getUnknownFields().writeTo(output);
}
@@ -263,6 +327,11 @@ public int getSerializedSize() {
com.google.protobuf.CodedOutputStream.computeMessageSize(
6, (com.google.cloud.dialogflow.v2beta1.FaqAnswer) answer_);
}
+ if (answerCase_ == 7) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 7, (com.google.cloud.dialogflow.v2beta1.DialogflowAssistAnswer) answer_);
+ }
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
@@ -287,6 +356,9 @@ public boolean equals(final java.lang.Object obj) {
case 6:
if (!getFaqAnswer().equals(other.getFaqAnswer())) return false;
break;
+ case 7:
+ if (!getDialogflowAssistAnswer().equals(other.getDialogflowAssistAnswer())) return false;
+ break;
case 0:
default:
}
@@ -310,6 +382,10 @@ public int hashCode() {
hash = (37 * hash) + FAQ_ANSWER_FIELD_NUMBER;
hash = (53 * hash) + getFaqAnswer().hashCode();
break;
+ case 7:
+ hash = (37 * hash) + DIALOGFLOW_ASSIST_ANSWER_FIELD_NUMBER;
+ hash = (53 * hash) + getDialogflowAssistAnswer().hashCode();
+ break;
case 0:
default:
}
@@ -459,6 +535,9 @@ public Builder clear() {
if (faqAnswerBuilder_ != null) {
faqAnswerBuilder_.clear();
}
+ if (dialogflowAssistAnswerBuilder_ != null) {
+ dialogflowAssistAnswerBuilder_.clear();
+ }
answerCase_ = 0;
answer_ = null;
return this;
@@ -510,6 +589,9 @@ private void buildPartialOneofs(
if (answerCase_ == 6 && faqAnswerBuilder_ != null) {
result.answer_ = faqAnswerBuilder_.build();
}
+ if (answerCase_ == 7 && dialogflowAssistAnswerBuilder_ != null) {
+ result.answer_ = dialogflowAssistAnswerBuilder_.build();
+ }
}
@java.lang.Override
@@ -569,6 +651,11 @@ public Builder mergeFrom(com.google.cloud.dialogflow.v2beta1.AgentAssistantRecor
mergeFaqAnswer(other.getFaqAnswer());
break;
}
+ case DIALOGFLOW_ASSIST_ANSWER:
+ {
+ mergeDialogflowAssistAnswer(other.getDialogflowAssistAnswer());
+ break;
+ }
case ANSWER_NOT_SET:
{
break;
@@ -613,6 +700,13 @@ public Builder mergeFrom(
answerCase_ = 6;
break;
} // case 50
+ case 58:
+ {
+ input.readMessage(
+ getDialogflowAssistAnswerFieldBuilder().getBuilder(), extensionRegistry);
+ answerCase_ = 7;
+ break;
+ } // case 58
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
@@ -1104,6 +1198,239 @@ public com.google.cloud.dialogflow.v2beta1.FaqAnswerOrBuilder getFaqAnswerOrBuil
return faqAnswerBuilder_;
}
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.dialogflow.v2beta1.DialogflowAssistAnswer,
+ com.google.cloud.dialogflow.v2beta1.DialogflowAssistAnswer.Builder,
+ com.google.cloud.dialogflow.v2beta1.DialogflowAssistAnswerOrBuilder>
+ dialogflowAssistAnswerBuilder_;
+ /**
+ *
+ *
+ * + * Output only. The Dialogflow assist answer. + *+ * + *
+ * .google.cloud.dialogflow.v2beta1.DialogflowAssistAnswer dialogflow_assist_answer = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the dialogflowAssistAnswer field is set.
+ */
+ @java.lang.Override
+ public boolean hasDialogflowAssistAnswer() {
+ return answerCase_ == 7;
+ }
+ /**
+ *
+ *
+ * + * Output only. The Dialogflow assist answer. + *+ * + *
+ * .google.cloud.dialogflow.v2beta1.DialogflowAssistAnswer dialogflow_assist_answer = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The dialogflowAssistAnswer.
+ */
+ @java.lang.Override
+ public com.google.cloud.dialogflow.v2beta1.DialogflowAssistAnswer getDialogflowAssistAnswer() {
+ if (dialogflowAssistAnswerBuilder_ == null) {
+ if (answerCase_ == 7) {
+ return (com.google.cloud.dialogflow.v2beta1.DialogflowAssistAnswer) answer_;
+ }
+ return com.google.cloud.dialogflow.v2beta1.DialogflowAssistAnswer.getDefaultInstance();
+ } else {
+ if (answerCase_ == 7) {
+ return dialogflowAssistAnswerBuilder_.getMessage();
+ }
+ return com.google.cloud.dialogflow.v2beta1.DialogflowAssistAnswer.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ * + * Output only. The Dialogflow assist answer. + *+ * + *
+ * .google.cloud.dialogflow.v2beta1.DialogflowAssistAnswer dialogflow_assist_answer = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder setDialogflowAssistAnswer(
+ com.google.cloud.dialogflow.v2beta1.DialogflowAssistAnswer value) {
+ if (dialogflowAssistAnswerBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ answer_ = value;
+ onChanged();
+ } else {
+ dialogflowAssistAnswerBuilder_.setMessage(value);
+ }
+ answerCase_ = 7;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Output only. The Dialogflow assist answer. + *+ * + *
+ * .google.cloud.dialogflow.v2beta1.DialogflowAssistAnswer dialogflow_assist_answer = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder setDialogflowAssistAnswer(
+ com.google.cloud.dialogflow.v2beta1.DialogflowAssistAnswer.Builder builderForValue) {
+ if (dialogflowAssistAnswerBuilder_ == null) {
+ answer_ = builderForValue.build();
+ onChanged();
+ } else {
+ dialogflowAssistAnswerBuilder_.setMessage(builderForValue.build());
+ }
+ answerCase_ = 7;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Output only. The Dialogflow assist answer. + *+ * + *
+ * .google.cloud.dialogflow.v2beta1.DialogflowAssistAnswer dialogflow_assist_answer = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder mergeDialogflowAssistAnswer(
+ com.google.cloud.dialogflow.v2beta1.DialogflowAssistAnswer value) {
+ if (dialogflowAssistAnswerBuilder_ == null) {
+ if (answerCase_ == 7
+ && answer_
+ != com.google.cloud.dialogflow.v2beta1.DialogflowAssistAnswer
+ .getDefaultInstance()) {
+ answer_ =
+ com.google.cloud.dialogflow.v2beta1.DialogflowAssistAnswer.newBuilder(
+ (com.google.cloud.dialogflow.v2beta1.DialogflowAssistAnswer) answer_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ answer_ = value;
+ }
+ onChanged();
+ } else {
+ if (answerCase_ == 7) {
+ dialogflowAssistAnswerBuilder_.mergeFrom(value);
+ } else {
+ dialogflowAssistAnswerBuilder_.setMessage(value);
+ }
+ }
+ answerCase_ = 7;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Output only. The Dialogflow assist answer. + *+ * + *
+ * .google.cloud.dialogflow.v2beta1.DialogflowAssistAnswer dialogflow_assist_answer = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder clearDialogflowAssistAnswer() {
+ if (dialogflowAssistAnswerBuilder_ == null) {
+ if (answerCase_ == 7) {
+ answerCase_ = 0;
+ answer_ = null;
+ onChanged();
+ }
+ } else {
+ if (answerCase_ == 7) {
+ answerCase_ = 0;
+ answer_ = null;
+ }
+ dialogflowAssistAnswerBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Output only. The Dialogflow assist answer. + *+ * + *
+ * .google.cloud.dialogflow.v2beta1.DialogflowAssistAnswer dialogflow_assist_answer = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public com.google.cloud.dialogflow.v2beta1.DialogflowAssistAnswer.Builder
+ getDialogflowAssistAnswerBuilder() {
+ return getDialogflowAssistAnswerFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * Output only. The Dialogflow assist answer. + *+ * + *
+ * .google.cloud.dialogflow.v2beta1.DialogflowAssistAnswer dialogflow_assist_answer = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.dialogflow.v2beta1.DialogflowAssistAnswerOrBuilder
+ getDialogflowAssistAnswerOrBuilder() {
+ if ((answerCase_ == 7) && (dialogflowAssistAnswerBuilder_ != null)) {
+ return dialogflowAssistAnswerBuilder_.getMessageOrBuilder();
+ } else {
+ if (answerCase_ == 7) {
+ return (com.google.cloud.dialogflow.v2beta1.DialogflowAssistAnswer) answer_;
+ }
+ return com.google.cloud.dialogflow.v2beta1.DialogflowAssistAnswer.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ * + * Output only. The Dialogflow assist answer. + *+ * + *
+ * .google.cloud.dialogflow.v2beta1.DialogflowAssistAnswer dialogflow_assist_answer = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.dialogflow.v2beta1.DialogflowAssistAnswer,
+ com.google.cloud.dialogflow.v2beta1.DialogflowAssistAnswer.Builder,
+ com.google.cloud.dialogflow.v2beta1.DialogflowAssistAnswerOrBuilder>
+ getDialogflowAssistAnswerFieldBuilder() {
+ if (dialogflowAssistAnswerBuilder_ == null) {
+ if (!(answerCase_ == 7)) {
+ answer_ = com.google.cloud.dialogflow.v2beta1.DialogflowAssistAnswer.getDefaultInstance();
+ }
+ dialogflowAssistAnswerBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.dialogflow.v2beta1.DialogflowAssistAnswer,
+ com.google.cloud.dialogflow.v2beta1.DialogflowAssistAnswer.Builder,
+ com.google.cloud.dialogflow.v2beta1.DialogflowAssistAnswerOrBuilder>(
+ (com.google.cloud.dialogflow.v2beta1.DialogflowAssistAnswer) answer_,
+ getParentForChildren(),
+ isClean());
+ answer_ = null;
+ }
+ answerCase_ = 7;
+ onChanged();
+ return dialogflowAssistAnswerBuilder_;
+ }
+
@java.lang.Override
public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AgentAssistantRecordOrBuilder.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AgentAssistantRecordOrBuilder.java
index e1682daaec5e..e1b0e3363659 100644
--- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AgentAssistantRecordOrBuilder.java
+++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AgentAssistantRecordOrBuilder.java
@@ -105,5 +105,47 @@ public interface AgentAssistantRecordOrBuilder
*/
com.google.cloud.dialogflow.v2beta1.FaqAnswerOrBuilder getFaqAnswerOrBuilder();
+ /**
+ *
+ *
+ * + * Output only. The Dialogflow assist answer. + *+ * + *
+ * .google.cloud.dialogflow.v2beta1.DialogflowAssistAnswer dialogflow_assist_answer = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the dialogflowAssistAnswer field is set.
+ */
+ boolean hasDialogflowAssistAnswer();
+ /**
+ *
+ *
+ * + * Output only. The Dialogflow assist answer. + *+ * + *
+ * .google.cloud.dialogflow.v2beta1.DialogflowAssistAnswer dialogflow_assist_answer = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The dialogflowAssistAnswer.
+ */
+ com.google.cloud.dialogflow.v2beta1.DialogflowAssistAnswer getDialogflowAssistAnswer();
+ /**
+ *
+ *
+ * + * Output only. The Dialogflow assist answer. + *+ * + *
+ * .google.cloud.dialogflow.v2beta1.DialogflowAssistAnswer dialogflow_assist_answer = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ com.google.cloud.dialogflow.v2beta1.DialogflowAssistAnswerOrBuilder
+ getDialogflowAssistAnswerOrBuilder();
+
com.google.cloud.dialogflow.v2beta1.AgentAssistantRecord.AnswerCase getAnswerCase();
}
diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AnalyzeContentRequest.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AnalyzeContentRequest.java
index 3fb80bea6bc6..02a7bdbab74d 100644
--- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AnalyzeContentRequest.java
+++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AnalyzeContentRequest.java
@@ -77,6 +77,7 @@ public enum InputCase
TEXT_INPUT(6),
AUDIO_INPUT(7),
EVENT_INPUT(8),
+ SUGGESTION_INPUT(12),
INPUT_NOT_SET(0);
private final int value;
@@ -101,6 +102,8 @@ public static InputCase forNumber(int value) {
return AUDIO_INPUT;
case 8:
return EVENT_INPUT;
+ case 12:
+ return SUGGESTION_INPUT;
case 0:
return INPUT_NOT_SET;
default:
@@ -329,6 +332,58 @@ public com.google.cloud.dialogflow.v2beta1.EventInputOrBuilder getEventInputOrBu
return com.google.cloud.dialogflow.v2beta1.EventInput.getDefaultInstance();
}
+ public static final int SUGGESTION_INPUT_FIELD_NUMBER = 12;
+ /**
+ *
+ *
+ * + * An input representing the selection of a suggestion. + *+ * + *
.google.cloud.dialogflow.v2beta1.SuggestionInput suggestion_input = 12;
+ *
+ * @return Whether the suggestionInput field is set.
+ */
+ @java.lang.Override
+ public boolean hasSuggestionInput() {
+ return inputCase_ == 12;
+ }
+ /**
+ *
+ *
+ * + * An input representing the selection of a suggestion. + *+ * + *
.google.cloud.dialogflow.v2beta1.SuggestionInput suggestion_input = 12;
+ *
+ * @return The suggestionInput.
+ */
+ @java.lang.Override
+ public com.google.cloud.dialogflow.v2beta1.SuggestionInput getSuggestionInput() {
+ if (inputCase_ == 12) {
+ return (com.google.cloud.dialogflow.v2beta1.SuggestionInput) input_;
+ }
+ return com.google.cloud.dialogflow.v2beta1.SuggestionInput.getDefaultInstance();
+ }
+ /**
+ *
+ *
+ * + * An input representing the selection of a suggestion. + *+ * + *
.google.cloud.dialogflow.v2beta1.SuggestionInput suggestion_input = 12;
+ */
+ @java.lang.Override
+ public com.google.cloud.dialogflow.v2beta1.SuggestionInputOrBuilder
+ getSuggestionInputOrBuilder() {
+ if (inputCase_ == 12) {
+ return (com.google.cloud.dialogflow.v2beta1.SuggestionInput) input_;
+ }
+ return com.google.cloud.dialogflow.v2beta1.SuggestionInput.getDefaultInstance();
+ }
+
public static final int REPLY_AUDIO_CONFIG_FIELD_NUMBER = 5;
private com.google.cloud.dialogflow.v2beta1.OutputAudioConfig replyAudioConfig_;
/**
@@ -813,6 +868,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 11, requestId_);
}
+ if (inputCase_ == 12) {
+ output.writeMessage(12, (com.google.cloud.dialogflow.v2beta1.SuggestionInput) input_);
+ }
if (assistQueryParams_ != null) {
output.writeMessage(14, getAssistQueryParams());
}
@@ -861,6 +919,11 @@ public int getSerializedSize() {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, requestId_);
}
+ if (inputCase_ == 12) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 12, (com.google.cloud.dialogflow.v2beta1.SuggestionInput) input_);
+ }
if (assistQueryParams_ != null) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(14, getAssistQueryParams());
}
@@ -920,6 +983,9 @@ public boolean equals(final java.lang.Object obj) {
case 8:
if (!getEventInput().equals(other.getEventInput())) return false;
break;
+ case 12:
+ if (!getSuggestionInput().equals(other.getSuggestionInput())) return false;
+ break;
case 0:
default:
}
@@ -973,6 +1039,10 @@ public int hashCode() {
hash = (37 * hash) + EVENT_INPUT_FIELD_NUMBER;
hash = (53 * hash) + getEventInput().hashCode();
break;
+ case 12:
+ hash = (37 * hash) + SUGGESTION_INPUT_FIELD_NUMBER;
+ hash = (53 * hash) + getSuggestionInput().hashCode();
+ break;
case 0:
default:
}
@@ -1127,6 +1197,9 @@ public Builder clear() {
if (eventInputBuilder_ != null) {
eventInputBuilder_.clear();
}
+ if (suggestionInputBuilder_ != null) {
+ suggestionInputBuilder_.clear();
+ }
replyAudioConfig_ = null;
if (replyAudioConfigBuilder_ != null) {
replyAudioConfigBuilder_.dispose();
@@ -1196,32 +1269,32 @@ private void buildPartial0(com.google.cloud.dialogflow.v2beta1.AnalyzeContentReq
if (((from_bitField0_ & 0x00000001) != 0)) {
result.participant_ = participant_;
}
- if (((from_bitField0_ & 0x00000010) != 0)) {
+ if (((from_bitField0_ & 0x00000020) != 0)) {
result.replyAudioConfig_ =
replyAudioConfigBuilder_ == null ? replyAudioConfig_ : replyAudioConfigBuilder_.build();
}
- if (((from_bitField0_ & 0x00000020) != 0)) {
+ if (((from_bitField0_ & 0x00000040) != 0)) {
result.queryParams_ =
queryParamsBuilder_ == null ? queryParams_ : queryParamsBuilder_.build();
}
- if (((from_bitField0_ & 0x00000040) != 0)) {
+ if (((from_bitField0_ & 0x00000080) != 0)) {
result.assistQueryParams_ =
assistQueryParamsBuilder_ == null
? assistQueryParams_
: assistQueryParamsBuilder_.build();
}
- if (((from_bitField0_ & 0x00000080) != 0)) {
+ if (((from_bitField0_ & 0x00000100) != 0)) {
result.cxParameters_ =
cxParametersBuilder_ == null ? cxParameters_ : cxParametersBuilder_.build();
}
- if (((from_bitField0_ & 0x00000100) != 0)) {
+ if (((from_bitField0_ & 0x00000200) != 0)) {
result.cxCurrentPage_ = cxCurrentPage_;
}
- if (((from_bitField0_ & 0x00000200) != 0)) {
+ if (((from_bitField0_ & 0x00000400) != 0)) {
result.messageSendTime_ =
messageSendTimeBuilder_ == null ? messageSendTime_ : messageSendTimeBuilder_.build();
}
- if (((from_bitField0_ & 0x00000400) != 0)) {
+ if (((from_bitField0_ & 0x00000800) != 0)) {
result.requestId_ = requestId_;
}
}
@@ -1239,6 +1312,9 @@ private void buildPartialOneofs(
if (inputCase_ == 8 && eventInputBuilder_ != null) {
result.input_ = eventInputBuilder_.build();
}
+ if (inputCase_ == 12 && suggestionInputBuilder_ != null) {
+ result.input_ = suggestionInputBuilder_.build();
+ }
}
@java.lang.Override
@@ -1306,7 +1382,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.v2beta1.AnalyzeContentReque
}
if (!other.getCxCurrentPage().isEmpty()) {
cxCurrentPage_ = other.cxCurrentPage_;
- bitField0_ |= 0x00000100;
+ bitField0_ |= 0x00000200;
onChanged();
}
if (other.hasMessageSendTime()) {
@@ -1314,7 +1390,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.v2beta1.AnalyzeContentReque
}
if (!other.getRequestId().isEmpty()) {
requestId_ = other.requestId_;
- bitField0_ |= 0x00000400;
+ bitField0_ |= 0x00000800;
onChanged();
}
switch (other.getInputCase()) {
@@ -1333,6 +1409,11 @@ public Builder mergeFrom(com.google.cloud.dialogflow.v2beta1.AnalyzeContentReque
mergeEventInput(other.getEventInput());
break;
}
+ case SUGGESTION_INPUT:
+ {
+ mergeSuggestionInput(other.getSuggestionInput());
+ break;
+ }
case INPUT_NOT_SET:
{
break;
@@ -1374,7 +1455,7 @@ public Builder mergeFrom(
{
input.readMessage(
getReplyAudioConfigFieldBuilder().getBuilder(), extensionRegistry);
- bitField0_ |= 0x00000010;
+ bitField0_ |= 0x00000020;
break;
} // case 42
case 50:
@@ -1398,38 +1479,44 @@ public Builder mergeFrom(
case 74:
{
input.readMessage(getQueryParamsFieldBuilder().getBuilder(), extensionRegistry);
- bitField0_ |= 0x00000020;
+ bitField0_ |= 0x00000040;
break;
} // case 74
case 82:
{
input.readMessage(getMessageSendTimeFieldBuilder().getBuilder(), extensionRegistry);
- bitField0_ |= 0x00000200;
+ bitField0_ |= 0x00000400;
break;
} // case 82
case 90:
{
requestId_ = input.readStringRequireUtf8();
- bitField0_ |= 0x00000400;
+ bitField0_ |= 0x00000800;
break;
} // case 90
+ case 98:
+ {
+ input.readMessage(getSuggestionInputFieldBuilder().getBuilder(), extensionRegistry);
+ inputCase_ = 12;
+ break;
+ } // case 98
case 114:
{
input.readMessage(
getAssistQueryParamsFieldBuilder().getBuilder(), extensionRegistry);
- bitField0_ |= 0x00000040;
+ bitField0_ |= 0x00000080;
break;
} // case 114
case 146:
{
input.readMessage(getCxParametersFieldBuilder().getBuilder(), extensionRegistry);
- bitField0_ |= 0x00000080;
+ bitField0_ |= 0x00000100;
break;
} // case 146
case 162:
{
cxCurrentPage_ = input.readStringRequireUtf8();
- bitField0_ |= 0x00000100;
+ bitField0_ |= 0x00000200;
break;
} // case 162
default:
@@ -2218,6 +2305,216 @@ public com.google.cloud.dialogflow.v2beta1.EventInputOrBuilder getEventInputOrBu
return eventInputBuilder_;
}
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.dialogflow.v2beta1.SuggestionInput,
+ com.google.cloud.dialogflow.v2beta1.SuggestionInput.Builder,
+ com.google.cloud.dialogflow.v2beta1.SuggestionInputOrBuilder>
+ suggestionInputBuilder_;
+ /**
+ *
+ *
+ * + * An input representing the selection of a suggestion. + *+ * + *
.google.cloud.dialogflow.v2beta1.SuggestionInput suggestion_input = 12;
+ *
+ * @return Whether the suggestionInput field is set.
+ */
+ @java.lang.Override
+ public boolean hasSuggestionInput() {
+ return inputCase_ == 12;
+ }
+ /**
+ *
+ *
+ * + * An input representing the selection of a suggestion. + *+ * + *
.google.cloud.dialogflow.v2beta1.SuggestionInput suggestion_input = 12;
+ *
+ * @return The suggestionInput.
+ */
+ @java.lang.Override
+ public com.google.cloud.dialogflow.v2beta1.SuggestionInput getSuggestionInput() {
+ if (suggestionInputBuilder_ == null) {
+ if (inputCase_ == 12) {
+ return (com.google.cloud.dialogflow.v2beta1.SuggestionInput) input_;
+ }
+ return com.google.cloud.dialogflow.v2beta1.SuggestionInput.getDefaultInstance();
+ } else {
+ if (inputCase_ == 12) {
+ return suggestionInputBuilder_.getMessage();
+ }
+ return com.google.cloud.dialogflow.v2beta1.SuggestionInput.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ * + * An input representing the selection of a suggestion. + *+ * + *
.google.cloud.dialogflow.v2beta1.SuggestionInput suggestion_input = 12;
+ */
+ public Builder setSuggestionInput(com.google.cloud.dialogflow.v2beta1.SuggestionInput value) {
+ if (suggestionInputBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ input_ = value;
+ onChanged();
+ } else {
+ suggestionInputBuilder_.setMessage(value);
+ }
+ inputCase_ = 12;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * An input representing the selection of a suggestion. + *+ * + *
.google.cloud.dialogflow.v2beta1.SuggestionInput suggestion_input = 12;
+ */
+ public Builder setSuggestionInput(
+ com.google.cloud.dialogflow.v2beta1.SuggestionInput.Builder builderForValue) {
+ if (suggestionInputBuilder_ == null) {
+ input_ = builderForValue.build();
+ onChanged();
+ } else {
+ suggestionInputBuilder_.setMessage(builderForValue.build());
+ }
+ inputCase_ = 12;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * An input representing the selection of a suggestion. + *+ * + *
.google.cloud.dialogflow.v2beta1.SuggestionInput suggestion_input = 12;
+ */
+ public Builder mergeSuggestionInput(com.google.cloud.dialogflow.v2beta1.SuggestionInput value) {
+ if (suggestionInputBuilder_ == null) {
+ if (inputCase_ == 12
+ && input_ != com.google.cloud.dialogflow.v2beta1.SuggestionInput.getDefaultInstance()) {
+ input_ =
+ com.google.cloud.dialogflow.v2beta1.SuggestionInput.newBuilder(
+ (com.google.cloud.dialogflow.v2beta1.SuggestionInput) input_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ input_ = value;
+ }
+ onChanged();
+ } else {
+ if (inputCase_ == 12) {
+ suggestionInputBuilder_.mergeFrom(value);
+ } else {
+ suggestionInputBuilder_.setMessage(value);
+ }
+ }
+ inputCase_ = 12;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * An input representing the selection of a suggestion. + *+ * + *
.google.cloud.dialogflow.v2beta1.SuggestionInput suggestion_input = 12;
+ */
+ public Builder clearSuggestionInput() {
+ if (suggestionInputBuilder_ == null) {
+ if (inputCase_ == 12) {
+ inputCase_ = 0;
+ input_ = null;
+ onChanged();
+ }
+ } else {
+ if (inputCase_ == 12) {
+ inputCase_ = 0;
+ input_ = null;
+ }
+ suggestionInputBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * An input representing the selection of a suggestion. + *+ * + *
.google.cloud.dialogflow.v2beta1.SuggestionInput suggestion_input = 12;
+ */
+ public com.google.cloud.dialogflow.v2beta1.SuggestionInput.Builder getSuggestionInputBuilder() {
+ return getSuggestionInputFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * An input representing the selection of a suggestion. + *+ * + *
.google.cloud.dialogflow.v2beta1.SuggestionInput suggestion_input = 12;
+ */
+ @java.lang.Override
+ public com.google.cloud.dialogflow.v2beta1.SuggestionInputOrBuilder
+ getSuggestionInputOrBuilder() {
+ if ((inputCase_ == 12) && (suggestionInputBuilder_ != null)) {
+ return suggestionInputBuilder_.getMessageOrBuilder();
+ } else {
+ if (inputCase_ == 12) {
+ return (com.google.cloud.dialogflow.v2beta1.SuggestionInput) input_;
+ }
+ return com.google.cloud.dialogflow.v2beta1.SuggestionInput.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ * + * An input representing the selection of a suggestion. + *+ * + *
.google.cloud.dialogflow.v2beta1.SuggestionInput suggestion_input = 12;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.dialogflow.v2beta1.SuggestionInput,
+ com.google.cloud.dialogflow.v2beta1.SuggestionInput.Builder,
+ com.google.cloud.dialogflow.v2beta1.SuggestionInputOrBuilder>
+ getSuggestionInputFieldBuilder() {
+ if (suggestionInputBuilder_ == null) {
+ if (!(inputCase_ == 12)) {
+ input_ = com.google.cloud.dialogflow.v2beta1.SuggestionInput.getDefaultInstance();
+ }
+ suggestionInputBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.dialogflow.v2beta1.SuggestionInput,
+ com.google.cloud.dialogflow.v2beta1.SuggestionInput.Builder,
+ com.google.cloud.dialogflow.v2beta1.SuggestionInputOrBuilder>(
+ (com.google.cloud.dialogflow.v2beta1.SuggestionInput) input_,
+ getParentForChildren(),
+ isClean());
+ input_ = null;
+ }
+ inputCase_ = 12;
+ onChanged();
+ return suggestionInputBuilder_;
+ }
+
private com.google.cloud.dialogflow.v2beta1.OutputAudioConfig replyAudioConfig_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.dialogflow.v2beta1.OutputAudioConfig,
@@ -2240,7 +2537,7 @@ public com.google.cloud.dialogflow.v2beta1.EventInputOrBuilder getEventInputOrBu
* @return Whether the replyAudioConfig field is set.
*/
public boolean hasReplyAudioConfig() {
- return ((bitField0_ & 0x00000010) != 0);
+ return ((bitField0_ & 0x00000020) != 0);
}
/**
*
@@ -2289,7 +2586,7 @@ public Builder setReplyAudioConfig(
} else {
replyAudioConfigBuilder_.setMessage(value);
}
- bitField0_ |= 0x00000010;
+ bitField0_ |= 0x00000020;
onChanged();
return this;
}
@@ -2313,7 +2610,7 @@ public Builder setReplyAudioConfig(
} else {
replyAudioConfigBuilder_.setMessage(builderForValue.build());
}
- bitField0_ |= 0x00000010;
+ bitField0_ |= 0x00000020;
onChanged();
return this;
}
@@ -2333,7 +2630,7 @@ public Builder setReplyAudioConfig(
public Builder mergeReplyAudioConfig(
com.google.cloud.dialogflow.v2beta1.OutputAudioConfig value) {
if (replyAudioConfigBuilder_ == null) {
- if (((bitField0_ & 0x00000010) != 0)
+ if (((bitField0_ & 0x00000020) != 0)
&& replyAudioConfig_ != null
&& replyAudioConfig_
!= com.google.cloud.dialogflow.v2beta1.OutputAudioConfig.getDefaultInstance()) {
@@ -2344,7 +2641,7 @@ public Builder mergeReplyAudioConfig(
} else {
replyAudioConfigBuilder_.mergeFrom(value);
}
- bitField0_ |= 0x00000010;
+ bitField0_ |= 0x00000020;
onChanged();
return this;
}
@@ -2362,7 +2659,7 @@ public Builder mergeReplyAudioConfig(
* .google.cloud.dialogflow.v2beta1.OutputAudioConfig reply_audio_config = 5;
*/
public Builder clearReplyAudioConfig() {
- bitField0_ = (bitField0_ & ~0x00000010);
+ bitField0_ = (bitField0_ & ~0x00000020);
replyAudioConfig_ = null;
if (replyAudioConfigBuilder_ != null) {
replyAudioConfigBuilder_.dispose();
@@ -2386,7 +2683,7 @@ public Builder clearReplyAudioConfig() {
*/
public com.google.cloud.dialogflow.v2beta1.OutputAudioConfig.Builder
getReplyAudioConfigBuilder() {
- bitField0_ |= 0x00000010;
+ bitField0_ |= 0x00000020;
onChanged();
return getReplyAudioConfigFieldBuilder().getBuilder();
}
@@ -2461,7 +2758,7 @@ public Builder clearReplyAudioConfig() {
* @return Whether the queryParams field is set.
*/
public boolean hasQueryParams() {
- return ((bitField0_ & 0x00000020) != 0);
+ return ((bitField0_ & 0x00000040) != 0);
}
/**
*
@@ -2501,7 +2798,7 @@ public Builder setQueryParams(com.google.cloud.dialogflow.v2beta1.QueryParameter
} else {
queryParamsBuilder_.setMessage(value);
}
- bitField0_ |= 0x00000020;
+ bitField0_ |= 0x00000040;
onChanged();
return this;
}
@@ -2521,7 +2818,7 @@ public Builder setQueryParams(
} else {
queryParamsBuilder_.setMessage(builderForValue.build());
}
- bitField0_ |= 0x00000020;
+ bitField0_ |= 0x00000040;
onChanged();
return this;
}
@@ -2536,7 +2833,7 @@ public Builder setQueryParams(
*/
public Builder mergeQueryParams(com.google.cloud.dialogflow.v2beta1.QueryParameters value) {
if (queryParamsBuilder_ == null) {
- if (((bitField0_ & 0x00000020) != 0)
+ if (((bitField0_ & 0x00000040) != 0)
&& queryParams_ != null
&& queryParams_
!= com.google.cloud.dialogflow.v2beta1.QueryParameters.getDefaultInstance()) {
@@ -2547,7 +2844,7 @@ public Builder mergeQueryParams(com.google.cloud.dialogflow.v2beta1.QueryParamet
} else {
queryParamsBuilder_.mergeFrom(value);
}
- bitField0_ |= 0x00000020;
+ bitField0_ |= 0x00000040;
onChanged();
return this;
}
@@ -2561,7 +2858,7 @@ public Builder mergeQueryParams(com.google.cloud.dialogflow.v2beta1.QueryParamet
* .google.cloud.dialogflow.v2beta1.QueryParameters query_params = 9;
*/
public Builder clearQueryParams() {
- bitField0_ = (bitField0_ & ~0x00000020);
+ bitField0_ = (bitField0_ & ~0x00000040);
queryParams_ = null;
if (queryParamsBuilder_ != null) {
queryParamsBuilder_.dispose();
@@ -2580,7 +2877,7 @@ public Builder clearQueryParams() {
* .google.cloud.dialogflow.v2beta1.QueryParameters query_params = 9;
*/
public com.google.cloud.dialogflow.v2beta1.QueryParameters.Builder getQueryParamsBuilder() {
- bitField0_ |= 0x00000020;
+ bitField0_ |= 0x00000040;
onChanged();
return getQueryParamsFieldBuilder().getBuilder();
}
@@ -2646,7 +2943,7 @@ public com.google.cloud.dialogflow.v2beta1.QueryParametersOrBuilder getQueryPara
* @return Whether the assistQueryParams field is set.
*/
public boolean hasAssistQueryParams() {
- return ((bitField0_ & 0x00000040) != 0);
+ return ((bitField0_ & 0x00000080) != 0);
}
/**
*
@@ -2687,7 +2984,7 @@ public Builder setAssistQueryParams(
} else {
assistQueryParamsBuilder_.setMessage(value);
}
- bitField0_ |= 0x00000040;
+ bitField0_ |= 0x00000080;
onChanged();
return this;
}
@@ -2707,7 +3004,7 @@ public Builder setAssistQueryParams(
} else {
assistQueryParamsBuilder_.setMessage(builderForValue.build());
}
- bitField0_ |= 0x00000040;
+ bitField0_ |= 0x00000080;
onChanged();
return this;
}
@@ -2723,7 +3020,7 @@ public Builder setAssistQueryParams(
public Builder mergeAssistQueryParams(
com.google.cloud.dialogflow.v2beta1.AssistQueryParameters value) {
if (assistQueryParamsBuilder_ == null) {
- if (((bitField0_ & 0x00000040) != 0)
+ if (((bitField0_ & 0x00000080) != 0)
&& assistQueryParams_ != null
&& assistQueryParams_
!= com.google.cloud.dialogflow.v2beta1.AssistQueryParameters.getDefaultInstance()) {
@@ -2734,7 +3031,7 @@ public Builder mergeAssistQueryParams(
} else {
assistQueryParamsBuilder_.mergeFrom(value);
}
- bitField0_ |= 0x00000040;
+ bitField0_ |= 0x00000080;
onChanged();
return this;
}
@@ -2748,7 +3045,7 @@ public Builder mergeAssistQueryParams(
* .google.cloud.dialogflow.v2beta1.AssistQueryParameters assist_query_params = 14;
*/
public Builder clearAssistQueryParams() {
- bitField0_ = (bitField0_ & ~0x00000040);
+ bitField0_ = (bitField0_ & ~0x00000080);
assistQueryParams_ = null;
if (assistQueryParamsBuilder_ != null) {
assistQueryParamsBuilder_.dispose();
@@ -2768,7 +3065,7 @@ public Builder clearAssistQueryParams() {
*/
public com.google.cloud.dialogflow.v2beta1.AssistQueryParameters.Builder
getAssistQueryParamsBuilder() {
- bitField0_ |= 0x00000040;
+ bitField0_ |= 0x00000080;
onChanged();
return getAssistQueryParamsFieldBuilder().getBuilder();
}
@@ -2840,7 +3137,7 @@ public Builder clearAssistQueryParams() {
* @return Whether the cxParameters field is set.
*/
public boolean hasCxParameters() {
- return ((bitField0_ & 0x00000080) != 0);
+ return ((bitField0_ & 0x00000100) != 0);
}
/**
*
@@ -2890,7 +3187,7 @@ public Builder setCxParameters(com.google.protobuf.Struct value) {
} else {
cxParametersBuilder_.setMessage(value);
}
- bitField0_ |= 0x00000080;
+ bitField0_ |= 0x00000100;
onChanged();
return this;
}
@@ -2914,7 +3211,7 @@ public Builder setCxParameters(com.google.protobuf.Struct.Builder builderForValu
} else {
cxParametersBuilder_.setMessage(builderForValue.build());
}
- bitField0_ |= 0x00000080;
+ bitField0_ |= 0x00000100;
onChanged();
return this;
}
@@ -2934,7 +3231,7 @@ public Builder setCxParameters(com.google.protobuf.Struct.Builder builderForValu
*/
public Builder mergeCxParameters(com.google.protobuf.Struct value) {
if (cxParametersBuilder_ == null) {
- if (((bitField0_ & 0x00000080) != 0)
+ if (((bitField0_ & 0x00000100) != 0)
&& cxParameters_ != null
&& cxParameters_ != com.google.protobuf.Struct.getDefaultInstance()) {
getCxParametersBuilder().mergeFrom(value);
@@ -2944,7 +3241,7 @@ public Builder mergeCxParameters(com.google.protobuf.Struct value) {
} else {
cxParametersBuilder_.mergeFrom(value);
}
- bitField0_ |= 0x00000080;
+ bitField0_ |= 0x00000100;
onChanged();
return this;
}
@@ -2963,7 +3260,7 @@ public Builder mergeCxParameters(com.google.protobuf.Struct value) {
* .google.protobuf.Struct cx_parameters = 18;
*/
public Builder clearCxParameters() {
- bitField0_ = (bitField0_ & ~0x00000080);
+ bitField0_ = (bitField0_ & ~0x00000100);
cxParameters_ = null;
if (cxParametersBuilder_ != null) {
cxParametersBuilder_.dispose();
@@ -2987,7 +3284,7 @@ public Builder clearCxParameters() {
* .google.protobuf.Struct cx_parameters = 18;
*/
public com.google.protobuf.Struct.Builder getCxParametersBuilder() {
- bitField0_ |= 0x00000080;
+ bitField0_ |= 0x00000100;
onChanged();
return getCxParametersFieldBuilder().getBuilder();
}
@@ -3146,7 +3443,7 @@ public Builder setCxCurrentPage(java.lang.String value) {
throw new NullPointerException();
}
cxCurrentPage_ = value;
- bitField0_ |= 0x00000100;
+ bitField0_ |= 0x00000200;
onChanged();
return this;
}
@@ -3176,7 +3473,7 @@ public Builder setCxCurrentPage(java.lang.String value) {
*/
public Builder clearCxCurrentPage() {
cxCurrentPage_ = getDefaultInstance().getCxCurrentPage();
- bitField0_ = (bitField0_ & ~0x00000100);
+ bitField0_ = (bitField0_ & ~0x00000200);
onChanged();
return this;
}
@@ -3211,7 +3508,7 @@ public Builder setCxCurrentPageBytes(com.google.protobuf.ByteString value) {
}
checkByteStringIsUtf8(value);
cxCurrentPage_ = value;
- bitField0_ |= 0x00000100;
+ bitField0_ |= 0x00000200;
onChanged();
return this;
}
@@ -3247,7 +3544,7 @@ public Builder setCxCurrentPageBytes(com.google.protobuf.ByteString value) {
* @return Whether the messageSendTime field is set.
*/
public boolean hasMessageSendTime() {
- return ((bitField0_ & 0x00000200) != 0);
+ return ((bitField0_ & 0x00000400) != 0);
}
/**
*
@@ -3313,7 +3610,7 @@ public Builder setMessageSendTime(com.google.protobuf.Timestamp value) {
} else {
messageSendTimeBuilder_.setMessage(value);
}
- bitField0_ |= 0x00000200;
+ bitField0_ |= 0x00000400;
onChanged();
return this;
}
@@ -3345,7 +3642,7 @@ public Builder setMessageSendTime(com.google.protobuf.Timestamp.Builder builderF
} else {
messageSendTimeBuilder_.setMessage(builderForValue.build());
}
- bitField0_ |= 0x00000200;
+ bitField0_ |= 0x00000400;
onChanged();
return this;
}
@@ -3373,7 +3670,7 @@ public Builder setMessageSendTime(com.google.protobuf.Timestamp.Builder builderF
*/
public Builder mergeMessageSendTime(com.google.protobuf.Timestamp value) {
if (messageSendTimeBuilder_ == null) {
- if (((bitField0_ & 0x00000200) != 0)
+ if (((bitField0_ & 0x00000400) != 0)
&& messageSendTime_ != null
&& messageSendTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
getMessageSendTimeBuilder().mergeFrom(value);
@@ -3383,7 +3680,7 @@ public Builder mergeMessageSendTime(com.google.protobuf.Timestamp value) {
} else {
messageSendTimeBuilder_.mergeFrom(value);
}
- bitField0_ |= 0x00000200;
+ bitField0_ |= 0x00000400;
onChanged();
return this;
}
@@ -3410,7 +3707,7 @@ public Builder mergeMessageSendTime(com.google.protobuf.Timestamp value) {
* .google.protobuf.Timestamp message_send_time = 10;
*/
public Builder clearMessageSendTime() {
- bitField0_ = (bitField0_ & ~0x00000200);
+ bitField0_ = (bitField0_ & ~0x00000400);
messageSendTime_ = null;
if (messageSendTimeBuilder_ != null) {
messageSendTimeBuilder_.dispose();
@@ -3442,7 +3739,7 @@ public Builder clearMessageSendTime() {
* .google.protobuf.Timestamp message_send_time = 10;
*/
public com.google.protobuf.Timestamp.Builder getMessageSendTimeBuilder() {
- bitField0_ |= 0x00000200;
+ bitField0_ |= 0x00000400;
onChanged();
return getMessageSendTimeFieldBuilder().getBuilder();
}
@@ -3584,7 +3881,7 @@ public Builder setRequestId(java.lang.String value) {
throw new NullPointerException();
}
requestId_ = value;
- bitField0_ |= 0x00000400;
+ bitField0_ |= 0x00000800;
onChanged();
return this;
}
@@ -3603,7 +3900,7 @@ public Builder setRequestId(java.lang.String value) {
*/
public Builder clearRequestId() {
requestId_ = getDefaultInstance().getRequestId();
- bitField0_ = (bitField0_ & ~0x00000400);
+ bitField0_ = (bitField0_ & ~0x00000800);
onChanged();
return this;
}
@@ -3627,7 +3924,7 @@ public Builder setRequestIdBytes(com.google.protobuf.ByteString value) {
}
checkByteStringIsUtf8(value);
requestId_ = value;
- bitField0_ |= 0x00000400;
+ bitField0_ |= 0x00000800;
onChanged();
return this;
}
diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AnalyzeContentRequestOrBuilder.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AnalyzeContentRequestOrBuilder.java
index e244533b0470..735537607b04 100644
--- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AnalyzeContentRequestOrBuilder.java
+++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AnalyzeContentRequestOrBuilder.java
@@ -161,6 +161,41 @@ public interface AnalyzeContentRequestOrBuilder
*/
com.google.cloud.dialogflow.v2beta1.EventInputOrBuilder getEventInputOrBuilder();
+ /**
+ *
+ *
+ * + * An input representing the selection of a suggestion. + *+ * + *
.google.cloud.dialogflow.v2beta1.SuggestionInput suggestion_input = 12;
+ *
+ * @return Whether the suggestionInput field is set.
+ */
+ boolean hasSuggestionInput();
+ /**
+ *
+ *
+ * + * An input representing the selection of a suggestion. + *+ * + *
.google.cloud.dialogflow.v2beta1.SuggestionInput suggestion_input = 12;
+ *
+ * @return The suggestionInput.
+ */
+ com.google.cloud.dialogflow.v2beta1.SuggestionInput getSuggestionInput();
+ /**
+ *
+ *
+ * + * An input representing the selection of a suggestion. + *+ * + *
.google.cloud.dialogflow.v2beta1.SuggestionInput suggestion_input = 12;
+ */
+ com.google.cloud.dialogflow.v2beta1.SuggestionInputOrBuilder getSuggestionInputOrBuilder();
+
/**
*
*
diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AnswerRecordsProto.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AnswerRecordsProto.java
index ef5d9dce0b07..6e3018ffcd75 100644
--- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AnswerRecordsProto.java
+++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AnswerRecordsProto.java
@@ -89,86 +89,88 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\0220projects/{project}/answerRecords/{answ"
+ "er_record}\022Eprojects/{project}/locations"
+ "/{location}/answerRecords/{answer_record"
- + "}B\010\n\006record\"\303\001\n\024AgentAssistantRecord\022Y\n\031"
+ + "}B\010\n\006record\"\246\002\n\024AgentAssistantRecord\022Y\n\031"
+ "article_suggestion_answer\030\005 \001(\0132..google"
+ ".cloud.dialogflow.v2beta1.ArticleAnswerB"
+ "\004\342A\001\003H\000\022F\n\nfaq_answer\030\006 \001(\0132*.google.clo"
- + "ud.dialogflow.v2beta1.FaqAnswerB\004\342A\001\003H\000B"
- + "\010\n\006answer\"\334\003\n\016AnswerFeedback\022[\n\021correctn"
- + "ess_level\030\001 \001(\0162@.google.cloud.dialogflo"
- + "w.v2beta1.AnswerFeedback.CorrectnessLeve"
- + "l\022b\n\037agent_assistant_detail_feedback\030\002 \001"
- + "(\01327.google.cloud.dialogflow.v2beta1.Age"
- + "ntAssistantFeedbackH\000\022\017\n\007clicked\030\003 \001(\010\022."
- + "\n\nclick_time\030\005 \001(\0132\032.google.protobuf.Tim"
- + "estamp\022\021\n\tdisplayed\030\004 \001(\010\0220\n\014display_tim"
- + "e\030\006 \001(\0132\032.google.protobuf.Timestamp\"p\n\020C"
- + "orrectnessLevel\022!\n\035CORRECTNESS_LEVEL_UNS"
- + "PECIFIED\020\000\022\017\n\013NOT_CORRECT\020\001\022\025\n\021PARTIALLY"
- + "_CORRECT\020\002\022\021\n\rFULLY_CORRECT\020\003B\021\n\017detail_"
- + "feedback\"\340\006\n\026AgentAssistantFeedback\022a\n\020a"
- + "nswer_relevance\030\001 \001(\0162G.google.cloud.dia"
- + "logflow.v2beta1.AgentAssistantFeedback.A"
- + "nswerRelevance\022i\n\024document_correctness\030\002"
- + " \001(\0162K.google.cloud.dialogflow.v2beta1.A"
- + "gentAssistantFeedback.DocumentCorrectnes"
- + "s\022g\n\023document_efficiency\030\003 \001(\0162J.google."
- + "cloud.dialogflow.v2beta1.AgentAssistantF"
- + "eedback.DocumentEfficiency\022m\n\026summarizat"
- + "ion_feedback\030\004 \001(\0132M.google.cloud.dialog"
- + "flow.v2beta1.AgentAssistantFeedback.Summ"
- + "arizationFeedback\032\230\001\n\025SummarizationFeedb"
- + "ack\0223\n\017start_timestamp\030\001 \001(\0132\032.google.pr"
- + "otobuf.Timestamp\0224\n\020submit_timestamp\030\002 \001"
- + "(\0132\032.google.protobuf.Timestamp\022\024\n\014summar"
- + "y_text\030\003 \001(\t\"Q\n\017AnswerRelevance\022 \n\034ANSWE"
- + "R_RELEVANCE_UNSPECIFIED\020\000\022\016\n\nIRRELEVANT\020"
- + "\001\022\014\n\010RELEVANT\020\002\"W\n\023DocumentCorrectness\022$"
- + "\n DOCUMENT_CORRECTNESS_UNSPECIFIED\020\000\022\r\n\t"
- + "INCORRECT\020\001\022\013\n\007CORRECT\020\002\"Y\n\022DocumentEffi"
- + "ciency\022#\n\037DOCUMENT_EFFICIENCY_UNSPECIFIE"
- + "D\020\000\022\017\n\013INEFFICIENT\020\001\022\r\n\tEFFICIENT\020\002\"&\n\026G"
- + "etAnswerRecordRequest\022\014\n\004name\030\001 \001(\t\"\226\001\n\030"
- + "ListAnswerRecordsRequest\022;\n\006parent\030\001 \001(\t"
- + "B+\372A(\022&dialogflow.googleapis.com/AnswerR"
- + "ecord\022\026\n\006filter\030\002 \001(\tB\006\030\001\342A\001\001\022\021\n\tpage_si"
- + "ze\030\003 \001(\005\022\022\n\npage_token\030\004 \001(\t\"{\n\031ListAnsw"
- + "erRecordsResponse\022E\n\016answer_records\030\001 \003("
- + "\0132-.google.cloud.dialogflow.v2beta1.Answ"
- + "erRecord\022\027\n\017next_page_token\030\002 \001(\t\"\230\001\n\031Up"
- + "dateAnswerRecordRequest\022J\n\ranswer_record"
- + "\030\001 \001(\0132-.google.cloud.dialogflow.v2beta1"
- + ".AnswerRecordB\004\342A\001\002\022/\n\013update_mask\030\002 \001(\013"
- + "2\032.google.protobuf.FieldMask2\302\007\n\rAnswerR"
- + "ecords\022\352\001\n\017GetAnswerRecord\0227.google.clou"
- + "d.dialogflow.v2beta1.GetAnswerRecordRequ"
- + "est\032-.google.cloud.dialogflow.v2beta1.An"
- + "swerRecord\"o\210\002\001\202\323\344\223\002f\022*/v2beta1/{name=pr"
- + "ojects/*/answerRecords/*}Z8\0226/v2beta1/{n"
- + "ame=projects/*/locations/*/answerRecords"
- + "/*}\022\201\002\n\021ListAnswerRecords\0229.google.cloud"
- + ".dialogflow.v2beta1.ListAnswerRecordsReq"
- + "uest\032:.google.cloud.dialogflow.v2beta1.L"
- + "istAnswerRecordsResponse\"u\332A\006parent\202\323\344\223\002"
- + "f\022*/v2beta1/{parent=projects/*}/answerRe"
- + "cordsZ8\0226/v2beta1/{parent=projects/*/loc"
- + "ations/*}/answerRecords\022\305\002\n\022UpdateAnswer"
- + "Record\022:.google.cloud.dialogflow.v2beta1"
- + ".UpdateAnswerRecordRequest\032-.google.clou"
- + "d.dialogflow.v2beta1.AnswerRecord\"\303\001\332A\031a"
- + "nswer_record,update_mask\202\323\344\223\002\240\00128/v2beta"
- + "1/{answer_record.name=projects/*/answerR"
- + "ecords/*}:\ranswer_recordZU2D/v2beta1/{an"
- + "swer_record.name=projects/*/locations/*/"
- + "answerRecords/*}:\ranswer_record\032x\312A\031dial"
- + "ogflow.googleapis.com\322AYhttps://www.goog"
- + "leapis.com/auth/cloud-platform,https://w"
- + "ww.googleapis.com/auth/dialogflowB\252\001\n#co"
- + "m.google.cloud.dialogflow.v2beta1B\022Answe"
- + "rRecordsProtoP\001ZCcloud.google.com/go/dia"
- + "logflow/apiv2beta1/dialogflowpb;dialogfl"
- + "owpb\370\001\001\242\002\002DF\252\002\037Google.Cloud.Dialogflow.V"
- + "2Beta1b\006proto3"
+ + "ud.dialogflow.v2beta1.FaqAnswerB\004\342A\001\003H\000\022"
+ + "a\n\030dialogflow_assist_answer\030\007 \001(\01327.goog"
+ + "le.cloud.dialogflow.v2beta1.DialogflowAs"
+ + "sistAnswerB\004\342A\001\003H\000B\010\n\006answer\"\334\003\n\016AnswerF"
+ + "eedback\022[\n\021correctness_level\030\001 \001(\0162@.goo"
+ + "gle.cloud.dialogflow.v2beta1.AnswerFeedb"
+ + "ack.CorrectnessLevel\022b\n\037agent_assistant_"
+ + "detail_feedback\030\002 \001(\01327.google.cloud.dia"
+ + "logflow.v2beta1.AgentAssistantFeedbackH\000"
+ + "\022\017\n\007clicked\030\003 \001(\010\022.\n\nclick_time\030\005 \001(\0132\032."
+ + "google.protobuf.Timestamp\022\021\n\tdisplayed\030\004"
+ + " \001(\010\0220\n\014display_time\030\006 \001(\0132\032.google.prot"
+ + "obuf.Timestamp\"p\n\020CorrectnessLevel\022!\n\035CO"
+ + "RRECTNESS_LEVEL_UNSPECIFIED\020\000\022\017\n\013NOT_COR"
+ + "RECT\020\001\022\025\n\021PARTIALLY_CORRECT\020\002\022\021\n\rFULLY_C"
+ + "ORRECT\020\003B\021\n\017detail_feedback\"\340\006\n\026AgentAss"
+ + "istantFeedback\022a\n\020answer_relevance\030\001 \001(\016"
+ + "2G.google.cloud.dialogflow.v2beta1.Agent"
+ + "AssistantFeedback.AnswerRelevance\022i\n\024doc"
+ + "ument_correctness\030\002 \001(\0162K.google.cloud.d"
+ + "ialogflow.v2beta1.AgentAssistantFeedback"
+ + ".DocumentCorrectness\022g\n\023document_efficie"
+ + "ncy\030\003 \001(\0162J.google.cloud.dialogflow.v2be"
+ + "ta1.AgentAssistantFeedback.DocumentEffic"
+ + "iency\022m\n\026summarization_feedback\030\004 \001(\0132M."
+ + "google.cloud.dialogflow.v2beta1.AgentAss"
+ + "istantFeedback.SummarizationFeedback\032\230\001\n"
+ + "\025SummarizationFeedback\0223\n\017start_timestam"
+ + "p\030\001 \001(\0132\032.google.protobuf.Timestamp\0224\n\020s"
+ + "ubmit_timestamp\030\002 \001(\0132\032.google.protobuf."
+ + "Timestamp\022\024\n\014summary_text\030\003 \001(\t\"Q\n\017Answe"
+ + "rRelevance\022 \n\034ANSWER_RELEVANCE_UNSPECIFI"
+ + "ED\020\000\022\016\n\nIRRELEVANT\020\001\022\014\n\010RELEVANT\020\002\"W\n\023Do"
+ + "cumentCorrectness\022$\n DOCUMENT_CORRECTNES"
+ + "S_UNSPECIFIED\020\000\022\r\n\tINCORRECT\020\001\022\013\n\007CORREC"
+ + "T\020\002\"Y\n\022DocumentEfficiency\022#\n\037DOCUMENT_EF"
+ + "FICIENCY_UNSPECIFIED\020\000\022\017\n\013INEFFICIENT\020\001\022"
+ + "\r\n\tEFFICIENT\020\002\"&\n\026GetAnswerRecordRequest"
+ + "\022\014\n\004name\030\001 \001(\t\"\226\001\n\030ListAnswerRecordsRequ"
+ + "est\022;\n\006parent\030\001 \001(\tB+\372A(\022&dialogflow.goo"
+ + "gleapis.com/AnswerRecord\022\026\n\006filter\030\002 \001(\t"
+ + "B\006\030\001\342A\001\001\022\021\n\tpage_size\030\003 \001(\005\022\022\n\npage_toke"
+ + "n\030\004 \001(\t\"{\n\031ListAnswerRecordsResponse\022E\n\016"
+ + "answer_records\030\001 \003(\0132-.google.cloud.dial"
+ + "ogflow.v2beta1.AnswerRecord\022\027\n\017next_page"
+ + "_token\030\002 \001(\t\"\230\001\n\031UpdateAnswerRecordReque"
+ + "st\022J\n\ranswer_record\030\001 \001(\0132-.google.cloud"
+ + ".dialogflow.v2beta1.AnswerRecordB\004\342A\001\002\022/"
+ + "\n\013update_mask\030\002 \001(\0132\032.google.protobuf.Fi"
+ + "eldMask2\302\007\n\rAnswerRecords\022\352\001\n\017GetAnswerR"
+ + "ecord\0227.google.cloud.dialogflow.v2beta1."
+ + "GetAnswerRecordRequest\032-.google.cloud.di"
+ + "alogflow.v2beta1.AnswerRecord\"o\210\002\001\202\323\344\223\002f"
+ + "\022*/v2beta1/{name=projects/*/answerRecord"
+ + "s/*}Z8\0226/v2beta1/{name=projects/*/locati"
+ + "ons/*/answerRecords/*}\022\201\002\n\021ListAnswerRec"
+ + "ords\0229.google.cloud.dialogflow.v2beta1.L"
+ + "istAnswerRecordsRequest\032:.google.cloud.d"
+ + "ialogflow.v2beta1.ListAnswerRecordsRespo"
+ + "nse\"u\332A\006parent\202\323\344\223\002f\022*/v2beta1/{parent=p"
+ + "rojects/*}/answerRecordsZ8\0226/v2beta1/{pa"
+ + "rent=projects/*/locations/*}/answerRecor"
+ + "ds\022\305\002\n\022UpdateAnswerRecord\022:.google.cloud"
+ + ".dialogflow.v2beta1.UpdateAnswerRecordRe"
+ + "quest\032-.google.cloud.dialogflow.v2beta1."
+ + "AnswerRecord\"\303\001\332A\031answer_record,update_m"
+ + "ask\202\323\344\223\002\240\00128/v2beta1/{answer_record.name"
+ + "=projects/*/answerRecords/*}:\ranswer_rec"
+ + "ordZU2D/v2beta1/{answer_record.name=proj"
+ + "ects/*/locations/*/answerRecords/*}:\rans"
+ + "wer_record\032x\312A\031dialogflow.googleapis.com"
+ + "\322AYhttps://www.googleapis.com/auth/cloud"
+ + "-platform,https://www.googleapis.com/aut"
+ + "h/dialogflowB\252\001\n#com.google.cloud.dialog"
+ + "flow.v2beta1B\022AnswerRecordsProtoP\001ZCclou"
+ + "d.google.com/go/dialogflow/apiv2beta1/di"
+ + "alogflowpb;dialogflowpb\370\001\001\242\002\002DF\252\002\037Google"
+ + ".Cloud.Dialogflow.V2Beta1b\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
@@ -196,7 +198,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_cloud_dialogflow_v2beta1_AgentAssistantRecord_descriptor,
new java.lang.String[] {
- "ArticleSuggestionAnswer", "FaqAnswer", "Answer",
+ "ArticleSuggestionAnswer", "FaqAnswer", "DialogflowAssistAnswer", "Answer",
});
internal_static_google_cloud_dialogflow_v2beta1_AnswerFeedback_descriptor =
getDescriptor().getMessageTypes().get(2);
diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AutomatedAgentConfig.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AutomatedAgentConfig.java
index 1dfa5d2f1cdd..04f269862ffd 100644
--- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AutomatedAgentConfig.java
+++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AutomatedAgentConfig.java
@@ -149,6 +149,64 @@ public com.google.protobuf.ByteString getAgentBytes() {
}
}
+ public static final int SESSION_TTL_FIELD_NUMBER = 3;
+ private com.google.protobuf.Duration sessionTtl_;
+ /**
+ *
+ *
+ * + * Optional. Sets Dialogflow CX session life time. + * By default, a Dialogflow CX session remains active and its data is stored + * for 30 minutes after the last request is sent for the session. This value + * should be no longer than 1 day. + *+ * + *
.google.protobuf.Duration session_ttl = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the sessionTtl field is set.
+ */
+ @java.lang.Override
+ public boolean hasSessionTtl() {
+ return sessionTtl_ != null;
+ }
+ /**
+ *
+ *
+ * + * Optional. Sets Dialogflow CX session life time. + * By default, a Dialogflow CX session remains active and its data is stored + * for 30 minutes after the last request is sent for the session. This value + * should be no longer than 1 day. + *+ * + *
.google.protobuf.Duration session_ttl = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The sessionTtl.
+ */
+ @java.lang.Override
+ public com.google.protobuf.Duration getSessionTtl() {
+ return sessionTtl_ == null ? com.google.protobuf.Duration.getDefaultInstance() : sessionTtl_;
+ }
+ /**
+ *
+ *
+ * + * Optional. Sets Dialogflow CX session life time. + * By default, a Dialogflow CX session remains active and its data is stored + * for 30 minutes after the last request is sent for the session. This value + * should be no longer than 1 day. + *+ * + *
.google.protobuf.Duration session_ttl = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public com.google.protobuf.DurationOrBuilder getSessionTtlOrBuilder() {
+ return sessionTtl_ == null ? com.google.protobuf.Duration.getDefaultInstance() : sessionTtl_;
+ }
+
private byte memoizedIsInitialized = -1;
@java.lang.Override
@@ -166,6 +224,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(agent_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, agent_);
}
+ if (sessionTtl_ != null) {
+ output.writeMessage(3, getSessionTtl());
+ }
getUnknownFields().writeTo(output);
}
@@ -178,6 +239,9 @@ public int getSerializedSize() {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(agent_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, agent_);
}
+ if (sessionTtl_ != null) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getSessionTtl());
+ }
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
@@ -195,6 +259,10 @@ public boolean equals(final java.lang.Object obj) {
(com.google.cloud.dialogflow.v2beta1.AutomatedAgentConfig) obj;
if (!getAgent().equals(other.getAgent())) return false;
+ if (hasSessionTtl() != other.hasSessionTtl()) return false;
+ if (hasSessionTtl()) {
+ if (!getSessionTtl().equals(other.getSessionTtl())) return false;
+ }
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@@ -208,6 +276,10 @@ public int hashCode() {
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + AGENT_FIELD_NUMBER;
hash = (53 * hash) + getAgent().hashCode();
+ if (hasSessionTtl()) {
+ hash = (37 * hash) + SESSION_TTL_FIELD_NUMBER;
+ hash = (53 * hash) + getSessionTtl().hashCode();
+ }
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
@@ -349,6 +421,11 @@ public Builder clear() {
super.clear();
bitField0_ = 0;
agent_ = "";
+ sessionTtl_ = null;
+ if (sessionTtlBuilder_ != null) {
+ sessionTtlBuilder_.dispose();
+ sessionTtlBuilder_ = null;
+ }
return this;
}
@@ -388,6 +465,9 @@ private void buildPartial0(com.google.cloud.dialogflow.v2beta1.AutomatedAgentCon
if (((from_bitField0_ & 0x00000001) != 0)) {
result.agent_ = agent_;
}
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.sessionTtl_ = sessionTtlBuilder_ == null ? sessionTtl_ : sessionTtlBuilder_.build();
+ }
}
@java.lang.Override
@@ -441,6 +521,9 @@ public Builder mergeFrom(com.google.cloud.dialogflow.v2beta1.AutomatedAgentConfi
bitField0_ |= 0x00000001;
onChanged();
}
+ if (other.hasSessionTtl()) {
+ mergeSessionTtl(other.getSessionTtl());
+ }
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
@@ -473,6 +556,12 @@ public Builder mergeFrom(
bitField0_ |= 0x00000001;
break;
} // case 10
+ case 26:
+ {
+ input.readMessage(getSessionTtlFieldBuilder().getBuilder(), extensionRegistry);
+ bitField0_ |= 0x00000002;
+ break;
+ } // case 26
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
@@ -688,6 +777,225 @@ public Builder setAgentBytes(com.google.protobuf.ByteString value) {
return this;
}
+ private com.google.protobuf.Duration sessionTtl_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Duration,
+ com.google.protobuf.Duration.Builder,
+ com.google.protobuf.DurationOrBuilder>
+ sessionTtlBuilder_;
+ /**
+ *
+ *
+ * + * Optional. Sets Dialogflow CX session life time. + * By default, a Dialogflow CX session remains active and its data is stored + * for 30 minutes after the last request is sent for the session. This value + * should be no longer than 1 day. + *+ * + *
.google.protobuf.Duration session_ttl = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the sessionTtl field is set.
+ */
+ public boolean hasSessionTtl() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+ /**
+ *
+ *
+ * + * Optional. Sets Dialogflow CX session life time. + * By default, a Dialogflow CX session remains active and its data is stored + * for 30 minutes after the last request is sent for the session. This value + * should be no longer than 1 day. + *+ * + *
.google.protobuf.Duration session_ttl = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The sessionTtl.
+ */
+ public com.google.protobuf.Duration getSessionTtl() {
+ if (sessionTtlBuilder_ == null) {
+ return sessionTtl_ == null
+ ? com.google.protobuf.Duration.getDefaultInstance()
+ : sessionTtl_;
+ } else {
+ return sessionTtlBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ * + * Optional. Sets Dialogflow CX session life time. + * By default, a Dialogflow CX session remains active and its data is stored + * for 30 minutes after the last request is sent for the session. This value + * should be no longer than 1 day. + *+ * + *
.google.protobuf.Duration session_ttl = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder setSessionTtl(com.google.protobuf.Duration value) {
+ if (sessionTtlBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ sessionTtl_ = value;
+ } else {
+ sessionTtlBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. Sets Dialogflow CX session life time. + * By default, a Dialogflow CX session remains active and its data is stored + * for 30 minutes after the last request is sent for the session. This value + * should be no longer than 1 day. + *+ * + *
.google.protobuf.Duration session_ttl = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder setSessionTtl(com.google.protobuf.Duration.Builder builderForValue) {
+ if (sessionTtlBuilder_ == null) {
+ sessionTtl_ = builderForValue.build();
+ } else {
+ sessionTtlBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. Sets Dialogflow CX session life time. + * By default, a Dialogflow CX session remains active and its data is stored + * for 30 minutes after the last request is sent for the session. This value + * should be no longer than 1 day. + *+ * + *
.google.protobuf.Duration session_ttl = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder mergeSessionTtl(com.google.protobuf.Duration value) {
+ if (sessionTtlBuilder_ == null) {
+ if (((bitField0_ & 0x00000002) != 0)
+ && sessionTtl_ != null
+ && sessionTtl_ != com.google.protobuf.Duration.getDefaultInstance()) {
+ getSessionTtlBuilder().mergeFrom(value);
+ } else {
+ sessionTtl_ = value;
+ }
+ } else {
+ sessionTtlBuilder_.mergeFrom(value);
+ }
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. Sets Dialogflow CX session life time. + * By default, a Dialogflow CX session remains active and its data is stored + * for 30 minutes after the last request is sent for the session. This value + * should be no longer than 1 day. + *+ * + *
.google.protobuf.Duration session_ttl = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder clearSessionTtl() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ sessionTtl_ = null;
+ if (sessionTtlBuilder_ != null) {
+ sessionTtlBuilder_.dispose();
+ sessionTtlBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. Sets Dialogflow CX session life time. + * By default, a Dialogflow CX session remains active and its data is stored + * for 30 minutes after the last request is sent for the session. This value + * should be no longer than 1 day. + *+ * + *
.google.protobuf.Duration session_ttl = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.protobuf.Duration.Builder getSessionTtlBuilder() {
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return getSessionTtlFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * Optional. Sets Dialogflow CX session life time. + * By default, a Dialogflow CX session remains active and its data is stored + * for 30 minutes after the last request is sent for the session. This value + * should be no longer than 1 day. + *+ * + *
.google.protobuf.Duration session_ttl = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.protobuf.DurationOrBuilder getSessionTtlOrBuilder() {
+ if (sessionTtlBuilder_ != null) {
+ return sessionTtlBuilder_.getMessageOrBuilder();
+ } else {
+ return sessionTtl_ == null
+ ? com.google.protobuf.Duration.getDefaultInstance()
+ : sessionTtl_;
+ }
+ }
+ /**
+ *
+ *
+ * + * Optional. Sets Dialogflow CX session life time. + * By default, a Dialogflow CX session remains active and its data is stored + * for 30 minutes after the last request is sent for the session. This value + * should be no longer than 1 day. + *+ * + *
.google.protobuf.Duration session_ttl = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Duration,
+ com.google.protobuf.Duration.Builder,
+ com.google.protobuf.DurationOrBuilder>
+ getSessionTtlFieldBuilder() {
+ if (sessionTtlBuilder_ == null) {
+ sessionTtlBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Duration,
+ com.google.protobuf.Duration.Builder,
+ com.google.protobuf.DurationOrBuilder>(
+ getSessionTtl(), getParentForChildren(), isClean());
+ sessionTtl_ = null;
+ }
+ return sessionTtlBuilder_;
+ }
+
@java.lang.Override
public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AutomatedAgentConfigOrBuilder.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AutomatedAgentConfigOrBuilder.java
index e1aee5c27bba..ba644278c6f8 100644
--- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AutomatedAgentConfigOrBuilder.java
+++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AutomatedAgentConfigOrBuilder.java
@@ -83,4 +83,51 @@ public interface AutomatedAgentConfigOrBuilder
* @return The bytes for agent.
*/
com.google.protobuf.ByteString getAgentBytes();
+
+ /**
+ *
+ *
+ * + * Optional. Sets Dialogflow CX session life time. + * By default, a Dialogflow CX session remains active and its data is stored + * for 30 minutes after the last request is sent for the session. This value + * should be no longer than 1 day. + *+ * + *
.google.protobuf.Duration session_ttl = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the sessionTtl field is set.
+ */
+ boolean hasSessionTtl();
+ /**
+ *
+ *
+ * + * Optional. Sets Dialogflow CX session life time. + * By default, a Dialogflow CX session remains active and its data is stored + * for 30 minutes after the last request is sent for the session. This value + * should be no longer than 1 day. + *+ * + *
.google.protobuf.Duration session_ttl = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The sessionTtl.
+ */
+ com.google.protobuf.Duration getSessionTtl();
+ /**
+ *
+ *
+ * + * Optional. Sets Dialogflow CX session life time. + * By default, a Dialogflow CX session remains active and its data is stored + * for 30 minutes after the last request is sent for the session. This value + * should be no longer than 1 day. + *+ * + *
.google.protobuf.Duration session_ttl = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ com.google.protobuf.DurationOrBuilder getSessionTtlOrBuilder();
}
diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AutomatedAgentReply.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AutomatedAgentReply.java
index d0b7b82e7d28..5f47fd29006f 100644
--- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AutomatedAgentReply.java
+++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AutomatedAgentReply.java
@@ -692,7 +692,7 @@ public com.google.protobuf.StructOrBuilder getParametersOrBuilder() {
* .google.protobuf.Struct cx_session_parameters = 6 [deprecated = true];
*
* @deprecated google.cloud.dialogflow.v2beta1.AutomatedAgentReply.cx_session_parameters is
- * deprecated. See google/cloud/dialogflow/v2beta1/participant.proto;l=524
+ * deprecated. See google/cloud/dialogflow/v2beta1/participant.proto;l=525
* @return Whether the cxSessionParameters field is set.
*/
@java.lang.Override
@@ -712,7 +712,7 @@ public boolean hasCxSessionParameters() {
* .google.protobuf.Struct cx_session_parameters = 6 [deprecated = true];
*
* @deprecated google.cloud.dialogflow.v2beta1.AutomatedAgentReply.cx_session_parameters is
- * deprecated. See google/cloud/dialogflow/v2beta1/participant.proto;l=524
+ * deprecated. See google/cloud/dialogflow/v2beta1/participant.proto;l=525
* @return The cxSessionParameters.
*/
@java.lang.Override
@@ -2734,7 +2734,7 @@ public com.google.protobuf.StructOrBuilder getParametersOrBuilder() {
* .google.protobuf.Struct cx_session_parameters = 6 [deprecated = true];
*
* @deprecated google.cloud.dialogflow.v2beta1.AutomatedAgentReply.cx_session_parameters is
- * deprecated. See google/cloud/dialogflow/v2beta1/participant.proto;l=524
+ * deprecated. See google/cloud/dialogflow/v2beta1/participant.proto;l=525
* @return Whether the cxSessionParameters field is set.
*/
@java.lang.Deprecated
@@ -2753,7 +2753,7 @@ public boolean hasCxSessionParameters() {
* .google.protobuf.Struct cx_session_parameters = 6 [deprecated = true];
*
* @deprecated google.cloud.dialogflow.v2beta1.AutomatedAgentReply.cx_session_parameters is
- * deprecated. See google/cloud/dialogflow/v2beta1/participant.proto;l=524
+ * deprecated. See google/cloud/dialogflow/v2beta1/participant.proto;l=525
* @return The cxSessionParameters.
*/
@java.lang.Deprecated
diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AutomatedAgentReplyOrBuilder.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AutomatedAgentReplyOrBuilder.java
index b2120b7281b2..f5f049cf5bea 100644
--- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AutomatedAgentReplyOrBuilder.java
+++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AutomatedAgentReplyOrBuilder.java
@@ -269,7 +269,7 @@ com.google.cloud.dialogflow.v2beta1.ResponseMessageOrBuilder getResponseMessages
* .google.protobuf.Struct cx_session_parameters = 6 [deprecated = true];
*
* @deprecated google.cloud.dialogflow.v2beta1.AutomatedAgentReply.cx_session_parameters is
- * deprecated. See google/cloud/dialogflow/v2beta1/participant.proto;l=524
+ * deprecated. See google/cloud/dialogflow/v2beta1/participant.proto;l=525
* @return Whether the cxSessionParameters field is set.
*/
@java.lang.Deprecated
@@ -286,7 +286,7 @@ com.google.cloud.dialogflow.v2beta1.ResponseMessageOrBuilder getResponseMessages
* .google.protobuf.Struct cx_session_parameters = 6 [deprecated = true];
*
* @deprecated google.cloud.dialogflow.v2beta1.AutomatedAgentReply.cx_session_parameters is
- * deprecated. See google/cloud/dialogflow/v2beta1/participant.proto;l=524
+ * deprecated. See google/cloud/dialogflow/v2beta1/participant.proto;l=525
* @return The cxSessionParameters.
*/
@java.lang.Deprecated
diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/BatchCreateMessagesRequest.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/BatchCreateMessagesRequest.java
index 88e0d9d0be31..237d07a8e132 100644
--- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/BatchCreateMessagesRequest.java
+++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/BatchCreateMessagesRequest.java
@@ -130,7 +130,7 @@ public com.google.protobuf.ByteString getParentBytes() {
*
*
* - * Required. A maximum of 1000 Messages can be created in a batch. + * Required. A maximum of 300 messages can be created in a batch. * [CreateMessageRequest.message.send_time][] is required. All created * messages will have identical * [Message.create_time][google.cloud.dialogflow.v2beta1.Message.create_time]. @@ -149,7 +149,7 @@ public com.google.protobuf.ByteString getParentBytes() { * * *- * Required. A maximum of 1000 Messages can be created in a batch. + * Required. A maximum of 300 messages can be created in a batch. * [CreateMessageRequest.message.send_time][] is required. All created * messages will have identical * [Message.create_time][google.cloud.dialogflow.v2beta1.Message.create_time]. @@ -168,7 +168,7 @@ public com.google.protobuf.ByteString getParentBytes() { * * *- * Required. A maximum of 1000 Messages can be created in a batch. + * Required. A maximum of 300 messages can be created in a batch. * [CreateMessageRequest.message.send_time][] is required. All created * messages will have identical * [Message.create_time][google.cloud.dialogflow.v2beta1.Message.create_time]. @@ -186,7 +186,7 @@ public int getRequestsCount() { * * *- * Required. A maximum of 1000 Messages can be created in a batch. + * Required. A maximum of 300 messages can be created in a batch. * [CreateMessageRequest.message.send_time][] is required. All created * messages will have identical * [Message.create_time][google.cloud.dialogflow.v2beta1.Message.create_time]. @@ -204,7 +204,7 @@ public com.google.cloud.dialogflow.v2beta1.CreateMessageRequest getRequests(int * * *- * Required. A maximum of 1000 Messages can be created in a batch. + * Required. A maximum of 300 messages can be created in a batch. * [CreateMessageRequest.message.send_time][] is required. All created * messages will have identical * [Message.create_time][google.cloud.dialogflow.v2beta1.Message.create_time]. @@ -787,7 +787,7 @@ private void ensureRequestsIsMutable() { * * *- * Required. A maximum of 1000 Messages can be created in a batch. + * Required. A maximum of 300 messages can be created in a batch. * [CreateMessageRequest.message.send_time][] is required. All created * messages will have identical * [Message.create_time][google.cloud.dialogflow.v2beta1.Message.create_time]. @@ -809,7 +809,7 @@ private void ensureRequestsIsMutable() { * * *- * Required. A maximum of 1000 Messages can be created in a batch. + * Required. A maximum of 300 messages can be created in a batch. * [CreateMessageRequest.message.send_time][] is required. All created * messages will have identical * [Message.create_time][google.cloud.dialogflow.v2beta1.Message.create_time]. @@ -830,7 +830,7 @@ public int getRequestsCount() { * * *- * Required. A maximum of 1000 Messages can be created in a batch. + * Required. A maximum of 300 messages can be created in a batch. * [CreateMessageRequest.message.send_time][] is required. All created * messages will have identical * [Message.create_time][google.cloud.dialogflow.v2beta1.Message.create_time]. @@ -851,7 +851,7 @@ public com.google.cloud.dialogflow.v2beta1.CreateMessageRequest getRequests(int * * *- * Required. A maximum of 1000 Messages can be created in a batch. + * Required. A maximum of 300 messages can be created in a batch. * [CreateMessageRequest.message.send_time][] is required. All created * messages will have identical * [Message.create_time][google.cloud.dialogflow.v2beta1.Message.create_time]. @@ -879,7 +879,7 @@ public Builder setRequests( * * *- * Required. A maximum of 1000 Messages can be created in a batch. + * Required. A maximum of 300 messages can be created in a batch. * [CreateMessageRequest.message.send_time][] is required. All created * messages will have identical * [Message.create_time][google.cloud.dialogflow.v2beta1.Message.create_time]. @@ -905,7 +905,7 @@ public Builder setRequests( * * *- * Required. A maximum of 1000 Messages can be created in a batch. + * Required. A maximum of 300 messages can be created in a batch. * [CreateMessageRequest.message.send_time][] is required. All created * messages will have identical * [Message.create_time][google.cloud.dialogflow.v2beta1.Message.create_time]. @@ -932,7 +932,7 @@ public Builder addRequests(com.google.cloud.dialogflow.v2beta1.CreateMessageRequ * * *- * Required. A maximum of 1000 Messages can be created in a batch. + * Required. A maximum of 300 messages can be created in a batch. * [CreateMessageRequest.message.send_time][] is required. All created * messages will have identical * [Message.create_time][google.cloud.dialogflow.v2beta1.Message.create_time]. @@ -960,7 +960,7 @@ public Builder addRequests( * * *- * Required. A maximum of 1000 Messages can be created in a batch. + * Required. A maximum of 300 messages can be created in a batch. * [CreateMessageRequest.message.send_time][] is required. All created * messages will have identical * [Message.create_time][google.cloud.dialogflow.v2beta1.Message.create_time]. @@ -985,7 +985,7 @@ public Builder addRequests( * * *- * Required. A maximum of 1000 Messages can be created in a batch. + * Required. A maximum of 300 messages can be created in a batch. * [CreateMessageRequest.message.send_time][] is required. All created * messages will have identical * [Message.create_time][google.cloud.dialogflow.v2beta1.Message.create_time]. @@ -1011,7 +1011,7 @@ public Builder addRequests( * * *- * Required. A maximum of 1000 Messages can be created in a batch. + * Required. A maximum of 300 messages can be created in a batch. * [CreateMessageRequest.message.send_time][] is required. All created * messages will have identical * [Message.create_time][google.cloud.dialogflow.v2beta1.Message.create_time]. @@ -1037,7 +1037,7 @@ public Builder addAllRequests( * * ** *- * Required. A maximum of 1000 Messages can be created in a batch. + * Required. A maximum of 300 messages can be created in a batch. * [CreateMessageRequest.message.send_time][] is required. All created * messages will have identical * [Message.create_time][google.cloud.dialogflow.v2beta1.Message.create_time]. @@ -1061,7 +1061,7 @@ public Builder clearRequests() { * * ** *- * Required. A maximum of 1000 Messages can be created in a batch. + * Required. A maximum of 300 messages can be created in a batch. * [CreateMessageRequest.message.send_time][] is required. All created * messages will have identical * [Message.create_time][google.cloud.dialogflow.v2beta1.Message.create_time]. @@ -1085,7 +1085,7 @@ public Builder removeRequests(int index) { * * ** *- * Required. A maximum of 1000 Messages can be created in a batch. + * Required. A maximum of 300 messages can be created in a batch. * [CreateMessageRequest.message.send_time][] is required. All created * messages will have identical * [Message.create_time][google.cloud.dialogflow.v2beta1.Message.create_time]. @@ -1103,7 +1103,7 @@ public com.google.cloud.dialogflow.v2beta1.CreateMessageRequest.Builder getReque * * ** *- * Required. A maximum of 1000 Messages can be created in a batch. + * Required. A maximum of 300 messages can be created in a batch. * [CreateMessageRequest.message.send_time][] is required. All created * messages will have identical * [Message.create_time][google.cloud.dialogflow.v2beta1.Message.create_time]. @@ -1125,7 +1125,7 @@ public com.google.cloud.dialogflow.v2beta1.CreateMessageRequestOrBuilder getRequ * * ** *- * Required. A maximum of 1000 Messages can be created in a batch. + * Required. A maximum of 300 messages can be created in a batch. * [CreateMessageRequest.message.send_time][] is required. All created * messages will have identical * [Message.create_time][google.cloud.dialogflow.v2beta1.Message.create_time]. @@ -1148,7 +1148,7 @@ public com.google.cloud.dialogflow.v2beta1.CreateMessageRequestOrBuilder getRequ * * ** *- * Required. A maximum of 1000 Messages can be created in a batch. + * Required. A maximum of 300 messages can be created in a batch. * [CreateMessageRequest.message.send_time][] is required. All created * messages will have identical * [Message.create_time][google.cloud.dialogflow.v2beta1.Message.create_time]. @@ -1167,7 +1167,7 @@ public com.google.cloud.dialogflow.v2beta1.CreateMessageRequest.Builder addReque * * ** *- * Required. A maximum of 1000 Messages can be created in a batch. + * Required. A maximum of 300 messages can be created in a batch. * [CreateMessageRequest.message.send_time][] is required. All created * messages will have identical * [Message.create_time][google.cloud.dialogflow.v2beta1.Message.create_time]. @@ -1187,7 +1187,7 @@ public com.google.cloud.dialogflow.v2beta1.CreateMessageRequest.Builder addReque * * ** *- * Required. A maximum of 1000 Messages can be created in a batch. + * Required. A maximum of 300 messages can be created in a batch. * [CreateMessageRequest.message.send_time][] is required. All created * messages will have identical * [Message.create_time][google.cloud.dialogflow.v2beta1.Message.create_time]. diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/BatchCreateMessagesRequestOrBuilder.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/BatchCreateMessagesRequestOrBuilder.java index f7d21bfa770e..5fcb97992ebb 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/BatchCreateMessagesRequestOrBuilder.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/BatchCreateMessagesRequestOrBuilder.java @@ -60,7 +60,7 @@ public interface BatchCreateMessagesRequestOrBuilder * * ** *- * Required. A maximum of 1000 Messages can be created in a batch. + * Required. A maximum of 300 messages can be created in a batch. * [CreateMessageRequest.message.send_time][] is required. All created * messages will have identical * [Message.create_time][google.cloud.dialogflow.v2beta1.Message.create_time]. @@ -75,7 +75,7 @@ public interface BatchCreateMessagesRequestOrBuilder * * ** *- * Required. A maximum of 1000 Messages can be created in a batch. + * Required. A maximum of 300 messages can be created in a batch. * [CreateMessageRequest.message.send_time][] is required. All created * messages will have identical * [Message.create_time][google.cloud.dialogflow.v2beta1.Message.create_time]. @@ -90,7 +90,7 @@ public interface BatchCreateMessagesRequestOrBuilder * * ** *- * Required. A maximum of 1000 Messages can be created in a batch. + * Required. A maximum of 300 messages can be created in a batch. * [CreateMessageRequest.message.send_time][] is required. All created * messages will have identical * [Message.create_time][google.cloud.dialogflow.v2beta1.Message.create_time]. @@ -105,7 +105,7 @@ public interface BatchCreateMessagesRequestOrBuilder * * ** *- * Required. A maximum of 1000 Messages can be created in a batch. + * Required. A maximum of 300 messages can be created in a batch. * [CreateMessageRequest.message.send_time][] is required. All created * messages will have identical * [Message.create_time][google.cloud.dialogflow.v2beta1.Message.create_time]. @@ -121,7 +121,7 @@ public interface BatchCreateMessagesRequestOrBuilder * * ** *- * Required. A maximum of 1000 Messages can be created in a batch. + * Required. A maximum of 300 messages can be created in a batch. * [CreateMessageRequest.message.send_time][] is required. All created * messages will have identical * [Message.create_time][google.cloud.dialogflow.v2beta1.Message.create_time]. diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ConversationProfileProto.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ConversationProfileProto.java index 45c01abd1cc2..d06eecf79a10 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ConversationProfileProto.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ConversationProfileProto.java @@ -67,6 +67,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_dialogflow_v2beta1_HumanAgentAssistantConfig_SuggestionQueryConfig_DialogflowQuerySource_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_dialogflow_v2beta1_HumanAgentAssistantConfig_SuggestionQueryConfig_DialogflowQuerySource_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2beta1_HumanAgentAssistantConfig_SuggestionQueryConfig_DialogflowQuerySource_HumanAgentSideConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2beta1_HumanAgentAssistantConfig_SuggestionQueryConfig_DialogflowQuerySource_HumanAgentSideConfig_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_dialogflow_v2beta1_HumanAgentAssistantConfig_SuggestionQueryConfig_ContextFilterSettings_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -160,256 +164,264 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "ce.proto\0322google/cloud/dialogflow/v2beta" + "1/audio_config.proto\0321google/cloud/dialo" + "gflow/v2beta1/participant.proto\032#google/" - + "longrunning/operations.proto\032\033google/pro" - + "tobuf/empty.proto\032 google/protobuf/field" - + "_mask.proto\032\037google/protobuf/timestamp.p" - + "roto\"\233\t\n\023ConversationProfile\022\014\n\004name\030\001 \001" - + "(\t\022\032\n\014display_name\030\002 \001(\tB\004\342A\001\002\0225\n\013create" - + "_time\030\013 \001(\0132\032.google.protobuf.TimestampB" - + "\004\342A\001\003\0225\n\013update_time\030\014 \001(\0132\032.google.prot" - + "obuf.TimestampB\004\342A\001\003\022U\n\026automated_agent_" - + "config\030\003 \001(\01325.google.cloud.dialogflow.v" - + "2beta1.AutomatedAgentConfig\022`\n\034human_age" - + "nt_assistant_config\030\004 \001(\0132:.google.cloud" + + "longrunning/operations.proto\032\036google/pro" + + "tobuf/duration.proto\032\033google/protobuf/em" + + "pty.proto\032 google/protobuf/field_mask.pr" + + "oto\032\037google/protobuf/timestamp.proto\"\233\t\n" + + "\023ConversationProfile\022\014\n\004name\030\001 \001(\t\022\032\n\014di" + + "splay_name\030\002 \001(\tB\004\342A\001\002\0225\n\013create_time\030\013 " + + "\001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\0225\n" + + "\013update_time\030\014 \001(\0132\032.google.protobuf.Tim" + + "estampB\004\342A\001\003\022U\n\026automated_agent_config\030\003" + + " \001(\01325.google.cloud.dialogflow.v2beta1.A" + + "utomatedAgentConfig\022`\n\034human_agent_assis" + + "tant_config\030\004 \001(\0132:.google.cloud.dialogf" + + "low.v2beta1.HumanAgentAssistantConfig\022\\\n" + + "\032human_agent_handoff_config\030\005 \001(\01328.goog" + + "le.cloud.dialogflow.v2beta1.HumanAgentHa" + + "ndoffConfig\022P\n\023notification_config\030\006 \001(\013" + + "23.google.cloud.dialogflow.v2beta1.Notif" + + "icationConfig\022F\n\016logging_config\030\007 \001(\0132.." + + "google.cloud.dialogflow.v2beta1.LoggingC" + + "onfig\022b\n%new_message_event_notification_" + + "config\030\010 \001(\01323.google.cloud.dialogflow.v" + + "2beta1.NotificationConfig\022G\n\nstt_config\030" + + "\t \001(\01323.google.cloud.dialogflow.v2beta1." + + "SpeechToTextConfig\022\025\n\rlanguage_code\030\n \001(" + + "\t\022\021\n\ttime_zone\030\016 \001(\t\022L\n\021security_setting" + + "s\030\r \001(\tB1\372A.\n,dialogflow.googleapis.com/" + + "CXSecuritySettings\022K\n\ntts_config\030\022 \001(\01327" + + ".google.cloud.dialogflow.v2beta1.Synthes" + + "izeSpeechConfig:\310\001\352A\304\001\n-dialogflow.googl" + + "eapis.com/ConversationProfile\022>projects/" + + "{project}/conversationProfiles/{conversa" + + "tion_profile}\022Sprojects/{project}/locati" + + "ons/{location}/conversationProfiles/{con" + + "versation_profile}\"\205\001\n\024AutomatedAgentCon" + + "fig\0227\n\005agent\030\001 \001(\tB(\342A\001\002\372A!\n\037dialogflow." + + "googleapis.com/Agent\0224\n\013session_ttl\030\003 \001(" + + "\0132\031.google.protobuf.DurationB\004\342A\001\001\"\274\026\n\031H" + + "umanAgentAssistantConfig\022P\n\023notification" + + "_config\030\002 \001(\01323.google.cloud.dialogflow." + + "v2beta1.NotificationConfig\022r\n\035human_agen" + + "t_suggestion_config\030\003 \001(\0132K.google.cloud" + ".dialogflow.v2beta1.HumanAgentAssistantC" - + "onfig\022\\\n\032human_agent_handoff_config\030\005 \001(" - + "\01328.google.cloud.dialogflow.v2beta1.Huma" - + "nAgentHandoffConfig\022P\n\023notification_conf" - + "ig\030\006 \001(\01323.google.cloud.dialogflow.v2bet" - + "a1.NotificationConfig\022F\n\016logging_config\030" - + "\007 \001(\0132..google.cloud.dialogflow.v2beta1." - + "LoggingConfig\022b\n%new_message_event_notif" - + "ication_config\030\010 \001(\01323.google.cloud.dial" - + "ogflow.v2beta1.NotificationConfig\022G\n\nstt" - + "_config\030\t \001(\01323.google.cloud.dialogflow." - + "v2beta1.SpeechToTextConfig\022\025\n\rlanguage_c" - + "ode\030\n \001(\t\022\021\n\ttime_zone\030\016 \001(\t\022L\n\021security" - + "_settings\030\r \001(\tB1\372A.\n,dialogflow.googlea" - + "pis.com/CXSecuritySettings\022K\n\ntts_config" - + "\030\022 \001(\01327.google.cloud.dialogflow.v2beta1" - + ".SynthesizeSpeechConfig:\310\001\352A\304\001\n-dialogfl" - + "ow.googleapis.com/ConversationProfile\022>p" - + "rojects/{project}/conversationProfiles/{" - + "conversation_profile}\022Sprojects/{project" - + "}/locations/{location}/conversationProfi" - + "les/{conversation_profile}\"O\n\024AutomatedA" - + "gentConfig\0227\n\005agent\030\001 \001(\tB(\342A\001\002\372A!\n\037dial" - + "ogflow.googleapis.com/Agent\"\313\024\n\031HumanAge" - + "ntAssistantConfig\022P\n\023notification_config" - + "\030\002 \001(\01323.google.cloud.dialogflow.v2beta1" - + ".NotificationConfig\022r\n\035human_agent_sugge" - + "stion_config\030\003 \001(\0132K.google.cloud.dialog" + + "onfig.SuggestionConfig\022o\n\032end_user_sugge" + + "stion_config\030\004 \001(\0132K.google.cloud.dialog" + "flow.v2beta1.HumanAgentAssistantConfig.S" - + "uggestionConfig\022o\n\032end_user_suggestion_c" - + "onfig\030\004 \001(\0132K.google.cloud.dialogflow.v2" + + "uggestionConfig\022q\n\027message_analysis_conf" + + "ig\030\005 \001(\0132P.google.cloud.dialogflow.v2bet" + + "a1.HumanAgentAssistantConfig.MessageAnal" + + "ysisConfig\032I\n\031SuggestionTriggerSettings\022" + + "\025\n\rno_small_talk\030\001 \001(\010\022\025\n\ronly_end_user\030" + + "\002 \001(\010\032\345\004\n\027SuggestionFeatureConfig\022N\n\022sug" + + "gestion_feature\030\005 \001(\01322.google.cloud.dia" + + "logflow.v2beta1.SuggestionFeature\022%\n\035ena" + + "ble_event_based_suggestion\030\003 \001(\010\022y\n\033sugg" + + "estion_trigger_settings\030\n \001(\0132T.google.c" + + "loud.dialogflow.v2beta1.HumanAgentAssist" + + "antConfig.SuggestionTriggerSettings\022f\n\014q" + + "uery_config\030\006 \001(\0132P.google.cloud.dialogf" + + "low.v2beta1.HumanAgentAssistantConfig.Su" + + "ggestionQueryConfig\022u\n\031conversation_mode" + + "l_config\030\007 \001(\0132R.google.cloud.dialogflow" + + ".v2beta1.HumanAgentAssistantConfig.Conve" + + "rsationModelConfig\022y\n\033conversation_proce" + + "ss_config\030\010 \001(\0132T.google.cloud.dialogflo" + + "w.v2beta1.HumanAgentAssistantConfig.Conv" + + "ersationProcessConfig\032\243\001\n\020SuggestionConf" + + "ig\022k\n\017feature_configs\030\002 \003(\0132R.google.clo" + + "ud.dialogflow.v2beta1.HumanAgentAssistan" + + "tConfig.SuggestionFeatureConfig\022\"\n\032group" + + "_suggestion_responses\030\003 \001(\010\032\204\n\n\025Suggesti" + + "onQueryConfig\022\220\001\n\033knowledge_base_query_s" + + "ource\030\001 \001(\0132i.google.cloud.dialogflow.v2" + "beta1.HumanAgentAssistantConfig.Suggesti" - + "onConfig\022q\n\027message_analysis_config\030\005 \001(" - + "\0132P.google.cloud.dialogflow.v2beta1.Huma" - + "nAgentAssistantConfig.MessageAnalysisCon" - + "fig\032I\n\031SuggestionTriggerSettings\022\025\n\rno_s" - + "mall_talk\030\001 \001(\010\022\025\n\ronly_end_user\030\002 \001(\010\032\345" - + "\004\n\027SuggestionFeatureConfig\022N\n\022suggestion" - + "_feature\030\005 \001(\01322.google.cloud.dialogflow" - + ".v2beta1.SuggestionFeature\022%\n\035enable_eve" - + "nt_based_suggestion\030\003 \001(\010\022y\n\033suggestion_" - + "trigger_settings\030\n \001(\0132T.google.cloud.di" - + "alogflow.v2beta1.HumanAgentAssistantConf" - + "ig.SuggestionTriggerSettings\022f\n\014query_co" - + "nfig\030\006 \001(\0132P.google.cloud.dialogflow.v2b" + + "onQueryConfig.KnowledgeBaseQuerySourceH\000" + + "\022\205\001\n\025document_query_source\030\002 \001(\0132d.googl" + + "e.cloud.dialogflow.v2beta1.HumanAgentAss" + + "istantConfig.SuggestionQueryConfig.Docum" + + "entQuerySourceH\000\022\211\001\n\027dialogflow_query_so" + + "urce\030\003 \001(\0132f.google.cloud.dialogflow.v2b" + "eta1.HumanAgentAssistantConfig.Suggestio" - + "nQueryConfig\022u\n\031conversation_model_confi" - + "g\030\007 \001(\0132R.google.cloud.dialogflow.v2beta" - + "1.HumanAgentAssistantConfig.Conversation" - + "ModelConfig\022y\n\033conversation_process_conf" - + "ig\030\010 \001(\0132T.google.cloud.dialogflow.v2bet" - + "a1.HumanAgentAssistantConfig.Conversatio" - + "nProcessConfig\032\243\001\n\020SuggestionConfig\022k\n\017f" - + "eature_configs\030\002 \003(\0132R.google.cloud.dial" - + "ogflow.v2beta1.HumanAgentAssistantConfig" - + ".SuggestionFeatureConfig\022\"\n\032group_sugges" - + "tion_responses\030\003 \001(\010\032\223\010\n\025SuggestionQuery" - + "Config\022\220\001\n\033knowledge_base_query_source\030\001" - + " \001(\0132i.google.cloud.dialogflow.v2beta1.H" - + "umanAgentAssistantConfig.SuggestionQuery" - + "Config.KnowledgeBaseQuerySourceH\000\022\205\001\n\025do" - + "cument_query_source\030\002 \001(\0132d.google.cloud" - + ".dialogflow.v2beta1.HumanAgentAssistantC" - + "onfig.SuggestionQueryConfig.DocumentQuer" - + "ySourceH\000\022\211\001\n\027dialogflow_query_source\030\003 " - + "\001(\0132f.google.cloud.dialogflow.v2beta1.Hu" - + "manAgentAssistantConfig.SuggestionQueryC" - + "onfig.DialogflowQuerySourceH\000\022\023\n\013max_res" - + "ults\030\004 \001(\005\022\034\n\024confidence_threshold\030\005 \001(\002" - + "\022\207\001\n\027context_filter_settings\030\007 \001(\0132f.goo" - + "gle.cloud.dialogflow.v2beta1.HumanAgentA" - + "ssistantConfig.SuggestionQueryConfig.Con" - + "textFilterSettings\032e\n\030KnowledgeBaseQuery" - + "Source\022I\n\017knowledge_bases\030\001 \003(\tB0\342A\001\002\372A)" - + "\n\'dialogflow.googleapis.com/KnowledgeBas" - + "e\032U\n\023DocumentQuerySource\022>\n\tdocuments\030\001 " - + "\003(\tB+\342A\001\002\372A$\n\"dialogflow.googleapis.com/" - + "Document\032P\n\025DialogflowQuerySource\0227\n\005age" - + "nt\030\001 \001(\tB(\342A\001\002\372A!\n\037dialogflow.googleapis" - + ".com/Agent\032v\n\025ContextFilterSettings\022\035\n\025d" - + "rop_handoff_messages\030\001 \001(\010\022#\n\033drop_virtu" - + "al_agent_messages\030\002 \001(\010\022\031\n\021drop_ivr_mess" - + "ages\030\003 \001(\010B\016\n\014query_source\032z\n\027Conversati" - + "onModelConfig\022?\n\005model\030\001 \001(\tB0\372A-\n+dialo" - + "gflow.googleapis.com/ConversationModel\022\036" - + "\n\026baseline_model_version\030\010 \001(\t\032;\n\031Conver" - + "sationProcessConfig\022\036\n\026recent_sentences_" - + "count\030\002 \001(\005\032\\\n\025MessageAnalysisConfig\022 \n\030" - + "enable_entity_extraction\030\002 \001(\010\022!\n\031enable" - + "_sentiment_analysis\030\003 \001(\010\"\323\003\n\027HumanAgent" - + "HandoffConfig\022g\n\022live_person_config\030\001 \001(" - + "\0132I.google.cloud.dialogflow.v2beta1.Huma" - + "nAgentHandoffConfig.LivePersonConfigH\000\022z" - + "\n\034salesforce_live_agent_config\030\002 \001(\0132R.g" - + "oogle.cloud.dialogflow.v2beta1.HumanAgen" - + "tHandoffConfig.SalesforceLiveAgentConfig" - + "H\000\0320\n\020LivePersonConfig\022\034\n\016account_number" - + "\030\001 \001(\tB\004\342A\001\002\032\217\001\n\031SalesforceLiveAgentConf" - + "ig\022\035\n\017organization_id\030\001 \001(\tB\004\342A\001\002\022\033\n\rdep" - + "loyment_id\030\002 \001(\tB\004\342A\001\002\022\027\n\tbutton_id\030\003 \001(" - + "\tB\004\342A\001\002\022\035\n\017endpoint_domain\030\004 \001(\tB\004\342A\001\002B\017" - + "\n\ragent_service\"\304\001\n\022NotificationConfig\022\r" - + "\n\005topic\030\001 \001(\t\022Y\n\016message_format\030\002 \001(\0162A." - + "google.cloud.dialogflow.v2beta1.Notifica" - + "tionConfig.MessageFormat\"D\n\rMessageForma" - + "t\022\036\n\032MESSAGE_FORMAT_UNSPECIFIED\020\000\022\t\n\005PRO" - + "TO\020\001\022\010\n\004JSON\020\002\"3\n\rLoggingConfig\022\"\n\032enabl" - + "e_stackdriver_logging\030\003 \001(\010\"\220\001\n\037ListConv" - + "ersationProfilesRequest\022F\n\006parent\030\001 \001(\tB" - + "6\342A\001\002\372A/\022-dialogflow.googleapis.com/Conv" - + "ersationProfile\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npa" - + "ge_token\030\003 \001(\t\"\220\001\n ListConversationProfi" - + "lesResponse\022S\n\025conversation_profiles\030\001 \003" - + "(\01324.google.cloud.dialogflow.v2beta1.Con" - + "versationProfile\022\027\n\017next_page_token\030\002 \001(" - + "\t\"e\n\035GetConversationProfileRequest\022D\n\004na" - + "me\030\001 \001(\tB6\342A\001\002\372A/\n-dialogflow.googleapis" - + ".com/ConversationProfile\"\304\001\n CreateConve" - + "rsationProfileRequest\022F\n\006parent\030\001 \001(\tB6\342" - + "A\001\002\372A/\022-dialogflow.googleapis.com/Conver" - + "sationProfile\022X\n\024conversation_profile\030\002 " - + "\001(\01324.google.cloud.dialogflow.v2beta1.Co" - + "nversationProfileB\004\342A\001\002\"\263\001\n UpdateConver" - + "sationProfileRequest\022X\n\024conversation_pro" - + "file\030\001 \001(\01324.google.cloud.dialogflow.v2b" - + "eta1.ConversationProfileB\004\342A\001\002\0225\n\013update" - + "_mask\030\002 \001(\0132\032.google.protobuf.FieldMaskB" - + "\004\342A\001\002\"h\n DeleteConversationProfileReques" - + "t\022D\n\004name\030\001 \001(\tB6\342A\001\002\372A/\n-dialogflow.goo" - + "gleapis.com/ConversationProfile\"\227\002\n!SetS" - + "uggestionFeatureConfigRequest\022\"\n\024convers" - + "ation_profile\030\001 \001(\tB\004\342A\001\002\022Q\n\020participant" - + "_role\030\002 \001(\01621.google.cloud.dialogflow.v2" - + "beta1.Participant.RoleB\004\342A\001\002\022{\n\031suggesti" - + "on_feature_config\030\003 \001(\0132R.google.cloud.d" - + "ialogflow.v2beta1.HumanAgentAssistantCon" - + "fig.SuggestionFeatureConfigB\004\342A\001\002\"\374\001\n#Cl" - + "earSuggestionFeatureConfigRequest\022\"\n\024con" - + "versation_profile\030\001 \001(\tB\004\342A\001\002\022Q\n\020partici" - + "pant_role\030\002 \001(\01621.google.cloud.dialogflo" - + "w.v2beta1.Participant.RoleB\004\342A\001\002\022^\n\027sugg" - + "estion_feature_type\030\003 \001(\01627.google.cloud" - + ".dialogflow.v2beta1.SuggestionFeature.Ty" - + "peB\004\342A\001\002\"\257\002\n+SetSuggestionFeatureConfigO" - + "perationMetadata\022\034\n\024conversation_profile" - + "\030\001 \001(\t\022Q\n\020participant_role\030\002 \001(\01621.googl" - + "e.cloud.dialogflow.v2beta1.Participant.R" - + "oleB\004\342A\001\002\022^\n\027suggestion_feature_type\030\003 \001" - + "(\01627.google.cloud.dialogflow.v2beta1.Sug" - + "gestionFeature.TypeB\004\342A\001\002\022/\n\013create_time" - + "\030\004 \001(\0132\032.google.protobuf.Timestamp\"\261\002\n-C" - + "learSuggestionFeatureConfigOperationMeta" - + "data\022\034\n\024conversation_profile\030\001 \001(\t\022Q\n\020pa" - + "rticipant_role\030\002 \001(\01621.google.cloud.dial" - + "ogflow.v2beta1.Participant.RoleB\004\342A\001\002\022^\n" - + "\027suggestion_feature_type\030\003 \001(\01627.google." - + "cloud.dialogflow.v2beta1.SuggestionFeatu" - + "re.TypeB\004\342A\001\002\022/\n\013create_time\030\004 \001(\0132\032.goo" - + "gle.protobuf.Timestamp2\263\025\n\024ConversationP" - + "rofiles\022\245\002\n\030ListConversationProfiles\022@.g" - + "oogle.cloud.dialogflow.v2beta1.ListConve" - + "rsationProfilesRequest\032A.google.cloud.di" - + "alogflow.v2beta1.ListConversationProfile" - + "sResponse\"\203\001\332A\006parent\202\323\344\223\002t\0221/v2beta1/{p" - + "arent=projects/*}/conversationProfilesZ?" - + "\022=/v2beta1/{parent=projects/*/locations/" - + "*}/conversationProfiles\022\222\002\n\026GetConversat" - + "ionProfile\022>.google.cloud.dialogflow.v2b" - + "eta1.GetConversationProfileRequest\0324.goo" - + "gle.cloud.dialogflow.v2beta1.Conversatio" - + "nProfile\"\201\001\332A\004name\202\323\344\223\002t\0221/v2beta1/{name" - + "=projects/*/conversationProfiles/*}Z?\022=/" - + "v2beta1/{name=projects/*/locations/*/con" - + "versationProfiles/*}\022\334\002\n\031CreateConversat" - + "ionProfile\022A.google.cloud.dialogflow.v2b" - + "eta1.CreateConversationProfileRequest\0324." - + "google.cloud.dialogflow.v2beta1.Conversa" - + "tionProfile\"\305\001\332A\033parent,conversation_pro" - + "file\202\323\344\223\002\240\001\"1/v2beta1/{parent=projects/*" - + "}/conversationProfiles:\024conversation_pro" - + "fileZU\"=/v2beta1/{parent=projects/*/loca" - + "tions/*}/conversationProfiles:\024conversat" - + "ion_profile\022\213\003\n\031UpdateConversationProfil" - + "e\022A.google.cloud.dialogflow.v2beta1.Upda" - + "teConversationProfileRequest\0324.google.cl" - + "oud.dialogflow.v2beta1.ConversationProfi" - + "le\"\364\001\332A conversation_profile,update_mask" - + "\202\323\344\223\002\312\0012F/v2beta1/{conversation_profile." - + "name=projects/*/conversationProfiles/*}:" - + "\024conversation_profileZj2R/v2beta1/{conve" - + "rsation_profile.name=projects/*/location" - + "s/*/conversationProfiles/*}:\024conversatio" - + "n_profile\022\372\001\n\031DeleteConversationProfile\022" - + "A.google.cloud.dialogflow.v2beta1.Delete" - + "ConversationProfileRequest\032\026.google.prot" - + "obuf.Empty\"\201\001\332A\004name\202\323\344\223\002t*1/v2beta1/{na" - + "me=projects/*/conversationProfiles/*}Z?*" - + "=/v2beta1/{name=projects/*/locations/*/c" - + "onversationProfiles/*}\022\367\003\n\032SetSuggestion" - + "FeatureConfig\022B.google.cloud.dialogflow." - + "v2beta1.SetSuggestionFeatureConfigReques" - + "t\032\035.google.longrunning.Operation\"\365\002\312AB\n\023" - + "ConversationProfile\022+SetSuggestionFeatur" + + "nQueryConfig.DialogflowQuerySourceH\000\022\023\n\013" + + "max_results\030\004 \001(\005\022\034\n\024confidence_threshol" + + "d\030\005 \001(\002\022\207\001\n\027context_filter_settings\030\007 \001(" + + "\0132f.google.cloud.dialogflow.v2beta1.Huma" + + "nAgentAssistantConfig.SuggestionQueryCon" + + "fig.ContextFilterSettings\032e\n\030KnowledgeBa" + + "seQuerySource\022I\n\017knowledge_bases\030\001 \003(\tB0" + + "\342A\001\002\372A)\n\'dialogflow.googleapis.com/Knowl" + + "edgeBase\032U\n\023DocumentQuerySource\022>\n\tdocum" + + "ents\030\001 \003(\tB+\342A\001\002\372A$\n\"dialogflow.googleap" + + "is.com/Document\032\300\002\n\025DialogflowQuerySourc" + + "e\0227\n\005agent\030\001 \001(\tB(\342A\001\002\372A!\n\037dialogflow.go" + + "ogleapis.com/Agent\022\234\001\n\027human_agent_side_" + + "config\030\003 \001(\0132{.google.cloud.dialogflow.v" + + "2beta1.HumanAgentAssistantConfig.Suggest" + + "ionQueryConfig.DialogflowQuerySource.Hum" + + "anAgentSideConfig\032O\n\024HumanAgentSideConfi" + + "g\0227\n\005agent\030\001 \001(\tB(\342A\001\001\372A!\n\037dialogflow.go" + + "ogleapis.com/Agent\032v\n\025ContextFilterSetti" + + "ngs\022\035\n\025drop_handoff_messages\030\001 \001(\010\022#\n\033dr" + + "op_virtual_agent_messages\030\002 \001(\010\022\031\n\021drop_" + + "ivr_messages\030\003 \001(\010B\016\n\014query_source\032z\n\027Co" + + "nversationModelConfig\022?\n\005model\030\001 \001(\tB0\372A" + + "-\n+dialogflow.googleapis.com/Conversatio" + + "nModel\022\036\n\026baseline_model_version\030\010 \001(\t\032;" + + "\n\031ConversationProcessConfig\022\036\n\026recent_se" + + "ntences_count\030\002 \001(\005\032\\\n\025MessageAnalysisCo" + + "nfig\022 \n\030enable_entity_extraction\030\002 \001(\010\022!" + + "\n\031enable_sentiment_analysis\030\003 \001(\010\"\323\003\n\027Hu" + + "manAgentHandoffConfig\022g\n\022live_person_con" + + "fig\030\001 \001(\0132I.google.cloud.dialogflow.v2be" + + "ta1.HumanAgentHandoffConfig.LivePersonCo" + + "nfigH\000\022z\n\034salesforce_live_agent_config\030\002" + + " \001(\0132R.google.cloud.dialogflow.v2beta1.H" + + "umanAgentHandoffConfig.SalesforceLiveAge" + + "ntConfigH\000\0320\n\020LivePersonConfig\022\034\n\016accoun" + + "t_number\030\001 \001(\tB\004\342A\001\002\032\217\001\n\031SalesforceLiveA" + + "gentConfig\022\035\n\017organization_id\030\001 \001(\tB\004\342A\001" + + "\002\022\033\n\rdeployment_id\030\002 \001(\tB\004\342A\001\002\022\027\n\tbutton" + + "_id\030\003 \001(\tB\004\342A\001\002\022\035\n\017endpoint_domain\030\004 \001(\t" + + "B\004\342A\001\002B\017\n\ragent_service\"\304\001\n\022Notification" + + "Config\022\r\n\005topic\030\001 \001(\t\022Y\n\016message_format\030" + + "\002 \001(\0162A.google.cloud.dialogflow.v2beta1." + + "NotificationConfig.MessageFormat\"D\n\rMess" + + "ageFormat\022\036\n\032MESSAGE_FORMAT_UNSPECIFIED\020" + + "\000\022\t\n\005PROTO\020\001\022\010\n\004JSON\020\002\"3\n\rLoggingConfig\022" + + "\"\n\032enable_stackdriver_logging\030\003 \001(\010\"\220\001\n\037" + + "ListConversationProfilesRequest\022F\n\006paren" + + "t\030\001 \001(\tB6\342A\001\002\372A/\022-dialogflow.googleapis." + + "com/ConversationProfile\022\021\n\tpage_size\030\002 \001" + + "(\005\022\022\n\npage_token\030\003 \001(\t\"\220\001\n ListConversat" + + "ionProfilesResponse\022S\n\025conversation_prof" + + "iles\030\001 \003(\01324.google.cloud.dialogflow.v2b" + + "eta1.ConversationProfile\022\027\n\017next_page_to" + + "ken\030\002 \001(\t\"e\n\035GetConversationProfileReque" + + "st\022D\n\004name\030\001 \001(\tB6\342A\001\002\372A/\n-dialogflow.go" + + "ogleapis.com/ConversationProfile\"\304\001\n Cre" + + "ateConversationProfileRequest\022F\n\006parent\030" + + "\001 \001(\tB6\342A\001\002\372A/\022-dialogflow.googleapis.co" + + "m/ConversationProfile\022X\n\024conversation_pr" + + "ofile\030\002 \001(\01324.google.cloud.dialogflow.v2" + + "beta1.ConversationProfileB\004\342A\001\002\"\263\001\n Upda" + + "teConversationProfileRequest\022X\n\024conversa" + + "tion_profile\030\001 \001(\01324.google.cloud.dialog" + + "flow.v2beta1.ConversationProfileB\004\342A\001\002\0225" + + "\n\013update_mask\030\002 \001(\0132\032.google.protobuf.Fi" + + "eldMaskB\004\342A\001\002\"h\n DeleteConversationProfi" + + "leRequest\022D\n\004name\030\001 \001(\tB6\342A\001\002\372A/\n-dialog" + + "flow.googleapis.com/ConversationProfile\"" + + "\227\002\n!SetSuggestionFeatureConfigRequest\022\"\n" + + "\024conversation_profile\030\001 \001(\tB\004\342A\001\002\022Q\n\020par" + + "ticipant_role\030\002 \001(\01621.google.cloud.dialo" + + "gflow.v2beta1.Participant.RoleB\004\342A\001\002\022{\n\031" + + "suggestion_feature_config\030\003 \001(\0132R.google" + + ".cloud.dialogflow.v2beta1.HumanAgentAssi" + + "stantConfig.SuggestionFeatureConfigB\004\342A\001" + + "\002\"\374\001\n#ClearSuggestionFeatureConfigReques" + + "t\022\"\n\024conversation_profile\030\001 \001(\tB\004\342A\001\002\022Q\n" + + "\020participant_role\030\002 \001(\01621.google.cloud.d" + + "ialogflow.v2beta1.Participant.RoleB\004\342A\001\002" + + "\022^\n\027suggestion_feature_type\030\003 \001(\01627.goog" + + "le.cloud.dialogflow.v2beta1.SuggestionFe" + + "ature.TypeB\004\342A\001\002\"\257\002\n+SetSuggestionFeatur" + + "eConfigOperationMetadata\022\034\n\024conversation" + + "_profile\030\001 \001(\t\022Q\n\020participant_role\030\002 \001(\016" + + "21.google.cloud.dialogflow.v2beta1.Parti" + + "cipant.RoleB\004\342A\001\002\022^\n\027suggestion_feature_" + + "type\030\003 \001(\01627.google.cloud.dialogflow.v2b" + + "eta1.SuggestionFeature.TypeB\004\342A\001\002\022/\n\013cre" + + "ate_time\030\004 \001(\0132\032.google.protobuf.Timesta" + + "mp\"\261\002\n-ClearSuggestionFeatureConfigOpera" + + "tionMetadata\022\034\n\024conversation_profile\030\001 \001" + + "(\t\022Q\n\020participant_role\030\002 \001(\01621.google.cl" + + "oud.dialogflow.v2beta1.Participant.RoleB" + + "\004\342A\001\002\022^\n\027suggestion_feature_type\030\003 \001(\01627" + + ".google.cloud.dialogflow.v2beta1.Suggest" + + "ionFeature.TypeB\004\342A\001\002\022/\n\013create_time\030\004 \001" + + "(\0132\032.google.protobuf.Timestamp2\263\025\n\024Conve" + + "rsationProfiles\022\245\002\n\030ListConversationProf" + + "iles\022@.google.cloud.dialogflow.v2beta1.L" + + "istConversationProfilesRequest\032A.google." + + "cloud.dialogflow.v2beta1.ListConversatio" + + "nProfilesResponse\"\203\001\332A\006parent\202\323\344\223\002t\0221/v2" + + "beta1/{parent=projects/*}/conversationPr" + + "ofilesZ?\022=/v2beta1/{parent=projects/*/lo" + + "cations/*}/conversationProfiles\022\222\002\n\026GetC" + + "onversationProfile\022>.google.cloud.dialog" + + "flow.v2beta1.GetConversationProfileReque" + + "st\0324.google.cloud.dialogflow.v2beta1.Con" + + "versationProfile\"\201\001\332A\004name\202\323\344\223\002t\0221/v2bet" + + "a1/{name=projects/*/conversationProfiles" + + "/*}Z?\022=/v2beta1/{name=projects/*/locatio" + + "ns/*/conversationProfiles/*}\022\334\002\n\031CreateC" + + "onversationProfile\022A.google.cloud.dialog" + + "flow.v2beta1.CreateConversationProfileRe" + + "quest\0324.google.cloud.dialogflow.v2beta1." + + "ConversationProfile\"\305\001\332A\033parent,conversa" + + "tion_profile\202\323\344\223\002\240\001\"1/v2beta1/{parent=pr" + + "ojects/*}/conversationProfiles:\024conversa" + + "tion_profileZU\"=/v2beta1/{parent=project" + + "s/*/locations/*}/conversationProfiles:\024c" + + "onversation_profile\022\213\003\n\031UpdateConversati" + + "onProfile\022A.google.cloud.dialogflow.v2be" + + "ta1.UpdateConversationProfileRequest\0324.g" + + "oogle.cloud.dialogflow.v2beta1.Conversat" + + "ionProfile\"\364\001\332A conversation_profile,upd" + + "ate_mask\202\323\344\223\002\312\0012F/v2beta1/{conversation_" + + "profile.name=projects/*/conversationProf" + + "iles/*}:\024conversation_profileZj2R/v2beta" + + "1/{conversation_profile.name=projects/*/" + + "locations/*/conversationProfiles/*}:\024con" + + "versation_profile\022\372\001\n\031DeleteConversation" + + "Profile\022A.google.cloud.dialogflow.v2beta" + + "1.DeleteConversationProfileRequest\032\026.goo" + + "gle.protobuf.Empty\"\201\001\332A\004name\202\323\344\223\002t*1/v2b" + + "eta1/{name=projects/*/conversationProfil" + + "es/*}Z?*=/v2beta1/{name=projects/*/locat" + + "ions/*/conversationProfiles/*}\022\367\003\n\032SetSu" + + "ggestionFeatureConfig\022B.google.cloud.dia" + + "logflow.v2beta1.SetSuggestionFeatureConf" + + "igRequest\032\035.google.longrunning.Operation" + + "\"\365\002\312AB\n\023ConversationProfile\022+SetSuggesti" + + "onFeatureConfigOperationMetadata\332A\024conve" + + "rsation_profile\332A?conversation_profile,p" + + "articipant_role,suggestion_feature_confi" + + "g\202\323\344\223\002\320\001\"\\/v2beta1/{conversation_profile" + + "=projects/*/conversationProfiles/*}:setS" + + "uggestionFeatureConfig:\001*Zm\"h/v2beta1/{c" + + "onversation_profile=projects/*/locations" + + "/*/conversationProfiles/*}:setSuggestion" + + "FeatureConfig:\001*\022\377\003\n\034ClearSuggestionFeat" + + "ureConfig\022D.google.cloud.dialogflow.v2be" + + "ta1.ClearSuggestionFeatureConfigRequest\032" + + "\035.google.longrunning.Operation\"\371\002\312AD\n\023Co" + + "nversationProfile\022-ClearSuggestionFeatur" + "eConfigOperationMetadata\332A\024conversation_" - + "profile\332A?conversation_profile,participa" - + "nt_role,suggestion_feature_config\202\323\344\223\002\320\001" - + "\"\\/v2beta1/{conversation_profile=project" - + "s/*/conversationProfiles/*}:setSuggestio" - + "nFeatureConfig:\001*Zm\"h/v2beta1/{conversat" + + "profile\332A=conversation_profile,participa" + + "nt_role,suggestion_feature_type\202\323\344\223\002\324\001\"^" + + "/v2beta1/{conversation_profile=projects/" + + "*/conversationProfiles/*}:clearSuggestio" + + "nFeatureConfig:\001*Zo\"j/v2beta1/{conversat" + "ion_profile=projects/*/locations/*/conve" - + "rsationProfiles/*}:setSuggestionFeatureC" - + "onfig:\001*\022\377\003\n\034ClearSuggestionFeatureConfi" - + "g\022D.google.cloud.dialogflow.v2beta1.Clea" - + "rSuggestionFeatureConfigRequest\032\035.google" - + ".longrunning.Operation\"\371\002\312AD\n\023Conversati" - + "onProfile\022-ClearSuggestionFeatureConfigO" - + "perationMetadata\332A\024conversation_profile\332" - + "A=conversation_profile,participant_role," - + "suggestion_feature_type\202\323\344\223\002\324\001\"^/v2beta1" - + "/{conversation_profile=projects/*/conver" - + "sationProfiles/*}:clearSuggestionFeature" - + "Config:\001*Zo\"j/v2beta1/{conversation_prof" - + "ile=projects/*/locations/*/conversationP" - + "rofiles/*}:clearSuggestionFeatureConfig:" - + "\001*\032x\312A\031dialogflow.googleapis.com\322AYhttps" - + "://www.googleapis.com/auth/cloud-platfor" - + "m,https://www.googleapis.com/auth/dialog" - + "flowB\260\003\n#com.google.cloud.dialogflow.v2b" - + "eta1B\030ConversationProfileProtoP\001ZCcloud." - + "google.com/go/dialogflow/apiv2beta1/dial" - + "ogflowpb;dialogflowpb\370\001\001\242\002\002DF\252\002\037Google.C" - + "loud.Dialogflow.V2Beta1\352A|\n,dialogflow.g" - + "oogleapis.com/CXSecuritySettings\022Lprojec" - + "ts/{project}/locations/{location}/securi" - + "tySettings/{security_settings}\352A~\n+dialo" - + "gflow.googleapis.com/ConversationModel\022O" - + "projects/{project}/locations/{location}/" - + "conversationModels/{conversation_model}b" - + "\006proto3" + + "rsationProfiles/*}:clearSuggestionFeatur" + + "eConfig:\001*\032x\312A\031dialogflow.googleapis.com" + + "\322AYhttps://www.googleapis.com/auth/cloud" + + "-platform,https://www.googleapis.com/aut" + + "h/dialogflowB\260\003\n#com.google.cloud.dialog" + + "flow.v2beta1B\030ConversationProfileProtoP\001" + + "ZCcloud.google.com/go/dialogflow/apiv2be" + + "ta1/dialogflowpb;dialogflowpb\370\001\001\242\002\002DF\252\002\037" + + "Google.Cloud.Dialogflow.V2Beta1\352A|\n,dial" + + "ogflow.googleapis.com/CXSecuritySettings" + + "\022Lprojects/{project}/locations/{location" + + "}/securitySettings/{security_settings}\352A" + + "~\n+dialogflow.googleapis.com/Conversatio" + + "nModel\022Oprojects/{project}/locations/{lo" + + "cation}/conversationModels/{conversation" + + "_model}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -422,6 +434,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.cloud.dialogflow.v2beta1.AudioConfigProto.getDescriptor(), com.google.cloud.dialogflow.v2beta1.ParticipantProto.getDescriptor(), com.google.longrunning.OperationsProto.getDescriptor(), + com.google.protobuf.DurationProto.getDescriptor(), com.google.protobuf.EmptyProto.getDescriptor(), com.google.protobuf.FieldMaskProto.getDescriptor(), com.google.protobuf.TimestampProto.getDescriptor(), @@ -454,7 +467,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dialogflow_v2beta1_AutomatedAgentConfig_descriptor, new java.lang.String[] { - "Agent", + "Agent", "SessionTtl", }); internal_static_google_cloud_dialogflow_v2beta1_HumanAgentAssistantConfig_descriptor = getDescriptor().getMessageTypes().get(2); @@ -545,6 +558,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { internal_static_google_cloud_dialogflow_v2beta1_HumanAgentAssistantConfig_SuggestionQueryConfig_DialogflowQuerySource_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dialogflow_v2beta1_HumanAgentAssistantConfig_SuggestionQueryConfig_DialogflowQuerySource_descriptor, + new java.lang.String[] { + "Agent", "HumanAgentSideConfig", + }); + internal_static_google_cloud_dialogflow_v2beta1_HumanAgentAssistantConfig_SuggestionQueryConfig_DialogflowQuerySource_HumanAgentSideConfig_descriptor = + internal_static_google_cloud_dialogflow_v2beta1_HumanAgentAssistantConfig_SuggestionQueryConfig_DialogflowQuerySource_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_dialogflow_v2beta1_HumanAgentAssistantConfig_SuggestionQueryConfig_DialogflowQuerySource_HumanAgentSideConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2beta1_HumanAgentAssistantConfig_SuggestionQueryConfig_DialogflowQuerySource_HumanAgentSideConfig_descriptor, new java.lang.String[] { "Agent", }); @@ -732,6 +755,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.cloud.dialogflow.v2beta1.AudioConfigProto.getDescriptor(); com.google.cloud.dialogflow.v2beta1.ParticipantProto.getDescriptor(); com.google.longrunning.OperationsProto.getDescriptor(); + com.google.protobuf.DurationProto.getDescriptor(); com.google.protobuf.EmptyProto.getDescriptor(); com.google.protobuf.FieldMaskProto.getDescriptor(); com.google.protobuf.TimestampProto.getDescriptor(); diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/CreateEnvironmentRequest.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/CreateEnvironmentRequest.java index e866beb893e9..a4967a851c6d 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/CreateEnvironmentRequest.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/CreateEnvironmentRequest.java @@ -74,8 +74,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { ** ** Required. The agent to create an environment for. * Supported formats: - * - `projects/<Project Number / ID>/agent` - * - `projects/<Project Number / ID>/locations/<Location ID>/agent` + * - `projects/<Project ID>/agent` + * - `projects/<Project ID>/locations/<Location ID>/agent` ** *@@ -102,8 +102,8 @@ public java.lang.String getParent() { *
* Required. The agent to create an environment for. * Supported formats: - * - `projects/<Project Number / ID>/agent` - * - `projects/<Project Number / ID>/locations/<Location ID>/agent` + * - `projects/<Project ID>/agent` + * - `projects/<Project ID>/locations/<Location ID>/agent` ** *@@ -642,8 +642,8 @@ public Builder mergeFrom( *
* Required. The agent to create an environment for. * Supported formats: - * - `projects/<Project Number / ID>/agent` - * - `projects/<Project Number / ID>/locations/<Location ID>/agent` + * - `projects/<Project ID>/agent` + * - `projects/<Project ID>/locations/<Location ID>/agent` ** *@@ -669,8 +669,8 @@ public java.lang.String getParent() { *
* Required. The agent to create an environment for. * Supported formats: - * - `projects/<Project Number / ID>/agent` - * - `projects/<Project Number / ID>/locations/<Location ID>/agent` + * - `projects/<Project ID>/agent` + * - `projects/<Project ID>/locations/<Location ID>/agent` ** *@@ -696,8 +696,8 @@ public com.google.protobuf.ByteString getParentBytes() { *
* Required. The agent to create an environment for. * Supported formats: - * - `projects/<Project Number / ID>/agent` - * - `projects/<Project Number / ID>/locations/<Location ID>/agent` + * - `projects/<Project ID>/agent` + * - `projects/<Project ID>/locations/<Location ID>/agent` ** *@@ -722,8 +722,8 @@ public Builder setParent(java.lang.String value) { *
* Required. The agent to create an environment for. * Supported formats: - * - `projects/<Project Number / ID>/agent` - * - `projects/<Project Number / ID>/locations/<Location ID>/agent` + * - `projects/<Project ID>/agent` + * - `projects/<Project ID>/locations/<Location ID>/agent` ** *@@ -744,8 +744,8 @@ public Builder clearParent() { *
* Required. The agent to create an environment for. * Supported formats: - * - `projects/<Project Number / ID>/agent` - * - `projects/<Project Number / ID>/locations/<Location ID>/agent` + * - `projects/<Project ID>/agent` + * - `projects/<Project ID>/locations/<Location ID>/agent` ** *diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/CreateEnvironmentRequestOrBuilder.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/CreateEnvironmentRequestOrBuilder.java index dab9b748c8a4..665ceb9b36ff 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/CreateEnvironmentRequestOrBuilder.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/CreateEnvironmentRequestOrBuilder.java @@ -29,8 +29,8 @@ public interface CreateEnvironmentRequestOrBuilder *
* Required. The agent to create an environment for. * Supported formats: - * - `projects/<Project Number / ID>/agent` - * - `projects/<Project Number / ID>/locations/<Location ID>/agent` + * - `projects/<Project ID>/agent` + * - `projects/<Project ID>/locations/<Location ID>/agent` ** *@@ -46,8 +46,8 @@ public interface CreateEnvironmentRequestOrBuilder *
* Required. The agent to create an environment for. * Supported formats: - * - `projects/<Project Number / ID>/agent` - * - `projects/<Project Number / ID>/locations/<Location ID>/agent` + * - `projects/<Project ID>/agent` + * - `projects/<Project ID>/locations/<Location ID>/agent` ** *diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DeleteEnvironmentRequest.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DeleteEnvironmentRequest.java index 69f042372724..620d8e743ffe 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DeleteEnvironmentRequest.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DeleteEnvironmentRequest.java @@ -73,8 +73,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { *
* Required. The name of the environment to delete. * / Format: - * - `projects/<Project Number / ID>/agent/environments/<Environment ID>` - * - `projects/<Project Number / ID>/locations/<Location + * - `projects/<Project ID>/agent/environments/<Environment ID>` + * - `projects/<Project ID>/locations/<Location * ID>/agent/environments/<Environment ID>` ** @@ -102,8 +102,8 @@ public java.lang.String getName() { ** Required. The name of the environment to delete. * / Format: - * - `projects/<Project Number / ID>/agent/environments/<Environment ID>` - * - `projects/<Project Number / ID>/locations/<Location + * - `projects/<Project ID>/agent/environments/<Environment ID>` + * - `projects/<Project ID>/locations/<Location * ID>/agent/environments/<Environment ID>` ** @@ -480,8 +480,8 @@ public Builder mergeFrom( ** Required. The name of the environment to delete. * / Format: - * - `projects/<Project Number / ID>/agent/environments/<Environment ID>` - * - `projects/<Project Number / ID>/locations/<Location + * - `projects/<Project ID>/agent/environments/<Environment ID>` + * - `projects/<Project ID>/locations/<Location * ID>/agent/environments/<Environment ID>` ** @@ -508,8 +508,8 @@ public java.lang.String getName() { ** Required. The name of the environment to delete. * / Format: - * - `projects/<Project Number / ID>/agent/environments/<Environment ID>` - * - `projects/<Project Number / ID>/locations/<Location + * - `projects/<Project ID>/agent/environments/<Environment ID>` + * - `projects/<Project ID>/locations/<Location * ID>/agent/environments/<Environment ID>` ** @@ -536,8 +536,8 @@ public com.google.protobuf.ByteString getNameBytes() { ** Required. The name of the environment to delete. * / Format: - * - `projects/<Project Number / ID>/agent/environments/<Environment ID>` - * - `projects/<Project Number / ID>/locations/<Location + * - `projects/<Project ID>/agent/environments/<Environment ID>` + * - `projects/<Project ID>/locations/<Location * ID>/agent/environments/<Environment ID>` ** @@ -563,8 +563,8 @@ public Builder setName(java.lang.String value) { ** Required. The name of the environment to delete. * / Format: - * - `projects/<Project Number / ID>/agent/environments/<Environment ID>` - * - `projects/<Project Number / ID>/locations/<Location + * - `projects/<Project ID>/agent/environments/<Environment ID>` + * - `projects/<Project ID>/locations/<Location * ID>/agent/environments/<Environment ID>` ** @@ -586,8 +586,8 @@ public Builder clearName() { ** Required. The name of the environment to delete. * / Format: - * - `projects/<Project Number / ID>/agent/environments/<Environment ID>` - * - `projects/<Project Number / ID>/locations/<Location + * - `projects/<Project ID>/agent/environments/<Environment ID>` + * - `projects/<Project ID>/locations/<Location * ID>/agent/environments/<Environment ID>` ** diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DeleteEnvironmentRequestOrBuilder.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DeleteEnvironmentRequestOrBuilder.java index 7b66ee88d38c..dc8e8d6b3137 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DeleteEnvironmentRequestOrBuilder.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DeleteEnvironmentRequestOrBuilder.java @@ -29,8 +29,8 @@ public interface DeleteEnvironmentRequestOrBuilder ** Required. The name of the environment to delete. * / Format: - * - `projects/<Project Number / ID>/agent/environments/<Environment ID>` - * - `projects/<Project Number / ID>/locations/<Location + * - `projects/<Project ID>/agent/environments/<Environment ID>` + * - `projects/<Project ID>/locations/<Location * ID>/agent/environments/<Environment ID>` ** @@ -47,8 +47,8 @@ public interface DeleteEnvironmentRequestOrBuilder ** Required. The name of the environment to delete. * / Format: - * - `projects/<Project Number / ID>/agent/environments/<Environment ID>` - * - `projects/<Project Number / ID>/locations/<Location + * - `projects/<Project ID>/agent/environments/<Environment ID>` + * - `projects/<Project ID>/locations/<Location * ID>/agent/environments/<Environment ID>` ** diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DialogflowAssistAnswer.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DialogflowAssistAnswer.java new file mode 100644 index 000000000000..fa782c771ed2 --- /dev/null +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DialogflowAssistAnswer.java @@ -0,0 +1,1316 @@ +/* + * Copyright 2023 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/v2beta1/participant.proto + +package com.google.cloud.dialogflow.v2beta1; + +/** + * + * + *+ * Represents a Dialogflow assist answer. + *+ * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.DialogflowAssistAnswer} + */ +public final class DialogflowAssistAnswer extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.DialogflowAssistAnswer) + DialogflowAssistAnswerOrBuilder { + private static final long serialVersionUID = 0L; + // Use DialogflowAssistAnswer.newBuilder() to construct. + private DialogflowAssistAnswer(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private DialogflowAssistAnswer() { + answerRecord_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DialogflowAssistAnswer(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_DialogflowAssistAnswer_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_DialogflowAssistAnswer_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.DialogflowAssistAnswer.class, + com.google.cloud.dialogflow.v2beta1.DialogflowAssistAnswer.Builder.class); + } + + private int resultCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object result_; + + public enum ResultCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + QUERY_RESULT(1), + INTENT_SUGGESTION(5), + RESULT_NOT_SET(0); + private final int value; + + private ResultCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ResultCase valueOf(int value) { + return forNumber(value); + } + + public static ResultCase forNumber(int value) { + switch (value) { + case 1: + return QUERY_RESULT; + case 5: + return INTENT_SUGGESTION; + case 0: + return RESULT_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public ResultCase getResultCase() { + return ResultCase.forNumber(resultCase_); + } + + public static final int QUERY_RESULT_FIELD_NUMBER = 1; + /** + * + * + *+ * Result from v2 agent. + *+ * + *.google.cloud.dialogflow.v2beta1.QueryResult query_result = 1;
+ * + * @return Whether the queryResult field is set. + */ + @java.lang.Override + public boolean hasQueryResult() { + return resultCase_ == 1; + } + /** + * + * + *+ * Result from v2 agent. + *+ * + *.google.cloud.dialogflow.v2beta1.QueryResult query_result = 1;
+ * + * @return The queryResult. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.QueryResult getQueryResult() { + if (resultCase_ == 1) { + return (com.google.cloud.dialogflow.v2beta1.QueryResult) result_; + } + return com.google.cloud.dialogflow.v2beta1.QueryResult.getDefaultInstance(); + } + /** + * + * + *+ * Result from v2 agent. + *+ * + *.google.cloud.dialogflow.v2beta1.QueryResult query_result = 1;
+ */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.QueryResultOrBuilder getQueryResultOrBuilder() { + if (resultCase_ == 1) { + return (com.google.cloud.dialogflow.v2beta1.QueryResult) result_; + } + return com.google.cloud.dialogflow.v2beta1.QueryResult.getDefaultInstance(); + } + + public static final int INTENT_SUGGESTION_FIELD_NUMBER = 5; + /** + * + * + *+ * An intent suggestion generated from conversation. + *+ * + *.google.cloud.dialogflow.v2beta1.IntentSuggestion intent_suggestion = 5;
+ * + * @return Whether the intentSuggestion field is set. + */ + @java.lang.Override + public boolean hasIntentSuggestion() { + return resultCase_ == 5; + } + /** + * + * + *+ * An intent suggestion generated from conversation. + *+ * + *.google.cloud.dialogflow.v2beta1.IntentSuggestion intent_suggestion = 5;
+ * + * @return The intentSuggestion. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.IntentSuggestion getIntentSuggestion() { + if (resultCase_ == 5) { + return (com.google.cloud.dialogflow.v2beta1.IntentSuggestion) result_; + } + return com.google.cloud.dialogflow.v2beta1.IntentSuggestion.getDefaultInstance(); + } + /** + * + * + *+ * An intent suggestion generated from conversation. + *+ * + *.google.cloud.dialogflow.v2beta1.IntentSuggestion intent_suggestion = 5;
+ */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.IntentSuggestionOrBuilder + getIntentSuggestionOrBuilder() { + if (resultCase_ == 5) { + return (com.google.cloud.dialogflow.v2beta1.IntentSuggestion) result_; + } + return com.google.cloud.dialogflow.v2beta1.IntentSuggestion.getDefaultInstance(); + } + + public static final int ANSWER_RECORD_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object answerRecord_ = ""; + /** + * + * + *+ * The name of answer record, in the format of + * "projects/<Project ID>/locations/<Location ID>/answerRecords/<Answer Record + * ID>" + *+ * + *string answer_record = 2;
+ * + * @return The answerRecord. + */ + @java.lang.Override + public java.lang.String getAnswerRecord() { + java.lang.Object ref = answerRecord_; + 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(); + answerRecord_ = s; + return s; + } + } + /** + * + * + *+ * The name of answer record, in the format of + * "projects/<Project ID>/locations/<Location ID>/answerRecords/<Answer Record + * ID>" + *+ * + *string answer_record = 2;
+ * + * @return The bytes for answerRecord. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAnswerRecordBytes() { + java.lang.Object ref = answerRecord_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + answerRecord_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + 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 (resultCase_ == 1) { + output.writeMessage(1, (com.google.cloud.dialogflow.v2beta1.QueryResult) result_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(answerRecord_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, answerRecord_); + } + if (resultCase_ == 5) { + output.writeMessage(5, (com.google.cloud.dialogflow.v2beta1.IntentSuggestion) result_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (resultCase_ == 1) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, (com.google.cloud.dialogflow.v2beta1.QueryResult) result_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(answerRecord_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, answerRecord_); + } + if (resultCase_ == 5) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 5, (com.google.cloud.dialogflow.v2beta1.IntentSuggestion) result_); + } + size += getUnknownFields().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.v2beta1.DialogflowAssistAnswer)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.v2beta1.DialogflowAssistAnswer other = + (com.google.cloud.dialogflow.v2beta1.DialogflowAssistAnswer) obj; + + if (!getAnswerRecord().equals(other.getAnswerRecord())) return false; + if (!getResultCase().equals(other.getResultCase())) return false; + switch (resultCase_) { + case 1: + if (!getQueryResult().equals(other.getQueryResult())) return false; + break; + case 5: + if (!getIntentSuggestion().equals(other.getIntentSuggestion())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + ANSWER_RECORD_FIELD_NUMBER; + hash = (53 * hash) + getAnswerRecord().hashCode(); + switch (resultCase_) { + case 1: + hash = (37 * hash) + QUERY_RESULT_FIELD_NUMBER; + hash = (53 * hash) + getQueryResult().hashCode(); + break; + case 5: + hash = (37 * hash) + INTENT_SUGGESTION_FIELD_NUMBER; + hash = (53 * hash) + getIntentSuggestion().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.v2beta1.DialogflowAssistAnswer parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.DialogflowAssistAnswer 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.v2beta1.DialogflowAssistAnswer parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.DialogflowAssistAnswer 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.v2beta1.DialogflowAssistAnswer parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.DialogflowAssistAnswer parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.DialogflowAssistAnswer parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.DialogflowAssistAnswer 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.v2beta1.DialogflowAssistAnswer parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.DialogflowAssistAnswer 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.v2beta1.DialogflowAssistAnswer parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.DialogflowAssistAnswer 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.v2beta1.DialogflowAssistAnswer 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; + } + /** + * + * + *+ * Represents a Dialogflow assist answer. + *+ * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.DialogflowAssistAnswer} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder+ implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2beta1.DialogflowAssistAnswer) + com.google.cloud.dialogflow.v2beta1.DialogflowAssistAnswerOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_DialogflowAssistAnswer_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_DialogflowAssistAnswer_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.DialogflowAssistAnswer.class, + com.google.cloud.dialogflow.v2beta1.DialogflowAssistAnswer.Builder.class); + } + + // Construct using com.google.cloud.dialogflow.v2beta1.DialogflowAssistAnswer.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (queryResultBuilder_ != null) { + queryResultBuilder_.clear(); + } + if (intentSuggestionBuilder_ != null) { + intentSuggestionBuilder_.clear(); + } + answerRecord_ = ""; + resultCase_ = 0; + result_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_DialogflowAssistAnswer_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.DialogflowAssistAnswer getDefaultInstanceForType() { + return com.google.cloud.dialogflow.v2beta1.DialogflowAssistAnswer.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.DialogflowAssistAnswer build() { + com.google.cloud.dialogflow.v2beta1.DialogflowAssistAnswer result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.DialogflowAssistAnswer buildPartial() { + com.google.cloud.dialogflow.v2beta1.DialogflowAssistAnswer result = + new com.google.cloud.dialogflow.v2beta1.DialogflowAssistAnswer(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.dialogflow.v2beta1.DialogflowAssistAnswer result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.answerRecord_ = answerRecord_; + } + } + + private void buildPartialOneofs( + com.google.cloud.dialogflow.v2beta1.DialogflowAssistAnswer result) { + result.resultCase_ = resultCase_; + result.result_ = this.result_; + if (resultCase_ == 1 && queryResultBuilder_ != null) { + result.result_ = queryResultBuilder_.build(); + } + if (resultCase_ == 5 && intentSuggestionBuilder_ != null) { + result.result_ = intentSuggestionBuilder_.build(); + } + } + + @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.v2beta1.DialogflowAssistAnswer) { + return mergeFrom((com.google.cloud.dialogflow.v2beta1.DialogflowAssistAnswer) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dialogflow.v2beta1.DialogflowAssistAnswer other) { + if (other == com.google.cloud.dialogflow.v2beta1.DialogflowAssistAnswer.getDefaultInstance()) + return this; + if (!other.getAnswerRecord().isEmpty()) { + answerRecord_ = other.answerRecord_; + bitField0_ |= 0x00000004; + onChanged(); + } + switch (other.getResultCase()) { + case QUERY_RESULT: + { + mergeQueryResult(other.getQueryResult()); + break; + } + case INTENT_SUGGESTION: + { + mergeIntentSuggestion(other.getIntentSuggestion()); + break; + } + case RESULT_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getQueryResultFieldBuilder().getBuilder(), extensionRegistry); + resultCase_ = 1; + break; + } // case 10 + case 18: + { + answerRecord_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 18 + case 42: + { + input.readMessage( + getIntentSuggestionFieldBuilder().getBuilder(), extensionRegistry); + resultCase_ = 5; + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int resultCase_ = 0; + private java.lang.Object result_; + + public ResultCase getResultCase() { + return ResultCase.forNumber(resultCase_); + } + + public Builder clearResult() { + resultCase_ = 0; + result_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.QueryResult, + com.google.cloud.dialogflow.v2beta1.QueryResult.Builder, + com.google.cloud.dialogflow.v2beta1.QueryResultOrBuilder> + queryResultBuilder_; + /** + * + * + * + * Result from v2 agent. + *+ * + *.google.cloud.dialogflow.v2beta1.QueryResult query_result = 1;
+ * + * @return Whether the queryResult field is set. + */ + @java.lang.Override + public boolean hasQueryResult() { + return resultCase_ == 1; + } + /** + * + * + *+ * Result from v2 agent. + *+ * + *.google.cloud.dialogflow.v2beta1.QueryResult query_result = 1;
+ * + * @return The queryResult. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.QueryResult getQueryResult() { + if (queryResultBuilder_ == null) { + if (resultCase_ == 1) { + return (com.google.cloud.dialogflow.v2beta1.QueryResult) result_; + } + return com.google.cloud.dialogflow.v2beta1.QueryResult.getDefaultInstance(); + } else { + if (resultCase_ == 1) { + return queryResultBuilder_.getMessage(); + } + return com.google.cloud.dialogflow.v2beta1.QueryResult.getDefaultInstance(); + } + } + /** + * + * + *+ * Result from v2 agent. + *+ * + *.google.cloud.dialogflow.v2beta1.QueryResult query_result = 1;
+ */ + public Builder setQueryResult(com.google.cloud.dialogflow.v2beta1.QueryResult value) { + if (queryResultBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + result_ = value; + onChanged(); + } else { + queryResultBuilder_.setMessage(value); + } + resultCase_ = 1; + return this; + } + /** + * + * + *+ * Result from v2 agent. + *+ * + *.google.cloud.dialogflow.v2beta1.QueryResult query_result = 1;
+ */ + public Builder setQueryResult( + com.google.cloud.dialogflow.v2beta1.QueryResult.Builder builderForValue) { + if (queryResultBuilder_ == null) { + result_ = builderForValue.build(); + onChanged(); + } else { + queryResultBuilder_.setMessage(builderForValue.build()); + } + resultCase_ = 1; + return this; + } + /** + * + * + *+ * Result from v2 agent. + *+ * + *.google.cloud.dialogflow.v2beta1.QueryResult query_result = 1;
+ */ + public Builder mergeQueryResult(com.google.cloud.dialogflow.v2beta1.QueryResult value) { + if (queryResultBuilder_ == null) { + if (resultCase_ == 1 + && result_ != com.google.cloud.dialogflow.v2beta1.QueryResult.getDefaultInstance()) { + result_ = + com.google.cloud.dialogflow.v2beta1.QueryResult.newBuilder( + (com.google.cloud.dialogflow.v2beta1.QueryResult) result_) + .mergeFrom(value) + .buildPartial(); + } else { + result_ = value; + } + onChanged(); + } else { + if (resultCase_ == 1) { + queryResultBuilder_.mergeFrom(value); + } else { + queryResultBuilder_.setMessage(value); + } + } + resultCase_ = 1; + return this; + } + /** + * + * + *+ * Result from v2 agent. + *+ * + *.google.cloud.dialogflow.v2beta1.QueryResult query_result = 1;
+ */ + public Builder clearQueryResult() { + if (queryResultBuilder_ == null) { + if (resultCase_ == 1) { + resultCase_ = 0; + result_ = null; + onChanged(); + } + } else { + if (resultCase_ == 1) { + resultCase_ = 0; + result_ = null; + } + queryResultBuilder_.clear(); + } + return this; + } + /** + * + * + *+ * Result from v2 agent. + *+ * + *.google.cloud.dialogflow.v2beta1.QueryResult query_result = 1;
+ */ + public com.google.cloud.dialogflow.v2beta1.QueryResult.Builder getQueryResultBuilder() { + return getQueryResultFieldBuilder().getBuilder(); + } + /** + * + * + *+ * Result from v2 agent. + *+ * + *.google.cloud.dialogflow.v2beta1.QueryResult query_result = 1;
+ */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.QueryResultOrBuilder getQueryResultOrBuilder() { + if ((resultCase_ == 1) && (queryResultBuilder_ != null)) { + return queryResultBuilder_.getMessageOrBuilder(); + } else { + if (resultCase_ == 1) { + return (com.google.cloud.dialogflow.v2beta1.QueryResult) result_; + } + return com.google.cloud.dialogflow.v2beta1.QueryResult.getDefaultInstance(); + } + } + /** + * + * + *+ * Result from v2 agent. + *+ * + *.google.cloud.dialogflow.v2beta1.QueryResult query_result = 1;
+ */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.QueryResult, + com.google.cloud.dialogflow.v2beta1.QueryResult.Builder, + com.google.cloud.dialogflow.v2beta1.QueryResultOrBuilder> + getQueryResultFieldBuilder() { + if (queryResultBuilder_ == null) { + if (!(resultCase_ == 1)) { + result_ = com.google.cloud.dialogflow.v2beta1.QueryResult.getDefaultInstance(); + } + queryResultBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.QueryResult, + com.google.cloud.dialogflow.v2beta1.QueryResult.Builder, + com.google.cloud.dialogflow.v2beta1.QueryResultOrBuilder>( + (com.google.cloud.dialogflow.v2beta1.QueryResult) result_, + getParentForChildren(), + isClean()); + result_ = null; + } + resultCase_ = 1; + onChanged(); + return queryResultBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.IntentSuggestion, + com.google.cloud.dialogflow.v2beta1.IntentSuggestion.Builder, + com.google.cloud.dialogflow.v2beta1.IntentSuggestionOrBuilder> + intentSuggestionBuilder_; + /** + * + * + *+ * An intent suggestion generated from conversation. + *+ * + *.google.cloud.dialogflow.v2beta1.IntentSuggestion intent_suggestion = 5;
+ * + * @return Whether the intentSuggestion field is set. + */ + @java.lang.Override + public boolean hasIntentSuggestion() { + return resultCase_ == 5; + } + /** + * + * + *+ * An intent suggestion generated from conversation. + *+ * + *.google.cloud.dialogflow.v2beta1.IntentSuggestion intent_suggestion = 5;
+ * + * @return The intentSuggestion. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.IntentSuggestion getIntentSuggestion() { + if (intentSuggestionBuilder_ == null) { + if (resultCase_ == 5) { + return (com.google.cloud.dialogflow.v2beta1.IntentSuggestion) result_; + } + return com.google.cloud.dialogflow.v2beta1.IntentSuggestion.getDefaultInstance(); + } else { + if (resultCase_ == 5) { + return intentSuggestionBuilder_.getMessage(); + } + return com.google.cloud.dialogflow.v2beta1.IntentSuggestion.getDefaultInstance(); + } + } + /** + * + * + *+ * An intent suggestion generated from conversation. + *+ * + *.google.cloud.dialogflow.v2beta1.IntentSuggestion intent_suggestion = 5;
+ */ + public Builder setIntentSuggestion(com.google.cloud.dialogflow.v2beta1.IntentSuggestion value) { + if (intentSuggestionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + result_ = value; + onChanged(); + } else { + intentSuggestionBuilder_.setMessage(value); + } + resultCase_ = 5; + return this; + } + /** + * + * + *+ * An intent suggestion generated from conversation. + *+ * + *.google.cloud.dialogflow.v2beta1.IntentSuggestion intent_suggestion = 5;
+ */ + public Builder setIntentSuggestion( + com.google.cloud.dialogflow.v2beta1.IntentSuggestion.Builder builderForValue) { + if (intentSuggestionBuilder_ == null) { + result_ = builderForValue.build(); + onChanged(); + } else { + intentSuggestionBuilder_.setMessage(builderForValue.build()); + } + resultCase_ = 5; + return this; + } + /** + * + * + *+ * An intent suggestion generated from conversation. + *+ * + *.google.cloud.dialogflow.v2beta1.IntentSuggestion intent_suggestion = 5;
+ */ + public Builder mergeIntentSuggestion( + com.google.cloud.dialogflow.v2beta1.IntentSuggestion value) { + if (intentSuggestionBuilder_ == null) { + if (resultCase_ == 5 + && result_ + != com.google.cloud.dialogflow.v2beta1.IntentSuggestion.getDefaultInstance()) { + result_ = + com.google.cloud.dialogflow.v2beta1.IntentSuggestion.newBuilder( + (com.google.cloud.dialogflow.v2beta1.IntentSuggestion) result_) + .mergeFrom(value) + .buildPartial(); + } else { + result_ = value; + } + onChanged(); + } else { + if (resultCase_ == 5) { + intentSuggestionBuilder_.mergeFrom(value); + } else { + intentSuggestionBuilder_.setMessage(value); + } + } + resultCase_ = 5; + return this; + } + /** + * + * + *+ * An intent suggestion generated from conversation. + *+ * + *.google.cloud.dialogflow.v2beta1.IntentSuggestion intent_suggestion = 5;
+ */ + public Builder clearIntentSuggestion() { + if (intentSuggestionBuilder_ == null) { + if (resultCase_ == 5) { + resultCase_ = 0; + result_ = null; + onChanged(); + } + } else { + if (resultCase_ == 5) { + resultCase_ = 0; + result_ = null; + } + intentSuggestionBuilder_.clear(); + } + return this; + } + /** + * + * + *+ * An intent suggestion generated from conversation. + *+ * + *.google.cloud.dialogflow.v2beta1.IntentSuggestion intent_suggestion = 5;
+ */ + public com.google.cloud.dialogflow.v2beta1.IntentSuggestion.Builder + getIntentSuggestionBuilder() { + return getIntentSuggestionFieldBuilder().getBuilder(); + } + /** + * + * + *+ * An intent suggestion generated from conversation. + *+ * + *.google.cloud.dialogflow.v2beta1.IntentSuggestion intent_suggestion = 5;
+ */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.IntentSuggestionOrBuilder + getIntentSuggestionOrBuilder() { + if ((resultCase_ == 5) && (intentSuggestionBuilder_ != null)) { + return intentSuggestionBuilder_.getMessageOrBuilder(); + } else { + if (resultCase_ == 5) { + return (com.google.cloud.dialogflow.v2beta1.IntentSuggestion) result_; + } + return com.google.cloud.dialogflow.v2beta1.IntentSuggestion.getDefaultInstance(); + } + } + /** + * + * + *+ * An intent suggestion generated from conversation. + *+ * + *.google.cloud.dialogflow.v2beta1.IntentSuggestion intent_suggestion = 5;
+ */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.IntentSuggestion, + com.google.cloud.dialogflow.v2beta1.IntentSuggestion.Builder, + com.google.cloud.dialogflow.v2beta1.IntentSuggestionOrBuilder> + getIntentSuggestionFieldBuilder() { + if (intentSuggestionBuilder_ == null) { + if (!(resultCase_ == 5)) { + result_ = com.google.cloud.dialogflow.v2beta1.IntentSuggestion.getDefaultInstance(); + } + intentSuggestionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.IntentSuggestion, + com.google.cloud.dialogflow.v2beta1.IntentSuggestion.Builder, + com.google.cloud.dialogflow.v2beta1.IntentSuggestionOrBuilder>( + (com.google.cloud.dialogflow.v2beta1.IntentSuggestion) result_, + getParentForChildren(), + isClean()); + result_ = null; + } + resultCase_ = 5; + onChanged(); + return intentSuggestionBuilder_; + } + + private java.lang.Object answerRecord_ = ""; + /** + * + * + *+ * The name of answer record, in the format of + * "projects/<Project ID>/locations/<Location ID>/answerRecords/<Answer Record + * ID>" + *+ * + *string answer_record = 2;
+ * + * @return The answerRecord. + */ + public java.lang.String getAnswerRecord() { + java.lang.Object ref = answerRecord_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + answerRecord_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *+ * The name of answer record, in the format of + * "projects/<Project ID>/locations/<Location ID>/answerRecords/<Answer Record + * ID>" + *+ * + *string answer_record = 2;
+ * + * @return The bytes for answerRecord. + */ + public com.google.protobuf.ByteString getAnswerRecordBytes() { + java.lang.Object ref = answerRecord_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + answerRecord_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *+ * The name of answer record, in the format of + * "projects/<Project ID>/locations/<Location ID>/answerRecords/<Answer Record + * ID>" + *+ * + *string answer_record = 2;
+ * + * @param value The answerRecord to set. + * @return This builder for chaining. + */ + public Builder setAnswerRecord(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + answerRecord_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *+ * The name of answer record, in the format of + * "projects/<Project ID>/locations/<Location ID>/answerRecords/<Answer Record + * ID>" + *+ * + *string answer_record = 2;
+ * + * @return This builder for chaining. + */ + public Builder clearAnswerRecord() { + answerRecord_ = getDefaultInstance().getAnswerRecord(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *+ * The name of answer record, in the format of + * "projects/<Project ID>/locations/<Location ID>/answerRecords/<Answer Record + * ID>" + *+ * + *string answer_record = 2;
+ * + * @param value The bytes for answerRecord to set. + * @return This builder for chaining. + */ + public Builder setAnswerRecordBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + answerRecord_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + @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.v2beta1.DialogflowAssistAnswer) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.DialogflowAssistAnswer) + private static final com.google.cloud.dialogflow.v2beta1.DialogflowAssistAnswer DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2beta1.DialogflowAssistAnswer(); + } + + public static com.google.cloud.dialogflow.v2beta1.DialogflowAssistAnswer getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.ParserPARSER = + new com.google.protobuf.AbstractParser () { + @java.lang.Override + public DialogflowAssistAnswer parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + 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.v2beta1.DialogflowAssistAnswer getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DialogflowAssistAnswerOrBuilder.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DialogflowAssistAnswerOrBuilder.java new file mode 100644 index 000000000000..46fbdf08a5de --- /dev/null +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DialogflowAssistAnswerOrBuilder.java @@ -0,0 +1,126 @@ +/* + * Copyright 2023 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/v2beta1/participant.proto + +package com.google.cloud.dialogflow.v2beta1; + +public interface DialogflowAssistAnswerOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2beta1.DialogflowAssistAnswer) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + * + * Result from v2 agent. + *+ * + *.google.cloud.dialogflow.v2beta1.QueryResult query_result = 1;
+ * + * @return Whether the queryResult field is set. + */ + boolean hasQueryResult(); + /** + * + * + *+ * Result from v2 agent. + *+ * + *.google.cloud.dialogflow.v2beta1.QueryResult query_result = 1;
+ * + * @return The queryResult. + */ + com.google.cloud.dialogflow.v2beta1.QueryResult getQueryResult(); + /** + * + * + *+ * Result from v2 agent. + *+ * + *.google.cloud.dialogflow.v2beta1.QueryResult query_result = 1;
+ */ + com.google.cloud.dialogflow.v2beta1.QueryResultOrBuilder getQueryResultOrBuilder(); + + /** + * + * + *+ * An intent suggestion generated from conversation. + *+ * + *.google.cloud.dialogflow.v2beta1.IntentSuggestion intent_suggestion = 5;
+ * + * @return Whether the intentSuggestion field is set. + */ + boolean hasIntentSuggestion(); + /** + * + * + *+ * An intent suggestion generated from conversation. + *+ * + *.google.cloud.dialogflow.v2beta1.IntentSuggestion intent_suggestion = 5;
+ * + * @return The intentSuggestion. + */ + com.google.cloud.dialogflow.v2beta1.IntentSuggestion getIntentSuggestion(); + /** + * + * + *+ * An intent suggestion generated from conversation. + *+ * + *.google.cloud.dialogflow.v2beta1.IntentSuggestion intent_suggestion = 5;
+ */ + com.google.cloud.dialogflow.v2beta1.IntentSuggestionOrBuilder getIntentSuggestionOrBuilder(); + + /** + * + * + *+ * The name of answer record, in the format of + * "projects/<Project ID>/locations/<Location ID>/answerRecords/<Answer Record + * ID>" + *+ * + *string answer_record = 2;
+ * + * @return The answerRecord. + */ + java.lang.String getAnswerRecord(); + /** + * + * + *+ * The name of answer record, in the format of + * "projects/<Project ID>/locations/<Location ID>/answerRecords/<Answer Record + * ID>" + *+ * + *string answer_record = 2;
+ * + * @return The bytes for answerRecord. + */ + com.google.protobuf.ByteString getAnswerRecordBytes(); + + com.google.cloud.dialogflow.v2beta1.DialogflowAssistAnswer.ResultCase getResultCase(); +} diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DocumentProto.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DocumentProto.java index 6fa963ac0633..0a42d7e395db 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DocumentProto.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DocumentProto.java @@ -151,117 +151,117 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\"dialogflow.googleapis.com/Document\022A\n\010d" + "ocument\030\002 \001(\0132).google.cloud.dialogflow." + "v2beta1.DocumentB\004\342A\001\002\022\"\n\032import_gcs_cus" - + "tom_metadata\030\003 \001(\010\"\240\002\n\026ImportDocumentsRe" + + "tom_metadata\030\003 \001(\010\"\246\002\n\026ImportDocumentsRe" + "quest\022;\n\006parent\030\001 \001(\tB+\342A\001\002\372A$\022\"dialogfl" - + "ow.googleapis.com/Document\022A\n\ngcs_source" + + "ow.googleapis.com/Document\022G\n\ngcs_source" + "\030\002 \001(\0132+.google.cloud.dialogflow.v2beta1" - + ".GcsSourcesH\000\022X\n\021document_template\030\003 \001(\013" - + "27.google.cloud.dialogflow.v2beta1.Impor" - + "tDocumentTemplateB\004\342A\001\002\022\"\n\032import_gcs_cu" - + "stom_metadata\030\004 \001(\010B\010\n\006source\"\223\002\n\026Import" - + "DocumentTemplate\022\027\n\tmime_type\030\001 \001(\tB\004\342A\001" - + "\002\022V\n\017knowledge_types\030\002 \003(\01627.google.clou" - + "d.dialogflow.v2beta1.Document.KnowledgeT" - + "ypeB\004\342A\001\002\022W\n\010metadata\030\003 \003(\0132E.google.clo" - + "ud.dialogflow.v2beta1.ImportDocumentTemp" - + "late.MetadataEntry\032/\n\rMetadataEntry\022\013\n\003k" - + "ey\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"?\n\027ImportDoc" - + "umentsResponse\022$\n\010warnings\030\001 \003(\0132\022.googl" - + "e.rpc.Status\"R\n\025DeleteDocumentRequest\0229\n" - + "\004name\030\001 \001(\tB+\342A\001\002\372A$\n\"dialogflow.googlea" - + "pis.com/Document\"\221\001\n\025UpdateDocumentReque" - + "st\022A\n\010document\030\001 \001(\0132).google.cloud.dial" - + "ogflow.v2beta1.DocumentB\004\342A\001\002\0225\n\013update_" - + "mask\030\002 \001(\0132\032.google.protobuf.FieldMaskB\004" - + "\342A\001\001\"l\n\027ExportOperationMetadata\022Q\n\030expor" - + "ted_gcs_destination\030\001 \001(\0132/.google.cloud" - + ".dialogflow.v2beta1.GcsDestination\"\305\002\n\032K" - + "nowledgeOperationMetadata\022V\n\005state\030\001 \001(\016" - + "2A.google.cloud.dialogflow.v2beta1.Knowl" - + "edgeOperationMetadata.StateB\004\342A\001\003\022\026\n\016kno" - + "wledge_base\030\003 \001(\t\022]\n\031export_operation_me" - + "tadata\030\004 \001(\01328.google.cloud.dialogflow.v" - + "2beta1.ExportOperationMetadataH\000\"B\n\005Stat" - + "e\022\025\n\021STATE_UNSPECIFIED\020\000\022\013\n\007PENDING\020\001\022\013\n" - + "\007RUNNING\020\002\022\010\n\004DONE\020\003B\024\n\022operation_metada" - + "ta\"\302\001\n\025ReloadDocumentRequest\0229\n\004name\030\001 \001" - + "(\tB+\342A\001\002\372A$\n\"dialogflow.googleapis.com/D" - + "ocument\022@\n\ngcs_source\030\003 \001(\0132*.google.clo" - + "ud.dialogflow.v2beta1.GcsSourceH\000\022\"\n\032imp" - + "ort_gcs_custom_metadata\030\004 \001(\010B\010\n\006source2" - + "\245\025\n\tDocuments\022\322\002\n\rListDocuments\0225.google" - + ".cloud.dialogflow.v2beta1.ListDocumentsR" - + "equest\0326.google.cloud.dialogflow.v2beta1" - + ".ListDocumentsResponse\"\321\001\332A\006parent\202\323\344\223\002\301" - + "\001\0227/v2beta1/{parent=projects/*/knowledge" - + "Bases/*}/documentsZE\022C/v2beta1/{parent=p" - + "rojects/*/locations/*/knowledgeBases/*}/" - + "documentsZ?\022=/v2beta1/{parent=projects/*" - + "/agent/knowledgeBases/*}/documents\022\277\002\n\013G" - + "etDocument\0223.google.cloud.dialogflow.v2b" - + "eta1.GetDocumentRequest\032).google.cloud.d" - + "ialogflow.v2beta1.Document\"\317\001\332A\004name\202\323\344\223" - + "\002\301\001\0227/v2beta1/{name=projects/*/knowledge" - + "Bases/*/documents/*}ZE\022C/v2beta1/{name=p" - + "rojects/*/locations/*/knowledgeBases/*/d" - + "ocuments/*}Z?\022=/v2beta1/{name=projects/*" - + "/agent/knowledgeBases/*/documents/*}\022\213\003\n" - + "\016CreateDocument\0226.google.cloud.dialogflo" - + "w.v2beta1.CreateDocumentRequest\032\035.google" - + ".longrunning.Operation\"\241\002\312A&\n\010Document\022\032" - + "KnowledgeOperationMetadata\332A\017parent,docu" - + "ment\202\323\344\223\002\337\001\"7/v2beta1/{parent=projects/*" - + "/knowledgeBases/*}/documents:\010documentZO" - + "\"C/v2beta1/{parent=projects/*/locations/" - + "*/knowledgeBases/*}/documents:\010documentZ" - + "I\"=/v2beta1/{parent=projects/*/agent/kno" - + "wledgeBases/*}/documents:\010document\022\277\002\n\017I" - + "mportDocuments\0227.google.cloud.dialogflow" - + ".v2beta1.ImportDocumentsRequest\032\035.google" - + ".longrunning.Operation\"\323\001\312A5\n\027ImportDocu" - + "mentsResponse\022\032KnowledgeOperationMetadat" - + "a\202\323\344\223\002\224\001\">/v2beta1/{parent=projects/*/kn" - + "owledgeBases/*}/documents:import:\001*ZO\"J/" - + "v2beta1/{parent=projects/*/locations/*/k" - + "nowledgeBases/*}/documents:import:\001*\022\357\002\n" - + "\016DeleteDocument\0226.google.cloud.dialogflo" - + "w.v2beta1.DeleteDocumentRequest\032\035.google" - + ".longrunning.Operation\"\205\002\312A3\n\025google.pro" - + "tobuf.Empty\022\032KnowledgeOperationMetadata\332" - + "A\004name\202\323\344\223\002\301\001*7/v2beta1/{name=projects/*" - + "/knowledgeBases/*/documents/*}ZE*C/v2bet" - + "a1/{name=projects/*/locations/*/knowledg" - + "eBases/*/documents/*}Z?*=/v2beta1/{name=" - + "projects/*/agent/knowledgeBases/*/docume" - + "nts/*}\022\266\003\n\016UpdateDocument\0226.google.cloud" - + ".dialogflow.v2beta1.UpdateDocumentReques" - + "t\032\035.google.longrunning.Operation\"\314\002\312A&\n\010" - + "Document\022\032KnowledgeOperationMetadata\332A\024d" - + "ocument,update_mask\332A\010document\202\323\344\223\002\372\0012@/" - + "v2beta1/{document.name=projects/*/knowle" - + "dgeBases/*/documents/*}:\010documentZX2L/v2" - + "beta1/{document.name=projects/*/location" - + "s/*/knowledgeBases/*/documents/*}:\010docum" - + "entZR2F/v2beta1/{document.name=projects/" - + "*/agent/knowledgeBases/*/documents/*}:\010d" - + "ocument\022\213\003\n\016ReloadDocument\0226.google.clou" - + "d.dialogflow.v2beta1.ReloadDocumentReque" - + "st\032\035.google.longrunning.Operation\"\241\002\312A&\n" - + "\010Document\022\032KnowledgeOperationMetadata\332A\017" - + "name,gcs_source\202\323\344\223\002\337\001\">/v2beta1/{name=p" - + "rojects/*/knowledgeBases/*/documents/*}:" - + "reload:\001*ZO\"J/v2beta1/{name=projects/*/l" - + "ocations/*/knowledgeBases/*/documents/*}" - + ":reload:\001*ZI\"D/v2beta1/{name=projects/*/" - + "agent/knowledgeBases/*/documents/*}:relo" - + "ad:\001*\032x\312A\031dialogflow.googleapis.com\322AYht" - + "tps://www.googleapis.com/auth/cloud-plat" - + "form,https://www.googleapis.com/auth/dia" - + "logflowB\245\001\n#com.google.cloud.dialogflow." - + "v2beta1B\rDocumentProtoP\001ZCcloud.google.c" - + "om/go/dialogflow/apiv2beta1/dialogflowpb" - + ";dialogflowpb\370\001\001\242\002\002DF\252\002\037Google.Cloud.Dia" - + "logflow.V2Beta1b\006proto3" + + ".GcsSourcesB\004\342A\001\001H\000\022X\n\021document_template" + + "\030\003 \001(\01327.google.cloud.dialogflow.v2beta1" + + ".ImportDocumentTemplateB\004\342A\001\002\022\"\n\032import_" + + "gcs_custom_metadata\030\004 \001(\010B\010\n\006source\"\223\002\n\026" + + "ImportDocumentTemplate\022\027\n\tmime_type\030\001 \001(" + + "\tB\004\342A\001\002\022V\n\017knowledge_types\030\002 \003(\01627.googl" + + "e.cloud.dialogflow.v2beta1.Document.Know" + + "ledgeTypeB\004\342A\001\002\022W\n\010metadata\030\003 \003(\0132E.goog" + + "le.cloud.dialogflow.v2beta1.ImportDocume" + + "ntTemplate.MetadataEntry\032/\n\rMetadataEntr" + + "y\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"?\n\027Imp" + + "ortDocumentsResponse\022$\n\010warnings\030\001 \003(\0132\022" + + ".google.rpc.Status\"R\n\025DeleteDocumentRequ" + + "est\0229\n\004name\030\001 \001(\tB+\342A\001\002\372A$\n\"dialogflow.g" + + "oogleapis.com/Document\"\221\001\n\025UpdateDocumen" + + "tRequest\022A\n\010document\030\001 \001(\0132).google.clou" + + "d.dialogflow.v2beta1.DocumentB\004\342A\001\002\0225\n\013u" + + "pdate_mask\030\002 \001(\0132\032.google.protobuf.Field" + + "MaskB\004\342A\001\001\"l\n\027ExportOperationMetadata\022Q\n" + + "\030exported_gcs_destination\030\001 \001(\0132/.google" + + ".cloud.dialogflow.v2beta1.GcsDestination" + + "\"\305\002\n\032KnowledgeOperationMetadata\022V\n\005state" + + "\030\001 \001(\0162A.google.cloud.dialogflow.v2beta1" + + ".KnowledgeOperationMetadata.StateB\004\342A\001\003\022" + + "\026\n\016knowledge_base\030\003 \001(\t\022]\n\031export_operat" + + "ion_metadata\030\004 \001(\01328.google.cloud.dialog" + + "flow.v2beta1.ExportOperationMetadataH\000\"B" + + "\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\013\n\007PENDIN" + + "G\020\001\022\013\n\007RUNNING\020\002\022\010\n\004DONE\020\003B\024\n\022operation_" + + "metadata\"\302\001\n\025ReloadDocumentRequest\0229\n\004na" + + "me\030\001 \001(\tB+\342A\001\002\372A$\n\"dialogflow.googleapis" + + ".com/Document\022@\n\ngcs_source\030\003 \001(\0132*.goog" + + "le.cloud.dialogflow.v2beta1.GcsSourceH\000\022" + + "\"\n\032import_gcs_custom_metadata\030\004 \001(\010B\010\n\006s" + + "ource2\245\025\n\tDocuments\022\322\002\n\rListDocuments\0225." + + "google.cloud.dialogflow.v2beta1.ListDocu" + + "mentsRequest\0326.google.cloud.dialogflow.v" + + "2beta1.ListDocumentsResponse\"\321\001\332A\006parent" + + "\202\323\344\223\002\301\001\0227/v2beta1/{parent=projects/*/kno" + + "wledgeBases/*}/documentsZE\022C/v2beta1/{pa" + + "rent=projects/*/locations/*/knowledgeBas" + + "es/*}/documentsZ?\022=/v2beta1/{parent=proj" + + "ects/*/agent/knowledgeBases/*}/documents" + + "\022\277\002\n\013GetDocument\0223.google.cloud.dialogfl" + + "ow.v2beta1.GetDocumentRequest\032).google.c" + + "loud.dialogflow.v2beta1.Document\"\317\001\332A\004na" + + "me\202\323\344\223\002\301\001\0227/v2beta1/{name=projects/*/kno" + + "wledgeBases/*/documents/*}ZE\022C/v2beta1/{" + + "name=projects/*/locations/*/knowledgeBas" + + "es/*/documents/*}Z?\022=/v2beta1/{name=proj" + + "ects/*/agent/knowledgeBases/*/documents/" + + "*}\022\213\003\n\016CreateDocument\0226.google.cloud.dia" + + "logflow.v2beta1.CreateDocumentRequest\032\035." + + "google.longrunning.Operation\"\241\002\312A&\n\010Docu" + + "ment\022\032KnowledgeOperationMetadata\332A\017paren" + + "t,document\202\323\344\223\002\337\001\"7/v2beta1/{parent=proj" + + "ects/*/knowledgeBases/*}/documents:\010docu" + + "mentZO\"C/v2beta1/{parent=projects/*/loca" + + "tions/*/knowledgeBases/*}/documents:\010doc" + + "umentZI\"=/v2beta1/{parent=projects/*/age" + + "nt/knowledgeBases/*}/documents:\010document" + + "\022\277\002\n\017ImportDocuments\0227.google.cloud.dial" + + "ogflow.v2beta1.ImportDocumentsRequest\032\035." + + "google.longrunning.Operation\"\323\001\312A5\n\027Impo" + + "rtDocumentsResponse\022\032KnowledgeOperationM" + + "etadata\202\323\344\223\002\224\001\">/v2beta1/{parent=project" + + "s/*/knowledgeBases/*}/documents:import:\001" + + "*ZO\"J/v2beta1/{parent=projects/*/locatio" + + "ns/*/knowledgeBases/*}/documents:import:" + + "\001*\022\357\002\n\016DeleteDocument\0226.google.cloud.dia" + + "logflow.v2beta1.DeleteDocumentRequest\032\035." + + "google.longrunning.Operation\"\205\002\312A3\n\025goog" + + "le.protobuf.Empty\022\032KnowledgeOperationMet" + + "adata\332A\004name\202\323\344\223\002\301\001*7/v2beta1/{name=proj" + + "ects/*/knowledgeBases/*/documents/*}ZE*C" + + "/v2beta1/{name=projects/*/locations/*/kn" + + "owledgeBases/*/documents/*}Z?*=/v2beta1/" + + "{name=projects/*/agent/knowledgeBases/*/" + + "documents/*}\022\266\003\n\016UpdateDocument\0226.google" + + ".cloud.dialogflow.v2beta1.UpdateDocument" + + "Request\032\035.google.longrunning.Operation\"\314" + + "\002\312A&\n\010Document\022\032KnowledgeOperationMetada" + + "ta\332A\024document,update_mask\332A\010document\202\323\344\223" + + "\002\372\0012@/v2beta1/{document.name=projects/*/" + + "knowledgeBases/*/documents/*}:\010documentZ" + + "X2L/v2beta1/{document.name=projects/*/lo" + + "cations/*/knowledgeBases/*/documents/*}:" + + "\010documentZR2F/v2beta1/{document.name=pro" + + "jects/*/agent/knowledgeBases/*/documents" + + "/*}:\010document\022\213\003\n\016ReloadDocument\0226.googl" + + "e.cloud.dialogflow.v2beta1.ReloadDocumen" + + "tRequest\032\035.google.longrunning.Operation\"" + + "\241\002\312A&\n\010Document\022\032KnowledgeOperationMetad" + + "ata\332A\017name,gcs_source\202\323\344\223\002\337\001\">/v2beta1/{" + + "name=projects/*/knowledgeBases/*/documen" + + "ts/*}:reload:\001*ZO\"J/v2beta1/{name=projec" + + "ts/*/locations/*/knowledgeBases/*/docume" + + "nts/*}:reload:\001*ZI\"D/v2beta1/{name=proje" + + "cts/*/agent/knowledgeBases/*/documents/*" + + "}:reload:\001*\032x\312A\031dialogflow.googleapis.co" + + "m\322AYhttps://www.googleapis.com/auth/clou" + + "d-platform,https://www.googleapis.com/au" + + "th/dialogflowB\245\001\n#com.google.cloud.dialo" + + "gflow.v2beta1B\rDocumentProtoP\001ZCcloud.go" + + "ogle.com/go/dialogflow/apiv2beta1/dialog" + + "flowpb;dialogflowpb\370\001\001\242\002\002DF\252\002\037Google.Clo" + + "ud.Dialogflow.V2Beta1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/Environment.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/Environment.java index 1f161208f0a1..8b4d79e2ec0e 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/Environment.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/Environment.java @@ -275,9 +275,9 @@ private State(int value) { ** Output only. The unique identifier of this agent environment. * Supported formats: - * - `projects/<Project Number / ID>/agent/environments/<Environment ID>` - * - `projects/<Project Number / ID>/locations/<Location - * ID>/agent/environments/<Environment ID>` + * - `projects/<Project ID>/agent/environments/<Environment ID>` + * - `projects/<Project ID>/locations/<Location + * ID>/agent/environments/<Environment ID>` ** *string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
@@ -302,9 +302,9 @@ public java.lang.String getName() { ** Output only. The unique identifier of this agent environment. * Supported formats: - * - `projects/<Project Number / ID>/agent/environments/<Environment ID>` - * - `projects/<Project Number / ID>/locations/<Location - * ID>/agent/environments/<Environment ID>` + * - `projects/<Project ID>/agent/environments/<Environment ID>` + * - `projects/<Project ID>/locations/<Location + * ID>/agent/environments/<Environment ID>` ** *string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
@@ -389,7 +389,7 @@ public com.google.protobuf.ByteString getDescriptionBytes() { * Supported formats: * - `projects/<Project ID>/agent/versions/<Version ID>` * - `projects/<Project ID>/locations/<Location ID>/agent/versions/<Version - * ID>` + * ID>` *@@ -418,7 +418,7 @@ public java.lang.String getAgentVersion() { * Supported formats: * - `projects/<Project ID>/agent/versions/<Version ID>` * - `projects/<Project ID>/locations/<Location ID>/agent/versions/<Version - * ID>` + * ID>` *
@@ -1185,9 +1185,9 @@ public Builder mergeFrom( *
* Output only. The unique identifier of this agent environment. * Supported formats: - * - `projects/<Project Number / ID>/agent/environments/<Environment ID>` - * - `projects/<Project Number / ID>/locations/<Location - * ID>/agent/environments/<Environment ID>` + * - `projects/<Project ID>/agent/environments/<Environment ID>` + * - `projects/<Project ID>/locations/<Location + * ID>/agent/environments/<Environment ID>` ** *string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
@@ -1211,9 +1211,9 @@ public java.lang.String getName() { ** Output only. The unique identifier of this agent environment. * Supported formats: - * - `projects/<Project Number / ID>/agent/environments/<Environment ID>` - * - `projects/<Project Number / ID>/locations/<Location - * ID>/agent/environments/<Environment ID>` + * - `projects/<Project ID>/agent/environments/<Environment ID>` + * - `projects/<Project ID>/locations/<Location + * ID>/agent/environments/<Environment ID>` ** *string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
@@ -1237,9 +1237,9 @@ public com.google.protobuf.ByteString getNameBytes() { ** Output only. The unique identifier of this agent environment. * Supported formats: - * - `projects/<Project Number / ID>/agent/environments/<Environment ID>` - * - `projects/<Project Number / ID>/locations/<Location - * ID>/agent/environments/<Environment ID>` + * - `projects/<Project ID>/agent/environments/<Environment ID>` + * - `projects/<Project ID>/locations/<Location + * ID>/agent/environments/<Environment ID>` ** *string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
@@ -1262,9 +1262,9 @@ public Builder setName(java.lang.String value) { ** Output only. The unique identifier of this agent environment. * Supported formats: - * - `projects/<Project Number / ID>/agent/environments/<Environment ID>` - * - `projects/<Project Number / ID>/locations/<Location - * ID>/agent/environments/<Environment ID>` + * - `projects/<Project ID>/agent/environments/<Environment ID>` + * - `projects/<Project ID>/locations/<Location + * ID>/agent/environments/<Environment ID>` ** *string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
@@ -1283,9 +1283,9 @@ public Builder clearName() { ** Output only. The unique identifier of this agent environment. * Supported formats: - * - `projects/<Project Number / ID>/agent/environments/<Environment ID>` - * - `projects/<Project Number / ID>/locations/<Location - * ID>/agent/environments/<Environment ID>` + * - `projects/<Project ID>/agent/environments/<Environment ID>` + * - `projects/<Project ID>/locations/<Location + * ID>/agent/environments/<Environment ID>` ** *string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
@@ -1424,7 +1424,7 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { * Supported formats: * - `projects/<Project ID>/agent/versions/<Version ID>` * - `projects/<Project ID>/locations/<Location ID>/agent/versions/<Version - * ID>` + * ID>` *@@ -1452,7 +1452,7 @@ public java.lang.String getAgentVersion() { * Supported formats: * - `projects/<Project ID>/agent/versions/<Version ID>` * - `projects/<Project ID>/locations/<Location ID>/agent/versions/<Version - * ID>` + * ID>` *
@@ -1480,7 +1480,7 @@ public com.google.protobuf.ByteString getAgentVersionBytes() { * Supported formats: * - `projects/<Project ID>/agent/versions/<Version ID>` * - `projects/<Project ID>/locations/<Location ID>/agent/versions/<Version - * ID>` + * ID>` *
@@ -1507,7 +1507,7 @@ public Builder setAgentVersion(java.lang.String value) { * Supported formats: * - `projects/<Project ID>/agent/versions/<Version ID>` * - `projects/<Project ID>/locations/<Location ID>/agent/versions/<Version - * ID>` + * ID>` *
@@ -1530,7 +1530,7 @@ public Builder clearAgentVersion() { * Supported formats: * - `projects/<Project ID>/agent/versions/<Version ID>` * - `projects/<Project ID>/locations/<Location ID>/agent/versions/<Version - * ID>` + * ID>` *
diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/EnvironmentHistory.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/EnvironmentHistory.java index 1b4fabae9f17..9cca5dc98de0 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/EnvironmentHistory.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/EnvironmentHistory.java @@ -1226,8 +1226,8 @@ public com.google.protobuf.Parser
getParserForType() { * * Output only. The name of the environment this history is for. * Supported formats: - * - `projects/<Project Number / ID>/agent/environments/<Environment ID>` - * - `projects/<Project Number / ID>/locations/<Location + * - `projects/<Project ID>/agent/environments/<Environment ID>` + * - `projects/<Project ID>/locations/<Location * ID>/agent/environments/<Environment ID>` ** @@ -1253,8 +1253,8 @@ public java.lang.String getParent() { ** Output only. The name of the environment this history is for. * Supported formats: - * - `projects/<Project Number / ID>/agent/environments/<Environment ID>` - * - `projects/<Project Number / ID>/locations/<Location + * - `projects/<Project ID>/agent/environments/<Environment ID>` + * - `projects/<Project ID>/locations/<Location * ID>/agent/environments/<Environment ID>` ** @@ -1865,8 +1865,8 @@ public Builder mergeFrom( ** Output only. The name of the environment this history is for. * Supported formats: - * - `projects/<Project Number / ID>/agent/environments/<Environment ID>` - * - `projects/<Project Number / ID>/locations/<Location + * - `projects/<Project ID>/agent/environments/<Environment ID>` + * - `projects/<Project ID>/locations/<Location * ID>/agent/environments/<Environment ID>` ** @@ -1891,8 +1891,8 @@ public java.lang.String getParent() { ** Output only. The name of the environment this history is for. * Supported formats: - * - `projects/<Project Number / ID>/agent/environments/<Environment ID>` - * - `projects/<Project Number / ID>/locations/<Location + * - `projects/<Project ID>/agent/environments/<Environment ID>` + * - `projects/<Project ID>/locations/<Location * ID>/agent/environments/<Environment ID>` ** @@ -1917,8 +1917,8 @@ public com.google.protobuf.ByteString getParentBytes() { ** Output only. The name of the environment this history is for. * Supported formats: - * - `projects/<Project Number / ID>/agent/environments/<Environment ID>` - * - `projects/<Project Number / ID>/locations/<Location + * - `projects/<Project ID>/agent/environments/<Environment ID>` + * - `projects/<Project ID>/locations/<Location * ID>/agent/environments/<Environment ID>` ** @@ -1942,8 +1942,8 @@ public Builder setParent(java.lang.String value) { ** Output only. The name of the environment this history is for. * Supported formats: - * - `projects/<Project Number / ID>/agent/environments/<Environment ID>` - * - `projects/<Project Number / ID>/locations/<Location + * - `projects/<Project ID>/agent/environments/<Environment ID>` + * - `projects/<Project ID>/locations/<Location * ID>/agent/environments/<Environment ID>` ** @@ -1963,8 +1963,8 @@ public Builder clearParent() { ** Output only. The name of the environment this history is for. * Supported formats: - * - `projects/<Project Number / ID>/agent/environments/<Environment ID>` - * - `projects/<Project Number / ID>/locations/<Location + * - `projects/<Project ID>/agent/environments/<Environment ID>` + * - `projects/<Project ID>/locations/<Location * ID>/agent/environments/<Environment ID>` ** diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/EnvironmentHistoryOrBuilder.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/EnvironmentHistoryOrBuilder.java index 1e7b35e68d1d..e50c13a2145f 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/EnvironmentHistoryOrBuilder.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/EnvironmentHistoryOrBuilder.java @@ -29,8 +29,8 @@ public interface EnvironmentHistoryOrBuilder ** Output only. The name of the environment this history is for. * Supported formats: - * - `projects/<Project Number / ID>/agent/environments/<Environment ID>` - * - `projects/<Project Number / ID>/locations/<Location + * - `projects/<Project ID>/agent/environments/<Environment ID>` + * - `projects/<Project ID>/locations/<Location * ID>/agent/environments/<Environment ID>` ** @@ -45,8 +45,8 @@ public interface EnvironmentHistoryOrBuilder ** Output only. The name of the environment this history is for. * Supported formats: - * - `projects/<Project Number / ID>/agent/environments/<Environment ID>` - * - `projects/<Project Number / ID>/locations/<Location + * - `projects/<Project ID>/agent/environments/<Environment ID>` + * - `projects/<Project ID>/locations/<Location * ID>/agent/environments/<Environment ID>` ** diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/EnvironmentOrBuilder.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/EnvironmentOrBuilder.java index c238ad878eeb..fa646187bcc5 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/EnvironmentOrBuilder.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/EnvironmentOrBuilder.java @@ -29,9 +29,9 @@ public interface EnvironmentOrBuilder ** Output only. The unique identifier of this agent environment. * Supported formats: - * - `projects/<Project Number / ID>/agent/environments/<Environment ID>` - * - `projects/<Project Number / ID>/locations/<Location - * ID>/agent/environments/<Environment ID>` + * - `projects/<Project ID>/agent/environments/<Environment ID>` + * - `projects/<Project ID>/locations/<Location + * ID>/agent/environments/<Environment ID>` ** *string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
@@ -45,9 +45,9 @@ public interface EnvironmentOrBuilder ** Output only. The unique identifier of this agent environment. * Supported formats: - * - `projects/<Project Number / ID>/agent/environments/<Environment ID>` - * - `projects/<Project Number / ID>/locations/<Location - * ID>/agent/environments/<Environment ID>` + * - `projects/<Project ID>/agent/environments/<Environment ID>` + * - `projects/<Project ID>/locations/<Location + * ID>/agent/environments/<Environment ID>` ** *string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
@@ -91,7 +91,7 @@ public interface EnvironmentOrBuilder * Supported formats: * - `projects/<Project ID>/agent/versions/<Version ID>` * - `projects/<Project ID>/locations/<Location ID>/agent/versions/<Version - * ID>` + * ID>` *@@ -109,7 +109,7 @@ public interface EnvironmentOrBuilder * Supported formats: * - `projects/<Project ID>/agent/versions/<Version ID>` * - `projects/<Project ID>/locations/<Location ID>/agent/versions/<Version - * ID>` + * ID>` *
diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GetEnvironmentHistoryRequest.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GetEnvironmentHistoryRequest.java index 7b783b6d7f79..127ada8b45df 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GetEnvironmentHistoryRequest.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GetEnvironmentHistoryRequest.java @@ -74,8 +74,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { *
* Required. The name of the environment to retrieve history for. * Supported formats: - * - `projects/<Project Number / ID>/agent/environments/<Environment ID>` - * - `projects/<Project Number / ID>/locations/<Location + * - `projects/<Project ID>/agent/environments/<Environment ID>` + * - `projects/<Project ID>/locations/<Location * ID>/agent/environments/<Environment ID>` ** @@ -103,8 +103,8 @@ public java.lang.String getParent() { ** Required. The name of the environment to retrieve history for. * Supported formats: - * - `projects/<Project Number / ID>/agent/environments/<Environment ID>` - * - `projects/<Project Number / ID>/locations/<Location + * - `projects/<Project ID>/agent/environments/<Environment ID>` + * - `projects/<Project ID>/locations/<Location * ID>/agent/environments/<Environment ID>` ** @@ -598,8 +598,8 @@ public Builder mergeFrom( ** Required. The name of the environment to retrieve history for. * Supported formats: - * - `projects/<Project Number / ID>/agent/environments/<Environment ID>` - * - `projects/<Project Number / ID>/locations/<Location + * - `projects/<Project ID>/agent/environments/<Environment ID>` + * - `projects/<Project ID>/locations/<Location * ID>/agent/environments/<Environment ID>` ** @@ -626,8 +626,8 @@ public java.lang.String getParent() { ** Required. The name of the environment to retrieve history for. * Supported formats: - * - `projects/<Project Number / ID>/agent/environments/<Environment ID>` - * - `projects/<Project Number / ID>/locations/<Location + * - `projects/<Project ID>/agent/environments/<Environment ID>` + * - `projects/<Project ID>/locations/<Location * ID>/agent/environments/<Environment ID>` ** @@ -654,8 +654,8 @@ public com.google.protobuf.ByteString getParentBytes() { ** Required. The name of the environment to retrieve history for. * Supported formats: - * - `projects/<Project Number / ID>/agent/environments/<Environment ID>` - * - `projects/<Project Number / ID>/locations/<Location + * - `projects/<Project ID>/agent/environments/<Environment ID>` + * - `projects/<Project ID>/locations/<Location * ID>/agent/environments/<Environment ID>` ** @@ -681,8 +681,8 @@ public Builder setParent(java.lang.String value) { ** Required. The name of the environment to retrieve history for. * Supported formats: - * - `projects/<Project Number / ID>/agent/environments/<Environment ID>` - * - `projects/<Project Number / ID>/locations/<Location + * - `projects/<Project ID>/agent/environments/<Environment ID>` + * - `projects/<Project ID>/locations/<Location * ID>/agent/environments/<Environment ID>` ** @@ -704,8 +704,8 @@ public Builder clearParent() { ** Required. The name of the environment to retrieve history for. * Supported formats: - * - `projects/<Project Number / ID>/agent/environments/<Environment ID>` - * - `projects/<Project Number / ID>/locations/<Location + * - `projects/<Project ID>/agent/environments/<Environment ID>` + * - `projects/<Project ID>/locations/<Location * ID>/agent/environments/<Environment ID>` ** diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GetEnvironmentHistoryRequestOrBuilder.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GetEnvironmentHistoryRequestOrBuilder.java index ee79392bd43e..fa3ba4f504ee 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GetEnvironmentHistoryRequestOrBuilder.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GetEnvironmentHistoryRequestOrBuilder.java @@ -29,8 +29,8 @@ public interface GetEnvironmentHistoryRequestOrBuilder ** Required. The name of the environment to retrieve history for. * Supported formats: - * - `projects/<Project Number / ID>/agent/environments/<Environment ID>` - * - `projects/<Project Number / ID>/locations/<Location + * - `projects/<Project ID>/agent/environments/<Environment ID>` + * - `projects/<Project ID>/locations/<Location * ID>/agent/environments/<Environment ID>` ** @@ -47,8 +47,8 @@ public interface GetEnvironmentHistoryRequestOrBuilder ** Required. The name of the environment to retrieve history for. * Supported formats: - * - `projects/<Project Number / ID>/agent/environments/<Environment ID>` - * - `projects/<Project Number / ID>/locations/<Location + * - `projects/<Project ID>/agent/environments/<Environment ID>` + * - `projects/<Project ID>/locations/<Location * ID>/agent/environments/<Environment ID>` ** diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GetEnvironmentRequest.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GetEnvironmentRequest.java index 566916d3aed8..60b1480d7a8c 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GetEnvironmentRequest.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GetEnvironmentRequest.java @@ -73,8 +73,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { ** Required. The name of the environment. * Supported formats: - * - `projects/<Project Number / ID>/agent/environments/<Environment ID>` - * - `projects/<Project Number / ID>/locations/<Location + * - `projects/<Project ID>/agent/environments/<Environment ID>` + * - `projects/<Project ID>/locations/<Location * ID>/agent/environments/<Environment ID>` ** @@ -102,8 +102,8 @@ public java.lang.String getName() { ** Required. The name of the environment. * Supported formats: - * - `projects/<Project Number / ID>/agent/environments/<Environment ID>` - * - `projects/<Project Number / ID>/locations/<Location + * - `projects/<Project ID>/agent/environments/<Environment ID>` + * - `projects/<Project ID>/locations/<Location * ID>/agent/environments/<Environment ID>` ** @@ -477,8 +477,8 @@ public Builder mergeFrom( ** Required. The name of the environment. * Supported formats: - * - `projects/<Project Number / ID>/agent/environments/<Environment ID>` - * - `projects/<Project Number / ID>/locations/<Location + * - `projects/<Project ID>/agent/environments/<Environment ID>` + * - `projects/<Project ID>/locations/<Location * ID>/agent/environments/<Environment ID>` ** @@ -505,8 +505,8 @@ public java.lang.String getName() { ** Required. The name of the environment. * Supported formats: - * - `projects/<Project Number / ID>/agent/environments/<Environment ID>` - * - `projects/<Project Number / ID>/locations/<Location + * - `projects/<Project ID>/agent/environments/<Environment ID>` + * - `projects/<Project ID>/locations/<Location * ID>/agent/environments/<Environment ID>` ** @@ -533,8 +533,8 @@ public com.google.protobuf.ByteString getNameBytes() { ** Required. The name of the environment. * Supported formats: - * - `projects/<Project Number / ID>/agent/environments/<Environment ID>` - * - `projects/<Project Number / ID>/locations/<Location + * - `projects/<Project ID>/agent/environments/<Environment ID>` + * - `projects/<Project ID>/locations/<Location * ID>/agent/environments/<Environment ID>` ** @@ -560,8 +560,8 @@ public Builder setName(java.lang.String value) { ** Required. The name of the environment. * Supported formats: - * - `projects/<Project Number / ID>/agent/environments/<Environment ID>` - * - `projects/<Project Number / ID>/locations/<Location + * - `projects/<Project ID>/agent/environments/<Environment ID>` + * - `projects/<Project ID>/locations/<Location * ID>/agent/environments/<Environment ID>` ** @@ -583,8 +583,8 @@ public Builder clearName() { ** Required. The name of the environment. * Supported formats: - * - `projects/<Project Number / ID>/agent/environments/<Environment ID>` - * - `projects/<Project Number / ID>/locations/<Location + * - `projects/<Project ID>/agent/environments/<Environment ID>` + * - `projects/<Project ID>/locations/<Location * ID>/agent/environments/<Environment ID>` ** diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GetEnvironmentRequestOrBuilder.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GetEnvironmentRequestOrBuilder.java index 9c723774ec30..d77eff25c432 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GetEnvironmentRequestOrBuilder.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GetEnvironmentRequestOrBuilder.java @@ -29,8 +29,8 @@ public interface GetEnvironmentRequestOrBuilder ** Required. The name of the environment. * Supported formats: - * - `projects/<Project Number / ID>/agent/environments/<Environment ID>` - * - `projects/<Project Number / ID>/locations/<Location + * - `projects/<Project ID>/agent/environments/<Environment ID>` + * - `projects/<Project ID>/locations/<Location * ID>/agent/environments/<Environment ID>` ** @@ -47,8 +47,8 @@ public interface GetEnvironmentRequestOrBuilder ** Required. The name of the environment. * Supported formats: - * - `projects/<Project Number / ID>/agent/environments/<Environment ID>` - * - `projects/<Project Number / ID>/locations/<Location + * - `projects/<Project ID>/agent/environments/<Environment ID>` + * - `projects/<Project ID>/locations/<Location * ID>/agent/environments/<Environment ID>` ** diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/HumanAgentAssistantConfig.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/HumanAgentAssistantConfig.java index fc4ac6892607..ab9287af96f5 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/HumanAgentAssistantConfig.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/HumanAgentAssistantConfig.java @@ -4712,7 +4712,8 @@ public interface SuggestionQueryConfigOrBuilder * If this field is not set, it is default to 0.0, which means that all * suggestions are returned. * - * Supported features: ARTICLE_SUGGESTION, FAQ, SMART_REPLY, SMART_COMPOSE. + * Supported features: ARTICLE_SUGGESTION, FAQ, SMART_REPLY, SMART_COMPOSE, + * KNOWLEDGE_SEARCH, KNOWLEDGE_ASSIST, ENTITY_EXTRACTION. *float confidence_threshold = 5;
@@ -6673,7 +6674,7 @@ public interface DialogflowQuerySourceOrBuilder * ** Required. The name of a dialogflow virtual agent used for end user side - * intent detection and suggestion. Format: `projects/<Project Number / + * intent detection and suggestion. Format: `projects/<Project * ID>/locations/<Location ID>/agent`. When multiple agents are allowed in * the same Dialogflow project. *@@ -6690,7 +6691,7 @@ public interface DialogflowQuerySourceOrBuilder * ** Required. The name of a dialogflow virtual agent used for end user side - * intent detection and suggestion. Format: `projects/<Project Number / + * intent detection and suggestion. Format: `projects/<Project * ID>/locations/<Location ID>/agent`. When multiple agents are allowed in * the same Dialogflow project. *@@ -6702,6 +6703,51 @@ public interface DialogflowQuerySourceOrBuilder * @return The bytes for agent. */ com.google.protobuf.ByteString getAgentBytes(); + + /** + * + * + *+ * The Dialogflow assist configuration for human agent. + *+ * + *+ * .google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.SuggestionQueryConfig.DialogflowQuerySource.HumanAgentSideConfig human_agent_side_config = 3; + *
+ * + * @return Whether the humanAgentSideConfig field is set. + */ + boolean hasHumanAgentSideConfig(); + /** + * + * + *+ * The Dialogflow assist configuration for human agent. + *+ * + *+ * .google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.SuggestionQueryConfig.DialogflowQuerySource.HumanAgentSideConfig human_agent_side_config = 3; + *
+ * + * @return The humanAgentSideConfig. + */ + com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.SuggestionQueryConfig + .DialogflowQuerySource.HumanAgentSideConfig + getHumanAgentSideConfig(); + /** + * + * + *+ * The Dialogflow assist configuration for human agent. + *+ * + *+ * .google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.SuggestionQueryConfig.DialogflowQuerySource.HumanAgentSideConfig human_agent_side_config = 3; + *
+ */ + com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.SuggestionQueryConfig + .DialogflowQuerySource.HumanAgentSideConfigOrBuilder + getHumanAgentSideConfigOrBuilder(); } /** * @@ -6725,31 +6771,788 @@ private DialogflowQuerySource(com.google.protobuf.GeneratedMessageV3.Builder> super(builder); } - private DialogflowQuerySource() { - agent_ = ""; - } + private DialogflowQuerySource() { + agent_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DialogflowQuerySource(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.ConversationProfileProto + .internal_static_google_cloud_dialogflow_v2beta1_HumanAgentAssistantConfig_SuggestionQueryConfig_DialogflowQuerySource_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.ConversationProfileProto + .internal_static_google_cloud_dialogflow_v2beta1_HumanAgentAssistantConfig_SuggestionQueryConfig_DialogflowQuerySource_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.SuggestionQueryConfig + .DialogflowQuerySource.class, + com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.SuggestionQueryConfig + .DialogflowQuerySource.Builder.class); + } + + public interface HumanAgentSideConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.SuggestionQueryConfig.DialogflowQuerySource.HumanAgentSideConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *+ * Optional. The name of a dialogflow virtual agent used for intent + * detection and suggestion triggered by human agent. + * Format: `projects/<Project ID>/locations/<Location ID>/agent`. + *+ * + *+ * string agent = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + *
+ * + * @return The agent. + */ + java.lang.String getAgent(); + /** + * + * + *+ * Optional. The name of a dialogflow virtual agent used for intent + * detection and suggestion triggered by human agent. + * Format: `projects/<Project ID>/locations/<Location ID>/agent`. + *+ * + *+ * string agent = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + *
+ * + * @return The bytes for agent. + */ + com.google.protobuf.ByteString getAgentBytes(); + } + /** + * + * + *+ * The configuration used for human agent side Dialogflow assist + * suggestion. + *+ * + * Protobuf type {@code + * google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.SuggestionQueryConfig.DialogflowQuerySource.HumanAgentSideConfig} + */ + public static final class HumanAgentSideConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.SuggestionQueryConfig.DialogflowQuerySource.HumanAgentSideConfig) + HumanAgentSideConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use HumanAgentSideConfig.newBuilder() to construct. + private HumanAgentSideConfig(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private HumanAgentSideConfig() { + agent_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new HumanAgentSideConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.ConversationProfileProto + .internal_static_google_cloud_dialogflow_v2beta1_HumanAgentAssistantConfig_SuggestionQueryConfig_DialogflowQuerySource_HumanAgentSideConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.ConversationProfileProto + .internal_static_google_cloud_dialogflow_v2beta1_HumanAgentAssistantConfig_SuggestionQueryConfig_DialogflowQuerySource_HumanAgentSideConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig + .SuggestionQueryConfig.DialogflowQuerySource.HumanAgentSideConfig.class, + com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig + .SuggestionQueryConfig.DialogflowQuerySource.HumanAgentSideConfig.Builder + .class); + } + + public static final int AGENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object agent_ = ""; + /** + * + * + *+ * Optional. The name of a dialogflow virtual agent used for intent + * detection and suggestion triggered by human agent. + * Format: `projects/<Project ID>/locations/<Location ID>/agent`. + *+ * + *+ * string agent = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + *
+ * + * @return The agent. + */ + @java.lang.Override + public java.lang.String getAgent() { + java.lang.Object ref = agent_; + 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(); + agent_ = s; + return s; + } + } + /** + * + * + *+ * Optional. The name of a dialogflow virtual agent used for intent + * detection and suggestion triggered by human agent. + * Format: `projects/<Project ID>/locations/<Location ID>/agent`. + *+ * + *+ * string agent = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + *
+ * + * @return The bytes for agent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAgentBytes() { + java.lang.Object ref = agent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + agent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(agent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, agent_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(agent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, agent_); + } + size += getUnknownFields().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.v2beta1.HumanAgentAssistantConfig.SuggestionQueryConfig + .DialogflowQuerySource.HumanAgentSideConfig)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.SuggestionQueryConfig + .DialogflowQuerySource.HumanAgentSideConfig + other = + (com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig + .SuggestionQueryConfig.DialogflowQuerySource.HumanAgentSideConfig) + obj; + + if (!getAgent().equals(other.getAgent())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + AGENT_FIELD_NUMBER; + hash = (53 * hash) + getAgent().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig + .SuggestionQueryConfig.DialogflowQuerySource.HumanAgentSideConfig + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig + .SuggestionQueryConfig.DialogflowQuerySource.HumanAgentSideConfig + 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.v2beta1.HumanAgentAssistantConfig + .SuggestionQueryConfig.DialogflowQuerySource.HumanAgentSideConfig + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig + .SuggestionQueryConfig.DialogflowQuerySource.HumanAgentSideConfig + 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.v2beta1.HumanAgentAssistantConfig + .SuggestionQueryConfig.DialogflowQuerySource.HumanAgentSideConfig + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig + .SuggestionQueryConfig.DialogflowQuerySource.HumanAgentSideConfig + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig + .SuggestionQueryConfig.DialogflowQuerySource.HumanAgentSideConfig + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig + .SuggestionQueryConfig.DialogflowQuerySource.HumanAgentSideConfig + 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.v2beta1.HumanAgentAssistantConfig + .SuggestionQueryConfig.DialogflowQuerySource.HumanAgentSideConfig + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig + .SuggestionQueryConfig.DialogflowQuerySource.HumanAgentSideConfig + 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.v2beta1.HumanAgentAssistantConfig + .SuggestionQueryConfig.DialogflowQuerySource.HumanAgentSideConfig + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig + .SuggestionQueryConfig.DialogflowQuerySource.HumanAgentSideConfig + 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.v2beta1.HumanAgentAssistantConfig.SuggestionQueryConfig + .DialogflowQuerySource.HumanAgentSideConfig + 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; + } + /** + * + * + *+ * The configuration used for human agent side Dialogflow assist + * suggestion. + *+ * + * Protobuf type {@code + * google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.SuggestionQueryConfig.DialogflowQuerySource.HumanAgentSideConfig} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder+ implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.SuggestionQueryConfig.DialogflowQuerySource.HumanAgentSideConfig) + com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.SuggestionQueryConfig + .DialogflowQuerySource.HumanAgentSideConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.ConversationProfileProto + .internal_static_google_cloud_dialogflow_v2beta1_HumanAgentAssistantConfig_SuggestionQueryConfig_DialogflowQuerySource_HumanAgentSideConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.ConversationProfileProto + .internal_static_google_cloud_dialogflow_v2beta1_HumanAgentAssistantConfig_SuggestionQueryConfig_DialogflowQuerySource_HumanAgentSideConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig + .SuggestionQueryConfig.DialogflowQuerySource.HumanAgentSideConfig.class, + com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig + .SuggestionQueryConfig.DialogflowQuerySource.HumanAgentSideConfig.Builder + .class); + } + + // Construct using + // com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.SuggestionQueryConfig.DialogflowQuerySource.HumanAgentSideConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + agent_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.v2beta1.ConversationProfileProto + .internal_static_google_cloud_dialogflow_v2beta1_HumanAgentAssistantConfig_SuggestionQueryConfig_DialogflowQuerySource_HumanAgentSideConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.SuggestionQueryConfig + .DialogflowQuerySource.HumanAgentSideConfig + getDefaultInstanceForType() { + return com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig + .SuggestionQueryConfig.DialogflowQuerySource.HumanAgentSideConfig + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.SuggestionQueryConfig + .DialogflowQuerySource.HumanAgentSideConfig + build() { + com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.SuggestionQueryConfig + .DialogflowQuerySource.HumanAgentSideConfig + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.SuggestionQueryConfig + .DialogflowQuerySource.HumanAgentSideConfig + buildPartial() { + com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.SuggestionQueryConfig + .DialogflowQuerySource.HumanAgentSideConfig + result = + new com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig + .SuggestionQueryConfig.DialogflowQuerySource.HumanAgentSideConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.SuggestionQueryConfig + .DialogflowQuerySource.HumanAgentSideConfig + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.agent_ = agent_; + } + } + + @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.v2beta1.HumanAgentAssistantConfig.SuggestionQueryConfig + .DialogflowQuerySource.HumanAgentSideConfig) { + return mergeFrom( + (com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig + .SuggestionQueryConfig.DialogflowQuerySource.HumanAgentSideConfig) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.SuggestionQueryConfig + .DialogflowQuerySource.HumanAgentSideConfig + other) { + if (other + == com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig + .SuggestionQueryConfig.DialogflowQuerySource.HumanAgentSideConfig + .getDefaultInstance()) return this; + if (!other.getAgent().isEmpty()) { + agent_ = other.agent_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + agent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new DialogflowQuerySource(); - } + private int bitField0_; + + private java.lang.Object agent_ = ""; + /** + * + * + * + * Optional. The name of a dialogflow virtual agent used for intent + * detection and suggestion triggered by human agent. + * Format: `projects/<Project ID>/locations/<Location ID>/agent`. + *+ * + *+ * string agent = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + *
+ * + * @return The agent. + */ + public java.lang.String getAgent() { + java.lang.Object ref = agent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + agent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *+ * Optional. The name of a dialogflow virtual agent used for intent + * detection and suggestion triggered by human agent. + * Format: `projects/<Project ID>/locations/<Location ID>/agent`. + *+ * + *+ * string agent = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + *
+ * + * @return The bytes for agent. + */ + public com.google.protobuf.ByteString getAgentBytes() { + java.lang.Object ref = agent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + agent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *+ * Optional. The name of a dialogflow virtual agent used for intent + * detection and suggestion triggered by human agent. + * Format: `projects/<Project ID>/locations/<Location ID>/agent`. + *+ * + *+ * string agent = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + *
+ * + * @param value The agent to set. + * @return This builder for chaining. + */ + public Builder setAgent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + agent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *+ * Optional. The name of a dialogflow virtual agent used for intent + * detection and suggestion triggered by human agent. + * Format: `projects/<Project ID>/locations/<Location ID>/agent`. + *+ * + *+ * string agent = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + *
+ * + * @return This builder for chaining. + */ + public Builder clearAgent() { + agent_ = getDefaultInstance().getAgent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *+ * Optional. The name of a dialogflow virtual agent used for intent + * detection and suggestion triggered by human agent. + * Format: `projects/<Project ID>/locations/<Location ID>/agent`. + *+ * + *+ * string agent = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + *
+ * + * @param value The bytes for agent to set. + * @return This builder for chaining. + */ + public Builder setAgentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + agent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dialogflow.v2beta1.ConversationProfileProto - .internal_static_google_cloud_dialogflow_v2beta1_HumanAgentAssistantConfig_SuggestionQueryConfig_DialogflowQuerySource_descriptor; - } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dialogflow.v2beta1.ConversationProfileProto - .internal_static_google_cloud_dialogflow_v2beta1_HumanAgentAssistantConfig_SuggestionQueryConfig_DialogflowQuerySource_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.SuggestionQueryConfig - .DialogflowQuerySource.class, - com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.SuggestionQueryConfig - .DialogflowQuerySource.Builder.class); + @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.v2beta1.HumanAgentAssistantConfig.SuggestionQueryConfig.DialogflowQuerySource.HumanAgentSideConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.SuggestionQueryConfig.DialogflowQuerySource.HumanAgentSideConfig) + private static final com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig + .SuggestionQueryConfig.DialogflowQuerySource.HumanAgentSideConfig + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig + .SuggestionQueryConfig.DialogflowQuerySource.HumanAgentSideConfig(); + } + + public static com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig + .SuggestionQueryConfig.DialogflowQuerySource.HumanAgentSideConfig + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.ParserPARSER = + new com.google.protobuf.AbstractParser () { + @java.lang.Override + public HumanAgentSideConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + 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.v2beta1.HumanAgentAssistantConfig.SuggestionQueryConfig + .DialogflowQuerySource.HumanAgentSideConfig + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } } public static final int AGENT_FIELD_NUMBER = 1; @@ -6761,7 +7564,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * Required. The name of a dialogflow virtual agent used for end user side - * intent detection and suggestion. Format: `projects/<Project Number / + * intent detection and suggestion. Format: `projects/<Project * ID>/locations/<Location ID>/agent`. When multiple agents are allowed in * the same Dialogflow project. *@@ -6789,7 +7592,7 @@ public java.lang.String getAgent() { * ** Required. The name of a dialogflow virtual agent used for end user side - * intent detection and suggestion. Format: `projects/<Project Number / + * intent detection and suggestion. Format: `projects/<Project * ID>/locations/<Location ID>/agent`. When multiple agents are allowed in * the same Dialogflow project. *@@ -6813,6 +7616,70 @@ public com.google.protobuf.ByteString getAgentBytes() { } } + public static final int HUMAN_AGENT_SIDE_CONFIG_FIELD_NUMBER = 3; + private com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.SuggestionQueryConfig + .DialogflowQuerySource.HumanAgentSideConfig + humanAgentSideConfig_; + /** + * + * + *+ * The Dialogflow assist configuration for human agent. + *+ * + *+ * .google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.SuggestionQueryConfig.DialogflowQuerySource.HumanAgentSideConfig human_agent_side_config = 3; + *
+ * + * @return Whether the humanAgentSideConfig field is set. + */ + @java.lang.Override + public boolean hasHumanAgentSideConfig() { + return humanAgentSideConfig_ != null; + } + /** + * + * + *+ * The Dialogflow assist configuration for human agent. + *+ * + *+ * .google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.SuggestionQueryConfig.DialogflowQuerySource.HumanAgentSideConfig human_agent_side_config = 3; + *
+ * + * @return The humanAgentSideConfig. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.SuggestionQueryConfig + .DialogflowQuerySource.HumanAgentSideConfig + getHumanAgentSideConfig() { + return humanAgentSideConfig_ == null + ? com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.SuggestionQueryConfig + .DialogflowQuerySource.HumanAgentSideConfig.getDefaultInstance() + : humanAgentSideConfig_; + } + /** + * + * + *+ * The Dialogflow assist configuration for human agent. + *+ * + *+ * .google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.SuggestionQueryConfig.DialogflowQuerySource.HumanAgentSideConfig human_agent_side_config = 3; + *
+ */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.SuggestionQueryConfig + .DialogflowQuerySource.HumanAgentSideConfigOrBuilder + getHumanAgentSideConfigOrBuilder() { + return humanAgentSideConfig_ == null + ? com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.SuggestionQueryConfig + .DialogflowQuerySource.HumanAgentSideConfig.getDefaultInstance() + : humanAgentSideConfig_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -6830,6 +7697,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(agent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, agent_); } + if (humanAgentSideConfig_ != null) { + output.writeMessage(3, getHumanAgentSideConfig()); + } getUnknownFields().writeTo(output); } @@ -6842,6 +7712,11 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(agent_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, agent_); } + if (humanAgentSideConfig_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, getHumanAgentSideConfig()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -6866,6 +7741,10 @@ public boolean equals(final java.lang.Object obj) { obj; if (!getAgent().equals(other.getAgent())) return false; + if (hasHumanAgentSideConfig() != other.hasHumanAgentSideConfig()) return false; + if (hasHumanAgentSideConfig()) { + if (!getHumanAgentSideConfig().equals(other.getHumanAgentSideConfig())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -6879,6 +7758,10 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + AGENT_FIELD_NUMBER; hash = (53 * hash) + getAgent().hashCode(); + if (hasHumanAgentSideConfig()) { + hash = (37 * hash) + HUMAN_AGENT_SIDE_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getHumanAgentSideConfig().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -7051,6 +7934,11 @@ public Builder clear() { super.clear(); bitField0_ = 0; agent_ = ""; + humanAgentSideConfig_ = null; + if (humanAgentSideConfigBuilder_ != null) { + humanAgentSideConfigBuilder_.dispose(); + humanAgentSideConfigBuilder_ = null; + } return this; } @@ -7105,6 +7993,12 @@ private void buildPartial0( if (((from_bitField0_ & 0x00000001) != 0)) { result.agent_ = agent_; } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.humanAgentSideConfig_ = + humanAgentSideConfigBuilder_ == null + ? humanAgentSideConfig_ + : humanAgentSideConfigBuilder_.build(); + } } @java.lang.Override @@ -7170,6 +8064,9 @@ public Builder mergeFrom( bitField0_ |= 0x00000001; onChanged(); } + if (other.hasHumanAgentSideConfig()) { + mergeHumanAgentSideConfig(other.getHumanAgentSideConfig()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -7202,6 +8099,13 @@ public Builder mergeFrom( bitField0_ |= 0x00000001; break; } // case 10 + case 26: + { + input.readMessage( + getHumanAgentSideConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 26 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -7227,7 +8131,7 @@ public Builder mergeFrom( * ** Required. The name of a dialogflow virtual agent used for end user side - * intent detection and suggestion. Format: `projects/<Project Number / + * intent detection and suggestion. Format: `projects/<Project * ID>/locations/<Location ID>/agent`. When multiple agents are allowed in * the same Dialogflow project. *@@ -7254,7 +8158,7 @@ public java.lang.String getAgent() { * ** Required. The name of a dialogflow virtual agent used for end user side - * intent detection and suggestion. Format: `projects/<Project Number / + * intent detection and suggestion. Format: `projects/<Project * ID>/locations/<Location ID>/agent`. When multiple agents are allowed in * the same Dialogflow project. *@@ -7281,7 +8185,7 @@ public com.google.protobuf.ByteString getAgentBytes() { * ** Required. The name of a dialogflow virtual agent used for end user side - * intent detection and suggestion. Format: `projects/<Project Number / + * intent detection and suggestion. Format: `projects/<Project * ID>/locations/<Location ID>/agent`. When multiple agents are allowed in * the same Dialogflow project. *@@ -7307,7 +8211,7 @@ public Builder setAgent(java.lang.String value) { * ** Required. The name of a dialogflow virtual agent used for end user side - * intent detection and suggestion. Format: `projects/<Project Number / + * intent detection and suggestion. Format: `projects/<Project * ID>/locations/<Location ID>/agent`. When multiple agents are allowed in * the same Dialogflow project. *@@ -7329,7 +8233,7 @@ public Builder clearAgent() { * ** Required. The name of a dialogflow virtual agent used for end user side - * intent detection and suggestion. Format: `projects/<Project Number / + * intent detection and suggestion. Format: `projects/<Project * ID>/locations/<Location ID>/agent`. When multiple agents are allowed in * the same Dialogflow project. *@@ -7352,6 +8256,240 @@ public Builder setAgentBytes(com.google.protobuf.ByteString value) { return this; } + private com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.SuggestionQueryConfig + .DialogflowQuerySource.HumanAgentSideConfig + humanAgentSideConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.SuggestionQueryConfig + .DialogflowQuerySource.HumanAgentSideConfig, + com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.SuggestionQueryConfig + .DialogflowQuerySource.HumanAgentSideConfig.Builder, + com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.SuggestionQueryConfig + .DialogflowQuerySource.HumanAgentSideConfigOrBuilder> + humanAgentSideConfigBuilder_; + /** + * + * + *+ * The Dialogflow assist configuration for human agent. + *+ * + *+ * .google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.SuggestionQueryConfig.DialogflowQuerySource.HumanAgentSideConfig human_agent_side_config = 3; + *
+ * + * @return Whether the humanAgentSideConfig field is set. + */ + public boolean hasHumanAgentSideConfig() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *+ * The Dialogflow assist configuration for human agent. + *+ * + *+ * .google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.SuggestionQueryConfig.DialogflowQuerySource.HumanAgentSideConfig human_agent_side_config = 3; + *
+ * + * @return The humanAgentSideConfig. + */ + public com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.SuggestionQueryConfig + .DialogflowQuerySource.HumanAgentSideConfig + getHumanAgentSideConfig() { + if (humanAgentSideConfigBuilder_ == null) { + return humanAgentSideConfig_ == null + ? com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig + .SuggestionQueryConfig.DialogflowQuerySource.HumanAgentSideConfig + .getDefaultInstance() + : humanAgentSideConfig_; + } else { + return humanAgentSideConfigBuilder_.getMessage(); + } + } + /** + * + * + *+ * The Dialogflow assist configuration for human agent. + *+ * + *+ * .google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.SuggestionQueryConfig.DialogflowQuerySource.HumanAgentSideConfig human_agent_side_config = 3; + *
+ */ + public Builder setHumanAgentSideConfig( + com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.SuggestionQueryConfig + .DialogflowQuerySource.HumanAgentSideConfig + value) { + if (humanAgentSideConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + humanAgentSideConfig_ = value; + } else { + humanAgentSideConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *+ * The Dialogflow assist configuration for human agent. + *+ * + *+ * .google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.SuggestionQueryConfig.DialogflowQuerySource.HumanAgentSideConfig human_agent_side_config = 3; + *
+ */ + public Builder setHumanAgentSideConfig( + com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.SuggestionQueryConfig + .DialogflowQuerySource.HumanAgentSideConfig.Builder + builderForValue) { + if (humanAgentSideConfigBuilder_ == null) { + humanAgentSideConfig_ = builderForValue.build(); + } else { + humanAgentSideConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *+ * The Dialogflow assist configuration for human agent. + *+ * + *+ * .google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.SuggestionQueryConfig.DialogflowQuerySource.HumanAgentSideConfig human_agent_side_config = 3; + *
+ */ + public Builder mergeHumanAgentSideConfig( + com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.SuggestionQueryConfig + .DialogflowQuerySource.HumanAgentSideConfig + value) { + if (humanAgentSideConfigBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && humanAgentSideConfig_ != null + && humanAgentSideConfig_ + != com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig + .SuggestionQueryConfig.DialogflowQuerySource.HumanAgentSideConfig + .getDefaultInstance()) { + getHumanAgentSideConfigBuilder().mergeFrom(value); + } else { + humanAgentSideConfig_ = value; + } + } else { + humanAgentSideConfigBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *+ * The Dialogflow assist configuration for human agent. + *+ * + *+ * .google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.SuggestionQueryConfig.DialogflowQuerySource.HumanAgentSideConfig human_agent_side_config = 3; + *
+ */ + public Builder clearHumanAgentSideConfig() { + bitField0_ = (bitField0_ & ~0x00000002); + humanAgentSideConfig_ = null; + if (humanAgentSideConfigBuilder_ != null) { + humanAgentSideConfigBuilder_.dispose(); + humanAgentSideConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *+ * The Dialogflow assist configuration for human agent. + *+ * + *+ * .google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.SuggestionQueryConfig.DialogflowQuerySource.HumanAgentSideConfig human_agent_side_config = 3; + *
+ */ + public com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.SuggestionQueryConfig + .DialogflowQuerySource.HumanAgentSideConfig.Builder + getHumanAgentSideConfigBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getHumanAgentSideConfigFieldBuilder().getBuilder(); + } + /** + * + * + *+ * The Dialogflow assist configuration for human agent. + *+ * + *+ * .google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.SuggestionQueryConfig.DialogflowQuerySource.HumanAgentSideConfig human_agent_side_config = 3; + *
+ */ + public com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.SuggestionQueryConfig + .DialogflowQuerySource.HumanAgentSideConfigOrBuilder + getHumanAgentSideConfigOrBuilder() { + if (humanAgentSideConfigBuilder_ != null) { + return humanAgentSideConfigBuilder_.getMessageOrBuilder(); + } else { + return humanAgentSideConfig_ == null + ? com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig + .SuggestionQueryConfig.DialogflowQuerySource.HumanAgentSideConfig + .getDefaultInstance() + : humanAgentSideConfig_; + } + } + /** + * + * + *+ * The Dialogflow assist configuration for human agent. + *+ * + *+ * .google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.SuggestionQueryConfig.DialogflowQuerySource.HumanAgentSideConfig human_agent_side_config = 3; + *
+ */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.SuggestionQueryConfig + .DialogflowQuerySource.HumanAgentSideConfig, + com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.SuggestionQueryConfig + .DialogflowQuerySource.HumanAgentSideConfig.Builder, + com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.SuggestionQueryConfig + .DialogflowQuerySource.HumanAgentSideConfigOrBuilder> + getHumanAgentSideConfigFieldBuilder() { + if (humanAgentSideConfigBuilder_ == null) { + humanAgentSideConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig + .SuggestionQueryConfig.DialogflowQuerySource.HumanAgentSideConfig, + com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig + .SuggestionQueryConfig.DialogflowQuerySource.HumanAgentSideConfig.Builder, + com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig + .SuggestionQueryConfig.DialogflowQuerySource.HumanAgentSideConfigOrBuilder>( + getHumanAgentSideConfig(), getParentForChildren(), isClean()); + humanAgentSideConfig_ = null; + } + return humanAgentSideConfigBuilder_; + } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -8557,7 +9695,8 @@ public int getMaxResults() { * If this field is not set, it is default to 0.0, which means that all * suggestions are returned. * - * Supported features: ARTICLE_SUGGESTION, FAQ, SMART_REPLY, SMART_COMPOSE. + * Supported features: ARTICLE_SUGGESTION, FAQ, SMART_REPLY, SMART_COMPOSE, + * KNOWLEDGE_SEARCH, KNOWLEDGE_ASSIST, ENTITY_EXTRACTION. *float confidence_threshold = 5;
@@ -10136,7 +11275,8 @@ public Builder clearMaxResults() { * If this field is not set, it is default to 0.0, which means that all * suggestions are returned. * - * Supported features: ARTICLE_SUGGESTION, FAQ, SMART_REPLY, SMART_COMPOSE. + * Supported features: ARTICLE_SUGGESTION, FAQ, SMART_REPLY, SMART_COMPOSE, + * KNOWLEDGE_SEARCH, KNOWLEDGE_ASSIST, ENTITY_EXTRACTION. *float confidence_threshold = 5;
@@ -10169,7 +11309,8 @@ public float getConfidenceThreshold() { * If this field is not set, it is default to 0.0, which means that all * suggestions are returned. * - * Supported features: ARTICLE_SUGGESTION, FAQ, SMART_REPLY, SMART_COMPOSE. + * Supported features: ARTICLE_SUGGESTION, FAQ, SMART_REPLY, SMART_COMPOSE, + * KNOWLEDGE_SEARCH, KNOWLEDGE_ASSIST, ENTITY_EXTRACTION. *float confidence_threshold = 5;
@@ -10206,7 +11347,8 @@ public Builder setConfidenceThreshold(float value) { * If this field is not set, it is default to 0.0, which means that all * suggestions are returned. * - * Supported features: ARTICLE_SUGGESTION, FAQ, SMART_REPLY, SMART_COMPOSE. + * Supported features: ARTICLE_SUGGESTION, FAQ, SMART_REPLY, SMART_COMPOSE, + * KNOWLEDGE_SEARCH, KNOWLEDGE_ASSIST, ENTITY_EXTRACTION. *float confidence_threshold = 5;
diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ImportDocumentsRequest.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ImportDocumentsRequest.java index 50cbd275199e..dc0cc7119055 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ImportDocumentsRequest.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ImportDocumentsRequest.java @@ -173,7 +173,7 @@ public com.google.protobuf.ByteString getParentBytes() { * * *- * The Google Cloud Storage location for the documents. + * Optional. The Google Cloud Storage location for the documents. * The path can include a wildcard. * * These URIs may have the forms @@ -181,7 +181,9 @@ public com.google.protobuf.ByteString getParentBytes() { * `gs://<bucket-name>/<object-path>/*.<extension>`. ** - *.google.cloud.dialogflow.v2beta1.GcsSources gcs_source = 2;
+ *+ * .google.cloud.dialogflow.v2beta1.GcsSources gcs_source = 2 [(.google.api.field_behavior) = OPTIONAL]; + *
* * @return Whether the gcsSource field is set. */ @@ -193,7 +195,7 @@ public boolean hasGcsSource() { * * *- * The Google Cloud Storage location for the documents. + * Optional. The Google Cloud Storage location for the documents. * The path can include a wildcard. * * These URIs may have the forms @@ -201,7 +203,9 @@ public boolean hasGcsSource() { * `gs://<bucket-name>/<object-path>/*.<extension>`. ** - *.google.cloud.dialogflow.v2beta1.GcsSources gcs_source = 2;
+ *+ * .google.cloud.dialogflow.v2beta1.GcsSources gcs_source = 2 [(.google.api.field_behavior) = OPTIONAL]; + *
* * @return The gcsSource. */ @@ -216,7 +220,7 @@ public com.google.cloud.dialogflow.v2beta1.GcsSources getGcsSource() { * * *- * The Google Cloud Storage location for the documents. + * Optional. The Google Cloud Storage location for the documents. * The path can include a wildcard. * * These URIs may have the forms @@ -224,7 +228,9 @@ public com.google.cloud.dialogflow.v2beta1.GcsSources getGcsSource() { * `gs://<bucket-name>/<object-path>/*.<extension>`. ** - *.google.cloud.dialogflow.v2beta1.GcsSources gcs_source = 2;
+ *+ * .google.cloud.dialogflow.v2beta1.GcsSources gcs_source = 2 [(.google.api.field_behavior) = OPTIONAL]; + *
*/ @java.lang.Override public com.google.cloud.dialogflow.v2beta1.GcsSourcesOrBuilder getGcsSourceOrBuilder() { @@ -914,7 +920,7 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * * *- * The Google Cloud Storage location for the documents. + * Optional. The Google Cloud Storage location for the documents. * The path can include a wildcard. * * These URIs may have the forms @@ -922,7 +928,9 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * `gs://<bucket-name>/<object-path>/*.<extension>`. ** - *.google.cloud.dialogflow.v2beta1.GcsSources gcs_source = 2;
+ *+ * .google.cloud.dialogflow.v2beta1.GcsSources gcs_source = 2 [(.google.api.field_behavior) = OPTIONAL]; + *
* * @return Whether the gcsSource field is set. */ @@ -934,7 +942,7 @@ public boolean hasGcsSource() { * * *- * The Google Cloud Storage location for the documents. + * Optional. The Google Cloud Storage location for the documents. * The path can include a wildcard. * * These URIs may have the forms @@ -942,7 +950,9 @@ public boolean hasGcsSource() { * `gs://<bucket-name>/<object-path>/*.<extension>`. ** - *.google.cloud.dialogflow.v2beta1.GcsSources gcs_source = 2;
+ *+ * .google.cloud.dialogflow.v2beta1.GcsSources gcs_source = 2 [(.google.api.field_behavior) = OPTIONAL]; + *
* * @return The gcsSource. */ @@ -964,7 +974,7 @@ public com.google.cloud.dialogflow.v2beta1.GcsSources getGcsSource() { * * *- * The Google Cloud Storage location for the documents. + * Optional. The Google Cloud Storage location for the documents. * The path can include a wildcard. * * These URIs may have the forms @@ -972,7 +982,9 @@ public com.google.cloud.dialogflow.v2beta1.GcsSources getGcsSource() { * `gs://<bucket-name>/<object-path>/*.<extension>`. ** - *.google.cloud.dialogflow.v2beta1.GcsSources gcs_source = 2;
+ *+ * .google.cloud.dialogflow.v2beta1.GcsSources gcs_source = 2 [(.google.api.field_behavior) = OPTIONAL]; + *
*/ public Builder setGcsSource(com.google.cloud.dialogflow.v2beta1.GcsSources value) { if (gcsSourceBuilder_ == null) { @@ -991,7 +1003,7 @@ public Builder setGcsSource(com.google.cloud.dialogflow.v2beta1.GcsSources value * * *- * The Google Cloud Storage location for the documents. + * Optional. The Google Cloud Storage location for the documents. * The path can include a wildcard. * * These URIs may have the forms @@ -999,7 +1011,9 @@ public Builder setGcsSource(com.google.cloud.dialogflow.v2beta1.GcsSources value * `gs://<bucket-name>/<object-path>/*.<extension>`. ** - *.google.cloud.dialogflow.v2beta1.GcsSources gcs_source = 2;
+ *+ * .google.cloud.dialogflow.v2beta1.GcsSources gcs_source = 2 [(.google.api.field_behavior) = OPTIONAL]; + *
*/ public Builder setGcsSource( com.google.cloud.dialogflow.v2beta1.GcsSources.Builder builderForValue) { @@ -1016,7 +1030,7 @@ public Builder setGcsSource( * * *- * The Google Cloud Storage location for the documents. + * Optional. The Google Cloud Storage location for the documents. * The path can include a wildcard. * * These URIs may have the forms @@ -1024,7 +1038,9 @@ public Builder setGcsSource( * `gs://<bucket-name>/<object-path>/*.<extension>`. ** - *.google.cloud.dialogflow.v2beta1.GcsSources gcs_source = 2;
+ *+ * .google.cloud.dialogflow.v2beta1.GcsSources gcs_source = 2 [(.google.api.field_behavior) = OPTIONAL]; + *
*/ public Builder mergeGcsSource(com.google.cloud.dialogflow.v2beta1.GcsSources value) { if (gcsSourceBuilder_ == null) { @@ -1053,7 +1069,7 @@ public Builder mergeGcsSource(com.google.cloud.dialogflow.v2beta1.GcsSources val * * *- * The Google Cloud Storage location for the documents. + * Optional. The Google Cloud Storage location for the documents. * The path can include a wildcard. * * These URIs may have the forms @@ -1061,7 +1077,9 @@ public Builder mergeGcsSource(com.google.cloud.dialogflow.v2beta1.GcsSources val * `gs://<bucket-name>/<object-path>/*.<extension>`. ** - *.google.cloud.dialogflow.v2beta1.GcsSources gcs_source = 2;
+ *+ * .google.cloud.dialogflow.v2beta1.GcsSources gcs_source = 2 [(.google.api.field_behavior) = OPTIONAL]; + *
*/ public Builder clearGcsSource() { if (gcsSourceBuilder_ == null) { @@ -1083,7 +1101,7 @@ public Builder clearGcsSource() { * * *- * The Google Cloud Storage location for the documents. + * Optional. The Google Cloud Storage location for the documents. * The path can include a wildcard. * * These URIs may have the forms @@ -1091,7 +1109,9 @@ public Builder clearGcsSource() { * `gs://<bucket-name>/<object-path>/*.<extension>`. ** - *.google.cloud.dialogflow.v2beta1.GcsSources gcs_source = 2;
+ *+ * .google.cloud.dialogflow.v2beta1.GcsSources gcs_source = 2 [(.google.api.field_behavior) = OPTIONAL]; + *
*/ public com.google.cloud.dialogflow.v2beta1.GcsSources.Builder getGcsSourceBuilder() { return getGcsSourceFieldBuilder().getBuilder(); @@ -1100,7 +1120,7 @@ public com.google.cloud.dialogflow.v2beta1.GcsSources.Builder getGcsSourceBuilde * * *- * The Google Cloud Storage location for the documents. + * Optional. The Google Cloud Storage location for the documents. * The path can include a wildcard. * * These URIs may have the forms @@ -1108,7 +1128,9 @@ public com.google.cloud.dialogflow.v2beta1.GcsSources.Builder getGcsSourceBuilde * `gs://<bucket-name>/<object-path>/*.<extension>`. ** - *.google.cloud.dialogflow.v2beta1.GcsSources gcs_source = 2;
+ *+ * .google.cloud.dialogflow.v2beta1.GcsSources gcs_source = 2 [(.google.api.field_behavior) = OPTIONAL]; + *
*/ @java.lang.Override public com.google.cloud.dialogflow.v2beta1.GcsSourcesOrBuilder getGcsSourceOrBuilder() { @@ -1125,7 +1147,7 @@ public com.google.cloud.dialogflow.v2beta1.GcsSourcesOrBuilder getGcsSourceOrBui * * *- * The Google Cloud Storage location for the documents. + * Optional. The Google Cloud Storage location for the documents. * The path can include a wildcard. * * These URIs may have the forms @@ -1133,7 +1155,9 @@ public com.google.cloud.dialogflow.v2beta1.GcsSourcesOrBuilder getGcsSourceOrBui * `gs://<bucket-name>/<object-path>/*.<extension>`. ** - *.google.cloud.dialogflow.v2beta1.GcsSources gcs_source = 2;
+ *+ * .google.cloud.dialogflow.v2beta1.GcsSources gcs_source = 2 [(.google.api.field_behavior) = OPTIONAL]; + *
*/ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dialogflow.v2beta1.GcsSources, diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ImportDocumentsRequestOrBuilder.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ImportDocumentsRequestOrBuilder.java index 052c42ecdb11..8253a34854c1 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ImportDocumentsRequestOrBuilder.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ImportDocumentsRequestOrBuilder.java @@ -60,7 +60,7 @@ public interface ImportDocumentsRequestOrBuilder * * *- * The Google Cloud Storage location for the documents. + * Optional. The Google Cloud Storage location for the documents. * The path can include a wildcard. * * These URIs may have the forms @@ -68,7 +68,9 @@ public interface ImportDocumentsRequestOrBuilder * `gs://<bucket-name>/<object-path>/*.<extension>`. ** - *.google.cloud.dialogflow.v2beta1.GcsSources gcs_source = 2;
+ *+ * .google.cloud.dialogflow.v2beta1.GcsSources gcs_source = 2 [(.google.api.field_behavior) = OPTIONAL]; + *
* * @return Whether the gcsSource field is set. */ @@ -77,7 +79,7 @@ public interface ImportDocumentsRequestOrBuilder * * *- * The Google Cloud Storage location for the documents. + * Optional. The Google Cloud Storage location for the documents. * The path can include a wildcard. * * These URIs may have the forms @@ -85,7 +87,9 @@ public interface ImportDocumentsRequestOrBuilder * `gs://<bucket-name>/<object-path>/*.<extension>`. ** - *.google.cloud.dialogflow.v2beta1.GcsSources gcs_source = 2;
+ *+ * .google.cloud.dialogflow.v2beta1.GcsSources gcs_source = 2 [(.google.api.field_behavior) = OPTIONAL]; + *
* * @return The gcsSource. */ @@ -94,7 +98,7 @@ public interface ImportDocumentsRequestOrBuilder * * *- * The Google Cloud Storage location for the documents. + * Optional. The Google Cloud Storage location for the documents. * The path can include a wildcard. * * These URIs may have the forms @@ -102,7 +106,9 @@ public interface ImportDocumentsRequestOrBuilder * `gs://<bucket-name>/<object-path>/*.<extension>`. ** - *.google.cloud.dialogflow.v2beta1.GcsSources gcs_source = 2;
+ *+ * .google.cloud.dialogflow.v2beta1.GcsSources gcs_source = 2 [(.google.api.field_behavior) = OPTIONAL]; + *
*/ com.google.cloud.dialogflow.v2beta1.GcsSourcesOrBuilder getGcsSourceOrBuilder(); diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/IntentInput.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/IntentInput.java new file mode 100644 index 000000000000..8edc67b9104a --- /dev/null +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/IntentInput.java @@ -0,0 +1,836 @@ +/* + * Copyright 2023 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/v2beta1/participant.proto + +package com.google.cloud.dialogflow.v2beta1; + +/** + * + * + *+ * Represents the intent to trigger programmatically rather than as a result of + * natural language processing. The intent input is only used for V3 agent. + *+ * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.IntentInput} + */ +public final class IntentInput extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.IntentInput) + IntentInputOrBuilder { + private static final long serialVersionUID = 0L; + // Use IntentInput.newBuilder() to construct. + private IntentInput(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private IntentInput() { + intent_ = ""; + languageCode_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new IntentInput(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_IntentInput_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_IntentInput_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.IntentInput.class, + com.google.cloud.dialogflow.v2beta1.IntentInput.Builder.class); + } + + public static final int INTENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object intent_ = ""; + /** + * + * + *+ * Required. The unique identifier of the intent in V3 agent. + * Format: `projects/<Project ID>/locations/<Location ID>/locations/<Location + * ID>/agents/<Agent ID>/intents/<Intent ID>`. + *+ * + *string intent = 1 [(.google.api.field_behavior) = REQUIRED];
+ * + * @return The intent. + */ + @java.lang.Override + public java.lang.String getIntent() { + java.lang.Object ref = intent_; + 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(); + intent_ = s; + return s; + } + } + /** + * + * + *+ * Required. The unique identifier of the intent in V3 agent. + * Format: `projects/<Project ID>/locations/<Location ID>/locations/<Location + * ID>/agents/<Agent ID>/intents/<Intent ID>`. + *+ * + *string intent = 1 [(.google.api.field_behavior) = REQUIRED];
+ * + * @return The bytes for intent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getIntentBytes() { + java.lang.Object ref = intent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + intent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LANGUAGE_CODE_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object languageCode_ = ""; + /** + * + * + *+ * Required. The language of this conversational query. See [Language + * Support](https://cloud.google.com/dialogflow/docs/reference/language) + * for a list of the currently supported language codes. + *+ * + *string language_code = 3 [(.google.api.field_behavior) = REQUIRED];
+ * + * @return The languageCode. + */ + @java.lang.Override + public java.lang.String getLanguageCode() { + java.lang.Object ref = languageCode_; + 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(); + languageCode_ = s; + return s; + } + } + /** + * + * + *+ * Required. The language of this conversational query. See [Language + * Support](https://cloud.google.com/dialogflow/docs/reference/language) + * for a list of the currently supported language codes. + *+ * + *string language_code = 3 [(.google.api.field_behavior) = REQUIRED];
+ * + * @return The bytes for languageCode. + */ + @java.lang.Override + public com.google.protobuf.ByteString getLanguageCodeBytes() { + java.lang.Object ref = languageCode_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + languageCode_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(intent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, intent_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageCode_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, languageCode_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(intent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, intent_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageCode_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, languageCode_); + } + size += getUnknownFields().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.v2beta1.IntentInput)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.v2beta1.IntentInput other = + (com.google.cloud.dialogflow.v2beta1.IntentInput) obj; + + if (!getIntent().equals(other.getIntent())) return false; + if (!getLanguageCode().equals(other.getLanguageCode())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + INTENT_FIELD_NUMBER; + hash = (53 * hash) + getIntent().hashCode(); + hash = (37 * hash) + LANGUAGE_CODE_FIELD_NUMBER; + hash = (53 * hash) + getLanguageCode().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.v2beta1.IntentInput parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.IntentInput 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.v2beta1.IntentInput parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.IntentInput 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.v2beta1.IntentInput parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.IntentInput parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.IntentInput parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.IntentInput 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.v2beta1.IntentInput parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.IntentInput 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.v2beta1.IntentInput parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.IntentInput 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.v2beta1.IntentInput 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; + } + /** + * + * + *+ * Represents the intent to trigger programmatically rather than as a result of + * natural language processing. The intent input is only used for V3 agent. + *+ * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.IntentInput} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder+ implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2beta1.IntentInput) + com.google.cloud.dialogflow.v2beta1.IntentInputOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_IntentInput_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_IntentInput_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.IntentInput.class, + com.google.cloud.dialogflow.v2beta1.IntentInput.Builder.class); + } + + // Construct using com.google.cloud.dialogflow.v2beta1.IntentInput.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + intent_ = ""; + languageCode_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_IntentInput_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.IntentInput getDefaultInstanceForType() { + return com.google.cloud.dialogflow.v2beta1.IntentInput.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.IntentInput build() { + com.google.cloud.dialogflow.v2beta1.IntentInput result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.IntentInput buildPartial() { + com.google.cloud.dialogflow.v2beta1.IntentInput result = + new com.google.cloud.dialogflow.v2beta1.IntentInput(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.dialogflow.v2beta1.IntentInput result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.intent_ = intent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.languageCode_ = languageCode_; + } + } + + @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.v2beta1.IntentInput) { + return mergeFrom((com.google.cloud.dialogflow.v2beta1.IntentInput) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dialogflow.v2beta1.IntentInput other) { + if (other == com.google.cloud.dialogflow.v2beta1.IntentInput.getDefaultInstance()) + return this; + if (!other.getIntent().isEmpty()) { + intent_ = other.intent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getLanguageCode().isEmpty()) { + languageCode_ = other.languageCode_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + intent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 26: + { + languageCode_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object intent_ = ""; + /** + * + * + * + * Required. The unique identifier of the intent in V3 agent. + * Format: `projects/<Project ID>/locations/<Location ID>/locations/<Location + * ID>/agents/<Agent ID>/intents/<Intent ID>`. + *+ * + *string intent = 1 [(.google.api.field_behavior) = REQUIRED];
+ * + * @return The intent. + */ + public java.lang.String getIntent() { + java.lang.Object ref = intent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + intent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *+ * Required. The unique identifier of the intent in V3 agent. + * Format: `projects/<Project ID>/locations/<Location ID>/locations/<Location + * ID>/agents/<Agent ID>/intents/<Intent ID>`. + *+ * + *string intent = 1 [(.google.api.field_behavior) = REQUIRED];
+ * + * @return The bytes for intent. + */ + public com.google.protobuf.ByteString getIntentBytes() { + java.lang.Object ref = intent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + intent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *+ * Required. The unique identifier of the intent in V3 agent. + * Format: `projects/<Project ID>/locations/<Location ID>/locations/<Location + * ID>/agents/<Agent ID>/intents/<Intent ID>`. + *+ * + *string intent = 1 [(.google.api.field_behavior) = REQUIRED];
+ * + * @param value The intent to set. + * @return This builder for chaining. + */ + public Builder setIntent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + intent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *+ * Required. The unique identifier of the intent in V3 agent. + * Format: `projects/<Project ID>/locations/<Location ID>/locations/<Location + * ID>/agents/<Agent ID>/intents/<Intent ID>`. + *+ * + *string intent = 1 [(.google.api.field_behavior) = REQUIRED];
+ * + * @return This builder for chaining. + */ + public Builder clearIntent() { + intent_ = getDefaultInstance().getIntent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *+ * Required. The unique identifier of the intent in V3 agent. + * Format: `projects/<Project ID>/locations/<Location ID>/locations/<Location + * ID>/agents/<Agent ID>/intents/<Intent ID>`. + *+ * + *string intent = 1 [(.google.api.field_behavior) = REQUIRED];
+ * + * @param value The bytes for intent to set. + * @return This builder for chaining. + */ + public Builder setIntentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + intent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object languageCode_ = ""; + /** + * + * + *+ * Required. The language of this conversational query. See [Language + * Support](https://cloud.google.com/dialogflow/docs/reference/language) + * for a list of the currently supported language codes. + *+ * + *string language_code = 3 [(.google.api.field_behavior) = REQUIRED];
+ * + * @return The languageCode. + */ + public java.lang.String getLanguageCode() { + java.lang.Object ref = languageCode_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + languageCode_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *+ * Required. The language of this conversational query. See [Language + * Support](https://cloud.google.com/dialogflow/docs/reference/language) + * for a list of the currently supported language codes. + *+ * + *string language_code = 3 [(.google.api.field_behavior) = REQUIRED];
+ * + * @return The bytes for languageCode. + */ + public com.google.protobuf.ByteString getLanguageCodeBytes() { + java.lang.Object ref = languageCode_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + languageCode_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *+ * Required. The language of this conversational query. See [Language + * Support](https://cloud.google.com/dialogflow/docs/reference/language) + * for a list of the currently supported language codes. + *+ * + *string language_code = 3 [(.google.api.field_behavior) = REQUIRED];
+ * + * @param value The languageCode to set. + * @return This builder for chaining. + */ + public Builder setLanguageCode(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + languageCode_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *+ * Required. The language of this conversational query. See [Language + * Support](https://cloud.google.com/dialogflow/docs/reference/language) + * for a list of the currently supported language codes. + *+ * + *string language_code = 3 [(.google.api.field_behavior) = REQUIRED];
+ * + * @return This builder for chaining. + */ + public Builder clearLanguageCode() { + languageCode_ = getDefaultInstance().getLanguageCode(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *+ * Required. The language of this conversational query. See [Language + * Support](https://cloud.google.com/dialogflow/docs/reference/language) + * for a list of the currently supported language codes. + *+ * + *string language_code = 3 [(.google.api.field_behavior) = REQUIRED];
+ * + * @param value The bytes for languageCode to set. + * @return This builder for chaining. + */ + public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + languageCode_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @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.v2beta1.IntentInput) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.IntentInput) + private static final com.google.cloud.dialogflow.v2beta1.IntentInput DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2beta1.IntentInput(); + } + + public static com.google.cloud.dialogflow.v2beta1.IntentInput getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.ParserPARSER = + new com.google.protobuf.AbstractParser () { + @java.lang.Override + public IntentInput parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + 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.v2beta1.IntentInput getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/IntentInputOrBuilder.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/IntentInputOrBuilder.java new file mode 100644 index 000000000000..b021f8054c48 --- /dev/null +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/IntentInputOrBuilder.java @@ -0,0 +1,83 @@ +/* + * Copyright 2023 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/v2beta1/participant.proto + +package com.google.cloud.dialogflow.v2beta1; + +public interface IntentInputOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2beta1.IntentInput) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + * + * Required. The unique identifier of the intent in V3 agent. + * Format: `projects/<Project ID>/locations/<Location ID>/locations/<Location + * ID>/agents/<Agent ID>/intents/<Intent ID>`. + *+ * + *string intent = 1 [(.google.api.field_behavior) = REQUIRED];
+ * + * @return The intent. + */ + java.lang.String getIntent(); + /** + * + * + *+ * Required. The unique identifier of the intent in V3 agent. + * Format: `projects/<Project ID>/locations/<Location ID>/locations/<Location + * ID>/agents/<Agent ID>/intents/<Intent ID>`. + *+ * + *string intent = 1 [(.google.api.field_behavior) = REQUIRED];
+ * + * @return The bytes for intent. + */ + com.google.protobuf.ByteString getIntentBytes(); + + /** + * + * + *+ * Required. The language of this conversational query. See [Language + * Support](https://cloud.google.com/dialogflow/docs/reference/language) + * for a list of the currently supported language codes. + *+ * + *string language_code = 3 [(.google.api.field_behavior) = REQUIRED];
+ * + * @return The languageCode. + */ + java.lang.String getLanguageCode(); + /** + * + * + *+ * Required. The language of this conversational query. See [Language + * Support](https://cloud.google.com/dialogflow/docs/reference/language) + * for a list of the currently supported language codes. + *+ * + *string language_code = 3 [(.google.api.field_behavior) = REQUIRED];
+ * + * @return The bytes for languageCode. + */ + com.google.protobuf.ByteString getLanguageCodeBytes(); +} diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/IntentSuggestion.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/IntentSuggestion.java new file mode 100644 index 000000000000..c4cf3c82cf19 --- /dev/null +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/IntentSuggestion.java @@ -0,0 +1,1154 @@ +/* + * Copyright 2023 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/v2beta1/participant.proto + +package com.google.cloud.dialogflow.v2beta1; + +/** + * + * + *+ * Represents an intent suggestion. + *+ * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.IntentSuggestion} + */ +public final class IntentSuggestion extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.IntentSuggestion) + IntentSuggestionOrBuilder { + private static final long serialVersionUID = 0L; + // Use IntentSuggestion.newBuilder() to construct. + private IntentSuggestion(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private IntentSuggestion() { + displayName_ = ""; + description_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new IntentSuggestion(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_IntentSuggestion_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_IntentSuggestion_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.IntentSuggestion.class, + com.google.cloud.dialogflow.v2beta1.IntentSuggestion.Builder.class); + } + + private int intentCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object intent_; + + public enum IntentCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + INTENT_V2(2), + INTENT_NOT_SET(0); + private final int value; + + private IntentCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static IntentCase valueOf(int value) { + return forNumber(value); + } + + public static IntentCase forNumber(int value) { + switch (value) { + case 2: + return INTENT_V2; + case 0: + return INTENT_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public IntentCase getIntentCase() { + return IntentCase.forNumber(intentCase_); + } + + public static final int DISPLAY_NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; + /** + * + * + *+ * The display name of the intent. + *+ * + *string display_name = 1;
+ * + * @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; + } + } + /** + * + * + *+ * The display name of the intent. + *+ * + *string display_name = 1;
+ * + * @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 INTENT_V2_FIELD_NUMBER = 2; + /** + * + * + *+ * The unique identifier of this + * [intent][google.cloud.dialogflow.v2beta1.Intent]. Format: + * `projects/<Project ID>/locations/<Location ID>/agent/intents/<Intent + * ID>`. + *+ * + *string intent_v2 = 2;
+ * + * @return Whether the intentV2 field is set. + */ + public boolean hasIntentV2() { + return intentCase_ == 2; + } + /** + * + * + *+ * The unique identifier of this + * [intent][google.cloud.dialogflow.v2beta1.Intent]. Format: + * `projects/<Project ID>/locations/<Location ID>/agent/intents/<Intent + * ID>`. + *+ * + *string intent_v2 = 2;
+ * + * @return The intentV2. + */ + public java.lang.String getIntentV2() { + java.lang.Object ref = ""; + if (intentCase_ == 2) { + ref = intent_; + } + 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(); + if (intentCase_ == 2) { + intent_ = s; + } + return s; + } + } + /** + * + * + *+ * The unique identifier of this + * [intent][google.cloud.dialogflow.v2beta1.Intent]. Format: + * `projects/<Project ID>/locations/<Location ID>/agent/intents/<Intent + * ID>`. + *+ * + *string intent_v2 = 2;
+ * + * @return The bytes for intentV2. + */ + public com.google.protobuf.ByteString getIntentV2Bytes() { + java.lang.Object ref = ""; + if (intentCase_ == 2) { + ref = intent_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (intentCase_ == 2) { + intent_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DESCRIPTION_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; + /** + * + * + *+ * Human readable description for better understanding an intent like its + * scope, content, result etc. Maximum character limit: 140 characters. + *+ * + *string description = 5;
+ * + * @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; + } + } + /** + * + * + *+ * Human readable description for better understanding an intent like its + * scope, content, result etc. Maximum character limit: 140 characters. + *+ * + *string description = 5;
+ * + * @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; + } + } + + 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, displayName_); + } + if (intentCase_ == 2) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, intent_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, description_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, displayName_); + } + if (intentCase_ == 2) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, intent_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, description_); + } + size += getUnknownFields().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.v2beta1.IntentSuggestion)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.v2beta1.IntentSuggestion other = + (com.google.cloud.dialogflow.v2beta1.IntentSuggestion) obj; + + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getDescription().equals(other.getDescription())) return false; + if (!getIntentCase().equals(other.getIntentCase())) return false; + switch (intentCase_) { + case 2: + if (!getIntentV2().equals(other.getIntentV2())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + switch (intentCase_) { + case 2: + hash = (37 * hash) + INTENT_V2_FIELD_NUMBER; + hash = (53 * hash) + getIntentV2().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.v2beta1.IntentSuggestion parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.IntentSuggestion 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.v2beta1.IntentSuggestion parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.IntentSuggestion 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.v2beta1.IntentSuggestion parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.IntentSuggestion parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.IntentSuggestion parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.IntentSuggestion 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.v2beta1.IntentSuggestion parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.IntentSuggestion 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.v2beta1.IntentSuggestion parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.IntentSuggestion 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.v2beta1.IntentSuggestion 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; + } + /** + * + * + *+ * Represents an intent suggestion. + *+ * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.IntentSuggestion} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder+ implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2beta1.IntentSuggestion) + com.google.cloud.dialogflow.v2beta1.IntentSuggestionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_IntentSuggestion_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_IntentSuggestion_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.IntentSuggestion.class, + com.google.cloud.dialogflow.v2beta1.IntentSuggestion.Builder.class); + } + + // Construct using com.google.cloud.dialogflow.v2beta1.IntentSuggestion.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + displayName_ = ""; + description_ = ""; + intentCase_ = 0; + intent_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_IntentSuggestion_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.IntentSuggestion getDefaultInstanceForType() { + return com.google.cloud.dialogflow.v2beta1.IntentSuggestion.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.IntentSuggestion build() { + com.google.cloud.dialogflow.v2beta1.IntentSuggestion result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.IntentSuggestion buildPartial() { + com.google.cloud.dialogflow.v2beta1.IntentSuggestion result = + new com.google.cloud.dialogflow.v2beta1.IntentSuggestion(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.dialogflow.v2beta1.IntentSuggestion result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.displayName_ = displayName_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.description_ = description_; + } + } + + private void buildPartialOneofs(com.google.cloud.dialogflow.v2beta1.IntentSuggestion result) { + result.intentCase_ = intentCase_; + result.intent_ = this.intent_; + } + + @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.v2beta1.IntentSuggestion) { + return mergeFrom((com.google.cloud.dialogflow.v2beta1.IntentSuggestion) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dialogflow.v2beta1.IntentSuggestion other) { + if (other == com.google.cloud.dialogflow.v2beta1.IntentSuggestion.getDefaultInstance()) + return this; + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + bitField0_ |= 0x00000004; + onChanged(); + } + switch (other.getIntentCase()) { + case INTENT_V2: + { + intentCase_ = 2; + intent_ = other.intent_; + onChanged(); + break; + } + case INTENT_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + intentCase_ = 2; + intent_ = s; + break; + } // case 18 + case 42: + { + description_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int intentCase_ = 0; + private java.lang.Object intent_; + + public IntentCase getIntentCase() { + return IntentCase.forNumber(intentCase_); + } + + public Builder clearIntent() { + intentCase_ = 0; + intent_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private java.lang.Object displayName_ = ""; + /** + * + * + * + * The display name of the intent. + *+ * + *string display_name = 1;
+ * + * @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; + } + } + /** + * + * + *+ * The display name of the intent. + *+ * + *string display_name = 1;
+ * + * @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; + } + } + /** + * + * + *+ * The display name of the intent. + *+ * + *string display_name = 1;
+ * + * @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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *+ * The display name of the intent. + *+ * + *string display_name = 1;
+ * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *+ * The display name of the intent. + *+ * + *string display_name = 1;
+ * + * @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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *+ * The unique identifier of this + * [intent][google.cloud.dialogflow.v2beta1.Intent]. Format: + * `projects/<Project ID>/locations/<Location ID>/agent/intents/<Intent + * ID>`. + *+ * + *string intent_v2 = 2;
+ * + * @return Whether the intentV2 field is set. + */ + @java.lang.Override + public boolean hasIntentV2() { + return intentCase_ == 2; + } + /** + * + * + *+ * The unique identifier of this + * [intent][google.cloud.dialogflow.v2beta1.Intent]. Format: + * `projects/<Project ID>/locations/<Location ID>/agent/intents/<Intent + * ID>`. + *+ * + *string intent_v2 = 2;
+ * + * @return The intentV2. + */ + @java.lang.Override + public java.lang.String getIntentV2() { + java.lang.Object ref = ""; + if (intentCase_ == 2) { + ref = intent_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (intentCase_ == 2) { + intent_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *+ * The unique identifier of this + * [intent][google.cloud.dialogflow.v2beta1.Intent]. Format: + * `projects/<Project ID>/locations/<Location ID>/agent/intents/<Intent + * ID>`. + *+ * + *string intent_v2 = 2;
+ * + * @return The bytes for intentV2. + */ + @java.lang.Override + public com.google.protobuf.ByteString getIntentV2Bytes() { + java.lang.Object ref = ""; + if (intentCase_ == 2) { + ref = intent_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (intentCase_ == 2) { + intent_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *+ * The unique identifier of this + * [intent][google.cloud.dialogflow.v2beta1.Intent]. Format: + * `projects/<Project ID>/locations/<Location ID>/agent/intents/<Intent + * ID>`. + *+ * + *string intent_v2 = 2;
+ * + * @param value The intentV2 to set. + * @return This builder for chaining. + */ + public Builder setIntentV2(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + intentCase_ = 2; + intent_ = value; + onChanged(); + return this; + } + /** + * + * + *+ * The unique identifier of this + * [intent][google.cloud.dialogflow.v2beta1.Intent]. Format: + * `projects/<Project ID>/locations/<Location ID>/agent/intents/<Intent + * ID>`. + *+ * + *string intent_v2 = 2;
+ * + * @return This builder for chaining. + */ + public Builder clearIntentV2() { + if (intentCase_ == 2) { + intentCase_ = 0; + intent_ = null; + onChanged(); + } + return this; + } + /** + * + * + *+ * The unique identifier of this + * [intent][google.cloud.dialogflow.v2beta1.Intent]. Format: + * `projects/<Project ID>/locations/<Location ID>/agent/intents/<Intent + * ID>`. + *+ * + *string intent_v2 = 2;
+ * + * @param value The bytes for intentV2 to set. + * @return This builder for chaining. + */ + public Builder setIntentV2Bytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + intentCase_ = 2; + intent_ = value; + onChanged(); + return this; + } + + private java.lang.Object description_ = ""; + /** + * + * + *+ * Human readable description for better understanding an intent like its + * scope, content, result etc. Maximum character limit: 140 characters. + *+ * + *string description = 5;
+ * + * @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; + } + } + /** + * + * + *+ * Human readable description for better understanding an intent like its + * scope, content, result etc. Maximum character limit: 140 characters. + *+ * + *string description = 5;
+ * + * @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; + } + } + /** + * + * + *+ * Human readable description for better understanding an intent like its + * scope, content, result etc. Maximum character limit: 140 characters. + *+ * + *string description = 5;
+ * + * @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; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *+ * Human readable description for better understanding an intent like its + * scope, content, result etc. Maximum character limit: 140 characters. + *+ * + *string description = 5;
+ * + * @return This builder for chaining. + */ + public Builder clearDescription() { + description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *+ * Human readable description for better understanding an intent like its + * scope, content, result etc. Maximum character limit: 140 characters. + *+ * + *string description = 5;
+ * + * @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; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + @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.v2beta1.IntentSuggestion) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.IntentSuggestion) + private static final com.google.cloud.dialogflow.v2beta1.IntentSuggestion DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2beta1.IntentSuggestion(); + } + + public static com.google.cloud.dialogflow.v2beta1.IntentSuggestion getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.ParserPARSER = + new com.google.protobuf.AbstractParser () { + @java.lang.Override + public IntentSuggestion parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + 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.v2beta1.IntentSuggestion getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/IntentSuggestionOrBuilder.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/IntentSuggestionOrBuilder.java new file mode 100644 index 000000000000..71485de1cbf6 --- /dev/null +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/IntentSuggestionOrBuilder.java @@ -0,0 +1,125 @@ +/* + * Copyright 2023 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/v2beta1/participant.proto + +package com.google.cloud.dialogflow.v2beta1; + +public interface IntentSuggestionOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2beta1.IntentSuggestion) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + * + * The display name of the intent. + *+ * + *string display_name = 1;
+ * + * @return The displayName. + */ + java.lang.String getDisplayName(); + /** + * + * + *+ * The display name of the intent. + *+ * + *string display_name = 1;
+ * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); + + /** + * + * + *+ * The unique identifier of this + * [intent][google.cloud.dialogflow.v2beta1.Intent]. Format: + * `projects/<Project ID>/locations/<Location ID>/agent/intents/<Intent + * ID>`. + *+ * + *string intent_v2 = 2;
+ * + * @return Whether the intentV2 field is set. + */ + boolean hasIntentV2(); + /** + * + * + *+ * The unique identifier of this + * [intent][google.cloud.dialogflow.v2beta1.Intent]. Format: + * `projects/<Project ID>/locations/<Location ID>/agent/intents/<Intent + * ID>`. + *+ * + *string intent_v2 = 2;
+ * + * @return The intentV2. + */ + java.lang.String getIntentV2(); + /** + * + * + *+ * The unique identifier of this + * [intent][google.cloud.dialogflow.v2beta1.Intent]. Format: + * `projects/<Project ID>/locations/<Location ID>/agent/intents/<Intent + * ID>`. + *+ * + *string intent_v2 = 2;
+ * + * @return The bytes for intentV2. + */ + com.google.protobuf.ByteString getIntentV2Bytes(); + + /** + * + * + *+ * Human readable description for better understanding an intent like its + * scope, content, result etc. Maximum character limit: 140 characters. + *+ * + *string description = 5;
+ * + * @return The description. + */ + java.lang.String getDescription(); + /** + * + * + *+ * Human readable description for better understanding an intent like its + * scope, content, result etc. Maximum character limit: 140 characters. + *+ * + *string description = 5;
+ * + * @return The bytes for description. + */ + com.google.protobuf.ByteString getDescriptionBytes(); + + com.google.cloud.dialogflow.v2beta1.IntentSuggestion.IntentCase getIntentCase(); +} diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ListAnswerRecordsRequest.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ListAnswerRecordsRequest.java index d3fdddc20cd6..af0f8d297b9f 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ListAnswerRecordsRequest.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ListAnswerRecordsRequest.java @@ -137,7 +137,7 @@ public com.google.protobuf.ByteString getParentBytes() { *string filter = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL];
* * @deprecated google.cloud.dialogflow.v2beta1.ListAnswerRecordsRequest.filter is deprecated. See - * google/cloud/dialogflow/v2beta1/answer_record.proto;l=299 + * google/cloud/dialogflow/v2beta1/answer_record.proto;l=303 * @return The filter. */ @java.lang.Override @@ -166,7 +166,7 @@ public java.lang.String getFilter() { *string filter = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL];
* * @deprecated google.cloud.dialogflow.v2beta1.ListAnswerRecordsRequest.filter is deprecated. See - * google/cloud/dialogflow/v2beta1/answer_record.proto;l=299 + * google/cloud/dialogflow/v2beta1/answer_record.proto;l=303 * @return The bytes for filter. */ @java.lang.Override @@ -807,7 +807,7 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { *string filter = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL];
* * @deprecated google.cloud.dialogflow.v2beta1.ListAnswerRecordsRequest.filter is deprecated. - * See google/cloud/dialogflow/v2beta1/answer_record.proto;l=299 + * See google/cloud/dialogflow/v2beta1/answer_record.proto;l=303 * @return The filter. */ @java.lang.Deprecated @@ -835,7 +835,7 @@ public java.lang.String getFilter() { *string filter = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL];
* * @deprecated google.cloud.dialogflow.v2beta1.ListAnswerRecordsRequest.filter is deprecated. - * See google/cloud/dialogflow/v2beta1/answer_record.proto;l=299 + * See google/cloud/dialogflow/v2beta1/answer_record.proto;l=303 * @return The bytes for filter. */ @java.lang.Deprecated @@ -863,7 +863,7 @@ public com.google.protobuf.ByteString getFilterBytes() { *string filter = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL];
* * @deprecated google.cloud.dialogflow.v2beta1.ListAnswerRecordsRequest.filter is deprecated. - * See google/cloud/dialogflow/v2beta1/answer_record.proto;l=299 + * See google/cloud/dialogflow/v2beta1/answer_record.proto;l=303 * @param value The filter to set. * @return This builder for chaining. */ @@ -890,7 +890,7 @@ public Builder setFilter(java.lang.String value) { *string filter = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL];
* * @deprecated google.cloud.dialogflow.v2beta1.ListAnswerRecordsRequest.filter is deprecated. - * See google/cloud/dialogflow/v2beta1/answer_record.proto;l=299 + * See google/cloud/dialogflow/v2beta1/answer_record.proto;l=303 * @return This builder for chaining. */ @java.lang.Deprecated @@ -913,7 +913,7 @@ public Builder clearFilter() { *string filter = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL];
* * @deprecated google.cloud.dialogflow.v2beta1.ListAnswerRecordsRequest.filter is deprecated. - * See google/cloud/dialogflow/v2beta1/answer_record.proto;l=299 + * See google/cloud/dialogflow/v2beta1/answer_record.proto;l=303 * @param value The bytes for filter to set. * @return This builder for chaining. */ diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ListAnswerRecordsRequestOrBuilder.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ListAnswerRecordsRequestOrBuilder.java index 64ed14f20919..fa4cf0afbb9b 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ListAnswerRecordsRequestOrBuilder.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ListAnswerRecordsRequestOrBuilder.java @@ -65,7 +65,7 @@ public interface ListAnswerRecordsRequestOrBuilder *string filter = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL];
* * @deprecated google.cloud.dialogflow.v2beta1.ListAnswerRecordsRequest.filter is deprecated. See - * google/cloud/dialogflow/v2beta1/answer_record.proto;l=299 + * google/cloud/dialogflow/v2beta1/answer_record.proto;l=303 * @return The filter. */ @java.lang.Deprecated @@ -83,7 +83,7 @@ public interface ListAnswerRecordsRequestOrBuilder *string filter = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL];
* * @deprecated google.cloud.dialogflow.v2beta1.ListAnswerRecordsRequest.filter is deprecated. See - * google/cloud/dialogflow/v2beta1/answer_record.proto;l=299 + * google/cloud/dialogflow/v2beta1/answer_record.proto;l=303 * @return The bytes for filter. */ @java.lang.Deprecated diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ListEnvironmentsRequest.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ListEnvironmentsRequest.java index 5c4f6e3afd4c..01f7d3b0078d 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ListEnvironmentsRequest.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ListEnvironmentsRequest.java @@ -74,8 +74,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { ** Required. The agent to list all environments from. * Format: - * - `projects/<Project Number / ID>/agent` - * - `projects/<Project Number / ID>/locations/<Location ID>/agent` + * - `projects/<Project ID>/agent` + * - `projects/<Project ID>/locations/<Location ID>/agent` ** *@@ -102,8 +102,8 @@ public java.lang.String getParent() { *
* Required. The agent to list all environments from. * Format: - * - `projects/<Project Number / ID>/agent` - * - `projects/<Project Number / ID>/locations/<Location ID>/agent` + * - `projects/<Project ID>/agent` + * - `projects/<Project ID>/locations/<Location ID>/agent` ** *@@ -592,8 +592,8 @@ public Builder mergeFrom( *
* Required. The agent to list all environments from. * Format: - * - `projects/<Project Number / ID>/agent` - * - `projects/<Project Number / ID>/locations/<Location ID>/agent` + * - `projects/<Project ID>/agent` + * - `projects/<Project ID>/locations/<Location ID>/agent` ** *@@ -619,8 +619,8 @@ public java.lang.String getParent() { *
* Required. The agent to list all environments from. * Format: - * - `projects/<Project Number / ID>/agent` - * - `projects/<Project Number / ID>/locations/<Location ID>/agent` + * - `projects/<Project ID>/agent` + * - `projects/<Project ID>/locations/<Location ID>/agent` ** *@@ -646,8 +646,8 @@ public com.google.protobuf.ByteString getParentBytes() { *
* Required. The agent to list all environments from. * Format: - * - `projects/<Project Number / ID>/agent` - * - `projects/<Project Number / ID>/locations/<Location ID>/agent` + * - `projects/<Project ID>/agent` + * - `projects/<Project ID>/locations/<Location ID>/agent` ** *@@ -672,8 +672,8 @@ public Builder setParent(java.lang.String value) { *
* Required. The agent to list all environments from. * Format: - * - `projects/<Project Number / ID>/agent` - * - `projects/<Project Number / ID>/locations/<Location ID>/agent` + * - `projects/<Project ID>/agent` + * - `projects/<Project ID>/locations/<Location ID>/agent` ** *@@ -694,8 +694,8 @@ public Builder clearParent() { *
* Required. The agent to list all environments from. * Format: - * - `projects/<Project Number / ID>/agent` - * - `projects/<Project Number / ID>/locations/<Location ID>/agent` + * - `projects/<Project ID>/agent` + * - `projects/<Project ID>/locations/<Location ID>/agent` ** *diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ListEnvironmentsRequestOrBuilder.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ListEnvironmentsRequestOrBuilder.java index 06d3c25937aa..64e42a1c0e1c 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ListEnvironmentsRequestOrBuilder.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ListEnvironmentsRequestOrBuilder.java @@ -29,8 +29,8 @@ public interface ListEnvironmentsRequestOrBuilder *
* Required. The agent to list all environments from. * Format: - * - `projects/<Project Number / ID>/agent` - * - `projects/<Project Number / ID>/locations/<Location ID>/agent` + * - `projects/<Project ID>/agent` + * - `projects/<Project ID>/locations/<Location ID>/agent` ** *@@ -46,8 +46,8 @@ public interface ListEnvironmentsRequestOrBuilder *
* Required. The agent to list all environments from. * Format: - * - `projects/<Project Number / ID>/agent` - * - `projects/<Project Number / ID>/locations/<Location ID>/agent` + * - `projects/<Project ID>/agent` + * - `projects/<Project ID>/locations/<Location ID>/agent` ** *diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/Participant.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/Participant.java index 594b3ede8a41..299ab043f433 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/Participant.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/Participant.java @@ -380,12 +380,13 @@ public com.google.cloud.dialogflow.v2beta1.Participant.Role getRole() { * Dialogflow will update * [Participant.obfuscated_external_user_id][google.cloud.dialogflow.v2beta1.Participant.obfuscated_external_user_id]. * - * Dialogflow uses this user id for following purposes: - * 1) Billing and measurement. If user with the same - * obfuscated_external_user_id is created in a later conversation, dialogflow - * will know it's the same user. 2) Agent assist suggestion personalization. - * For example, Dialogflow can use it to provide personalized smart reply - * suggestions for this user. + * Dialogflow uses this user id for billing and measurement. If a user with + * the same obfuscated_external_user_id is created in a later conversation, + * Dialogflow will know it's the same user. + * + * Dialogflow also uses this user id for Agent Assist suggestion + * personalization. For example, Dialogflow can use it to provide personalized + * smart reply suggestions for this user. * * Note: * @@ -434,12 +435,13 @@ public java.lang.String getObfuscatedExternalUserId() { * Dialogflow will update * [Participant.obfuscated_external_user_id][google.cloud.dialogflow.v2beta1.Participant.obfuscated_external_user_id]. * - * Dialogflow uses this user id for following purposes: - * 1) Billing and measurement. If user with the same - * obfuscated_external_user_id is created in a later conversation, dialogflow - * will know it's the same user. 2) Agent assist suggestion personalization. - * For example, Dialogflow can use it to provide personalized smart reply - * suggestions for this user. + * Dialogflow uses this user id for billing and measurement. If a user with + * the same obfuscated_external_user_id is created in a later conversation, + * Dialogflow will know it's the same user. + * + * Dialogflow also uses this user id for Agent Assist suggestion + * personalization. For example, Dialogflow can use it to provide personalized + * smart reply suggestions for this user. * * Note: * @@ -1348,12 +1350,13 @@ public Builder clearRole() { * Dialogflow will update * [Participant.obfuscated_external_user_id][google.cloud.dialogflow.v2beta1.Participant.obfuscated_external_user_id]. * - * Dialogflow uses this user id for following purposes: - * 1) Billing and measurement. If user with the same - * obfuscated_external_user_id is created in a later conversation, dialogflow - * will know it's the same user. 2) Agent assist suggestion personalization. - * For example, Dialogflow can use it to provide personalized smart reply - * suggestions for this user. + * Dialogflow uses this user id for billing and measurement. If a user with + * the same obfuscated_external_user_id is created in a later conversation, + * Dialogflow will know it's the same user. + * + * Dialogflow also uses this user id for Agent Assist suggestion + * personalization. For example, Dialogflow can use it to provide personalized + * smart reply suggestions for this user. * * Note: * @@ -1402,12 +1405,13 @@ public java.lang.String getObfuscatedExternalUserId() { * Dialogflow will update * [Participant.obfuscated_external_user_id][google.cloud.dialogflow.v2beta1.Participant.obfuscated_external_user_id]. * - * Dialogflow uses this user id for following purposes: - * 1) Billing and measurement. If user with the same - * obfuscated_external_user_id is created in a later conversation, dialogflow - * will know it's the same user. 2) Agent assist suggestion personalization. - * For example, Dialogflow can use it to provide personalized smart reply - * suggestions for this user. + * Dialogflow uses this user id for billing and measurement. If a user with + * the same obfuscated_external_user_id is created in a later conversation, + * Dialogflow will know it's the same user. + * + * Dialogflow also uses this user id for Agent Assist suggestion + * personalization. For example, Dialogflow can use it to provide personalized + * smart reply suggestions for this user. * * Note: * @@ -1456,12 +1460,13 @@ public com.google.protobuf.ByteString getObfuscatedExternalUserIdBytes() { * Dialogflow will update * [Participant.obfuscated_external_user_id][google.cloud.dialogflow.v2beta1.Participant.obfuscated_external_user_id]. * - * Dialogflow uses this user id for following purposes: - * 1) Billing and measurement. If user with the same - * obfuscated_external_user_id is created in a later conversation, dialogflow - * will know it's the same user. 2) Agent assist suggestion personalization. - * For example, Dialogflow can use it to provide personalized smart reply - * suggestions for this user. + * Dialogflow uses this user id for billing and measurement. If a user with + * the same obfuscated_external_user_id is created in a later conversation, + * Dialogflow will know it's the same user. + * + * Dialogflow also uses this user id for Agent Assist suggestion + * personalization. For example, Dialogflow can use it to provide personalized + * smart reply suggestions for this user. * * Note: * @@ -1509,12 +1514,13 @@ public Builder setObfuscatedExternalUserId(java.lang.String value) { * Dialogflow will update * [Participant.obfuscated_external_user_id][google.cloud.dialogflow.v2beta1.Participant.obfuscated_external_user_id]. * - * Dialogflow uses this user id for following purposes: - * 1) Billing and measurement. If user with the same - * obfuscated_external_user_id is created in a later conversation, dialogflow - * will know it's the same user. 2) Agent assist suggestion personalization. - * For example, Dialogflow can use it to provide personalized smart reply - * suggestions for this user. + * Dialogflow uses this user id for billing and measurement. If a user with + * the same obfuscated_external_user_id is created in a later conversation, + * Dialogflow will know it's the same user. + * + * Dialogflow also uses this user id for Agent Assist suggestion + * personalization. For example, Dialogflow can use it to provide personalized + * smart reply suggestions for this user. * * Note: * @@ -1558,12 +1564,13 @@ public Builder clearObfuscatedExternalUserId() { * Dialogflow will update * [Participant.obfuscated_external_user_id][google.cloud.dialogflow.v2beta1.Participant.obfuscated_external_user_id]. * - * Dialogflow uses this user id for following purposes: - * 1) Billing and measurement. If user with the same - * obfuscated_external_user_id is created in a later conversation, dialogflow - * will know it's the same user. 2) Agent assist suggestion personalization. - * For example, Dialogflow can use it to provide personalized smart reply - * suggestions for this user. + * Dialogflow uses this user id for billing and measurement. If a user with + * the same obfuscated_external_user_id is created in a later conversation, + * Dialogflow will know it's the same user. + * + * Dialogflow also uses this user id for Agent Assist suggestion + * personalization. For example, Dialogflow can use it to provide personalized + * smart reply suggestions for this user. * * Note: * diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ParticipantOrBuilder.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ParticipantOrBuilder.java index 548fe6677359..120a02c94430 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ParticipantOrBuilder.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ParticipantOrBuilder.java @@ -105,12 +105,13 @@ public interface ParticipantOrBuilder * Dialogflow will update * [Participant.obfuscated_external_user_id][google.cloud.dialogflow.v2beta1.Participant.obfuscated_external_user_id]. * - * Dialogflow uses this user id for following purposes: - * 1) Billing and measurement. If user with the same - * obfuscated_external_user_id is created in a later conversation, dialogflow - * will know it's the same user. 2) Agent assist suggestion personalization. - * For example, Dialogflow can use it to provide personalized smart reply - * suggestions for this user. + * Dialogflow uses this user id for billing and measurement. If a user with + * the same obfuscated_external_user_id is created in a later conversation, + * Dialogflow will know it's the same user. + * + * Dialogflow also uses this user id for Agent Assist suggestion + * personalization. For example, Dialogflow can use it to provide personalized + * smart reply suggestions for this user. * * Note: * @@ -148,12 +149,13 @@ public interface ParticipantOrBuilder * Dialogflow will update * [Participant.obfuscated_external_user_id][google.cloud.dialogflow.v2beta1.Participant.obfuscated_external_user_id]. * - * Dialogflow uses this user id for following purposes: - * 1) Billing and measurement. If user with the same - * obfuscated_external_user_id is created in a later conversation, dialogflow - * will know it's the same user. 2) Agent assist suggestion personalization. - * For example, Dialogflow can use it to provide personalized smart reply - * suggestions for this user. + * Dialogflow uses this user id for billing and measurement. If a user with + * the same obfuscated_external_user_id is created in a later conversation, + * Dialogflow will know it's the same user. + * + * Dialogflow also uses this user id for Agent Assist suggestion + * personalization. For example, Dialogflow can use it to provide personalized + * smart reply suggestions for this user. * * Note: * diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ParticipantProto.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ParticipantProto.java index 482c246cd9ab..1eecd7000da8 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ParticipantProto.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ParticipantProto.java @@ -71,6 +71,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_dialogflow_v2beta1_AutomatedAgentReply_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_dialogflow_v2beta1_AutomatedAgentReply_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2beta1_SuggestionInput_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2beta1_SuggestionInput_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2beta1_IntentInput_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2beta1_IntentInput_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_dialogflow_v2beta1_SuggestionFeature_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -135,6 +143,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_dialogflow_v2beta1_SmartReplyAnswer_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_dialogflow_v2beta1_SmartReplyAnswer_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2beta1_IntentSuggestion_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2beta1_IntentSuggestion_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2beta1_DialogflowAssistAnswer_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2beta1_DialogflowAssistAnswer_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_dialogflow_v2beta1_SuggestionResult_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -163,6 +179,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_dialogflow_v2beta1_SuggestSmartRepliesResponse_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_dialogflow_v2beta1_SuggestSmartRepliesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2beta1_SuggestDialogflowAssistsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2beta1_SuggestDialogflowAssistsResponse_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_dialogflow_v2beta1_Suggestion_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -318,291 +338,318 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\001(\t\"]\n\027AutomatedAgentReplyType\022*\n&AUTOMA" + "TED_AGENT_REPLY_TYPE_UNSPECIFIED\020\000\022\013\n\007PA" + "RTIAL\020\001\022\t\n\005FINAL\020\002B\n\n\010responseB\007\n\005match\"" - + "\312\001\n\021SuggestionFeature\022E\n\004type\030\001 \001(\01627.go" - + "ogle.cloud.dialogflow.v2beta1.Suggestion" - + "Feature.Type\"n\n\004Type\022\024\n\020TYPE_UNSPECIFIED" - + "\020\000\022\026\n\022ARTICLE_SUGGESTION\020\001\022\007\n\003FAQ\020\002\022\017\n\013S" - + "MART_REPLY\020\003\022\036\n\032CONVERSATION_SUMMARIZATI" - + "ON\020\010\"\322\001\n\025AssistQueryParameters\022x\n\032docume" - + "nts_metadata_filters\030\001 \003(\0132T.google.clou" - + "d.dialogflow.v2beta1.AssistQueryParamete" - + "rs.DocumentsMetadataFiltersEntry\032?\n\035Docu" - + "mentsMetadataFiltersEntry\022\013\n\003key\030\001 \001(\t\022\r" - + "\n\005value\030\002 \001(\t:\0028\001\"\260\005\n\025AnalyzeContentRequ" - + "est\022C\n\013participant\030\001 \001(\tB.\342A\001\002\372A\'\n%dialo" - + "gflow.googleapis.com/Participant\022@\n\ntext" - + "_input\030\006 \001(\0132*.google.cloud.dialogflow.v" - + "2beta1.TextInputH\000\022B\n\013audio_input\030\007 \001(\0132" - + "+.google.cloud.dialogflow.v2beta1.AudioI" - + "nputH\000\022B\n\013event_input\030\010 \001(\0132+.google.clo" - + "ud.dialogflow.v2beta1.EventInputH\000\022N\n\022re" - + "ply_audio_config\030\005 \001(\01322.google.cloud.di" - + "alogflow.v2beta1.OutputAudioConfig\022F\n\014qu" - + "ery_params\030\t \001(\01320.google.cloud.dialogfl" - + "ow.v2beta1.QueryParameters\022S\n\023assist_que" - + "ry_params\030\016 \001(\01326.google.cloud.dialogflo" - + "w.v2beta1.AssistQueryParameters\022.\n\rcx_pa" - + "rameters\030\022 \001(\0132\027.google.protobuf.Struct\022" - + "\027\n\017cx_current_page\030\024 \001(\t\0225\n\021message_send" - + "_time\030\n \001(\0132\032.google.protobuf.Timestamp\022" - + "\022\n\nrequest_id\030\013 \001(\tB\007\n\005input\",\n\016DtmfPara" - + "meters\022\032\n\022accepts_dtmf_input\030\001 \001(\010\"\374\003\n\026A" - + "nalyzeContentResponse\022\022\n\nreply_text\030\001 \001(" - + "\t\022A\n\013reply_audio\030\002 \001(\0132,.google.cloud.di" - + "alogflow.v2beta1.OutputAudio\022S\n\025automate" - + "d_agent_reply\030\003 \001(\01324.google.cloud.dialo" - + "gflow.v2beta1.AutomatedAgentReply\0229\n\007mes" - + "sage\030\005 \001(\0132(.google.cloud.dialogflow.v2b" - + "eta1.Message\022Y\n\036human_agent_suggestion_r" - + "esults\030\006 \003(\01321.google.cloud.dialogflow.v" - + "2beta1.SuggestionResult\022V\n\033end_user_sugg" - + "estion_results\030\007 \003(\01321.google.cloud.dial" - + "ogflow.v2beta1.SuggestionResult\022H\n\017dtmf_" - + "parameters\030\t \001(\0132/.google.cloud.dialogfl" - + "ow.v2beta1.DtmfParameters\"(\n\017InputTextCo" - + "nfig\022\025\n\rlanguage_code\030\001 \001(\t\"\210\006\n\036Streamin" - + "gAnalyzeContentRequest\022C\n\013participant\030\001 " - + "\001(\tB.\342A\001\002\372A\'\n%dialogflow.googleapis.com/" - + "Participant\022I\n\014audio_config\030\002 \001(\01321.goog" - + "le.cloud.dialogflow.v2beta1.InputAudioCo" - + "nfigH\000\022G\n\013text_config\030\003 \001(\01320.google.clo" - + "ud.dialogflow.v2beta1.InputTextConfigH\000\022" - + "N\n\022reply_audio_config\030\004 \001(\01322.google.clo" - + "ud.dialogflow.v2beta1.OutputAudioConfig\022" - + "\025\n\013input_audio\030\005 \001(\014H\001\022\024\n\ninput_text\030\006 \001" - + "(\tH\001\022J\n\ninput_dtmf\030\t \001(\01324.google.cloud." - + "dialogflow.v2beta1.TelephonyDtmfEventsH\001" - + "\022F\n\014query_params\030\007 \001(\01320.google.cloud.di" - + "alogflow.v2beta1.QueryParameters\022S\n\023assi" - + "st_query_params\030\010 \001(\01326.google.cloud.dia" - + "logflow.v2beta1.AssistQueryParameters\022.\n" - + "\rcx_parameters\030\r \001(\0132\027.google.protobuf.S" - + "truct\022\027\n\017cx_current_page\030\017 \001(\t\022,\n$enable" - + "_partial_automated_agent_reply\030\014 \001(\010\022\035\n\025" - + "enable_debugging_info\030\023 \001(\010B\010\n\006configB\007\n" - + "\005input\"\267\005\n\037StreamingAnalyzeContentRespon" - + "se\022W\n\022recognition_result\030\001 \001(\0132;.google." - + "cloud.dialogflow.v2beta1.StreamingRecogn" - + "itionResult\022\022\n\nreply_text\030\002 \001(\t\022A\n\013reply" - + "_audio\030\003 \001(\0132,.google.cloud.dialogflow.v" - + "2beta1.OutputAudio\022S\n\025automated_agent_re" - + "ply\030\004 \001(\01324.google.cloud.dialogflow.v2be" - + "ta1.AutomatedAgentReply\0229\n\007message\030\006 \001(\013" - + "2(.google.cloud.dialogflow.v2beta1.Messa" - + "ge\022Y\n\036human_agent_suggestion_results\030\007 \003" - + "(\01321.google.cloud.dialogflow.v2beta1.Sug" - + "gestionResult\022V\n\033end_user_suggestion_res" - + "ults\030\010 \003(\01321.google.cloud.dialogflow.v2b" - + "eta1.SuggestionResult\022H\n\017dtmf_parameters" - + "\030\n \001(\0132/.google.cloud.dialogflow.v2beta1" - + ".DtmfParameters\022W\n\016debugging_info\030\013 \001(\0132" - + "?.google.cloud.dialogflow.v2beta1.CloudC" - + "onversationDebuggingInfo\"j\n\024AnnotatedMes" - + "sagePart\022\014\n\004text\030\001 \001(\t\022\023\n\013entity_type\030\002 " - + "\001(\t\022/\n\017formatted_value\030\003 \001(\0132\026.google.pr" - + "otobuf.Value\"s\n\021MessageAnnotation\022D\n\005par" - + "ts\030\001 \003(\01325.google.cloud.dialogflow.v2bet" - + "a1.AnnotatedMessagePart\022\030\n\020contain_entit" - + "ies\030\002 \001(\010\"\325\001\n\rArticleAnswer\022\r\n\005title\030\001 \001" - + "(\t\022\013\n\003uri\030\002 \001(\t\022\020\n\010snippets\030\003 \003(\t\022N\n\010met" - + "adata\030\005 \003(\0132<.google.cloud.dialogflow.v2" - + "beta1.ArticleAnswer.MetadataEntry\022\025\n\rans" - + "wer_record\030\006 \001(\t\032/\n\rMetadataEntry\022\013\n\003key" - + "\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\345\001\n\tFaqAnswer\022" - + "\016\n\006answer\030\001 \001(\t\022\022\n\nconfidence\030\002 \001(\002\022\020\n\010q" - + "uestion\030\003 \001(\t\022\016\n\006source\030\004 \001(\t\022J\n\010metadat" - + "a\030\005 \003(\01328.google.cloud.dialogflow.v2beta" - + "1.FaqAnswer.MetadataEntry\022\025\n\ranswer_reco" - + "rd\030\006 \001(\t\032/\n\rMetadataEntry\022\013\n\003key\030\001 \001(\t\022\r" - + "\n\005value\030\002 \001(\t:\0028\001\"y\n\020SmartReplyAnswer\022\r\n" - + "\005reply\030\001 \001(\t\022\022\n\nconfidence\030\002 \001(\002\022B\n\ransw" - + "er_record\030\003 \001(\tB+\372A(\n&dialogflow.googlea" - + "pis.com/AnswerRecord\"\371\002\n\020SuggestionResul" - + "t\022#\n\005error\030\001 \001(\0132\022.google.rpc.StatusH\000\022]" - + "\n\031suggest_articles_response\030\002 \001(\01328.goog" - + "le.cloud.dialogflow.v2beta1.SuggestArtic" - + "lesResponseH\000\022b\n\034suggest_faq_answers_res" - + "ponse\030\003 \001(\0132:.google.cloud.dialogflow.v2" - + "beta1.SuggestFaqAnswersResponseH\000\022f\n\036sug" - + "gest_smart_replies_response\030\004 \001(\0132<.goog" - + "le.cloud.dialogflow.v2beta1.SuggestSmart" - + "RepliesResponseH\000B\025\n\023suggestion_response" - + "\"\223\002\n\026SuggestArticlesRequest\022>\n\006parent\030\001 " - + "\001(\tB.\342A\001\002\372A\'\n%dialogflow.googleapis.com/" - + "Participant\022B\n\016latest_message\030\002 \001(\tB*\342A\001" - + "\001\372A#\n!dialogflow.googleapis.com/Message\022" - + "\032\n\014context_size\030\003 \001(\005B\004\342A\001\001\022Y\n\023assist_qu" - + "ery_params\030\004 \001(\01326.google.cloud.dialogfl" - + "ow.v2beta1.AssistQueryParametersB\004\342A\001\001\"\220" - + "\001\n\027SuggestArticlesResponse\022G\n\017article_an" - + "swers\030\001 \003(\0132..google.cloud.dialogflow.v2" - + "beta1.ArticleAnswer\022\026\n\016latest_message\030\002 " - + "\001(\t\022\024\n\014context_size\030\003 \001(\005\"\225\002\n\030SuggestFaq" - + "AnswersRequest\022>\n\006parent\030\001 \001(\tB.\342A\001\002\372A\'\n" - + "%dialogflow.googleapis.com/Participant\022B" - + "\n\016latest_message\030\002 \001(\tB*\342A\001\001\372A#\n!dialogf" - + "low.googleapis.com/Message\022\032\n\014context_si" - + "ze\030\003 \001(\005B\004\342A\001\001\022Y\n\023assist_query_params\030\004 " - + "\001(\01326.google.cloud.dialogflow.v2beta1.As" - + "sistQueryParametersB\004\342A\001\001\"\212\001\n\031SuggestFaq" - + "AnswersResponse\022?\n\013faq_answers\030\001 \003(\0132*.g" - + "oogle.cloud.dialogflow.v2beta1.FaqAnswer" - + "\022\026\n\016latest_message\030\002 \001(\t\022\024\n\014context_size" - + "\030\003 \001(\005\"\372\001\n\032SuggestSmartRepliesRequest\022>\n" - + "\006parent\030\001 \001(\tB.\342A\001\002\372A\'\n%dialogflow.googl" - + "eapis.com/Participant\022F\n\022current_text_in" - + "put\030\004 \001(\0132*.google.cloud.dialogflow.v2be" - + "ta1.TextInput\022>\n\016latest_message\030\002 \001(\tB&\372" + + "\334\001\n\017SuggestionInput\022\025\n\ranswer_record\030\001 \001" + + "(\t\022A\n\rtext_override\030\002 \001(\0132*.google.cloud" + + ".dialogflow.v2beta1.TextInput\022+\n\nparamet" + + "ers\030\004 \001(\0132\027.google.protobuf.Struct\022B\n\014in" + + "tent_input\030\006 \001(\0132,.google.cloud.dialogfl" + + "ow.v2beta1.IntentInput\"@\n\013IntentInput\022\024\n" + + "\006intent\030\001 \001(\tB\004\342A\001\002\022\033\n\rlanguage_code\030\003 \001" + + "(\tB\004\342A\001\002\"\342\001\n\021SuggestionFeature\022E\n\004type\030\001" + + " \001(\01627.google.cloud.dialogflow.v2beta1.S" + + "uggestionFeature.Type\"\205\001\n\004Type\022\024\n\020TYPE_U" + + "NSPECIFIED\020\000\022\026\n\022ARTICLE_SUGGESTION\020\001\022\007\n\003" + + "FAQ\020\002\022\017\n\013SMART_REPLY\020\003\022\025\n\021DIALOGFLOW_ASS" + + "IST\020\004\022\036\n\032CONVERSATION_SUMMARIZATION\020\010\"\322\001" + + "\n\025AssistQueryParameters\022x\n\032documents_met" + + "adata_filters\030\001 \003(\0132T.google.cloud.dialo" + + "gflow.v2beta1.AssistQueryParameters.Docu" + + "mentsMetadataFiltersEntry\032?\n\035DocumentsMe" + + "tadataFiltersEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value" + + "\030\002 \001(\t:\0028\001\"\376\005\n\025AnalyzeContentRequest\022C\n\013" + + "participant\030\001 \001(\tB.\342A\001\002\372A\'\n%dialogflow.g" + + "oogleapis.com/Participant\022@\n\ntext_input\030" + + "\006 \001(\0132*.google.cloud.dialogflow.v2beta1." + + "TextInputH\000\022B\n\013audio_input\030\007 \001(\0132+.googl" + + "e.cloud.dialogflow.v2beta1.AudioInputH\000\022" + + "B\n\013event_input\030\010 \001(\0132+.google.cloud.dial" + + "ogflow.v2beta1.EventInputH\000\022L\n\020suggestio" + + "n_input\030\014 \001(\01320.google.cloud.dialogflow." + + "v2beta1.SuggestionInputH\000\022N\n\022reply_audio" + + "_config\030\005 \001(\01322.google.cloud.dialogflow." + + "v2beta1.OutputAudioConfig\022F\n\014query_param" + + "s\030\t \001(\01320.google.cloud.dialogflow.v2beta" + + "1.QueryParameters\022S\n\023assist_query_params" + + "\030\016 \001(\01326.google.cloud.dialogflow.v2beta1" + + ".AssistQueryParameters\022.\n\rcx_parameters\030" + + "\022 \001(\0132\027.google.protobuf.Struct\022\027\n\017cx_cur" + + "rent_page\030\024 \001(\t\0225\n\021message_send_time\030\n \001" + + "(\0132\032.google.protobuf.Timestamp\022\022\n\nreques" + + "t_id\030\013 \001(\tB\007\n\005input\",\n\016DtmfParameters\022\032\n" + + "\022accepts_dtmf_input\030\001 \001(\010\"\374\003\n\026AnalyzeCon" + + "tentResponse\022\022\n\nreply_text\030\001 \001(\t\022A\n\013repl" + + "y_audio\030\002 \001(\0132,.google.cloud.dialogflow." + + "v2beta1.OutputAudio\022S\n\025automated_agent_r" + + "eply\030\003 \001(\01324.google.cloud.dialogflow.v2b" + + "eta1.AutomatedAgentReply\0229\n\007message\030\005 \001(" + + "\0132(.google.cloud.dialogflow.v2beta1.Mess" + + "age\022Y\n\036human_agent_suggestion_results\030\006 " + + "\003(\01321.google.cloud.dialogflow.v2beta1.Su" + + "ggestionResult\022V\n\033end_user_suggestion_re" + + "sults\030\007 \003(\01321.google.cloud.dialogflow.v2" + + "beta1.SuggestionResult\022H\n\017dtmf_parameter" + + "s\030\t \001(\0132/.google.cloud.dialogflow.v2beta" + + "1.DtmfParameters\"(\n\017InputTextConfig\022\025\n\rl" + + "anguage_code\030\001 \001(\t\"\210\006\n\036StreamingAnalyzeC" + + "ontentRequest\022C\n\013participant\030\001 \001(\tB.\342A\001\002" + + "\372A\'\n%dialogflow.googleapis.com/Participa" + + "nt\022I\n\014audio_config\030\002 \001(\01321.google.cloud." + + "dialogflow.v2beta1.InputAudioConfigH\000\022G\n" + + "\013text_config\030\003 \001(\01320.google.cloud.dialog" + + "flow.v2beta1.InputTextConfigH\000\022N\n\022reply_" + + "audio_config\030\004 \001(\01322.google.cloud.dialog" + + "flow.v2beta1.OutputAudioConfig\022\025\n\013input_" + + "audio\030\005 \001(\014H\001\022\024\n\ninput_text\030\006 \001(\tH\001\022J\n\ni" + + "nput_dtmf\030\t \001(\01324.google.cloud.dialogflo" + + "w.v2beta1.TelephonyDtmfEventsH\001\022F\n\014query" + + "_params\030\007 \001(\01320.google.cloud.dialogflow." + + "v2beta1.QueryParameters\022S\n\023assist_query_" + + "params\030\010 \001(\01326.google.cloud.dialogflow.v" + + "2beta1.AssistQueryParameters\022.\n\rcx_param" + + "eters\030\r \001(\0132\027.google.protobuf.Struct\022\027\n\017" + + "cx_current_page\030\017 \001(\t\022,\n$enable_partial_" + + "automated_agent_reply\030\014 \001(\010\022\035\n\025enable_de" + + "bugging_info\030\023 \001(\010B\010\n\006configB\007\n\005input\"\267\005" + + "\n\037StreamingAnalyzeContentResponse\022W\n\022rec" + + "ognition_result\030\001 \001(\0132;.google.cloud.dia" + + "logflow.v2beta1.StreamingRecognitionResu" + + "lt\022\022\n\nreply_text\030\002 \001(\t\022A\n\013reply_audio\030\003 " + + "\001(\0132,.google.cloud.dialogflow.v2beta1.Ou" + + "tputAudio\022S\n\025automated_agent_reply\030\004 \001(\013" + + "24.google.cloud.dialogflow.v2beta1.Autom" + + "atedAgentReply\0229\n\007message\030\006 \001(\0132(.google" + + ".cloud.dialogflow.v2beta1.Message\022Y\n\036hum" + + "an_agent_suggestion_results\030\007 \003(\01321.goog" + + "le.cloud.dialogflow.v2beta1.SuggestionRe" + + "sult\022V\n\033end_user_suggestion_results\030\010 \003(" + + "\01321.google.cloud.dialogflow.v2beta1.Sugg" + + "estionResult\022H\n\017dtmf_parameters\030\n \001(\0132/." + + "google.cloud.dialogflow.v2beta1.DtmfPara" + + "meters\022W\n\016debugging_info\030\013 \001(\0132?.google." + + "cloud.dialogflow.v2beta1.CloudConversati" + + "onDebuggingInfo\"j\n\024AnnotatedMessagePart\022" + + "\014\n\004text\030\001 \001(\t\022\023\n\013entity_type\030\002 \001(\t\022/\n\017fo" + + "rmatted_value\030\003 \001(\0132\026.google.protobuf.Va" + + "lue\"s\n\021MessageAnnotation\022D\n\005parts\030\001 \003(\0132" + + "5.google.cloud.dialogflow.v2beta1.Annota" + + "tedMessagePart\022\030\n\020contain_entities\030\002 \001(\010" + + "\"\325\001\n\rArticleAnswer\022\r\n\005title\030\001 \001(\t\022\013\n\003uri" + + "\030\002 \001(\t\022\020\n\010snippets\030\003 \003(\t\022N\n\010metadata\030\005 \003" + + "(\0132<.google.cloud.dialogflow.v2beta1.Art" + + "icleAnswer.MetadataEntry\022\025\n\ranswer_recor" + + "d\030\006 \001(\t\032/\n\rMetadataEntry\022\013\n\003key\030\001 \001(\t\022\r\n" + + "\005value\030\002 \001(\t:\0028\001\"\345\001\n\tFaqAnswer\022\016\n\006answer" + + "\030\001 \001(\t\022\022\n\nconfidence\030\002 \001(\002\022\020\n\010question\030\003" + + " \001(\t\022\016\n\006source\030\004 \001(\t\022J\n\010metadata\030\005 \003(\01328" + + ".google.cloud.dialogflow.v2beta1.FaqAnsw" + + "er.MetadataEntry\022\025\n\ranswer_record\030\006 \001(\t\032" + + "/\n\rMetadataEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002" + + " \001(\t:\0028\001\"y\n\020SmartReplyAnswer\022\r\n\005reply\030\001 " + + "\001(\t\022\022\n\nconfidence\030\002 \001(\002\022B\n\ranswer_record" + + "\030\003 \001(\tB+\372A(\n&dialogflow.googleapis.com/A" + + "nswerRecord\"\\\n\020IntentSuggestion\022\024\n\014displ" + + "ay_name\030\001 \001(\t\022\023\n\tintent_v2\030\002 \001(\tH\000\022\023\n\013de" + + "scription\030\005 \001(\tB\010\n\006intent\"\317\001\n\026Dialogflow" + + "AssistAnswer\022D\n\014query_result\030\001 \001(\0132,.goo" + + "gle.cloud.dialogflow.v2beta1.QueryResult" + + "H\000\022N\n\021intent_suggestion\030\005 \001(\01321.google.c" + + "loud.dialogflow.v2beta1.IntentSuggestion" + + "H\000\022\025\n\ranswer_record\030\002 \001(\tB\010\n\006result\"\334\004\n\020" + + "SuggestionResult\022#\n\005error\030\001 \001(\0132\022.google" + + ".rpc.StatusH\000\022]\n\031suggest_articles_respon" + + "se\030\002 \001(\01328.google.cloud.dialogflow.v2bet" + + "a1.SuggestArticlesResponseH\000\022b\n\034suggest_" + + "faq_answers_response\030\003 \001(\0132:.google.clou" + + "d.dialogflow.v2beta1.SuggestFaqAnswersRe" + + "sponseH\000\022f\n\036suggest_smart_replies_respon" + + "se\030\004 \001(\0132<.google.cloud.dialogflow.v2bet" + + "a1.SuggestSmartRepliesResponseH\000\022p\n#sugg" + + "est_dialogflow_assists_response\030\005 \001(\0132A." + + "google.cloud.dialogflow.v2beta1.SuggestD" + + "ialogflowAssistsResponseH\000\022o\n\"suggest_en" + + "tity_extraction_response\030\007 \001(\0132A.google." + + "cloud.dialogflow.v2beta1.SuggestDialogfl" + + "owAssistsResponseH\000B\025\n\023suggestion_respon" + + "se\"\223\002\n\026SuggestArticlesRequest\022>\n\006parent\030" + + "\001 \001(\tB.\342A\001\002\372A\'\n%dialogflow.googleapis.co" + + "m/Participant\022B\n\016latest_message\030\002 \001(\tB*\342" + + "A\001\001\372A#\n!dialogflow.googleapis.com/Messag" + + "e\022\032\n\014context_size\030\003 \001(\005B\004\342A\001\001\022Y\n\023assist_" + + "query_params\030\004 \001(\01326.google.cloud.dialog" + + "flow.v2beta1.AssistQueryParametersB\004\342A\001\001" + + "\"\220\001\n\027SuggestArticlesResponse\022G\n\017article_" + + "answers\030\001 \003(\0132..google.cloud.dialogflow." + + "v2beta1.ArticleAnswer\022\026\n\016latest_message\030" + + "\002 \001(\t\022\024\n\014context_size\030\003 \001(\005\"\225\002\n\030SuggestF" + + "aqAnswersRequest\022>\n\006parent\030\001 \001(\tB.\342A\001\002\372A" + + "\'\n%dialogflow.googleapis.com/Participant" + + "\022B\n\016latest_message\030\002 \001(\tB*\342A\001\001\372A#\n!dialo" + + "gflow.googleapis.com/Message\022\032\n\014context_" + + "size\030\003 \001(\005B\004\342A\001\001\022Y\n\023assist_query_params\030" + + "\004 \001(\01326.google.cloud.dialogflow.v2beta1." + + "AssistQueryParametersB\004\342A\001\001\"\212\001\n\031SuggestF" + + "aqAnswersResponse\022?\n\013faq_answers\030\001 \003(\0132*" + + ".google.cloud.dialogflow.v2beta1.FaqAnsw" + + "er\022\026\n\016latest_message\030\002 \001(\t\022\024\n\014context_si" + + "ze\030\003 \001(\005\"\372\001\n\032SuggestSmartRepliesRequest\022" + + ">\n\006parent\030\001 \001(\tB.\342A\001\002\372A\'\n%dialogflow.goo" + + "gleapis.com/Participant\022F\n\022current_text_" + + "input\030\004 \001(\0132*.google.cloud.dialogflow.v2" + + "beta1.TextInput\022>\n\016latest_message\030\002 \001(\tB" + + "&\372A#\n!dialogflow.googleapis.com/Message\022" + + "\024\n\014context_size\030\003 \001(\005\"\303\001\n\033SuggestSmartRe" + + "pliesResponse\022N\n\023smart_reply_answers\030\001 \003" + + "(\01321.google.cloud.dialogflow.v2beta1.Sma" + + "rtReplyAnswer\022>\n\016latest_message\030\002 \001(\tB&\372" + "A#\n!dialogflow.googleapis.com/Message\022\024\n" - + "\014context_size\030\003 \001(\005\"\303\001\n\033SuggestSmartRepl" - + "iesResponse\022N\n\023smart_reply_answers\030\001 \003(\013" - + "21.google.cloud.dialogflow.v2beta1.Smart" - + "ReplyAnswer\022>\n\016latest_message\030\002 \001(\tB&\372A#" - + "\n!dialogflow.googleapis.com/Message\022\024\n\014c" - + "ontext_size\030\003 \001(\005\"\304\005\n\nSuggestion\022\014\n\004name" - + "\030\001 \001(\t\022E\n\010articles\030\002 \003(\01323.google.cloud." - + "dialogflow.v2beta1.Suggestion.Article\022J\n" - + "\013faq_answers\030\004 \003(\01325.google.cloud.dialog" - + "flow.v2beta1.Suggestion.FaqAnswer\022/\n\013cre" - + "ate_time\030\005 \001(\0132\032.google.protobuf.Timesta" - + "mp\022\026\n\016latest_message\030\007 \001(\t\032\324\001\n\007Article\022\r" - + "\n\005title\030\001 \001(\t\022\013\n\003uri\030\002 \001(\t\022\020\n\010snippets\030\003" - + " \003(\t\022S\n\010metadata\030\005 \003(\0132A.google.cloud.di" - + "alogflow.v2beta1.Suggestion.Article.Meta" - + "dataEntry\022\025\n\ranswer_record\030\006 \001(\t\032/\n\rMeta" - + "dataEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028" - + "\001\032\360\001\n\tFaqAnswer\022\016\n\006answer\030\001 \001(\t\022\022\n\nconfi" - + "dence\030\002 \001(\002\022\020\n\010question\030\003 \001(\t\022\016\n\006source\030" - + "\004 \001(\t\022U\n\010metadata\030\005 \003(\0132C.google.cloud.d" - + "ialogflow.v2beta1.Suggestion.FaqAnswer.M" - + "etadataEntry\022\025\n\ranswer_record\030\006 \001(\t\032/\n\rM" - + "etadataEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t" - + ":\0028\001:\002\030\001\"c\n\026ListSuggestionsRequest\022\016\n\006pa" - + "rent\030\001 \001(\t\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_to" - + "ken\030\003 \001(\t\022\016\n\006filter\030\004 \001(\t:\002\030\001\"x\n\027ListSug" - + "gestionsResponse\022@\n\013suggestions\030\001 \003(\0132+." - + "google.cloud.dialogflow.v2beta1.Suggesti" - + "on\022\027\n\017next_page_token\030\002 \001(\t:\002\030\001\"\\\n\030Compi" - + "leSuggestionRequest\022\016\n\006parent\030\001 \001(\t\022\026\n\016l" - + "atest_message\030\002 \001(\t\022\024\n\014context_size\030\003 \001(" - + "\005:\002\030\001\"\216\001\n\031CompileSuggestionResponse\022?\n\ns" - + "uggestion\030\001 \001(\0132+.google.cloud.dialogflo" - + "w.v2beta1.Suggestion\022\026\n\016latest_message\030\002" - + " \001(\t\022\024\n\014context_size\030\003 \001(\005:\002\030\001\"\203\007\n\017Respo" - + "nseMessage\022E\n\004text\030\001 \001(\01325.google.cloud." - + "dialogflow.v2beta1.ResponseMessage.TextH" - + "\000\022*\n\007payload\030\002 \001(\0132\027.google.protobuf.Str" - + "uctH\000\022_\n\022live_agent_handoff\030\003 \001(\0132A.goog" - + "le.cloud.dialogflow.v2beta1.ResponseMess" - + "age.LiveAgentHandoffH\000\022Z\n\017end_interactio" - + "n\030\004 \001(\0132?.google.cloud.dialogflow.v2beta" - + "1.ResponseMessage.EndInteractionH\000\022R\n\013mi" - + "xed_audio\030\005 \001(\0132;.google.cloud.dialogflo" - + "w.v2beta1.ResponseMessage.MixedAudioH\000\022i" - + "\n\027telephony_transfer_call\030\006 \001(\0132F.google" - + ".cloud.dialogflow.v2beta1.ResponseMessag" - + "e.TelephonyTransferCallH\000\032\024\n\004Text\022\014\n\004tex" - + "t\030\001 \003(\t\032=\n\020LiveAgentHandoff\022)\n\010metadata\030" - + "\001 \001(\0132\027.google.protobuf.Struct\032\020\n\016EndInt" - + "eraction\032\276\001\n\nMixedAudio\022U\n\010segments\030\001 \003(" - + "\0132C.google.cloud.dialogflow.v2beta1.Resp" - + "onseMessage.MixedAudio.Segment\032Y\n\007Segmen" - + "t\022\017\n\005audio\030\001 \001(\014H\000\022\r\n\003uri\030\002 \001(\tH\000\022#\n\033all" - + "ow_playback_interruption\030\003 \001(\010B\t\n\007conten" - + "t\032N\n\025TelephonyTransferCall\022\026\n\014phone_numb" - + "er\030\001 \001(\tH\000\022\021\n\007sip_uri\030\002 \001(\tH\000B\n\n\010endpoin" - + "tB\t\n\007message2\207\033\n\014Participants\022\271\002\n\021Create" - + "Participant\0229.google.cloud.dialogflow.v2" - + "beta1.CreateParticipantRequest\032,.google." - + "cloud.dialogflow.v2beta1.Participant\"\272\001\332" - + "A\022parent,participant\202\323\344\223\002\236\001\"9/v2beta1/{p" - + "arent=projects/*/conversations/*}/partic" - + "ipants:\013participantZT\"E/v2beta1/{parent=" - + "projects/*/locations/*/conversations/*}/" - + "participants:\013participant\022\213\002\n\016GetPartici" - + "pant\0226.google.cloud.dialogflow.v2beta1.G" - + "etParticipantRequest\032,.google.cloud.dial" - + "ogflow.v2beta1.Participant\"\222\001\332A\004name\202\323\344\223" - + "\002\204\001\0229/v2beta1/{name=projects/*/conversat" - + "ions/*/participants/*}ZG\022E/v2beta1/{name" - + "=projects/*/locations/*/conversations/*/" - + "participants/*}\022\236\002\n\020ListParticipants\0228.g" - + "oogle.cloud.dialogflow.v2beta1.ListParti" - + "cipantsRequest\0329.google.cloud.dialogflow" - + ".v2beta1.ListParticipantsResponse\"\224\001\332A\006p" - + "arent\202\323\344\223\002\204\001\0229/v2beta1/{parent=projects/" - + "*/conversations/*}/participantsZG\022E/v2be" - + "ta1/{parent=projects/*/locations/*/conve" - + "rsations/*}/participants\022\326\002\n\021UpdateParti" - + "cipant\0229.google.cloud.dialogflow.v2beta1" - + ".UpdateParticipantRequest\032,.google.cloud" - + ".dialogflow.v2beta1.Participant\"\327\001\332A\027par" - + "ticipant,update_mask\202\323\344\223\002\266\0012E/v2beta1/{p" - + "articipant.name=projects/*/conversations" - + "/*/participants/*}:\013participantZ`2Q/v2be" - + "ta1/{participant.name=projects/*/locatio" - + "ns/*/conversations/*/participants/*}:\013pa" - + "rticipant\022\216\003\n\016AnalyzeContent\0226.google.cl" - + "oud.dialogflow.v2beta1.AnalyzeContentReq" - + "uest\0327.google.cloud.dialogflow.v2beta1.A" - + "nalyzeContentResponse\"\212\002\332A\026participant,t" - + "ext_input\332A\027participant,audio_input\332A\027pa" - + "rticipant,event_input\202\323\344\223\002\266\001\"O/v2beta1/{" - + "participant=projects/*/conversations/*/p" - + "articipants/*}:analyzeContent:\001*Z`\"[/v2b" - + "eta1/{participant=projects/*/locations/*" - + "/conversations/*/participants/*}:analyze" - + "Content:\001*\022\242\001\n\027StreamingAnalyzeContent\022?" - + ".google.cloud.dialogflow.v2beta1.Streami" - + "ngAnalyzeContentRequest\032@.google.cloud.d" - + "ialogflow.v2beta1.StreamingAnalyzeConten" - + "tResponse\"\000(\0010\001\022\335\002\n\017SuggestArticles\0227.go" - + "ogle.cloud.dialogflow.v2beta1.SuggestArt" - + "iclesRequest\0328.google.cloud.dialogflow.v" - + "2beta1.SuggestArticlesResponse\"\326\001\332A\006pare" - + "nt\202\323\344\223\002\306\001\"W/v2beta1/{parent=projects/*/c" - + "onversations/*/participants/*}/suggestio" - + "ns:suggestArticles:\001*Zh\"c/v2beta1/{paren" - + "t=projects/*/locations/*/conversations/*" - + "/participants/*}/suggestions:suggestArti" - + "cles:\001*\022\347\002\n\021SuggestFaqAnswers\0229.google.c" - + "loud.dialogflow.v2beta1.SuggestFaqAnswer" - + "sRequest\032:.google.cloud.dialogflow.v2bet" - + "a1.SuggestFaqAnswersResponse\"\332\001\332A\006parent" - + "\202\323\344\223\002\312\001\"Y/v2beta1/{parent=projects/*/con" - + "versations/*/participants/*}/suggestions" - + ":suggestFaqAnswers:\001*Zj\"e/v2beta1/{paren" - + "t=projects/*/locations/*/conversations/*" - + "/participants/*}/suggestions:suggestFaqA" - + "nswers:\001*\022\361\002\n\023SuggestSmartReplies\022;.goog" - + "le.cloud.dialogflow.v2beta1.SuggestSmart" - + "RepliesRequest\032<.google.cloud.dialogflow" - + ".v2beta1.SuggestSmartRepliesResponse\"\336\001\332" - + "A\006parent\202\323\344\223\002\316\001\"[/v2beta1/{parent=projec" - + "ts/*/conversations/*/participants/*}/sug" - + "gestions:suggestSmartReplies:\001*Zl\"g/v2be" - + "ta1/{parent=projects/*/locations/*/conve" - + "rsations/*/participants/*}/suggestions:s" - + "uggestSmartReplies:\001*\022\330\001\n\017ListSuggestion" - + "s\0227.google.cloud.dialogflow.v2beta1.List" - + "SuggestionsRequest\0328.google.cloud.dialog" - + "flow.v2beta1.ListSuggestionsResponse\"R\210\002" - + "\001\202\323\344\223\002I\022G/v2beta1/{parent=projects/*/con" - + "versations/*/participants/*}/suggestions" - + "\022\351\001\n\021CompileSuggestion\0229.google.cloud.di" - + "alogflow.v2beta1.CompileSuggestionReques" - + "t\032:.google.cloud.dialogflow.v2beta1.Comp" - + "ileSuggestionResponse\"]\210\002\001\202\323\344\223\002T\"O/v2bet" + + "\014context_size\030\003 \001(\005\"\254\001\n SuggestDialogflo" + + "wAssistsResponse\022Z\n\031dialogflow_assist_an" + + "swers\030\001 \003(\01327.google.cloud.dialogflow.v2" + + "beta1.DialogflowAssistAnswer\022\026\n\016latest_m" + + "essage\030\002 \001(\t\022\024\n\014context_size\030\003 \001(\005\"\304\005\n\nS" + + "uggestion\022\014\n\004name\030\001 \001(\t\022E\n\010articles\030\002 \003(" + + "\01323.google.cloud.dialogflow.v2beta1.Sugg" + + "estion.Article\022J\n\013faq_answers\030\004 \003(\01325.go" + + "ogle.cloud.dialogflow.v2beta1.Suggestion" + + ".FaqAnswer\022/\n\013create_time\030\005 \001(\0132\032.google" + + ".protobuf.Timestamp\022\026\n\016latest_message\030\007 " + + "\001(\t\032\324\001\n\007Article\022\r\n\005title\030\001 \001(\t\022\013\n\003uri\030\002 " + + "\001(\t\022\020\n\010snippets\030\003 \003(\t\022S\n\010metadata\030\005 \003(\0132" + + "A.google.cloud.dialogflow.v2beta1.Sugges" + + "tion.Article.MetadataEntry\022\025\n\ranswer_rec" + + "ord\030\006 \001(\t\032/\n\rMetadataEntry\022\013\n\003key\030\001 \001(\t\022" + + "\r\n\005value\030\002 \001(\t:\0028\001\032\360\001\n\tFaqAnswer\022\016\n\006answ" + + "er\030\001 \001(\t\022\022\n\nconfidence\030\002 \001(\002\022\020\n\010question" + + "\030\003 \001(\t\022\016\n\006source\030\004 \001(\t\022U\n\010metadata\030\005 \003(\013" + + "2C.google.cloud.dialogflow.v2beta1.Sugge" + + "stion.FaqAnswer.MetadataEntry\022\025\n\ranswer_" + + "record\030\006 \001(\t\032/\n\rMetadataEntry\022\013\n\003key\030\001 \001" + + "(\t\022\r\n\005value\030\002 \001(\t:\0028\001:\002\030\001\"c\n\026ListSuggest" + + "ionsRequest\022\016\n\006parent\030\001 \001(\t\022\021\n\tpage_size" + + "\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\022\016\n\006filter\030\004 \001" + + "(\t:\002\030\001\"x\n\027ListSuggestionsResponse\022@\n\013sug" + + "gestions\030\001 \003(\0132+.google.cloud.dialogflow" + + ".v2beta1.Suggestion\022\027\n\017next_page_token\030\002" + + " \001(\t:\002\030\001\"\\\n\030CompileSuggestionRequest\022\016\n\006" + + "parent\030\001 \001(\t\022\026\n\016latest_message\030\002 \001(\t\022\024\n\014" + + "context_size\030\003 \001(\005:\002\030\001\"\216\001\n\031CompileSugges" + + "tionResponse\022?\n\nsuggestion\030\001 \001(\0132+.googl" + + "e.cloud.dialogflow.v2beta1.Suggestion\022\026\n" + + "\016latest_message\030\002 \001(\t\022\024\n\014context_size\030\003 " + + "\001(\005:\002\030\001\"\203\007\n\017ResponseMessage\022E\n\004text\030\001 \001(" + + "\01325.google.cloud.dialogflow.v2beta1.Resp" + + "onseMessage.TextH\000\022*\n\007payload\030\002 \001(\0132\027.go" + + "ogle.protobuf.StructH\000\022_\n\022live_agent_han" + + "doff\030\003 \001(\0132A.google.cloud.dialogflow.v2b" + + "eta1.ResponseMessage.LiveAgentHandoffH\000\022" + + "Z\n\017end_interaction\030\004 \001(\0132?.google.cloud." + + "dialogflow.v2beta1.ResponseMessage.EndIn" + + "teractionH\000\022R\n\013mixed_audio\030\005 \001(\0132;.googl" + + "e.cloud.dialogflow.v2beta1.ResponseMessa" + + "ge.MixedAudioH\000\022i\n\027telephony_transfer_ca" + + "ll\030\006 \001(\0132F.google.cloud.dialogflow.v2bet" + + "a1.ResponseMessage.TelephonyTransferCall" + + "H\000\032\024\n\004Text\022\014\n\004text\030\001 \003(\t\032=\n\020LiveAgentHan" + + "doff\022)\n\010metadata\030\001 \001(\0132\027.google.protobuf" + + ".Struct\032\020\n\016EndInteraction\032\276\001\n\nMixedAudio" + + "\022U\n\010segments\030\001 \003(\0132C.google.cloud.dialog" + + "flow.v2beta1.ResponseMessage.MixedAudio." + + "Segment\032Y\n\007Segment\022\017\n\005audio\030\001 \001(\014H\000\022\r\n\003u" + + "ri\030\002 \001(\tH\000\022#\n\033allow_playback_interruptio" + + "n\030\003 \001(\010B\t\n\007content\032N\n\025TelephonyTransferC" + + "all\022\026\n\014phone_number\030\001 \001(\tH\000\022\021\n\007sip_uri\030\002" + + " \001(\tH\000B\n\n\010endpointB\t\n\007message2\207\033\n\014Partic" + + "ipants\022\271\002\n\021CreateParticipant\0229.google.cl" + + "oud.dialogflow.v2beta1.CreateParticipant" + + "Request\032,.google.cloud.dialogflow.v2beta" + + "1.Participant\"\272\001\332A\022parent,participant\202\323\344" + + "\223\002\236\001\"9/v2beta1/{parent=projects/*/conver" + + "sations/*}/participants:\013participantZT\"E" + + "/v2beta1/{parent=projects/*/locations/*/" + + "conversations/*}/participants:\013participa" + + "nt\022\213\002\n\016GetParticipant\0226.google.cloud.dia" + + "logflow.v2beta1.GetParticipantRequest\032,." + + "google.cloud.dialogflow.v2beta1.Particip" + + "ant\"\222\001\332A\004name\202\323\344\223\002\204\001\0229/v2beta1/{name=pro" + + "jects/*/conversations/*/participants/*}Z" + + "G\022E/v2beta1/{name=projects/*/locations/*" + + "/conversations/*/participants/*}\022\236\002\n\020Lis" + + "tParticipants\0228.google.cloud.dialogflow." + + "v2beta1.ListParticipantsRequest\0329.google" + + ".cloud.dialogflow.v2beta1.ListParticipan" + + "tsResponse\"\224\001\332A\006parent\202\323\344\223\002\204\001\0229/v2beta1/" + + "{parent=projects/*/conversations/*}/part" + + "icipantsZG\022E/v2beta1/{parent=projects/*/" + + "locations/*/conversations/*}/participant" + + "s\022\326\002\n\021UpdateParticipant\0229.google.cloud.d" + + "ialogflow.v2beta1.UpdateParticipantReque" + + "st\032,.google.cloud.dialogflow.v2beta1.Par" + + "ticipant\"\327\001\332A\027participant,update_mask\202\323\344" + + "\223\002\266\0012E/v2beta1/{participant.name=project" + + "s/*/conversations/*/participants/*}:\013par" + + "ticipantZ`2Q/v2beta1/{participant.name=p" + + "rojects/*/locations/*/conversations/*/pa" + + "rticipants/*}:\013participant\022\216\003\n\016AnalyzeCo" + + "ntent\0226.google.cloud.dialogflow.v2beta1." + + "AnalyzeContentRequest\0327.google.cloud.dia" + + "logflow.v2beta1.AnalyzeContentResponse\"\212" + + "\002\332A\026participant,text_input\332A\027participant" + + ",audio_input\332A\027participant,event_input\202\323" + + "\344\223\002\266\001\"O/v2beta1/{participant=projects/*/" + + "conversations/*/participants/*}:analyzeC" + + "ontent:\001*Z`\"[/v2beta1/{participant=proje" + + "cts/*/locations/*/conversations/*/partic" + + "ipants/*}:analyzeContent:\001*\022\242\001\n\027Streamin" + + "gAnalyzeContent\022?.google.cloud.dialogflo" + + "w.v2beta1.StreamingAnalyzeContentRequest" + + "\032@.google.cloud.dialogflow.v2beta1.Strea" + + "mingAnalyzeContentResponse\"\000(\0010\001\022\335\002\n\017Sug" + + "gestArticles\0227.google.cloud.dialogflow.v" + + "2beta1.SuggestArticlesRequest\0328.google.c" + + "loud.dialogflow.v2beta1.SuggestArticlesR" + + "esponse\"\326\001\332A\006parent\202\323\344\223\002\306\001\"W/v2beta1/{pa" + + "rent=projects/*/conversations/*/particip" + + "ants/*}/suggestions:suggestArticles:\001*Zh" + + "\"c/v2beta1/{parent=projects/*/locations/" + + "*/conversations/*/participants/*}/sugges" + + "tions:suggestArticles:\001*\022\347\002\n\021SuggestFaqA" + + "nswers\0229.google.cloud.dialogflow.v2beta1" + + ".SuggestFaqAnswersRequest\032:.google.cloud" + + ".dialogflow.v2beta1.SuggestFaqAnswersRes" + + "ponse\"\332\001\332A\006parent\202\323\344\223\002\312\001\"Y/v2beta1/{pare" + + "nt=projects/*/conversations/*/participan" + + "ts/*}/suggestions:suggestFaqAnswers:\001*Zj" + + "\"e/v2beta1/{parent=projects/*/locations/" + + "*/conversations/*/participants/*}/sugges" + + "tions:suggestFaqAnswers:\001*\022\361\002\n\023SuggestSm" + + "artReplies\022;.google.cloud.dialogflow.v2b" + + "eta1.SuggestSmartRepliesRequest\032<.google" + + ".cloud.dialogflow.v2beta1.SuggestSmartRe" + + "pliesResponse\"\336\001\332A\006parent\202\323\344\223\002\316\001\"[/v2bet" + "a1/{parent=projects/*/conversations/*/pa" - + "rticipants/*}/suggestions:compile:\001*\032x\312A" - + "\031dialogflow.googleapis.com\322AYhttps://www" - + ".googleapis.com/auth/cloud-platform,http" - + "s://www.googleapis.com/auth/dialogflowB\250" - + "\001\n#com.google.cloud.dialogflow.v2beta1B\020" - + "ParticipantProtoP\001ZCcloud.google.com/go/" - + "dialogflow/apiv2beta1/dialogflowpb;dialo" - + "gflowpb\370\001\001\242\002\002DF\252\002\037Google.Cloud.Dialogflo" - + "w.V2Beta1b\006proto3" + + "rticipants/*}/suggestions:suggestSmartRe" + + "plies:\001*Zl\"g/v2beta1/{parent=projects/*/" + + "locations/*/conversations/*/participants" + + "/*}/suggestions:suggestSmartReplies:\001*\022\330" + + "\001\n\017ListSuggestions\0227.google.cloud.dialog" + + "flow.v2beta1.ListSuggestionsRequest\0328.go" + + "ogle.cloud.dialogflow.v2beta1.ListSugges" + + "tionsResponse\"R\210\002\001\202\323\344\223\002I\022G/v2beta1/{pare" + + "nt=projects/*/conversations/*/participan" + + "ts/*}/suggestions\022\351\001\n\021CompileSuggestion\022" + + "9.google.cloud.dialogflow.v2beta1.Compil" + + "eSuggestionRequest\032:.google.cloud.dialog" + + "flow.v2beta1.CompileSuggestionResponse\"]" + + "\210\002\001\202\323\344\223\002T\"O/v2beta1/{parent=projects/*/c" + + "onversations/*/participants/*}/suggestio" + + "ns:compile:\001*\032x\312A\031dialogflow.googleapis." + + "com\322AYhttps://www.googleapis.com/auth/cl" + + "oud-platform,https://www.googleapis.com/" + + "auth/dialogflowB\250\001\n#com.google.cloud.dia" + + "logflow.v2beta1B\020ParticipantProtoP\001ZCclo" + + "ud.google.com/go/dialogflow/apiv2beta1/d" + + "ialogflowpb;dialogflowpb\370\001\001\242\002\002DF\252\002\037Googl" + + "e.Cloud.Dialogflow.V2Beta1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -728,8 +775,24 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Response", "Match", }); - internal_static_google_cloud_dialogflow_v2beta1_SuggestionFeature_descriptor = + internal_static_google_cloud_dialogflow_v2beta1_SuggestionInput_descriptor = getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_dialogflow_v2beta1_SuggestionInput_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2beta1_SuggestionInput_descriptor, + new java.lang.String[] { + "AnswerRecord", "TextOverride", "Parameters", "IntentInput", + }); + internal_static_google_cloud_dialogflow_v2beta1_IntentInput_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_cloud_dialogflow_v2beta1_IntentInput_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2beta1_IntentInput_descriptor, + new java.lang.String[] { + "Intent", "LanguageCode", + }); + internal_static_google_cloud_dialogflow_v2beta1_SuggestionFeature_descriptor = + getDescriptor().getMessageTypes().get(12); internal_static_google_cloud_dialogflow_v2beta1_SuggestionFeature_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dialogflow_v2beta1_SuggestionFeature_descriptor, @@ -737,7 +800,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Type", }); internal_static_google_cloud_dialogflow_v2beta1_AssistQueryParameters_descriptor = - getDescriptor().getMessageTypes().get(11); + getDescriptor().getMessageTypes().get(13); internal_static_google_cloud_dialogflow_v2beta1_AssistQueryParameters_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dialogflow_v2beta1_AssistQueryParameters_descriptor, @@ -755,7 +818,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_cloud_dialogflow_v2beta1_AnalyzeContentRequest_descriptor = - getDescriptor().getMessageTypes().get(12); + getDescriptor().getMessageTypes().get(14); internal_static_google_cloud_dialogflow_v2beta1_AnalyzeContentRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dialogflow_v2beta1_AnalyzeContentRequest_descriptor, @@ -764,6 +827,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "TextInput", "AudioInput", "EventInput", + "SuggestionInput", "ReplyAudioConfig", "QueryParams", "AssistQueryParams", @@ -774,7 +838,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Input", }); internal_static_google_cloud_dialogflow_v2beta1_DtmfParameters_descriptor = - getDescriptor().getMessageTypes().get(13); + getDescriptor().getMessageTypes().get(15); internal_static_google_cloud_dialogflow_v2beta1_DtmfParameters_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dialogflow_v2beta1_DtmfParameters_descriptor, @@ -782,7 +846,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "AcceptsDtmfInput", }); internal_static_google_cloud_dialogflow_v2beta1_AnalyzeContentResponse_descriptor = - getDescriptor().getMessageTypes().get(14); + getDescriptor().getMessageTypes().get(16); internal_static_google_cloud_dialogflow_v2beta1_AnalyzeContentResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dialogflow_v2beta1_AnalyzeContentResponse_descriptor, @@ -796,7 +860,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DtmfParameters", }); internal_static_google_cloud_dialogflow_v2beta1_InputTextConfig_descriptor = - getDescriptor().getMessageTypes().get(15); + getDescriptor().getMessageTypes().get(17); internal_static_google_cloud_dialogflow_v2beta1_InputTextConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dialogflow_v2beta1_InputTextConfig_descriptor, @@ -804,7 +868,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "LanguageCode", }); internal_static_google_cloud_dialogflow_v2beta1_StreamingAnalyzeContentRequest_descriptor = - getDescriptor().getMessageTypes().get(16); + getDescriptor().getMessageTypes().get(18); internal_static_google_cloud_dialogflow_v2beta1_StreamingAnalyzeContentRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dialogflow_v2beta1_StreamingAnalyzeContentRequest_descriptor, @@ -826,7 +890,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Input", }); internal_static_google_cloud_dialogflow_v2beta1_StreamingAnalyzeContentResponse_descriptor = - getDescriptor().getMessageTypes().get(17); + getDescriptor().getMessageTypes().get(19); internal_static_google_cloud_dialogflow_v2beta1_StreamingAnalyzeContentResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dialogflow_v2beta1_StreamingAnalyzeContentResponse_descriptor, @@ -842,7 +906,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DebuggingInfo", }); internal_static_google_cloud_dialogflow_v2beta1_AnnotatedMessagePart_descriptor = - getDescriptor().getMessageTypes().get(18); + getDescriptor().getMessageTypes().get(20); internal_static_google_cloud_dialogflow_v2beta1_AnnotatedMessagePart_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dialogflow_v2beta1_AnnotatedMessagePart_descriptor, @@ -850,7 +914,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Text", "EntityType", "FormattedValue", }); internal_static_google_cloud_dialogflow_v2beta1_MessageAnnotation_descriptor = - getDescriptor().getMessageTypes().get(19); + getDescriptor().getMessageTypes().get(21); internal_static_google_cloud_dialogflow_v2beta1_MessageAnnotation_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dialogflow_v2beta1_MessageAnnotation_descriptor, @@ -858,7 +922,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parts", "ContainEntities", }); internal_static_google_cloud_dialogflow_v2beta1_ArticleAnswer_descriptor = - getDescriptor().getMessageTypes().get(20); + getDescriptor().getMessageTypes().get(22); internal_static_google_cloud_dialogflow_v2beta1_ArticleAnswer_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dialogflow_v2beta1_ArticleAnswer_descriptor, @@ -876,7 +940,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_cloud_dialogflow_v2beta1_FaqAnswer_descriptor = - getDescriptor().getMessageTypes().get(21); + getDescriptor().getMessageTypes().get(23); internal_static_google_cloud_dialogflow_v2beta1_FaqAnswer_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dialogflow_v2beta1_FaqAnswer_descriptor, @@ -894,15 +958,31 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_cloud_dialogflow_v2beta1_SmartReplyAnswer_descriptor = - getDescriptor().getMessageTypes().get(22); + getDescriptor().getMessageTypes().get(24); internal_static_google_cloud_dialogflow_v2beta1_SmartReplyAnswer_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dialogflow_v2beta1_SmartReplyAnswer_descriptor, new java.lang.String[] { "Reply", "Confidence", "AnswerRecord", }); + internal_static_google_cloud_dialogflow_v2beta1_IntentSuggestion_descriptor = + getDescriptor().getMessageTypes().get(25); + internal_static_google_cloud_dialogflow_v2beta1_IntentSuggestion_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2beta1_IntentSuggestion_descriptor, + new java.lang.String[] { + "DisplayName", "IntentV2", "Description", "Intent", + }); + internal_static_google_cloud_dialogflow_v2beta1_DialogflowAssistAnswer_descriptor = + getDescriptor().getMessageTypes().get(26); + internal_static_google_cloud_dialogflow_v2beta1_DialogflowAssistAnswer_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2beta1_DialogflowAssistAnswer_descriptor, + new java.lang.String[] { + "QueryResult", "IntentSuggestion", "AnswerRecord", "Result", + }); internal_static_google_cloud_dialogflow_v2beta1_SuggestionResult_descriptor = - getDescriptor().getMessageTypes().get(23); + getDescriptor().getMessageTypes().get(27); internal_static_google_cloud_dialogflow_v2beta1_SuggestionResult_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dialogflow_v2beta1_SuggestionResult_descriptor, @@ -911,10 +991,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "SuggestArticlesResponse", "SuggestFaqAnswersResponse", "SuggestSmartRepliesResponse", + "SuggestDialogflowAssistsResponse", + "SuggestEntityExtractionResponse", "SuggestionResponse", }); internal_static_google_cloud_dialogflow_v2beta1_SuggestArticlesRequest_descriptor = - getDescriptor().getMessageTypes().get(24); + getDescriptor().getMessageTypes().get(28); internal_static_google_cloud_dialogflow_v2beta1_SuggestArticlesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dialogflow_v2beta1_SuggestArticlesRequest_descriptor, @@ -922,7 +1004,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "LatestMessage", "ContextSize", "AssistQueryParams", }); internal_static_google_cloud_dialogflow_v2beta1_SuggestArticlesResponse_descriptor = - getDescriptor().getMessageTypes().get(25); + getDescriptor().getMessageTypes().get(29); internal_static_google_cloud_dialogflow_v2beta1_SuggestArticlesResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dialogflow_v2beta1_SuggestArticlesResponse_descriptor, @@ -930,7 +1012,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ArticleAnswers", "LatestMessage", "ContextSize", }); internal_static_google_cloud_dialogflow_v2beta1_SuggestFaqAnswersRequest_descriptor = - getDescriptor().getMessageTypes().get(26); + getDescriptor().getMessageTypes().get(30); internal_static_google_cloud_dialogflow_v2beta1_SuggestFaqAnswersRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dialogflow_v2beta1_SuggestFaqAnswersRequest_descriptor, @@ -938,7 +1020,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "LatestMessage", "ContextSize", "AssistQueryParams", }); internal_static_google_cloud_dialogflow_v2beta1_SuggestFaqAnswersResponse_descriptor = - getDescriptor().getMessageTypes().get(27); + getDescriptor().getMessageTypes().get(31); internal_static_google_cloud_dialogflow_v2beta1_SuggestFaqAnswersResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dialogflow_v2beta1_SuggestFaqAnswersResponse_descriptor, @@ -946,7 +1028,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "FaqAnswers", "LatestMessage", "ContextSize", }); internal_static_google_cloud_dialogflow_v2beta1_SuggestSmartRepliesRequest_descriptor = - getDescriptor().getMessageTypes().get(28); + getDescriptor().getMessageTypes().get(32); internal_static_google_cloud_dialogflow_v2beta1_SuggestSmartRepliesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dialogflow_v2beta1_SuggestSmartRepliesRequest_descriptor, @@ -954,15 +1036,23 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "CurrentTextInput", "LatestMessage", "ContextSize", }); internal_static_google_cloud_dialogflow_v2beta1_SuggestSmartRepliesResponse_descriptor = - getDescriptor().getMessageTypes().get(29); + getDescriptor().getMessageTypes().get(33); internal_static_google_cloud_dialogflow_v2beta1_SuggestSmartRepliesResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dialogflow_v2beta1_SuggestSmartRepliesResponse_descriptor, new java.lang.String[] { "SmartReplyAnswers", "LatestMessage", "ContextSize", }); + internal_static_google_cloud_dialogflow_v2beta1_SuggestDialogflowAssistsResponse_descriptor = + getDescriptor().getMessageTypes().get(34); + internal_static_google_cloud_dialogflow_v2beta1_SuggestDialogflowAssistsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2beta1_SuggestDialogflowAssistsResponse_descriptor, + new java.lang.String[] { + "DialogflowAssistAnswers", "LatestMessage", "ContextSize", + }); internal_static_google_cloud_dialogflow_v2beta1_Suggestion_descriptor = - getDescriptor().getMessageTypes().get(30); + getDescriptor().getMessageTypes().get(35); internal_static_google_cloud_dialogflow_v2beta1_Suggestion_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dialogflow_v2beta1_Suggestion_descriptor, @@ -1010,7 +1100,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_cloud_dialogflow_v2beta1_ListSuggestionsRequest_descriptor = - getDescriptor().getMessageTypes().get(31); + getDescriptor().getMessageTypes().get(36); internal_static_google_cloud_dialogflow_v2beta1_ListSuggestionsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dialogflow_v2beta1_ListSuggestionsRequest_descriptor, @@ -1018,7 +1108,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", "Filter", }); internal_static_google_cloud_dialogflow_v2beta1_ListSuggestionsResponse_descriptor = - getDescriptor().getMessageTypes().get(32); + getDescriptor().getMessageTypes().get(37); internal_static_google_cloud_dialogflow_v2beta1_ListSuggestionsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dialogflow_v2beta1_ListSuggestionsResponse_descriptor, @@ -1026,7 +1116,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Suggestions", "NextPageToken", }); internal_static_google_cloud_dialogflow_v2beta1_CompileSuggestionRequest_descriptor = - getDescriptor().getMessageTypes().get(33); + getDescriptor().getMessageTypes().get(38); internal_static_google_cloud_dialogflow_v2beta1_CompileSuggestionRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dialogflow_v2beta1_CompileSuggestionRequest_descriptor, @@ -1034,7 +1124,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "LatestMessage", "ContextSize", }); internal_static_google_cloud_dialogflow_v2beta1_CompileSuggestionResponse_descriptor = - getDescriptor().getMessageTypes().get(34); + getDescriptor().getMessageTypes().get(39); internal_static_google_cloud_dialogflow_v2beta1_CompileSuggestionResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dialogflow_v2beta1_CompileSuggestionResponse_descriptor, @@ -1042,7 +1132,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Suggestion", "LatestMessage", "ContextSize", }); internal_static_google_cloud_dialogflow_v2beta1_ResponseMessage_descriptor = - getDescriptor().getMessageTypes().get(35); + getDescriptor().getMessageTypes().get(40); internal_static_google_cloud_dialogflow_v2beta1_ResponseMessage_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dialogflow_v2beta1_ResponseMessage_descriptor, diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ResponseMessage.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ResponseMessage.java index 5bb6cf435fc9..d0f25992c57c 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ResponseMessage.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ResponseMessage.java @@ -877,6 +877,7 @@ public interface LiveAgentHandoffOrBuilder * is up to you and your handoff procedures. * * You may set this, for example: + * * * In the entry fulfillment of a CX Page if entering the page indicates * something went extremely wrong in the conversation. * * In a webhook response when you determine that the customer issue can only @@ -1145,6 +1146,7 @@ protected Builder newBuilderForType( * is up to you and your handoff procedures. * * You may set this, for example: + * * * In the entry fulfillment of a CX Page if entering the page indicates * something went extremely wrong in the conversation. * * In a webhook response when you determine that the customer issue can only diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SuggestConversationSummaryRequest.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SuggestConversationSummaryRequest.java index 812a9e61b4d9..0f81363687b8 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SuggestConversationSummaryRequest.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SuggestConversationSummaryRequest.java @@ -211,7 +211,7 @@ public int getContextSize() { * * *
- * Parameters for a human assist query. + * Parameters for a human assist query. Only used for POC/demo purpose. ** *.google.cloud.dialogflow.v2beta1.AssistQueryParameters assist_query_params = 5;
@@ -226,7 +226,7 @@ public boolean hasAssistQueryParams() { * * *- * Parameters for a human assist query. + * Parameters for a human assist query. Only used for POC/demo purpose. ** *.google.cloud.dialogflow.v2beta1.AssistQueryParameters assist_query_params = 5;
@@ -243,7 +243,7 @@ public com.google.cloud.dialogflow.v2beta1.AssistQueryParameters getAssistQueryP * * *- * Parameters for a human assist query. + * Parameters for a human assist query. Only used for POC/demo purpose. ** *.google.cloud.dialogflow.v2beta1.AssistQueryParameters assist_query_params = 5;
@@ -1015,7 +1015,7 @@ public Builder clearContextSize() { * * *- * Parameters for a human assist query. + * Parameters for a human assist query. Only used for POC/demo purpose. ** *.google.cloud.dialogflow.v2beta1.AssistQueryParameters assist_query_params = 5;
@@ -1029,7 +1029,7 @@ public boolean hasAssistQueryParams() { * * *- * Parameters for a human assist query. + * Parameters for a human assist query. Only used for POC/demo purpose. ** *.google.cloud.dialogflow.v2beta1.AssistQueryParameters assist_query_params = 5;
@@ -1049,7 +1049,7 @@ public com.google.cloud.dialogflow.v2beta1.AssistQueryParameters getAssistQueryP * * *- * Parameters for a human assist query. + * Parameters for a human assist query. Only used for POC/demo purpose. ** *.google.cloud.dialogflow.v2beta1.AssistQueryParameters assist_query_params = 5;
@@ -1072,7 +1072,7 @@ public Builder setAssistQueryParams( * * *- * Parameters for a human assist query. + * Parameters for a human assist query. Only used for POC/demo purpose. ** *.google.cloud.dialogflow.v2beta1.AssistQueryParameters assist_query_params = 5;
@@ -1092,7 +1092,7 @@ public Builder setAssistQueryParams( * * *- * Parameters for a human assist query. + * Parameters for a human assist query. Only used for POC/demo purpose. ** *.google.cloud.dialogflow.v2beta1.AssistQueryParameters assist_query_params = 5;
@@ -1119,7 +1119,7 @@ public Builder mergeAssistQueryParams( * * *- * Parameters for a human assist query. + * Parameters for a human assist query. Only used for POC/demo purpose. ** *.google.cloud.dialogflow.v2beta1.AssistQueryParameters assist_query_params = 5;
@@ -1138,7 +1138,7 @@ public Builder clearAssistQueryParams() { * * *- * Parameters for a human assist query. + * Parameters for a human assist query. Only used for POC/demo purpose. ** *.google.cloud.dialogflow.v2beta1.AssistQueryParameters assist_query_params = 5;
@@ -1153,7 +1153,7 @@ public Builder clearAssistQueryParams() { * * *- * Parameters for a human assist query. + * Parameters for a human assist query. Only used for POC/demo purpose. ** *.google.cloud.dialogflow.v2beta1.AssistQueryParameters assist_query_params = 5;
@@ -1172,7 +1172,7 @@ public Builder clearAssistQueryParams() { * * *- * Parameters for a human assist query. + * Parameters for a human assist query. Only used for POC/demo purpose. ** *.google.cloud.dialogflow.v2beta1.AssistQueryParameters assist_query_params = 5;
diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SuggestConversationSummaryRequestOrBuilder.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SuggestConversationSummaryRequestOrBuilder.java index 1fe9538b4d76..6e5a86270970 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SuggestConversationSummaryRequestOrBuilder.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SuggestConversationSummaryRequestOrBuilder.java @@ -110,7 +110,7 @@ public interface SuggestConversationSummaryRequestOrBuilder * * *- * Parameters for a human assist query. + * Parameters for a human assist query. Only used for POC/demo purpose. ** *.google.cloud.dialogflow.v2beta1.AssistQueryParameters assist_query_params = 5;
@@ -122,7 +122,7 @@ public interface SuggestConversationSummaryRequestOrBuilder * * *- * Parameters for a human assist query. + * Parameters for a human assist query. Only used for POC/demo purpose. ** *.google.cloud.dialogflow.v2beta1.AssistQueryParameters assist_query_params = 5;
@@ -134,7 +134,7 @@ public interface SuggestConversationSummaryRequestOrBuilder * * *- * Parameters for a human assist query. + * Parameters for a human assist query. Only used for POC/demo purpose. ** *.google.cloud.dialogflow.v2beta1.AssistQueryParameters assist_query_params = 5;
diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SuggestDialogflowAssistsResponse.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SuggestDialogflowAssistsResponse.java new file mode 100644 index 000000000000..405a7a2ebe39 --- /dev/null +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SuggestDialogflowAssistsResponse.java @@ -0,0 +1,1367 @@ +/* + * Copyright 2023 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/v2beta1/participant.proto + +package com.google.cloud.dialogflow.v2beta1; + +/** + * + * + *+ * The response message for + * [Participants.SuggestDialogflowAssists][google.cloud.dialogflow.v2beta1.Participants.SuggestDialogflowAssists]. + *+ * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.SuggestDialogflowAssistsResponse} + */ +public final class SuggestDialogflowAssistsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.SuggestDialogflowAssistsResponse) + SuggestDialogflowAssistsResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use SuggestDialogflowAssistsResponse.newBuilder() to construct. + private SuggestDialogflowAssistsResponse( + com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private SuggestDialogflowAssistsResponse() { + dialogflowAssistAnswers_ = java.util.Collections.emptyList(); + latestMessage_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SuggestDialogflowAssistsResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_SuggestDialogflowAssistsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_SuggestDialogflowAssistsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.SuggestDialogflowAssistsResponse.class, + com.google.cloud.dialogflow.v2beta1.SuggestDialogflowAssistsResponse.Builder.class); + } + + public static final int DIALOGFLOW_ASSIST_ANSWERS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List+ dialogflowAssistAnswers_; + /** + * + * + * + * Output only. Multiple reply options provided by Dialogflow assist + * service. The order is based on the rank of the model prediction. + *+ * + *+ * repeated .google.cloud.dialogflow.v2beta1.DialogflowAssistAnswer dialogflow_assist_answers = 1; + *
+ */ + @java.lang.Override + public java.util.List+ getDialogflowAssistAnswersList() { + return dialogflowAssistAnswers_; + } + /** + * + * + * + * Output only. Multiple reply options provided by Dialogflow assist + * service. The order is based on the rank of the model prediction. + *+ * + *+ * repeated .google.cloud.dialogflow.v2beta1.DialogflowAssistAnswer dialogflow_assist_answers = 1; + *
+ */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.dialogflow.v2beta1.DialogflowAssistAnswerOrBuilder> + getDialogflowAssistAnswersOrBuilderList() { + return dialogflowAssistAnswers_; + } + /** + * + * + *+ * Output only. Multiple reply options provided by Dialogflow assist + * service. The order is based on the rank of the model prediction. + *+ * + *+ * repeated .google.cloud.dialogflow.v2beta1.DialogflowAssistAnswer dialogflow_assist_answers = 1; + *
+ */ + @java.lang.Override + public int getDialogflowAssistAnswersCount() { + return dialogflowAssistAnswers_.size(); + } + /** + * + * + *+ * Output only. Multiple reply options provided by Dialogflow assist + * service. The order is based on the rank of the model prediction. + *+ * + *+ * repeated .google.cloud.dialogflow.v2beta1.DialogflowAssistAnswer dialogflow_assist_answers = 1; + *
+ */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.DialogflowAssistAnswer getDialogflowAssistAnswers( + int index) { + return dialogflowAssistAnswers_.get(index); + } + /** + * + * + *+ * Output only. Multiple reply options provided by Dialogflow assist + * service. The order is based on the rank of the model prediction. + *+ * + *+ * repeated .google.cloud.dialogflow.v2beta1.DialogflowAssistAnswer dialogflow_assist_answers = 1; + *
+ */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.DialogflowAssistAnswerOrBuilder + getDialogflowAssistAnswersOrBuilder(int index) { + return dialogflowAssistAnswers_.get(index); + } + + public static final int LATEST_MESSAGE_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object latestMessage_ = ""; + /** + * + * + *+ * The name of the latest conversation message used to suggest answer. + * + * Format: `projects/<Project ID>/locations/<Location + * ID>/conversations/<Conversation ID>/messages/<Message ID>`. + *+ * + *string latest_message = 2;
+ * + * @return The latestMessage. + */ + @java.lang.Override + public java.lang.String getLatestMessage() { + java.lang.Object ref = latestMessage_; + 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(); + latestMessage_ = s; + return s; + } + } + /** + * + * + *+ * The name of the latest conversation message used to suggest answer. + * + * Format: `projects/<Project ID>/locations/<Location + * ID>/conversations/<Conversation ID>/messages/<Message ID>`. + *+ * + *string latest_message = 2;
+ * + * @return The bytes for latestMessage. + */ + @java.lang.Override + public com.google.protobuf.ByteString getLatestMessageBytes() { + java.lang.Object ref = latestMessage_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + latestMessage_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CONTEXT_SIZE_FIELD_NUMBER = 3; + private int contextSize_ = 0; + /** + * + * + *+ * Number of messages prior to and including + * [latest_message][google.cloud.dialogflow.v2beta1.SuggestDialogflowAssistsResponse.latest_message] + * to compile the suggestion. It may be smaller than the + * [SuggestDialogflowAssistsRequest.context_size][google.cloud.dialogflow.v2beta1.SuggestDialogflowAssistsRequest.context_size] + * field in the request if there aren't that many messages in the + * conversation. + *+ * + *int32 context_size = 3;
+ * + * @return The contextSize. + */ + @java.lang.Override + public int getContextSize() { + return contextSize_; + } + + 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 { + for (int i = 0; i < dialogflowAssistAnswers_.size(); i++) { + output.writeMessage(1, dialogflowAssistAnswers_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(latestMessage_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, latestMessage_); + } + if (contextSize_ != 0) { + output.writeInt32(3, contextSize_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < dialogflowAssistAnswers_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, dialogflowAssistAnswers_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(latestMessage_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, latestMessage_); + } + if (contextSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, contextSize_); + } + size += getUnknownFields().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.v2beta1.SuggestDialogflowAssistsResponse)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.v2beta1.SuggestDialogflowAssistsResponse other = + (com.google.cloud.dialogflow.v2beta1.SuggestDialogflowAssistsResponse) obj; + + if (!getDialogflowAssistAnswersList().equals(other.getDialogflowAssistAnswersList())) + return false; + if (!getLatestMessage().equals(other.getLatestMessage())) return false; + if (getContextSize() != other.getContextSize()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getDialogflowAssistAnswersCount() > 0) { + hash = (37 * hash) + DIALOGFLOW_ASSIST_ANSWERS_FIELD_NUMBER; + hash = (53 * hash) + getDialogflowAssistAnswersList().hashCode(); + } + hash = (37 * hash) + LATEST_MESSAGE_FIELD_NUMBER; + hash = (53 * hash) + getLatestMessage().hashCode(); + hash = (37 * hash) + CONTEXT_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getContextSize(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.v2beta1.SuggestDialogflowAssistsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.SuggestDialogflowAssistsResponse 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.v2beta1.SuggestDialogflowAssistsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.SuggestDialogflowAssistsResponse 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.v2beta1.SuggestDialogflowAssistsResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.SuggestDialogflowAssistsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.SuggestDialogflowAssistsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.SuggestDialogflowAssistsResponse 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.v2beta1.SuggestDialogflowAssistsResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.SuggestDialogflowAssistsResponse + 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.v2beta1.SuggestDialogflowAssistsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.SuggestDialogflowAssistsResponse 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.v2beta1.SuggestDialogflowAssistsResponse 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; + } + /** + * + * + *+ * The response message for + * [Participants.SuggestDialogflowAssists][google.cloud.dialogflow.v2beta1.Participants.SuggestDialogflowAssists]. + *+ * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.SuggestDialogflowAssistsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder+ implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2beta1.SuggestDialogflowAssistsResponse) + com.google.cloud.dialogflow.v2beta1.SuggestDialogflowAssistsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_SuggestDialogflowAssistsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_SuggestDialogflowAssistsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.SuggestDialogflowAssistsResponse.class, + com.google.cloud.dialogflow.v2beta1.SuggestDialogflowAssistsResponse.Builder.class); + } + + // Construct using + // com.google.cloud.dialogflow.v2beta1.SuggestDialogflowAssistsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (dialogflowAssistAnswersBuilder_ == null) { + dialogflowAssistAnswers_ = java.util.Collections.emptyList(); + } else { + dialogflowAssistAnswers_ = null; + dialogflowAssistAnswersBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + latestMessage_ = ""; + contextSize_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_SuggestDialogflowAssistsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.SuggestDialogflowAssistsResponse + getDefaultInstanceForType() { + return com.google.cloud.dialogflow.v2beta1.SuggestDialogflowAssistsResponse + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.SuggestDialogflowAssistsResponse build() { + com.google.cloud.dialogflow.v2beta1.SuggestDialogflowAssistsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.SuggestDialogflowAssistsResponse buildPartial() { + com.google.cloud.dialogflow.v2beta1.SuggestDialogflowAssistsResponse result = + new com.google.cloud.dialogflow.v2beta1.SuggestDialogflowAssistsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.dialogflow.v2beta1.SuggestDialogflowAssistsResponse result) { + if (dialogflowAssistAnswersBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + dialogflowAssistAnswers_ = + java.util.Collections.unmodifiableList(dialogflowAssistAnswers_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.dialogflowAssistAnswers_ = dialogflowAssistAnswers_; + } else { + result.dialogflowAssistAnswers_ = dialogflowAssistAnswersBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.dialogflow.v2beta1.SuggestDialogflowAssistsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.latestMessage_ = latestMessage_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.contextSize_ = contextSize_; + } + } + + @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.v2beta1.SuggestDialogflowAssistsResponse) { + return mergeFrom( + (com.google.cloud.dialogflow.v2beta1.SuggestDialogflowAssistsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.dialogflow.v2beta1.SuggestDialogflowAssistsResponse other) { + if (other + == com.google.cloud.dialogflow.v2beta1.SuggestDialogflowAssistsResponse + .getDefaultInstance()) return this; + if (dialogflowAssistAnswersBuilder_ == null) { + if (!other.dialogflowAssistAnswers_.isEmpty()) { + if (dialogflowAssistAnswers_.isEmpty()) { + dialogflowAssistAnswers_ = other.dialogflowAssistAnswers_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureDialogflowAssistAnswersIsMutable(); + dialogflowAssistAnswers_.addAll(other.dialogflowAssistAnswers_); + } + onChanged(); + } + } else { + if (!other.dialogflowAssistAnswers_.isEmpty()) { + if (dialogflowAssistAnswersBuilder_.isEmpty()) { + dialogflowAssistAnswersBuilder_.dispose(); + dialogflowAssistAnswersBuilder_ = null; + dialogflowAssistAnswers_ = other.dialogflowAssistAnswers_; + bitField0_ = (bitField0_ & ~0x00000001); + dialogflowAssistAnswersBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getDialogflowAssistAnswersFieldBuilder() + : null; + } else { + dialogflowAssistAnswersBuilder_.addAllMessages(other.dialogflowAssistAnswers_); + } + } + } + if (!other.getLatestMessage().isEmpty()) { + latestMessage_ = other.latestMessage_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.getContextSize() != 0) { + setContextSize(other.getContextSize()); + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.dialogflow.v2beta1.DialogflowAssistAnswer m = + input.readMessage( + com.google.cloud.dialogflow.v2beta1.DialogflowAssistAnswer.parser(), + extensionRegistry); + if (dialogflowAssistAnswersBuilder_ == null) { + ensureDialogflowAssistAnswersIsMutable(); + dialogflowAssistAnswers_.add(m); + } else { + dialogflowAssistAnswersBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + latestMessage_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + contextSize_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List + dialogflowAssistAnswers_ = java.util.Collections.emptyList(); + + private void ensureDialogflowAssistAnswersIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + dialogflowAssistAnswers_ = + new java.util.ArrayList ( + dialogflowAssistAnswers_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.DialogflowAssistAnswer, + com.google.cloud.dialogflow.v2beta1.DialogflowAssistAnswer.Builder, + com.google.cloud.dialogflow.v2beta1.DialogflowAssistAnswerOrBuilder> + dialogflowAssistAnswersBuilder_; + + /** + * + * + * + * Output only. Multiple reply options provided by Dialogflow assist + * service. The order is based on the rank of the model prediction. + *+ * + *+ * repeated .google.cloud.dialogflow.v2beta1.DialogflowAssistAnswer dialogflow_assist_answers = 1; + *
+ */ + public java.util.List+ getDialogflowAssistAnswersList() { + if (dialogflowAssistAnswersBuilder_ == null) { + return java.util.Collections.unmodifiableList(dialogflowAssistAnswers_); + } else { + return dialogflowAssistAnswersBuilder_.getMessageList(); + } + } + /** + * + * + * + * Output only. Multiple reply options provided by Dialogflow assist + * service. The order is based on the rank of the model prediction. + *+ * + *+ * repeated .google.cloud.dialogflow.v2beta1.DialogflowAssistAnswer dialogflow_assist_answers = 1; + *
+ */ + public int getDialogflowAssistAnswersCount() { + if (dialogflowAssistAnswersBuilder_ == null) { + return dialogflowAssistAnswers_.size(); + } else { + return dialogflowAssistAnswersBuilder_.getCount(); + } + } + /** + * + * + *+ * Output only. Multiple reply options provided by Dialogflow assist + * service. The order is based on the rank of the model prediction. + *+ * + *+ * repeated .google.cloud.dialogflow.v2beta1.DialogflowAssistAnswer dialogflow_assist_answers = 1; + *
+ */ + public com.google.cloud.dialogflow.v2beta1.DialogflowAssistAnswer getDialogflowAssistAnswers( + int index) { + if (dialogflowAssistAnswersBuilder_ == null) { + return dialogflowAssistAnswers_.get(index); + } else { + return dialogflowAssistAnswersBuilder_.getMessage(index); + } + } + /** + * + * + *+ * Output only. Multiple reply options provided by Dialogflow assist + * service. The order is based on the rank of the model prediction. + *+ * + *+ * repeated .google.cloud.dialogflow.v2beta1.DialogflowAssistAnswer dialogflow_assist_answers = 1; + *
+ */ + public Builder setDialogflowAssistAnswers( + int index, com.google.cloud.dialogflow.v2beta1.DialogflowAssistAnswer value) { + if (dialogflowAssistAnswersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDialogflowAssistAnswersIsMutable(); + dialogflowAssistAnswers_.set(index, value); + onChanged(); + } else { + dialogflowAssistAnswersBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *+ * Output only. Multiple reply options provided by Dialogflow assist + * service. The order is based on the rank of the model prediction. + *+ * + *+ * repeated .google.cloud.dialogflow.v2beta1.DialogflowAssistAnswer dialogflow_assist_answers = 1; + *
+ */ + public Builder setDialogflowAssistAnswers( + int index, + com.google.cloud.dialogflow.v2beta1.DialogflowAssistAnswer.Builder builderForValue) { + if (dialogflowAssistAnswersBuilder_ == null) { + ensureDialogflowAssistAnswersIsMutable(); + dialogflowAssistAnswers_.set(index, builderForValue.build()); + onChanged(); + } else { + dialogflowAssistAnswersBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *+ * Output only. Multiple reply options provided by Dialogflow assist + * service. The order is based on the rank of the model prediction. + *+ * + *+ * repeated .google.cloud.dialogflow.v2beta1.DialogflowAssistAnswer dialogflow_assist_answers = 1; + *
+ */ + public Builder addDialogflowAssistAnswers( + com.google.cloud.dialogflow.v2beta1.DialogflowAssistAnswer value) { + if (dialogflowAssistAnswersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDialogflowAssistAnswersIsMutable(); + dialogflowAssistAnswers_.add(value); + onChanged(); + } else { + dialogflowAssistAnswersBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *+ * Output only. Multiple reply options provided by Dialogflow assist + * service. The order is based on the rank of the model prediction. + *+ * + *+ * repeated .google.cloud.dialogflow.v2beta1.DialogflowAssistAnswer dialogflow_assist_answers = 1; + *
+ */ + public Builder addDialogflowAssistAnswers( + int index, com.google.cloud.dialogflow.v2beta1.DialogflowAssistAnswer value) { + if (dialogflowAssistAnswersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDialogflowAssistAnswersIsMutable(); + dialogflowAssistAnswers_.add(index, value); + onChanged(); + } else { + dialogflowAssistAnswersBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *+ * Output only. Multiple reply options provided by Dialogflow assist + * service. The order is based on the rank of the model prediction. + *+ * + *+ * repeated .google.cloud.dialogflow.v2beta1.DialogflowAssistAnswer dialogflow_assist_answers = 1; + *
+ */ + public Builder addDialogflowAssistAnswers( + com.google.cloud.dialogflow.v2beta1.DialogflowAssistAnswer.Builder builderForValue) { + if (dialogflowAssistAnswersBuilder_ == null) { + ensureDialogflowAssistAnswersIsMutable(); + dialogflowAssistAnswers_.add(builderForValue.build()); + onChanged(); + } else { + dialogflowAssistAnswersBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *+ * Output only. Multiple reply options provided by Dialogflow assist + * service. The order is based on the rank of the model prediction. + *+ * + *+ * repeated .google.cloud.dialogflow.v2beta1.DialogflowAssistAnswer dialogflow_assist_answers = 1; + *
+ */ + public Builder addDialogflowAssistAnswers( + int index, + com.google.cloud.dialogflow.v2beta1.DialogflowAssistAnswer.Builder builderForValue) { + if (dialogflowAssistAnswersBuilder_ == null) { + ensureDialogflowAssistAnswersIsMutable(); + dialogflowAssistAnswers_.add(index, builderForValue.build()); + onChanged(); + } else { + dialogflowAssistAnswersBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *+ * Output only. Multiple reply options provided by Dialogflow assist + * service. The order is based on the rank of the model prediction. + *+ * + *+ * repeated .google.cloud.dialogflow.v2beta1.DialogflowAssistAnswer dialogflow_assist_answers = 1; + *
+ */ + public Builder addAllDialogflowAssistAnswers( + java.lang.Iterable extends com.google.cloud.dialogflow.v2beta1.DialogflowAssistAnswer> + values) { + if (dialogflowAssistAnswersBuilder_ == null) { + ensureDialogflowAssistAnswersIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, dialogflowAssistAnswers_); + onChanged(); + } else { + dialogflowAssistAnswersBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *+ * Output only. Multiple reply options provided by Dialogflow assist + * service. The order is based on the rank of the model prediction. + *+ * + *+ * repeated .google.cloud.dialogflow.v2beta1.DialogflowAssistAnswer dialogflow_assist_answers = 1; + *
+ */ + public Builder clearDialogflowAssistAnswers() { + if (dialogflowAssistAnswersBuilder_ == null) { + dialogflowAssistAnswers_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + dialogflowAssistAnswersBuilder_.clear(); + } + return this; + } + /** + * + * + *+ * Output only. Multiple reply options provided by Dialogflow assist + * service. The order is based on the rank of the model prediction. + *+ * + *+ * repeated .google.cloud.dialogflow.v2beta1.DialogflowAssistAnswer dialogflow_assist_answers = 1; + *
+ */ + public Builder removeDialogflowAssistAnswers(int index) { + if (dialogflowAssistAnswersBuilder_ == null) { + ensureDialogflowAssistAnswersIsMutable(); + dialogflowAssistAnswers_.remove(index); + onChanged(); + } else { + dialogflowAssistAnswersBuilder_.remove(index); + } + return this; + } + /** + * + * + *+ * Output only. Multiple reply options provided by Dialogflow assist + * service. The order is based on the rank of the model prediction. + *+ * + *+ * repeated .google.cloud.dialogflow.v2beta1.DialogflowAssistAnswer dialogflow_assist_answers = 1; + *
+ */ + public com.google.cloud.dialogflow.v2beta1.DialogflowAssistAnswer.Builder + getDialogflowAssistAnswersBuilder(int index) { + return getDialogflowAssistAnswersFieldBuilder().getBuilder(index); + } + /** + * + * + *+ * Output only. Multiple reply options provided by Dialogflow assist + * service. The order is based on the rank of the model prediction. + *+ * + *+ * repeated .google.cloud.dialogflow.v2beta1.DialogflowAssistAnswer dialogflow_assist_answers = 1; + *
+ */ + public com.google.cloud.dialogflow.v2beta1.DialogflowAssistAnswerOrBuilder + getDialogflowAssistAnswersOrBuilder(int index) { + if (dialogflowAssistAnswersBuilder_ == null) { + return dialogflowAssistAnswers_.get(index); + } else { + return dialogflowAssistAnswersBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *+ * Output only. Multiple reply options provided by Dialogflow assist + * service. The order is based on the rank of the model prediction. + *+ * + *+ * repeated .google.cloud.dialogflow.v2beta1.DialogflowAssistAnswer dialogflow_assist_answers = 1; + *
+ */ + public java.util.List< + ? extends com.google.cloud.dialogflow.v2beta1.DialogflowAssistAnswerOrBuilder> + getDialogflowAssistAnswersOrBuilderList() { + if (dialogflowAssistAnswersBuilder_ != null) { + return dialogflowAssistAnswersBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(dialogflowAssistAnswers_); + } + } + /** + * + * + *+ * Output only. Multiple reply options provided by Dialogflow assist + * service. The order is based on the rank of the model prediction. + *+ * + *+ * repeated .google.cloud.dialogflow.v2beta1.DialogflowAssistAnswer dialogflow_assist_answers = 1; + *
+ */ + public com.google.cloud.dialogflow.v2beta1.DialogflowAssistAnswer.Builder + addDialogflowAssistAnswersBuilder() { + return getDialogflowAssistAnswersFieldBuilder() + .addBuilder( + com.google.cloud.dialogflow.v2beta1.DialogflowAssistAnswer.getDefaultInstance()); + } + /** + * + * + *+ * Output only. Multiple reply options provided by Dialogflow assist + * service. The order is based on the rank of the model prediction. + *+ * + *+ * repeated .google.cloud.dialogflow.v2beta1.DialogflowAssistAnswer dialogflow_assist_answers = 1; + *
+ */ + public com.google.cloud.dialogflow.v2beta1.DialogflowAssistAnswer.Builder + addDialogflowAssistAnswersBuilder(int index) { + return getDialogflowAssistAnswersFieldBuilder() + .addBuilder( + index, + com.google.cloud.dialogflow.v2beta1.DialogflowAssistAnswer.getDefaultInstance()); + } + /** + * + * + *+ * Output only. Multiple reply options provided by Dialogflow assist + * service. The order is based on the rank of the model prediction. + *+ * + *+ * repeated .google.cloud.dialogflow.v2beta1.DialogflowAssistAnswer dialogflow_assist_answers = 1; + *
+ */ + public java.util.List+ getDialogflowAssistAnswersBuilderList() { + return getDialogflowAssistAnswersFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.DialogflowAssistAnswer, + com.google.cloud.dialogflow.v2beta1.DialogflowAssistAnswer.Builder, + com.google.cloud.dialogflow.v2beta1.DialogflowAssistAnswerOrBuilder> + getDialogflowAssistAnswersFieldBuilder() { + if (dialogflowAssistAnswersBuilder_ == null) { + dialogflowAssistAnswersBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.DialogflowAssistAnswer, + com.google.cloud.dialogflow.v2beta1.DialogflowAssistAnswer.Builder, + com.google.cloud.dialogflow.v2beta1.DialogflowAssistAnswerOrBuilder>( + dialogflowAssistAnswers_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + dialogflowAssistAnswers_ = null; + } + return dialogflowAssistAnswersBuilder_; + } + + private java.lang.Object latestMessage_ = ""; + /** + * + * + * + * The name of the latest conversation message used to suggest answer. + * + * Format: `projects/<Project ID>/locations/<Location + * ID>/conversations/<Conversation ID>/messages/<Message ID>`. + *+ * + *string latest_message = 2;
+ * + * @return The latestMessage. + */ + public java.lang.String getLatestMessage() { + java.lang.Object ref = latestMessage_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + latestMessage_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *+ * The name of the latest conversation message used to suggest answer. + * + * Format: `projects/<Project ID>/locations/<Location + * ID>/conversations/<Conversation ID>/messages/<Message ID>`. + *+ * + *string latest_message = 2;
+ * + * @return The bytes for latestMessage. + */ + public com.google.protobuf.ByteString getLatestMessageBytes() { + java.lang.Object ref = latestMessage_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + latestMessage_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *+ * The name of the latest conversation message used to suggest answer. + * + * Format: `projects/<Project ID>/locations/<Location + * ID>/conversations/<Conversation ID>/messages/<Message ID>`. + *+ * + *string latest_message = 2;
+ * + * @param value The latestMessage to set. + * @return This builder for chaining. + */ + public Builder setLatestMessage(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + latestMessage_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *+ * The name of the latest conversation message used to suggest answer. + * + * Format: `projects/<Project ID>/locations/<Location + * ID>/conversations/<Conversation ID>/messages/<Message ID>`. + *+ * + *string latest_message = 2;
+ * + * @return This builder for chaining. + */ + public Builder clearLatestMessage() { + latestMessage_ = getDefaultInstance().getLatestMessage(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *+ * The name of the latest conversation message used to suggest answer. + * + * Format: `projects/<Project ID>/locations/<Location + * ID>/conversations/<Conversation ID>/messages/<Message ID>`. + *+ * + *string latest_message = 2;
+ * + * @param value The bytes for latestMessage to set. + * @return This builder for chaining. + */ + public Builder setLatestMessageBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + latestMessage_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private int contextSize_; + /** + * + * + *+ * Number of messages prior to and including + * [latest_message][google.cloud.dialogflow.v2beta1.SuggestDialogflowAssistsResponse.latest_message] + * to compile the suggestion. It may be smaller than the + * [SuggestDialogflowAssistsRequest.context_size][google.cloud.dialogflow.v2beta1.SuggestDialogflowAssistsRequest.context_size] + * field in the request if there aren't that many messages in the + * conversation. + *+ * + *int32 context_size = 3;
+ * + * @return The contextSize. + */ + @java.lang.Override + public int getContextSize() { + return contextSize_; + } + /** + * + * + *+ * Number of messages prior to and including + * [latest_message][google.cloud.dialogflow.v2beta1.SuggestDialogflowAssistsResponse.latest_message] + * to compile the suggestion. It may be smaller than the + * [SuggestDialogflowAssistsRequest.context_size][google.cloud.dialogflow.v2beta1.SuggestDialogflowAssistsRequest.context_size] + * field in the request if there aren't that many messages in the + * conversation. + *+ * + *int32 context_size = 3;
+ * + * @param value The contextSize to set. + * @return This builder for chaining. + */ + public Builder setContextSize(int value) { + + contextSize_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *+ * Number of messages prior to and including + * [latest_message][google.cloud.dialogflow.v2beta1.SuggestDialogflowAssistsResponse.latest_message] + * to compile the suggestion. It may be smaller than the + * [SuggestDialogflowAssistsRequest.context_size][google.cloud.dialogflow.v2beta1.SuggestDialogflowAssistsRequest.context_size] + * field in the request if there aren't that many messages in the + * conversation. + *+ * + *int32 context_size = 3;
+ * + * @return This builder for chaining. + */ + public Builder clearContextSize() { + bitField0_ = (bitField0_ & ~0x00000004); + contextSize_ = 0; + onChanged(); + return this; + } + + @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.v2beta1.SuggestDialogflowAssistsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.SuggestDialogflowAssistsResponse) + private static final com.google.cloud.dialogflow.v2beta1.SuggestDialogflowAssistsResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2beta1.SuggestDialogflowAssistsResponse(); + } + + public static com.google.cloud.dialogflow.v2beta1.SuggestDialogflowAssistsResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.ParserPARSER = + new com.google.protobuf.AbstractParser () { + @java.lang.Override + public SuggestDialogflowAssistsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + 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.v2beta1.SuggestDialogflowAssistsResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SuggestDialogflowAssistsResponseOrBuilder.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SuggestDialogflowAssistsResponseOrBuilder.java new file mode 100644 index 000000000000..6310eff16ab9 --- /dev/null +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SuggestDialogflowAssistsResponseOrBuilder.java @@ -0,0 +1,143 @@ +/* + * Copyright 2023 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/v2beta1/participant.proto + +package com.google.cloud.dialogflow.v2beta1; + +public interface SuggestDialogflowAssistsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2beta1.SuggestDialogflowAssistsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + * + * Output only. Multiple reply options provided by Dialogflow assist + * service. The order is based on the rank of the model prediction. + *+ * + *+ * repeated .google.cloud.dialogflow.v2beta1.DialogflowAssistAnswer dialogflow_assist_answers = 1; + *
+ */ + java.util.List+ getDialogflowAssistAnswersList(); + /** + * + * + * + * Output only. Multiple reply options provided by Dialogflow assist + * service. The order is based on the rank of the model prediction. + *+ * + *+ * repeated .google.cloud.dialogflow.v2beta1.DialogflowAssistAnswer dialogflow_assist_answers = 1; + *
+ */ + com.google.cloud.dialogflow.v2beta1.DialogflowAssistAnswer getDialogflowAssistAnswers(int index); + /** + * + * + *+ * Output only. Multiple reply options provided by Dialogflow assist + * service. The order is based on the rank of the model prediction. + *+ * + *+ * repeated .google.cloud.dialogflow.v2beta1.DialogflowAssistAnswer dialogflow_assist_answers = 1; + *
+ */ + int getDialogflowAssistAnswersCount(); + /** + * + * + *+ * Output only. Multiple reply options provided by Dialogflow assist + * service. The order is based on the rank of the model prediction. + *+ * + *+ * repeated .google.cloud.dialogflow.v2beta1.DialogflowAssistAnswer dialogflow_assist_answers = 1; + *
+ */ + java.util.List extends com.google.cloud.dialogflow.v2beta1.DialogflowAssistAnswerOrBuilder> + getDialogflowAssistAnswersOrBuilderList(); + /** + * + * + *+ * Output only. Multiple reply options provided by Dialogflow assist + * service. The order is based on the rank of the model prediction. + *+ * + *+ * repeated .google.cloud.dialogflow.v2beta1.DialogflowAssistAnswer dialogflow_assist_answers = 1; + *
+ */ + com.google.cloud.dialogflow.v2beta1.DialogflowAssistAnswerOrBuilder + getDialogflowAssistAnswersOrBuilder(int index); + + /** + * + * + *+ * The name of the latest conversation message used to suggest answer. + * + * Format: `projects/<Project ID>/locations/<Location + * ID>/conversations/<Conversation ID>/messages/<Message ID>`. + *+ * + *string latest_message = 2;
+ * + * @return The latestMessage. + */ + java.lang.String getLatestMessage(); + /** + * + * + *+ * The name of the latest conversation message used to suggest answer. + * + * Format: `projects/<Project ID>/locations/<Location + * ID>/conversations/<Conversation ID>/messages/<Message ID>`. + *+ * + *string latest_message = 2;
+ * + * @return The bytes for latestMessage. + */ + com.google.protobuf.ByteString getLatestMessageBytes(); + + /** + * + * + *+ * Number of messages prior to and including + * [latest_message][google.cloud.dialogflow.v2beta1.SuggestDialogflowAssistsResponse.latest_message] + * to compile the suggestion. It may be smaller than the + * [SuggestDialogflowAssistsRequest.context_size][google.cloud.dialogflow.v2beta1.SuggestDialogflowAssistsRequest.context_size] + * field in the request if there aren't that many messages in the + * conversation. + *+ * + *int32 context_size = 3;
+ * + * @return The contextSize. + */ + int getContextSize(); +} diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SuggestionFeature.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SuggestionFeature.java index d2864be8ad23..b9a4bb314e09 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SuggestionFeature.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SuggestionFeature.java @@ -114,6 +114,17 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { *SMART_REPLY = 3;
*/ SMART_REPLY(3), + /** + * + * + *+ * Run Dialogflow assist model for chat, which will return automated agent + * response as suggestion. + *+ * + *DIALOGFLOW_ASSIST = 4;
+ */ + DIALOGFLOW_ASSIST(4), /** * * @@ -167,6 +178,17 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { *SMART_REPLY = 3;
*/ public static final int SMART_REPLY_VALUE = 3; + /** + * + * + *+ * Run Dialogflow assist model for chat, which will return automated agent + * response as suggestion. + *+ * + *DIALOGFLOW_ASSIST = 4;
+ */ + public static final int DIALOGFLOW_ASSIST_VALUE = 4; /** * * @@ -210,6 +232,8 @@ public static Type forNumber(int value) { return FAQ; case 3: return SMART_REPLY; + case 4: + return DIALOGFLOW_ASSIST; case 8: return CONVERSATION_SUMMARIZATION; default: diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SuggestionInput.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SuggestionInput.java new file mode 100644 index 000000000000..da8eae57525a --- /dev/null +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SuggestionInput.java @@ -0,0 +1,1749 @@ +/* + * Copyright 2023 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/v2beta1/participant.proto + +package com.google.cloud.dialogflow.v2beta1; + +/** + * + * + *+ * Represents the selection of a suggestion. + *+ * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.SuggestionInput} + */ +public final class SuggestionInput extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.SuggestionInput) + SuggestionInputOrBuilder { + private static final long serialVersionUID = 0L; + // Use SuggestionInput.newBuilder() to construct. + private SuggestionInput(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private SuggestionInput() { + answerRecord_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SuggestionInput(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_SuggestionInput_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_SuggestionInput_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.SuggestionInput.class, + com.google.cloud.dialogflow.v2beta1.SuggestionInput.Builder.class); + } + + public static final int ANSWER_RECORD_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object answerRecord_ = ""; + /** + * + * + *+ * Required. The ID of a suggestion selected by the human agent. + * The suggestion(s) were generated in a previous call to + * request Dialogflow assist. + * The format is: + * `projects/<Project ID>/locations/<Location ID>/answerRecords/<Answer Record + * ID>` where <Answer Record ID> is an alphanumeric string. + *+ * + *string answer_record = 1;
+ * + * @return The answerRecord. + */ + @java.lang.Override + public java.lang.String getAnswerRecord() { + java.lang.Object ref = answerRecord_; + 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(); + answerRecord_ = s; + return s; + } + } + /** + * + * + *+ * Required. The ID of a suggestion selected by the human agent. + * The suggestion(s) were generated in a previous call to + * request Dialogflow assist. + * The format is: + * `projects/<Project ID>/locations/<Location ID>/answerRecords/<Answer Record + * ID>` where <Answer Record ID> is an alphanumeric string. + *+ * + *string answer_record = 1;
+ * + * @return The bytes for answerRecord. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAnswerRecordBytes() { + java.lang.Object ref = answerRecord_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + answerRecord_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TEXT_OVERRIDE_FIELD_NUMBER = 2; + private com.google.cloud.dialogflow.v2beta1.TextInput textOverride_; + /** + * + * + *+ * Optional. If the customer edited the suggestion before using it, include + * the revised text here. + *+ * + *.google.cloud.dialogflow.v2beta1.TextInput text_override = 2;
+ * + * @return Whether the textOverride field is set. + */ + @java.lang.Override + public boolean hasTextOverride() { + return textOverride_ != null; + } + /** + * + * + *+ * Optional. If the customer edited the suggestion before using it, include + * the revised text here. + *+ * + *.google.cloud.dialogflow.v2beta1.TextInput text_override = 2;
+ * + * @return The textOverride. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.TextInput getTextOverride() { + return textOverride_ == null + ? com.google.cloud.dialogflow.v2beta1.TextInput.getDefaultInstance() + : textOverride_; + } + /** + * + * + *+ * Optional. If the customer edited the suggestion before using it, include + * the revised text here. + *+ * + *.google.cloud.dialogflow.v2beta1.TextInput text_override = 2;
+ */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.TextInputOrBuilder getTextOverrideOrBuilder() { + return textOverride_ == null + ? com.google.cloud.dialogflow.v2beta1.TextInput.getDefaultInstance() + : textOverride_; + } + + public static final int PARAMETERS_FIELD_NUMBER = 4; + private com.google.protobuf.Struct parameters_; + /** + * + * + *+ * In Dialogflow assist for v3, the user can submit a form by sending + * a [SuggestionInput][google.cloud.dialogflow.v2beta1.SuggestionInput]. The + * form is uniquely determined by the + * [answer_record][google.cloud.dialogflow.v2beta1.SuggestionInput.answer_record] + * field, which identifies a v3 + * [QueryResult][google.cloud.dialogflow.v3alpha1.QueryResult] containing the + * current [page][google.cloud.dialogflow.v3alpha1.Page]. The form parameters + * are specified via the + * [parameters][google.cloud.dialogflow.v2beta1.SuggestionInput.parameters] + * field. + * + * Depending on your protocol or client library language, this is a + * map, associative array, symbol table, dictionary, or JSON object + * composed of a collection of (MapKey, MapValue) pairs: + * + * - MapKey type: string + * - MapKey value: parameter name + * - MapValue type: + * - If parameter's entity type is a composite entity: map + * - Else: depending on parameter value type, could be one of string, + * number, boolean, null, list or map + * - MapValue value: + * - If parameter's entity type is a composite entity: + * map from composite entity property names to property values + * - Else: parameter value + *+ * + *.google.protobuf.Struct parameters = 4;
+ * + * @return Whether the parameters field is set. + */ + @java.lang.Override + public boolean hasParameters() { + return parameters_ != null; + } + /** + * + * + *+ * In Dialogflow assist for v3, the user can submit a form by sending + * a [SuggestionInput][google.cloud.dialogflow.v2beta1.SuggestionInput]. The + * form is uniquely determined by the + * [answer_record][google.cloud.dialogflow.v2beta1.SuggestionInput.answer_record] + * field, which identifies a v3 + * [QueryResult][google.cloud.dialogflow.v3alpha1.QueryResult] containing the + * current [page][google.cloud.dialogflow.v3alpha1.Page]. The form parameters + * are specified via the + * [parameters][google.cloud.dialogflow.v2beta1.SuggestionInput.parameters] + * field. + * + * Depending on your protocol or client library language, this is a + * map, associative array, symbol table, dictionary, or JSON object + * composed of a collection of (MapKey, MapValue) pairs: + * + * - MapKey type: string + * - MapKey value: parameter name + * - MapValue type: + * - If parameter's entity type is a composite entity: map + * - Else: depending on parameter value type, could be one of string, + * number, boolean, null, list or map + * - MapValue value: + * - If parameter's entity type is a composite entity: + * map from composite entity property names to property values + * - Else: parameter value + *+ * + *.google.protobuf.Struct parameters = 4;
+ * + * @return The parameters. + */ + @java.lang.Override + public com.google.protobuf.Struct getParameters() { + return parameters_ == null ? com.google.protobuf.Struct.getDefaultInstance() : parameters_; + } + /** + * + * + *+ * In Dialogflow assist for v3, the user can submit a form by sending + * a [SuggestionInput][google.cloud.dialogflow.v2beta1.SuggestionInput]. The + * form is uniquely determined by the + * [answer_record][google.cloud.dialogflow.v2beta1.SuggestionInput.answer_record] + * field, which identifies a v3 + * [QueryResult][google.cloud.dialogflow.v3alpha1.QueryResult] containing the + * current [page][google.cloud.dialogflow.v3alpha1.Page]. The form parameters + * are specified via the + * [parameters][google.cloud.dialogflow.v2beta1.SuggestionInput.parameters] + * field. + * + * Depending on your protocol or client library language, this is a + * map, associative array, symbol table, dictionary, or JSON object + * composed of a collection of (MapKey, MapValue) pairs: + * + * - MapKey type: string + * - MapKey value: parameter name + * - MapValue type: + * - If parameter's entity type is a composite entity: map + * - Else: depending on parameter value type, could be one of string, + * number, boolean, null, list or map + * - MapValue value: + * - If parameter's entity type is a composite entity: + * map from composite entity property names to property values + * - Else: parameter value + *+ * + *.google.protobuf.Struct parameters = 4;
+ */ + @java.lang.Override + public com.google.protobuf.StructOrBuilder getParametersOrBuilder() { + return parameters_ == null ? com.google.protobuf.Struct.getDefaultInstance() : parameters_; + } + + public static final int INTENT_INPUT_FIELD_NUMBER = 6; + private com.google.cloud.dialogflow.v2beta1.IntentInput intentInput_; + /** + * + * + *+ * The intent to be triggered on V3 agent. + *+ * + *.google.cloud.dialogflow.v2beta1.IntentInput intent_input = 6;
+ * + * @return Whether the intentInput field is set. + */ + @java.lang.Override + public boolean hasIntentInput() { + return intentInput_ != null; + } + /** + * + * + *+ * The intent to be triggered on V3 agent. + *+ * + *.google.cloud.dialogflow.v2beta1.IntentInput intent_input = 6;
+ * + * @return The intentInput. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.IntentInput getIntentInput() { + return intentInput_ == null + ? com.google.cloud.dialogflow.v2beta1.IntentInput.getDefaultInstance() + : intentInput_; + } + /** + * + * + *+ * The intent to be triggered on V3 agent. + *+ * + *.google.cloud.dialogflow.v2beta1.IntentInput intent_input = 6;
+ */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.IntentInputOrBuilder getIntentInputOrBuilder() { + return intentInput_ == null + ? com.google.cloud.dialogflow.v2beta1.IntentInput.getDefaultInstance() + : intentInput_; + } + + 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(answerRecord_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, answerRecord_); + } + if (textOverride_ != null) { + output.writeMessage(2, getTextOverride()); + } + if (parameters_ != null) { + output.writeMessage(4, getParameters()); + } + if (intentInput_ != null) { + output.writeMessage(6, getIntentInput()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(answerRecord_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, answerRecord_); + } + if (textOverride_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getTextOverride()); + } + if (parameters_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getParameters()); + } + if (intentInput_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getIntentInput()); + } + size += getUnknownFields().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.v2beta1.SuggestionInput)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.v2beta1.SuggestionInput other = + (com.google.cloud.dialogflow.v2beta1.SuggestionInput) obj; + + if (!getAnswerRecord().equals(other.getAnswerRecord())) return false; + if (hasTextOverride() != other.hasTextOverride()) return false; + if (hasTextOverride()) { + if (!getTextOverride().equals(other.getTextOverride())) return false; + } + if (hasParameters() != other.hasParameters()) return false; + if (hasParameters()) { + if (!getParameters().equals(other.getParameters())) return false; + } + if (hasIntentInput() != other.hasIntentInput()) return false; + if (hasIntentInput()) { + if (!getIntentInput().equals(other.getIntentInput())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + ANSWER_RECORD_FIELD_NUMBER; + hash = (53 * hash) + getAnswerRecord().hashCode(); + if (hasTextOverride()) { + hash = (37 * hash) + TEXT_OVERRIDE_FIELD_NUMBER; + hash = (53 * hash) + getTextOverride().hashCode(); + } + if (hasParameters()) { + hash = (37 * hash) + PARAMETERS_FIELD_NUMBER; + hash = (53 * hash) + getParameters().hashCode(); + } + if (hasIntentInput()) { + hash = (37 * hash) + INTENT_INPUT_FIELD_NUMBER; + hash = (53 * hash) + getIntentInput().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.v2beta1.SuggestionInput parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.SuggestionInput 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.v2beta1.SuggestionInput parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.SuggestionInput 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.v2beta1.SuggestionInput parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.SuggestionInput parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.SuggestionInput parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.SuggestionInput 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.v2beta1.SuggestionInput parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.SuggestionInput 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.v2beta1.SuggestionInput parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.SuggestionInput 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.v2beta1.SuggestionInput 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; + } + /** + * + * + *+ * Represents the selection of a suggestion. + *+ * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.SuggestionInput} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder+ implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2beta1.SuggestionInput) + com.google.cloud.dialogflow.v2beta1.SuggestionInputOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_SuggestionInput_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_SuggestionInput_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.SuggestionInput.class, + com.google.cloud.dialogflow.v2beta1.SuggestionInput.Builder.class); + } + + // Construct using com.google.cloud.dialogflow.v2beta1.SuggestionInput.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + answerRecord_ = ""; + textOverride_ = null; + if (textOverrideBuilder_ != null) { + textOverrideBuilder_.dispose(); + textOverrideBuilder_ = null; + } + parameters_ = null; + if (parametersBuilder_ != null) { + parametersBuilder_.dispose(); + parametersBuilder_ = null; + } + intentInput_ = null; + if (intentInputBuilder_ != null) { + intentInputBuilder_.dispose(); + intentInputBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_SuggestionInput_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.SuggestionInput getDefaultInstanceForType() { + return com.google.cloud.dialogflow.v2beta1.SuggestionInput.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.SuggestionInput build() { + com.google.cloud.dialogflow.v2beta1.SuggestionInput result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.SuggestionInput buildPartial() { + com.google.cloud.dialogflow.v2beta1.SuggestionInput result = + new com.google.cloud.dialogflow.v2beta1.SuggestionInput(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.dialogflow.v2beta1.SuggestionInput result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.answerRecord_ = answerRecord_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.textOverride_ = + textOverrideBuilder_ == null ? textOverride_ : textOverrideBuilder_.build(); + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.parameters_ = parametersBuilder_ == null ? parameters_ : parametersBuilder_.build(); + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.intentInput_ = + intentInputBuilder_ == null ? intentInput_ : intentInputBuilder_.build(); + } + } + + @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.v2beta1.SuggestionInput) { + return mergeFrom((com.google.cloud.dialogflow.v2beta1.SuggestionInput) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dialogflow.v2beta1.SuggestionInput other) { + if (other == com.google.cloud.dialogflow.v2beta1.SuggestionInput.getDefaultInstance()) + return this; + if (!other.getAnswerRecord().isEmpty()) { + answerRecord_ = other.answerRecord_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasTextOverride()) { + mergeTextOverride(other.getTextOverride()); + } + if (other.hasParameters()) { + mergeParameters(other.getParameters()); + } + if (other.hasIntentInput()) { + mergeIntentInput(other.getIntentInput()); + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + answerRecord_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getTextOverrideFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 34: + { + input.readMessage(getParametersFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 34 + case 50: + { + input.readMessage(getIntentInputFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 50 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object answerRecord_ = ""; + /** + * + * + * + * Required. The ID of a suggestion selected by the human agent. + * The suggestion(s) were generated in a previous call to + * request Dialogflow assist. + * The format is: + * `projects/<Project ID>/locations/<Location ID>/answerRecords/<Answer Record + * ID>` where <Answer Record ID> is an alphanumeric string. + *+ * + *string answer_record = 1;
+ * + * @return The answerRecord. + */ + public java.lang.String getAnswerRecord() { + java.lang.Object ref = answerRecord_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + answerRecord_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *+ * Required. The ID of a suggestion selected by the human agent. + * The suggestion(s) were generated in a previous call to + * request Dialogflow assist. + * The format is: + * `projects/<Project ID>/locations/<Location ID>/answerRecords/<Answer Record + * ID>` where <Answer Record ID> is an alphanumeric string. + *+ * + *string answer_record = 1;
+ * + * @return The bytes for answerRecord. + */ + public com.google.protobuf.ByteString getAnswerRecordBytes() { + java.lang.Object ref = answerRecord_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + answerRecord_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *+ * Required. The ID of a suggestion selected by the human agent. + * The suggestion(s) were generated in a previous call to + * request Dialogflow assist. + * The format is: + * `projects/<Project ID>/locations/<Location ID>/answerRecords/<Answer Record + * ID>` where <Answer Record ID> is an alphanumeric string. + *+ * + *string answer_record = 1;
+ * + * @param value The answerRecord to set. + * @return This builder for chaining. + */ + public Builder setAnswerRecord(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + answerRecord_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *+ * Required. The ID of a suggestion selected by the human agent. + * The suggestion(s) were generated in a previous call to + * request Dialogflow assist. + * The format is: + * `projects/<Project ID>/locations/<Location ID>/answerRecords/<Answer Record + * ID>` where <Answer Record ID> is an alphanumeric string. + *+ * + *string answer_record = 1;
+ * + * @return This builder for chaining. + */ + public Builder clearAnswerRecord() { + answerRecord_ = getDefaultInstance().getAnswerRecord(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *+ * Required. The ID of a suggestion selected by the human agent. + * The suggestion(s) were generated in a previous call to + * request Dialogflow assist. + * The format is: + * `projects/<Project ID>/locations/<Location ID>/answerRecords/<Answer Record + * ID>` where <Answer Record ID> is an alphanumeric string. + *+ * + *string answer_record = 1;
+ * + * @param value The bytes for answerRecord to set. + * @return This builder for chaining. + */ + public Builder setAnswerRecordBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + answerRecord_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.cloud.dialogflow.v2beta1.TextInput textOverride_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.TextInput, + com.google.cloud.dialogflow.v2beta1.TextInput.Builder, + com.google.cloud.dialogflow.v2beta1.TextInputOrBuilder> + textOverrideBuilder_; + /** + * + * + *+ * Optional. If the customer edited the suggestion before using it, include + * the revised text here. + *+ * + *.google.cloud.dialogflow.v2beta1.TextInput text_override = 2;
+ * + * @return Whether the textOverride field is set. + */ + public boolean hasTextOverride() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *+ * Optional. If the customer edited the suggestion before using it, include + * the revised text here. + *+ * + *.google.cloud.dialogflow.v2beta1.TextInput text_override = 2;
+ * + * @return The textOverride. + */ + public com.google.cloud.dialogflow.v2beta1.TextInput getTextOverride() { + if (textOverrideBuilder_ == null) { + return textOverride_ == null + ? com.google.cloud.dialogflow.v2beta1.TextInput.getDefaultInstance() + : textOverride_; + } else { + return textOverrideBuilder_.getMessage(); + } + } + /** + * + * + *+ * Optional. If the customer edited the suggestion before using it, include + * the revised text here. + *+ * + *.google.cloud.dialogflow.v2beta1.TextInput text_override = 2;
+ */ + public Builder setTextOverride(com.google.cloud.dialogflow.v2beta1.TextInput value) { + if (textOverrideBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + textOverride_ = value; + } else { + textOverrideBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *+ * Optional. If the customer edited the suggestion before using it, include + * the revised text here. + *+ * + *.google.cloud.dialogflow.v2beta1.TextInput text_override = 2;
+ */ + public Builder setTextOverride( + com.google.cloud.dialogflow.v2beta1.TextInput.Builder builderForValue) { + if (textOverrideBuilder_ == null) { + textOverride_ = builderForValue.build(); + } else { + textOverrideBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *+ * Optional. If the customer edited the suggestion before using it, include + * the revised text here. + *+ * + *.google.cloud.dialogflow.v2beta1.TextInput text_override = 2;
+ */ + public Builder mergeTextOverride(com.google.cloud.dialogflow.v2beta1.TextInput value) { + if (textOverrideBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && textOverride_ != null + && textOverride_ + != com.google.cloud.dialogflow.v2beta1.TextInput.getDefaultInstance()) { + getTextOverrideBuilder().mergeFrom(value); + } else { + textOverride_ = value; + } + } else { + textOverrideBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *+ * Optional. If the customer edited the suggestion before using it, include + * the revised text here. + *+ * + *.google.cloud.dialogflow.v2beta1.TextInput text_override = 2;
+ */ + public Builder clearTextOverride() { + bitField0_ = (bitField0_ & ~0x00000002); + textOverride_ = null; + if (textOverrideBuilder_ != null) { + textOverrideBuilder_.dispose(); + textOverrideBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *+ * Optional. If the customer edited the suggestion before using it, include + * the revised text here. + *+ * + *.google.cloud.dialogflow.v2beta1.TextInput text_override = 2;
+ */ + public com.google.cloud.dialogflow.v2beta1.TextInput.Builder getTextOverrideBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getTextOverrideFieldBuilder().getBuilder(); + } + /** + * + * + *+ * Optional. If the customer edited the suggestion before using it, include + * the revised text here. + *+ * + *.google.cloud.dialogflow.v2beta1.TextInput text_override = 2;
+ */ + public com.google.cloud.dialogflow.v2beta1.TextInputOrBuilder getTextOverrideOrBuilder() { + if (textOverrideBuilder_ != null) { + return textOverrideBuilder_.getMessageOrBuilder(); + } else { + return textOverride_ == null + ? com.google.cloud.dialogflow.v2beta1.TextInput.getDefaultInstance() + : textOverride_; + } + } + /** + * + * + *+ * Optional. If the customer edited the suggestion before using it, include + * the revised text here. + *+ * + *.google.cloud.dialogflow.v2beta1.TextInput text_override = 2;
+ */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.TextInput, + com.google.cloud.dialogflow.v2beta1.TextInput.Builder, + com.google.cloud.dialogflow.v2beta1.TextInputOrBuilder> + getTextOverrideFieldBuilder() { + if (textOverrideBuilder_ == null) { + textOverrideBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.TextInput, + com.google.cloud.dialogflow.v2beta1.TextInput.Builder, + com.google.cloud.dialogflow.v2beta1.TextInputOrBuilder>( + getTextOverride(), getParentForChildren(), isClean()); + textOverride_ = null; + } + return textOverrideBuilder_; + } + + private com.google.protobuf.Struct parameters_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + parametersBuilder_; + /** + * + * + *+ * In Dialogflow assist for v3, the user can submit a form by sending + * a [SuggestionInput][google.cloud.dialogflow.v2beta1.SuggestionInput]. The + * form is uniquely determined by the + * [answer_record][google.cloud.dialogflow.v2beta1.SuggestionInput.answer_record] + * field, which identifies a v3 + * [QueryResult][google.cloud.dialogflow.v3alpha1.QueryResult] containing the + * current [page][google.cloud.dialogflow.v3alpha1.Page]. The form parameters + * are specified via the + * [parameters][google.cloud.dialogflow.v2beta1.SuggestionInput.parameters] + * field. + * + * Depending on your protocol or client library language, this is a + * map, associative array, symbol table, dictionary, or JSON object + * composed of a collection of (MapKey, MapValue) pairs: + * + * - MapKey type: string + * - MapKey value: parameter name + * - MapValue type: + * - If parameter's entity type is a composite entity: map + * - Else: depending on parameter value type, could be one of string, + * number, boolean, null, list or map + * - MapValue value: + * - If parameter's entity type is a composite entity: + * map from composite entity property names to property values + * - Else: parameter value + *+ * + *.google.protobuf.Struct parameters = 4;
+ * + * @return Whether the parameters field is set. + */ + public boolean hasParameters() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *+ * In Dialogflow assist for v3, the user can submit a form by sending + * a [SuggestionInput][google.cloud.dialogflow.v2beta1.SuggestionInput]. The + * form is uniquely determined by the + * [answer_record][google.cloud.dialogflow.v2beta1.SuggestionInput.answer_record] + * field, which identifies a v3 + * [QueryResult][google.cloud.dialogflow.v3alpha1.QueryResult] containing the + * current [page][google.cloud.dialogflow.v3alpha1.Page]. The form parameters + * are specified via the + * [parameters][google.cloud.dialogflow.v2beta1.SuggestionInput.parameters] + * field. + * + * Depending on your protocol or client library language, this is a + * map, associative array, symbol table, dictionary, or JSON object + * composed of a collection of (MapKey, MapValue) pairs: + * + * - MapKey type: string + * - MapKey value: parameter name + * - MapValue type: + * - If parameter's entity type is a composite entity: map + * - Else: depending on parameter value type, could be one of string, + * number, boolean, null, list or map + * - MapValue value: + * - If parameter's entity type is a composite entity: + * map from composite entity property names to property values + * - Else: parameter value + *+ * + *.google.protobuf.Struct parameters = 4;
+ * + * @return The parameters. + */ + public com.google.protobuf.Struct getParameters() { + if (parametersBuilder_ == null) { + return parameters_ == null ? com.google.protobuf.Struct.getDefaultInstance() : parameters_; + } else { + return parametersBuilder_.getMessage(); + } + } + /** + * + * + *+ * In Dialogflow assist for v3, the user can submit a form by sending + * a [SuggestionInput][google.cloud.dialogflow.v2beta1.SuggestionInput]. The + * form is uniquely determined by the + * [answer_record][google.cloud.dialogflow.v2beta1.SuggestionInput.answer_record] + * field, which identifies a v3 + * [QueryResult][google.cloud.dialogflow.v3alpha1.QueryResult] containing the + * current [page][google.cloud.dialogflow.v3alpha1.Page]. The form parameters + * are specified via the + * [parameters][google.cloud.dialogflow.v2beta1.SuggestionInput.parameters] + * field. + * + * Depending on your protocol or client library language, this is a + * map, associative array, symbol table, dictionary, or JSON object + * composed of a collection of (MapKey, MapValue) pairs: + * + * - MapKey type: string + * - MapKey value: parameter name + * - MapValue type: + * - If parameter's entity type is a composite entity: map + * - Else: depending on parameter value type, could be one of string, + * number, boolean, null, list or map + * - MapValue value: + * - If parameter's entity type is a composite entity: + * map from composite entity property names to property values + * - Else: parameter value + *+ * + *.google.protobuf.Struct parameters = 4;
+ */ + public Builder setParameters(com.google.protobuf.Struct value) { + if (parametersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + parameters_ = value; + } else { + parametersBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *+ * In Dialogflow assist for v3, the user can submit a form by sending + * a [SuggestionInput][google.cloud.dialogflow.v2beta1.SuggestionInput]. The + * form is uniquely determined by the + * [answer_record][google.cloud.dialogflow.v2beta1.SuggestionInput.answer_record] + * field, which identifies a v3 + * [QueryResult][google.cloud.dialogflow.v3alpha1.QueryResult] containing the + * current [page][google.cloud.dialogflow.v3alpha1.Page]. The form parameters + * are specified via the + * [parameters][google.cloud.dialogflow.v2beta1.SuggestionInput.parameters] + * field. + * + * Depending on your protocol or client library language, this is a + * map, associative array, symbol table, dictionary, or JSON object + * composed of a collection of (MapKey, MapValue) pairs: + * + * - MapKey type: string + * - MapKey value: parameter name + * - MapValue type: + * - If parameter's entity type is a composite entity: map + * - Else: depending on parameter value type, could be one of string, + * number, boolean, null, list or map + * - MapValue value: + * - If parameter's entity type is a composite entity: + * map from composite entity property names to property values + * - Else: parameter value + *+ * + *.google.protobuf.Struct parameters = 4;
+ */ + public Builder setParameters(com.google.protobuf.Struct.Builder builderForValue) { + if (parametersBuilder_ == null) { + parameters_ = builderForValue.build(); + } else { + parametersBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *+ * In Dialogflow assist for v3, the user can submit a form by sending + * a [SuggestionInput][google.cloud.dialogflow.v2beta1.SuggestionInput]. The + * form is uniquely determined by the + * [answer_record][google.cloud.dialogflow.v2beta1.SuggestionInput.answer_record] + * field, which identifies a v3 + * [QueryResult][google.cloud.dialogflow.v3alpha1.QueryResult] containing the + * current [page][google.cloud.dialogflow.v3alpha1.Page]. The form parameters + * are specified via the + * [parameters][google.cloud.dialogflow.v2beta1.SuggestionInput.parameters] + * field. + * + * Depending on your protocol or client library language, this is a + * map, associative array, symbol table, dictionary, or JSON object + * composed of a collection of (MapKey, MapValue) pairs: + * + * - MapKey type: string + * - MapKey value: parameter name + * - MapValue type: + * - If parameter's entity type is a composite entity: map + * - Else: depending on parameter value type, could be one of string, + * number, boolean, null, list or map + * - MapValue value: + * - If parameter's entity type is a composite entity: + * map from composite entity property names to property values + * - Else: parameter value + *+ * + *.google.protobuf.Struct parameters = 4;
+ */ + public Builder mergeParameters(com.google.protobuf.Struct value) { + if (parametersBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && parameters_ != null + && parameters_ != com.google.protobuf.Struct.getDefaultInstance()) { + getParametersBuilder().mergeFrom(value); + } else { + parameters_ = value; + } + } else { + parametersBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *+ * In Dialogflow assist for v3, the user can submit a form by sending + * a [SuggestionInput][google.cloud.dialogflow.v2beta1.SuggestionInput]. The + * form is uniquely determined by the + * [answer_record][google.cloud.dialogflow.v2beta1.SuggestionInput.answer_record] + * field, which identifies a v3 + * [QueryResult][google.cloud.dialogflow.v3alpha1.QueryResult] containing the + * current [page][google.cloud.dialogflow.v3alpha1.Page]. The form parameters + * are specified via the + * [parameters][google.cloud.dialogflow.v2beta1.SuggestionInput.parameters] + * field. + * + * Depending on your protocol or client library language, this is a + * map, associative array, symbol table, dictionary, or JSON object + * composed of a collection of (MapKey, MapValue) pairs: + * + * - MapKey type: string + * - MapKey value: parameter name + * - MapValue type: + * - If parameter's entity type is a composite entity: map + * - Else: depending on parameter value type, could be one of string, + * number, boolean, null, list or map + * - MapValue value: + * - If parameter's entity type is a composite entity: + * map from composite entity property names to property values + * - Else: parameter value + *+ * + *.google.protobuf.Struct parameters = 4;
+ */ + public Builder clearParameters() { + bitField0_ = (bitField0_ & ~0x00000004); + parameters_ = null; + if (parametersBuilder_ != null) { + parametersBuilder_.dispose(); + parametersBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *+ * In Dialogflow assist for v3, the user can submit a form by sending + * a [SuggestionInput][google.cloud.dialogflow.v2beta1.SuggestionInput]. The + * form is uniquely determined by the + * [answer_record][google.cloud.dialogflow.v2beta1.SuggestionInput.answer_record] + * field, which identifies a v3 + * [QueryResult][google.cloud.dialogflow.v3alpha1.QueryResult] containing the + * current [page][google.cloud.dialogflow.v3alpha1.Page]. The form parameters + * are specified via the + * [parameters][google.cloud.dialogflow.v2beta1.SuggestionInput.parameters] + * field. + * + * Depending on your protocol or client library language, this is a + * map, associative array, symbol table, dictionary, or JSON object + * composed of a collection of (MapKey, MapValue) pairs: + * + * - MapKey type: string + * - MapKey value: parameter name + * - MapValue type: + * - If parameter's entity type is a composite entity: map + * - Else: depending on parameter value type, could be one of string, + * number, boolean, null, list or map + * - MapValue value: + * - If parameter's entity type is a composite entity: + * map from composite entity property names to property values + * - Else: parameter value + *+ * + *.google.protobuf.Struct parameters = 4;
+ */ + public com.google.protobuf.Struct.Builder getParametersBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getParametersFieldBuilder().getBuilder(); + } + /** + * + * + *+ * In Dialogflow assist for v3, the user can submit a form by sending + * a [SuggestionInput][google.cloud.dialogflow.v2beta1.SuggestionInput]. The + * form is uniquely determined by the + * [answer_record][google.cloud.dialogflow.v2beta1.SuggestionInput.answer_record] + * field, which identifies a v3 + * [QueryResult][google.cloud.dialogflow.v3alpha1.QueryResult] containing the + * current [page][google.cloud.dialogflow.v3alpha1.Page]. The form parameters + * are specified via the + * [parameters][google.cloud.dialogflow.v2beta1.SuggestionInput.parameters] + * field. + * + * Depending on your protocol or client library language, this is a + * map, associative array, symbol table, dictionary, or JSON object + * composed of a collection of (MapKey, MapValue) pairs: + * + * - MapKey type: string + * - MapKey value: parameter name + * - MapValue type: + * - If parameter's entity type is a composite entity: map + * - Else: depending on parameter value type, could be one of string, + * number, boolean, null, list or map + * - MapValue value: + * - If parameter's entity type is a composite entity: + * map from composite entity property names to property values + * - Else: parameter value + *+ * + *.google.protobuf.Struct parameters = 4;
+ */ + public com.google.protobuf.StructOrBuilder getParametersOrBuilder() { + if (parametersBuilder_ != null) { + return parametersBuilder_.getMessageOrBuilder(); + } else { + return parameters_ == null ? com.google.protobuf.Struct.getDefaultInstance() : parameters_; + } + } + /** + * + * + *+ * In Dialogflow assist for v3, the user can submit a form by sending + * a [SuggestionInput][google.cloud.dialogflow.v2beta1.SuggestionInput]. The + * form is uniquely determined by the + * [answer_record][google.cloud.dialogflow.v2beta1.SuggestionInput.answer_record] + * field, which identifies a v3 + * [QueryResult][google.cloud.dialogflow.v3alpha1.QueryResult] containing the + * current [page][google.cloud.dialogflow.v3alpha1.Page]. The form parameters + * are specified via the + * [parameters][google.cloud.dialogflow.v2beta1.SuggestionInput.parameters] + * field. + * + * Depending on your protocol or client library language, this is a + * map, associative array, symbol table, dictionary, or JSON object + * composed of a collection of (MapKey, MapValue) pairs: + * + * - MapKey type: string + * - MapKey value: parameter name + * - MapValue type: + * - If parameter's entity type is a composite entity: map + * - Else: depending on parameter value type, could be one of string, + * number, boolean, null, list or map + * - MapValue value: + * - If parameter's entity type is a composite entity: + * map from composite entity property names to property values + * - Else: parameter value + *+ * + *.google.protobuf.Struct parameters = 4;
+ */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + getParametersFieldBuilder() { + if (parametersBuilder_ == null) { + parametersBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder>( + getParameters(), getParentForChildren(), isClean()); + parameters_ = null; + } + return parametersBuilder_; + } + + private com.google.cloud.dialogflow.v2beta1.IntentInput intentInput_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.IntentInput, + com.google.cloud.dialogflow.v2beta1.IntentInput.Builder, + com.google.cloud.dialogflow.v2beta1.IntentInputOrBuilder> + intentInputBuilder_; + /** + * + * + *+ * The intent to be triggered on V3 agent. + *+ * + *.google.cloud.dialogflow.v2beta1.IntentInput intent_input = 6;
+ * + * @return Whether the intentInput field is set. + */ + public boolean hasIntentInput() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * + * + *+ * The intent to be triggered on V3 agent. + *+ * + *.google.cloud.dialogflow.v2beta1.IntentInput intent_input = 6;
+ * + * @return The intentInput. + */ + public com.google.cloud.dialogflow.v2beta1.IntentInput getIntentInput() { + if (intentInputBuilder_ == null) { + return intentInput_ == null + ? com.google.cloud.dialogflow.v2beta1.IntentInput.getDefaultInstance() + : intentInput_; + } else { + return intentInputBuilder_.getMessage(); + } + } + /** + * + * + *+ * The intent to be triggered on V3 agent. + *+ * + *.google.cloud.dialogflow.v2beta1.IntentInput intent_input = 6;
+ */ + public Builder setIntentInput(com.google.cloud.dialogflow.v2beta1.IntentInput value) { + if (intentInputBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + intentInput_ = value; + } else { + intentInputBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *+ * The intent to be triggered on V3 agent. + *+ * + *.google.cloud.dialogflow.v2beta1.IntentInput intent_input = 6;
+ */ + public Builder setIntentInput( + com.google.cloud.dialogflow.v2beta1.IntentInput.Builder builderForValue) { + if (intentInputBuilder_ == null) { + intentInput_ = builderForValue.build(); + } else { + intentInputBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *+ * The intent to be triggered on V3 agent. + *+ * + *.google.cloud.dialogflow.v2beta1.IntentInput intent_input = 6;
+ */ + public Builder mergeIntentInput(com.google.cloud.dialogflow.v2beta1.IntentInput value) { + if (intentInputBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && intentInput_ != null + && intentInput_ + != com.google.cloud.dialogflow.v2beta1.IntentInput.getDefaultInstance()) { + getIntentInputBuilder().mergeFrom(value); + } else { + intentInput_ = value; + } + } else { + intentInputBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *+ * The intent to be triggered on V3 agent. + *+ * + *.google.cloud.dialogflow.v2beta1.IntentInput intent_input = 6;
+ */ + public Builder clearIntentInput() { + bitField0_ = (bitField0_ & ~0x00000008); + intentInput_ = null; + if (intentInputBuilder_ != null) { + intentInputBuilder_.dispose(); + intentInputBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *+ * The intent to be triggered on V3 agent. + *+ * + *.google.cloud.dialogflow.v2beta1.IntentInput intent_input = 6;
+ */ + public com.google.cloud.dialogflow.v2beta1.IntentInput.Builder getIntentInputBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getIntentInputFieldBuilder().getBuilder(); + } + /** + * + * + *+ * The intent to be triggered on V3 agent. + *+ * + *.google.cloud.dialogflow.v2beta1.IntentInput intent_input = 6;
+ */ + public com.google.cloud.dialogflow.v2beta1.IntentInputOrBuilder getIntentInputOrBuilder() { + if (intentInputBuilder_ != null) { + return intentInputBuilder_.getMessageOrBuilder(); + } else { + return intentInput_ == null + ? com.google.cloud.dialogflow.v2beta1.IntentInput.getDefaultInstance() + : intentInput_; + } + } + /** + * + * + *+ * The intent to be triggered on V3 agent. + *+ * + *.google.cloud.dialogflow.v2beta1.IntentInput intent_input = 6;
+ */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.IntentInput, + com.google.cloud.dialogflow.v2beta1.IntentInput.Builder, + com.google.cloud.dialogflow.v2beta1.IntentInputOrBuilder> + getIntentInputFieldBuilder() { + if (intentInputBuilder_ == null) { + intentInputBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.IntentInput, + com.google.cloud.dialogflow.v2beta1.IntentInput.Builder, + com.google.cloud.dialogflow.v2beta1.IntentInputOrBuilder>( + getIntentInput(), getParentForChildren(), isClean()); + intentInput_ = null; + } + return intentInputBuilder_; + } + + @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.v2beta1.SuggestionInput) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.SuggestionInput) + private static final com.google.cloud.dialogflow.v2beta1.SuggestionInput DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2beta1.SuggestionInput(); + } + + public static com.google.cloud.dialogflow.v2beta1.SuggestionInput getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.ParserPARSER = + new com.google.protobuf.AbstractParser () { + @java.lang.Override + public SuggestionInput parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + 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.v2beta1.SuggestionInput getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SuggestionInputOrBuilder.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SuggestionInputOrBuilder.java new file mode 100644 index 000000000000..c75fd4b590cc --- /dev/null +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SuggestionInputOrBuilder.java @@ -0,0 +1,240 @@ +/* + * Copyright 2023 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/v2beta1/participant.proto + +package com.google.cloud.dialogflow.v2beta1; + +public interface SuggestionInputOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2beta1.SuggestionInput) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + * + * Required. The ID of a suggestion selected by the human agent. + * The suggestion(s) were generated in a previous call to + * request Dialogflow assist. + * The format is: + * `projects/<Project ID>/locations/<Location ID>/answerRecords/<Answer Record + * ID>` where <Answer Record ID> is an alphanumeric string. + *+ * + *string answer_record = 1;
+ * + * @return The answerRecord. + */ + java.lang.String getAnswerRecord(); + /** + * + * + *+ * Required. The ID of a suggestion selected by the human agent. + * The suggestion(s) were generated in a previous call to + * request Dialogflow assist. + * The format is: + * `projects/<Project ID>/locations/<Location ID>/answerRecords/<Answer Record + * ID>` where <Answer Record ID> is an alphanumeric string. + *+ * + *string answer_record = 1;
+ * + * @return The bytes for answerRecord. + */ + com.google.protobuf.ByteString getAnswerRecordBytes(); + + /** + * + * + *+ * Optional. If the customer edited the suggestion before using it, include + * the revised text here. + *+ * + *.google.cloud.dialogflow.v2beta1.TextInput text_override = 2;
+ * + * @return Whether the textOverride field is set. + */ + boolean hasTextOverride(); + /** + * + * + *+ * Optional. If the customer edited the suggestion before using it, include + * the revised text here. + *+ * + *.google.cloud.dialogflow.v2beta1.TextInput text_override = 2;
+ * + * @return The textOverride. + */ + com.google.cloud.dialogflow.v2beta1.TextInput getTextOverride(); + /** + * + * + *+ * Optional. If the customer edited the suggestion before using it, include + * the revised text here. + *+ * + *.google.cloud.dialogflow.v2beta1.TextInput text_override = 2;
+ */ + com.google.cloud.dialogflow.v2beta1.TextInputOrBuilder getTextOverrideOrBuilder(); + + /** + * + * + *+ * In Dialogflow assist for v3, the user can submit a form by sending + * a [SuggestionInput][google.cloud.dialogflow.v2beta1.SuggestionInput]. The + * form is uniquely determined by the + * [answer_record][google.cloud.dialogflow.v2beta1.SuggestionInput.answer_record] + * field, which identifies a v3 + * [QueryResult][google.cloud.dialogflow.v3alpha1.QueryResult] containing the + * current [page][google.cloud.dialogflow.v3alpha1.Page]. The form parameters + * are specified via the + * [parameters][google.cloud.dialogflow.v2beta1.SuggestionInput.parameters] + * field. + * + * Depending on your protocol or client library language, this is a + * map, associative array, symbol table, dictionary, or JSON object + * composed of a collection of (MapKey, MapValue) pairs: + * + * - MapKey type: string + * - MapKey value: parameter name + * - MapValue type: + * - If parameter's entity type is a composite entity: map + * - Else: depending on parameter value type, could be one of string, + * number, boolean, null, list or map + * - MapValue value: + * - If parameter's entity type is a composite entity: + * map from composite entity property names to property values + * - Else: parameter value + *+ * + *.google.protobuf.Struct parameters = 4;
+ * + * @return Whether the parameters field is set. + */ + boolean hasParameters(); + /** + * + * + *+ * In Dialogflow assist for v3, the user can submit a form by sending + * a [SuggestionInput][google.cloud.dialogflow.v2beta1.SuggestionInput]. The + * form is uniquely determined by the + * [answer_record][google.cloud.dialogflow.v2beta1.SuggestionInput.answer_record] + * field, which identifies a v3 + * [QueryResult][google.cloud.dialogflow.v3alpha1.QueryResult] containing the + * current [page][google.cloud.dialogflow.v3alpha1.Page]. The form parameters + * are specified via the + * [parameters][google.cloud.dialogflow.v2beta1.SuggestionInput.parameters] + * field. + * + * Depending on your protocol or client library language, this is a + * map, associative array, symbol table, dictionary, or JSON object + * composed of a collection of (MapKey, MapValue) pairs: + * + * - MapKey type: string + * - MapKey value: parameter name + * - MapValue type: + * - If parameter's entity type is a composite entity: map + * - Else: depending on parameter value type, could be one of string, + * number, boolean, null, list or map + * - MapValue value: + * - If parameter's entity type is a composite entity: + * map from composite entity property names to property values + * - Else: parameter value + *+ * + *.google.protobuf.Struct parameters = 4;
+ * + * @return The parameters. + */ + com.google.protobuf.Struct getParameters(); + /** + * + * + *+ * In Dialogflow assist for v3, the user can submit a form by sending + * a [SuggestionInput][google.cloud.dialogflow.v2beta1.SuggestionInput]. The + * form is uniquely determined by the + * [answer_record][google.cloud.dialogflow.v2beta1.SuggestionInput.answer_record] + * field, which identifies a v3 + * [QueryResult][google.cloud.dialogflow.v3alpha1.QueryResult] containing the + * current [page][google.cloud.dialogflow.v3alpha1.Page]. The form parameters + * are specified via the + * [parameters][google.cloud.dialogflow.v2beta1.SuggestionInput.parameters] + * field. + * + * Depending on your protocol or client library language, this is a + * map, associative array, symbol table, dictionary, or JSON object + * composed of a collection of (MapKey, MapValue) pairs: + * + * - MapKey type: string + * - MapKey value: parameter name + * - MapValue type: + * - If parameter's entity type is a composite entity: map + * - Else: depending on parameter value type, could be one of string, + * number, boolean, null, list or map + * - MapValue value: + * - If parameter's entity type is a composite entity: + * map from composite entity property names to property values + * - Else: parameter value + *+ * + *.google.protobuf.Struct parameters = 4;
+ */ + com.google.protobuf.StructOrBuilder getParametersOrBuilder(); + + /** + * + * + *+ * The intent to be triggered on V3 agent. + *+ * + *.google.cloud.dialogflow.v2beta1.IntentInput intent_input = 6;
+ * + * @return Whether the intentInput field is set. + */ + boolean hasIntentInput(); + /** + * + * + *+ * The intent to be triggered on V3 agent. + *+ * + *.google.cloud.dialogflow.v2beta1.IntentInput intent_input = 6;
+ * + * @return The intentInput. + */ + com.google.cloud.dialogflow.v2beta1.IntentInput getIntentInput(); + /** + * + * + *+ * The intent to be triggered on V3 agent. + *+ * + *.google.cloud.dialogflow.v2beta1.IntentInput intent_input = 6;
+ */ + com.google.cloud.dialogflow.v2beta1.IntentInputOrBuilder getIntentInputOrBuilder(); +} diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SuggestionResult.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SuggestionResult.java index a34c38eb1bb8..9dd58a881f2a 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SuggestionResult.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SuggestionResult.java @@ -79,6 +79,8 @@ public enum SuggestionResponseCase SUGGEST_ARTICLES_RESPONSE(2), SUGGEST_FAQ_ANSWERS_RESPONSE(3), SUGGEST_SMART_REPLIES_RESPONSE(4), + SUGGEST_DIALOGFLOW_ASSISTS_RESPONSE(5), + SUGGEST_ENTITY_EXTRACTION_RESPONSE(7), SUGGESTIONRESPONSE_NOT_SET(0); private final int value; @@ -105,6 +107,10 @@ public static SuggestionResponseCase forNumber(int value) { return SUGGEST_FAQ_ANSWERS_RESPONSE; case 4: return SUGGEST_SMART_REPLIES_RESPONSE; + case 5: + return SUGGEST_DIALOGFLOW_ASSISTS_RESPONSE; + case 7: + return SUGGEST_ENTITY_EXTRACTION_RESPONSE; case 0: return SUGGESTIONRESPONSE_NOT_SET; default: @@ -345,6 +351,132 @@ public boolean hasSuggestSmartRepliesResponse() { return com.google.cloud.dialogflow.v2beta1.SuggestSmartRepliesResponse.getDefaultInstance(); } + public static final int SUGGEST_DIALOGFLOW_ASSISTS_RESPONSE_FIELD_NUMBER = 5; + /** + * + * + *+ * SuggestDialogflowAssistsResponse if request is for DIALOGFLOW_ASSIST. + *+ * + *+ * .google.cloud.dialogflow.v2beta1.SuggestDialogflowAssistsResponse suggest_dialogflow_assists_response = 5; + *
+ * + * @return Whether the suggestDialogflowAssistsResponse field is set. + */ + @java.lang.Override + public boolean hasSuggestDialogflowAssistsResponse() { + return suggestionResponseCase_ == 5; + } + /** + * + * + *+ * SuggestDialogflowAssistsResponse if request is for DIALOGFLOW_ASSIST. + *+ * + *+ * .google.cloud.dialogflow.v2beta1.SuggestDialogflowAssistsResponse suggest_dialogflow_assists_response = 5; + *
+ * + * @return The suggestDialogflowAssistsResponse. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.SuggestDialogflowAssistsResponse + getSuggestDialogflowAssistsResponse() { + if (suggestionResponseCase_ == 5) { + return (com.google.cloud.dialogflow.v2beta1.SuggestDialogflowAssistsResponse) + suggestionResponse_; + } + return com.google.cloud.dialogflow.v2beta1.SuggestDialogflowAssistsResponse + .getDefaultInstance(); + } + /** + * + * + *+ * SuggestDialogflowAssistsResponse if request is for DIALOGFLOW_ASSIST. + *+ * + *+ * .google.cloud.dialogflow.v2beta1.SuggestDialogflowAssistsResponse suggest_dialogflow_assists_response = 5; + *
+ */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.SuggestDialogflowAssistsResponseOrBuilder + getSuggestDialogflowAssistsResponseOrBuilder() { + if (suggestionResponseCase_ == 5) { + return (com.google.cloud.dialogflow.v2beta1.SuggestDialogflowAssistsResponse) + suggestionResponse_; + } + return com.google.cloud.dialogflow.v2beta1.SuggestDialogflowAssistsResponse + .getDefaultInstance(); + } + + public static final int SUGGEST_ENTITY_EXTRACTION_RESPONSE_FIELD_NUMBER = 7; + /** + * + * + *+ * SuggestDialogflowAssistsResponse if request is for ENTITY_EXTRACTION. + *+ * + *+ * .google.cloud.dialogflow.v2beta1.SuggestDialogflowAssistsResponse suggest_entity_extraction_response = 7; + *
+ * + * @return Whether the suggestEntityExtractionResponse field is set. + */ + @java.lang.Override + public boolean hasSuggestEntityExtractionResponse() { + return suggestionResponseCase_ == 7; + } + /** + * + * + *+ * SuggestDialogflowAssistsResponse if request is for ENTITY_EXTRACTION. + *+ * + *+ * .google.cloud.dialogflow.v2beta1.SuggestDialogflowAssistsResponse suggest_entity_extraction_response = 7; + *
+ * + * @return The suggestEntityExtractionResponse. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.SuggestDialogflowAssistsResponse + getSuggestEntityExtractionResponse() { + if (suggestionResponseCase_ == 7) { + return (com.google.cloud.dialogflow.v2beta1.SuggestDialogflowAssistsResponse) + suggestionResponse_; + } + return com.google.cloud.dialogflow.v2beta1.SuggestDialogflowAssistsResponse + .getDefaultInstance(); + } + /** + * + * + *+ * SuggestDialogflowAssistsResponse if request is for ENTITY_EXTRACTION. + *+ * + *+ * .google.cloud.dialogflow.v2beta1.SuggestDialogflowAssistsResponse suggest_entity_extraction_response = 7; + *
+ */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.SuggestDialogflowAssistsResponseOrBuilder + getSuggestEntityExtractionResponseOrBuilder() { + if (suggestionResponseCase_ == 7) { + return (com.google.cloud.dialogflow.v2beta1.SuggestDialogflowAssistsResponse) + suggestionResponse_; + } + return com.google.cloud.dialogflow.v2beta1.SuggestDialogflowAssistsResponse + .getDefaultInstance(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -374,6 +506,18 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io output.writeMessage( 4, (com.google.cloud.dialogflow.v2beta1.SuggestSmartRepliesResponse) suggestionResponse_); } + if (suggestionResponseCase_ == 5) { + output.writeMessage( + 5, + (com.google.cloud.dialogflow.v2beta1.SuggestDialogflowAssistsResponse) + suggestionResponse_); + } + if (suggestionResponseCase_ == 7) { + output.writeMessage( + 7, + (com.google.cloud.dialogflow.v2beta1.SuggestDialogflowAssistsResponse) + suggestionResponse_); + } getUnknownFields().writeTo(output); } @@ -406,6 +550,20 @@ public int getSerializedSize() { (com.google.cloud.dialogflow.v2beta1.SuggestSmartRepliesResponse) suggestionResponse_); } + if (suggestionResponseCase_ == 5) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 5, + (com.google.cloud.dialogflow.v2beta1.SuggestDialogflowAssistsResponse) + suggestionResponse_); + } + if (suggestionResponseCase_ == 7) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 7, + (com.google.cloud.dialogflow.v2beta1.SuggestDialogflowAssistsResponse) + suggestionResponse_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -438,6 +596,14 @@ public boolean equals(final java.lang.Object obj) { if (!getSuggestSmartRepliesResponse().equals(other.getSuggestSmartRepliesResponse())) return false; break; + case 5: + if (!getSuggestDialogflowAssistsResponse() + .equals(other.getSuggestDialogflowAssistsResponse())) return false; + break; + case 7: + if (!getSuggestEntityExtractionResponse() + .equals(other.getSuggestEntityExtractionResponse())) return false; + break; case 0: default: } @@ -469,6 +635,14 @@ public int hashCode() { hash = (37 * hash) + SUGGEST_SMART_REPLIES_RESPONSE_FIELD_NUMBER; hash = (53 * hash) + getSuggestSmartRepliesResponse().hashCode(); break; + case 5: + hash = (37 * hash) + SUGGEST_DIALOGFLOW_ASSISTS_RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getSuggestDialogflowAssistsResponse().hashCode(); + break; + case 7: + hash = (37 * hash) + SUGGEST_ENTITY_EXTRACTION_RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getSuggestEntityExtractionResponse().hashCode(); + break; case 0: default: } @@ -629,6 +803,12 @@ public Builder clear() { if (suggestSmartRepliesResponseBuilder_ != null) { suggestSmartRepliesResponseBuilder_.clear(); } + if (suggestDialogflowAssistsResponseBuilder_ != null) { + suggestDialogflowAssistsResponseBuilder_.clear(); + } + if (suggestEntityExtractionResponseBuilder_ != null) { + suggestEntityExtractionResponseBuilder_.clear(); + } suggestionResponseCase_ = 0; suggestionResponse_ = null; return this; @@ -685,6 +865,12 @@ private void buildPartialOneofs(com.google.cloud.dialogflow.v2beta1.SuggestionRe if (suggestionResponseCase_ == 4 && suggestSmartRepliesResponseBuilder_ != null) { result.suggestionResponse_ = suggestSmartRepliesResponseBuilder_.build(); } + if (suggestionResponseCase_ == 5 && suggestDialogflowAssistsResponseBuilder_ != null) { + result.suggestionResponse_ = suggestDialogflowAssistsResponseBuilder_.build(); + } + if (suggestionResponseCase_ == 7 && suggestEntityExtractionResponseBuilder_ != null) { + result.suggestionResponse_ = suggestEntityExtractionResponseBuilder_.build(); + } } @java.lang.Override @@ -754,6 +940,16 @@ public Builder mergeFrom(com.google.cloud.dialogflow.v2beta1.SuggestionResult ot mergeSuggestSmartRepliesResponse(other.getSuggestSmartRepliesResponse()); break; } + case SUGGEST_DIALOGFLOW_ASSISTS_RESPONSE: + { + mergeSuggestDialogflowAssistsResponse(other.getSuggestDialogflowAssistsResponse()); + break; + } + case SUGGEST_ENTITY_EXTRACTION_RESPONSE: + { + mergeSuggestEntityExtractionResponse(other.getSuggestEntityExtractionResponse()); + break; + } case SUGGESTIONRESPONSE_NOT_SET: { break; @@ -812,6 +1008,22 @@ public Builder mergeFrom( suggestionResponseCase_ = 4; break; } // case 34 + case 42: + { + input.readMessage( + getSuggestDialogflowAssistsResponseFieldBuilder().getBuilder(), + extensionRegistry); + suggestionResponseCase_ = 5; + break; + } // case 42 + case 58: + { + input.readMessage( + getSuggestEntityExtractionResponseFieldBuilder().getBuilder(), + extensionRegistry); + suggestionResponseCase_ = 7; + break; + } // case 58 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1750,6 +1962,494 @@ public Builder clearSuggestSmartRepliesResponse() { return suggestSmartRepliesResponseBuilder_; } + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.SuggestDialogflowAssistsResponse, + com.google.cloud.dialogflow.v2beta1.SuggestDialogflowAssistsResponse.Builder, + com.google.cloud.dialogflow.v2beta1.SuggestDialogflowAssistsResponseOrBuilder> + suggestDialogflowAssistsResponseBuilder_; + /** + * + * + *+ * SuggestDialogflowAssistsResponse if request is for DIALOGFLOW_ASSIST. + *+ * + *+ * .google.cloud.dialogflow.v2beta1.SuggestDialogflowAssistsResponse suggest_dialogflow_assists_response = 5; + *
+ * + * @return Whether the suggestDialogflowAssistsResponse field is set. + */ + @java.lang.Override + public boolean hasSuggestDialogflowAssistsResponse() { + return suggestionResponseCase_ == 5; + } + /** + * + * + *+ * SuggestDialogflowAssistsResponse if request is for DIALOGFLOW_ASSIST. + *+ * + *+ * .google.cloud.dialogflow.v2beta1.SuggestDialogflowAssistsResponse suggest_dialogflow_assists_response = 5; + *
+ * + * @return The suggestDialogflowAssistsResponse. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.SuggestDialogflowAssistsResponse + getSuggestDialogflowAssistsResponse() { + if (suggestDialogflowAssistsResponseBuilder_ == null) { + if (suggestionResponseCase_ == 5) { + return (com.google.cloud.dialogflow.v2beta1.SuggestDialogflowAssistsResponse) + suggestionResponse_; + } + return com.google.cloud.dialogflow.v2beta1.SuggestDialogflowAssistsResponse + .getDefaultInstance(); + } else { + if (suggestionResponseCase_ == 5) { + return suggestDialogflowAssistsResponseBuilder_.getMessage(); + } + return com.google.cloud.dialogflow.v2beta1.SuggestDialogflowAssistsResponse + .getDefaultInstance(); + } + } + /** + * + * + *+ * SuggestDialogflowAssistsResponse if request is for DIALOGFLOW_ASSIST. + *+ * + *+ * .google.cloud.dialogflow.v2beta1.SuggestDialogflowAssistsResponse suggest_dialogflow_assists_response = 5; + *
+ */ + public Builder setSuggestDialogflowAssistsResponse( + com.google.cloud.dialogflow.v2beta1.SuggestDialogflowAssistsResponse value) { + if (suggestDialogflowAssistsResponseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + suggestionResponse_ = value; + onChanged(); + } else { + suggestDialogflowAssistsResponseBuilder_.setMessage(value); + } + suggestionResponseCase_ = 5; + return this; + } + /** + * + * + *+ * SuggestDialogflowAssistsResponse if request is for DIALOGFLOW_ASSIST. + *+ * + *+ * .google.cloud.dialogflow.v2beta1.SuggestDialogflowAssistsResponse suggest_dialogflow_assists_response = 5; + *
+ */ + public Builder setSuggestDialogflowAssistsResponse( + com.google.cloud.dialogflow.v2beta1.SuggestDialogflowAssistsResponse.Builder + builderForValue) { + if (suggestDialogflowAssistsResponseBuilder_ == null) { + suggestionResponse_ = builderForValue.build(); + onChanged(); + } else { + suggestDialogflowAssistsResponseBuilder_.setMessage(builderForValue.build()); + } + suggestionResponseCase_ = 5; + return this; + } + /** + * + * + *+ * SuggestDialogflowAssistsResponse if request is for DIALOGFLOW_ASSIST. + *+ * + *+ * .google.cloud.dialogflow.v2beta1.SuggestDialogflowAssistsResponse suggest_dialogflow_assists_response = 5; + *
+ */ + public Builder mergeSuggestDialogflowAssistsResponse( + com.google.cloud.dialogflow.v2beta1.SuggestDialogflowAssistsResponse value) { + if (suggestDialogflowAssistsResponseBuilder_ == null) { + if (suggestionResponseCase_ == 5 + && suggestionResponse_ + != com.google.cloud.dialogflow.v2beta1.SuggestDialogflowAssistsResponse + .getDefaultInstance()) { + suggestionResponse_ = + com.google.cloud.dialogflow.v2beta1.SuggestDialogflowAssistsResponse.newBuilder( + (com.google.cloud.dialogflow.v2beta1.SuggestDialogflowAssistsResponse) + suggestionResponse_) + .mergeFrom(value) + .buildPartial(); + } else { + suggestionResponse_ = value; + } + onChanged(); + } else { + if (suggestionResponseCase_ == 5) { + suggestDialogflowAssistsResponseBuilder_.mergeFrom(value); + } else { + suggestDialogflowAssistsResponseBuilder_.setMessage(value); + } + } + suggestionResponseCase_ = 5; + return this; + } + /** + * + * + *+ * SuggestDialogflowAssistsResponse if request is for DIALOGFLOW_ASSIST. + *+ * + *+ * .google.cloud.dialogflow.v2beta1.SuggestDialogflowAssistsResponse suggest_dialogflow_assists_response = 5; + *
+ */ + public Builder clearSuggestDialogflowAssistsResponse() { + if (suggestDialogflowAssistsResponseBuilder_ == null) { + if (suggestionResponseCase_ == 5) { + suggestionResponseCase_ = 0; + suggestionResponse_ = null; + onChanged(); + } + } else { + if (suggestionResponseCase_ == 5) { + suggestionResponseCase_ = 0; + suggestionResponse_ = null; + } + suggestDialogflowAssistsResponseBuilder_.clear(); + } + return this; + } + /** + * + * + *+ * SuggestDialogflowAssistsResponse if request is for DIALOGFLOW_ASSIST. + *+ * + *+ * .google.cloud.dialogflow.v2beta1.SuggestDialogflowAssistsResponse suggest_dialogflow_assists_response = 5; + *
+ */ + public com.google.cloud.dialogflow.v2beta1.SuggestDialogflowAssistsResponse.Builder + getSuggestDialogflowAssistsResponseBuilder() { + return getSuggestDialogflowAssistsResponseFieldBuilder().getBuilder(); + } + /** + * + * + *+ * SuggestDialogflowAssistsResponse if request is for DIALOGFLOW_ASSIST. + *+ * + *+ * .google.cloud.dialogflow.v2beta1.SuggestDialogflowAssistsResponse suggest_dialogflow_assists_response = 5; + *
+ */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.SuggestDialogflowAssistsResponseOrBuilder + getSuggestDialogflowAssistsResponseOrBuilder() { + if ((suggestionResponseCase_ == 5) && (suggestDialogflowAssistsResponseBuilder_ != null)) { + return suggestDialogflowAssistsResponseBuilder_.getMessageOrBuilder(); + } else { + if (suggestionResponseCase_ == 5) { + return (com.google.cloud.dialogflow.v2beta1.SuggestDialogflowAssistsResponse) + suggestionResponse_; + } + return com.google.cloud.dialogflow.v2beta1.SuggestDialogflowAssistsResponse + .getDefaultInstance(); + } + } + /** + * + * + *+ * SuggestDialogflowAssistsResponse if request is for DIALOGFLOW_ASSIST. + *+ * + *+ * .google.cloud.dialogflow.v2beta1.SuggestDialogflowAssistsResponse suggest_dialogflow_assists_response = 5; + *
+ */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.SuggestDialogflowAssistsResponse, + com.google.cloud.dialogflow.v2beta1.SuggestDialogflowAssistsResponse.Builder, + com.google.cloud.dialogflow.v2beta1.SuggestDialogflowAssistsResponseOrBuilder> + getSuggestDialogflowAssistsResponseFieldBuilder() { + if (suggestDialogflowAssistsResponseBuilder_ == null) { + if (!(suggestionResponseCase_ == 5)) { + suggestionResponse_ = + com.google.cloud.dialogflow.v2beta1.SuggestDialogflowAssistsResponse + .getDefaultInstance(); + } + suggestDialogflowAssistsResponseBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.SuggestDialogflowAssistsResponse, + com.google.cloud.dialogflow.v2beta1.SuggestDialogflowAssistsResponse.Builder, + com.google.cloud.dialogflow.v2beta1.SuggestDialogflowAssistsResponseOrBuilder>( + (com.google.cloud.dialogflow.v2beta1.SuggestDialogflowAssistsResponse) + suggestionResponse_, + getParentForChildren(), + isClean()); + suggestionResponse_ = null; + } + suggestionResponseCase_ = 5; + onChanged(); + return suggestDialogflowAssistsResponseBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.SuggestDialogflowAssistsResponse, + com.google.cloud.dialogflow.v2beta1.SuggestDialogflowAssistsResponse.Builder, + com.google.cloud.dialogflow.v2beta1.SuggestDialogflowAssistsResponseOrBuilder> + suggestEntityExtractionResponseBuilder_; + /** + * + * + *+ * SuggestDialogflowAssistsResponse if request is for ENTITY_EXTRACTION. + *+ * + *+ * .google.cloud.dialogflow.v2beta1.SuggestDialogflowAssistsResponse suggest_entity_extraction_response = 7; + *
+ * + * @return Whether the suggestEntityExtractionResponse field is set. + */ + @java.lang.Override + public boolean hasSuggestEntityExtractionResponse() { + return suggestionResponseCase_ == 7; + } + /** + * + * + *+ * SuggestDialogflowAssistsResponse if request is for ENTITY_EXTRACTION. + *+ * + *+ * .google.cloud.dialogflow.v2beta1.SuggestDialogflowAssistsResponse suggest_entity_extraction_response = 7; + *
+ * + * @return The suggestEntityExtractionResponse. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.SuggestDialogflowAssistsResponse + getSuggestEntityExtractionResponse() { + if (suggestEntityExtractionResponseBuilder_ == null) { + if (suggestionResponseCase_ == 7) { + return (com.google.cloud.dialogflow.v2beta1.SuggestDialogflowAssistsResponse) + suggestionResponse_; + } + return com.google.cloud.dialogflow.v2beta1.SuggestDialogflowAssistsResponse + .getDefaultInstance(); + } else { + if (suggestionResponseCase_ == 7) { + return suggestEntityExtractionResponseBuilder_.getMessage(); + } + return com.google.cloud.dialogflow.v2beta1.SuggestDialogflowAssistsResponse + .getDefaultInstance(); + } + } + /** + * + * + *+ * SuggestDialogflowAssistsResponse if request is for ENTITY_EXTRACTION. + *+ * + *+ * .google.cloud.dialogflow.v2beta1.SuggestDialogflowAssistsResponse suggest_entity_extraction_response = 7; + *
+ */ + public Builder setSuggestEntityExtractionResponse( + com.google.cloud.dialogflow.v2beta1.SuggestDialogflowAssistsResponse value) { + if (suggestEntityExtractionResponseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + suggestionResponse_ = value; + onChanged(); + } else { + suggestEntityExtractionResponseBuilder_.setMessage(value); + } + suggestionResponseCase_ = 7; + return this; + } + /** + * + * + *+ * SuggestDialogflowAssistsResponse if request is for ENTITY_EXTRACTION. + *+ * + *+ * .google.cloud.dialogflow.v2beta1.SuggestDialogflowAssistsResponse suggest_entity_extraction_response = 7; + *
+ */ + public Builder setSuggestEntityExtractionResponse( + com.google.cloud.dialogflow.v2beta1.SuggestDialogflowAssistsResponse.Builder + builderForValue) { + if (suggestEntityExtractionResponseBuilder_ == null) { + suggestionResponse_ = builderForValue.build(); + onChanged(); + } else { + suggestEntityExtractionResponseBuilder_.setMessage(builderForValue.build()); + } + suggestionResponseCase_ = 7; + return this; + } + /** + * + * + *+ * SuggestDialogflowAssistsResponse if request is for ENTITY_EXTRACTION. + *+ * + *+ * .google.cloud.dialogflow.v2beta1.SuggestDialogflowAssistsResponse suggest_entity_extraction_response = 7; + *
+ */ + public Builder mergeSuggestEntityExtractionResponse( + com.google.cloud.dialogflow.v2beta1.SuggestDialogflowAssistsResponse value) { + if (suggestEntityExtractionResponseBuilder_ == null) { + if (suggestionResponseCase_ == 7 + && suggestionResponse_ + != com.google.cloud.dialogflow.v2beta1.SuggestDialogflowAssistsResponse + .getDefaultInstance()) { + suggestionResponse_ = + com.google.cloud.dialogflow.v2beta1.SuggestDialogflowAssistsResponse.newBuilder( + (com.google.cloud.dialogflow.v2beta1.SuggestDialogflowAssistsResponse) + suggestionResponse_) + .mergeFrom(value) + .buildPartial(); + } else { + suggestionResponse_ = value; + } + onChanged(); + } else { + if (suggestionResponseCase_ == 7) { + suggestEntityExtractionResponseBuilder_.mergeFrom(value); + } else { + suggestEntityExtractionResponseBuilder_.setMessage(value); + } + } + suggestionResponseCase_ = 7; + return this; + } + /** + * + * + *+ * SuggestDialogflowAssistsResponse if request is for ENTITY_EXTRACTION. + *+ * + *+ * .google.cloud.dialogflow.v2beta1.SuggestDialogflowAssistsResponse suggest_entity_extraction_response = 7; + *
+ */ + public Builder clearSuggestEntityExtractionResponse() { + if (suggestEntityExtractionResponseBuilder_ == null) { + if (suggestionResponseCase_ == 7) { + suggestionResponseCase_ = 0; + suggestionResponse_ = null; + onChanged(); + } + } else { + if (suggestionResponseCase_ == 7) { + suggestionResponseCase_ = 0; + suggestionResponse_ = null; + } + suggestEntityExtractionResponseBuilder_.clear(); + } + return this; + } + /** + * + * + *+ * SuggestDialogflowAssistsResponse if request is for ENTITY_EXTRACTION. + *+ * + *+ * .google.cloud.dialogflow.v2beta1.SuggestDialogflowAssistsResponse suggest_entity_extraction_response = 7; + *
+ */ + public com.google.cloud.dialogflow.v2beta1.SuggestDialogflowAssistsResponse.Builder + getSuggestEntityExtractionResponseBuilder() { + return getSuggestEntityExtractionResponseFieldBuilder().getBuilder(); + } + /** + * + * + *+ * SuggestDialogflowAssistsResponse if request is for ENTITY_EXTRACTION. + *+ * + *+ * .google.cloud.dialogflow.v2beta1.SuggestDialogflowAssistsResponse suggest_entity_extraction_response = 7; + *
+ */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.SuggestDialogflowAssistsResponseOrBuilder + getSuggestEntityExtractionResponseOrBuilder() { + if ((suggestionResponseCase_ == 7) && (suggestEntityExtractionResponseBuilder_ != null)) { + return suggestEntityExtractionResponseBuilder_.getMessageOrBuilder(); + } else { + if (suggestionResponseCase_ == 7) { + return (com.google.cloud.dialogflow.v2beta1.SuggestDialogflowAssistsResponse) + suggestionResponse_; + } + return com.google.cloud.dialogflow.v2beta1.SuggestDialogflowAssistsResponse + .getDefaultInstance(); + } + } + /** + * + * + *+ * SuggestDialogflowAssistsResponse if request is for ENTITY_EXTRACTION. + *+ * + *+ * .google.cloud.dialogflow.v2beta1.SuggestDialogflowAssistsResponse suggest_entity_extraction_response = 7; + *
+ */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.SuggestDialogflowAssistsResponse, + com.google.cloud.dialogflow.v2beta1.SuggestDialogflowAssistsResponse.Builder, + com.google.cloud.dialogflow.v2beta1.SuggestDialogflowAssistsResponseOrBuilder> + getSuggestEntityExtractionResponseFieldBuilder() { + if (suggestEntityExtractionResponseBuilder_ == null) { + if (!(suggestionResponseCase_ == 7)) { + suggestionResponse_ = + com.google.cloud.dialogflow.v2beta1.SuggestDialogflowAssistsResponse + .getDefaultInstance(); + } + suggestEntityExtractionResponseBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.SuggestDialogflowAssistsResponse, + com.google.cloud.dialogflow.v2beta1.SuggestDialogflowAssistsResponse.Builder, + com.google.cloud.dialogflow.v2beta1.SuggestDialogflowAssistsResponseOrBuilder>( + (com.google.cloud.dialogflow.v2beta1.SuggestDialogflowAssistsResponse) + suggestionResponse_, + getParentForChildren(), + isClean()); + suggestionResponse_ = null; + } + suggestionResponseCase_ = 7; + onChanged(); + return suggestEntityExtractionResponseBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SuggestionResultOrBuilder.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SuggestionResultOrBuilder.java index a4e00aeea4a9..48a61dedfc28 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SuggestionResultOrBuilder.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SuggestionResultOrBuilder.java @@ -181,6 +181,92 @@ public interface SuggestionResultOrBuilder com.google.cloud.dialogflow.v2beta1.SuggestSmartRepliesResponseOrBuilder getSuggestSmartRepliesResponseOrBuilder(); + /** + * + * + *+ * SuggestDialogflowAssistsResponse if request is for DIALOGFLOW_ASSIST. + *+ * + *+ * .google.cloud.dialogflow.v2beta1.SuggestDialogflowAssistsResponse suggest_dialogflow_assists_response = 5; + *
+ * + * @return Whether the suggestDialogflowAssistsResponse field is set. + */ + boolean hasSuggestDialogflowAssistsResponse(); + /** + * + * + *+ * SuggestDialogflowAssistsResponse if request is for DIALOGFLOW_ASSIST. + *+ * + *+ * .google.cloud.dialogflow.v2beta1.SuggestDialogflowAssistsResponse suggest_dialogflow_assists_response = 5; + *
+ * + * @return The suggestDialogflowAssistsResponse. + */ + com.google.cloud.dialogflow.v2beta1.SuggestDialogflowAssistsResponse + getSuggestDialogflowAssistsResponse(); + /** + * + * + *+ * SuggestDialogflowAssistsResponse if request is for DIALOGFLOW_ASSIST. + *+ * + *+ * .google.cloud.dialogflow.v2beta1.SuggestDialogflowAssistsResponse suggest_dialogflow_assists_response = 5; + *
+ */ + com.google.cloud.dialogflow.v2beta1.SuggestDialogflowAssistsResponseOrBuilder + getSuggestDialogflowAssistsResponseOrBuilder(); + + /** + * + * + *+ * SuggestDialogflowAssistsResponse if request is for ENTITY_EXTRACTION. + *+ * + *+ * .google.cloud.dialogflow.v2beta1.SuggestDialogflowAssistsResponse suggest_entity_extraction_response = 7; + *
+ * + * @return Whether the suggestEntityExtractionResponse field is set. + */ + boolean hasSuggestEntityExtractionResponse(); + /** + * + * + *+ * SuggestDialogflowAssistsResponse if request is for ENTITY_EXTRACTION. + *+ * + *+ * .google.cloud.dialogflow.v2beta1.SuggestDialogflowAssistsResponse suggest_entity_extraction_response = 7; + *
+ * + * @return The suggestEntityExtractionResponse. + */ + com.google.cloud.dialogflow.v2beta1.SuggestDialogflowAssistsResponse + getSuggestEntityExtractionResponse(); + /** + * + * + *+ * SuggestDialogflowAssistsResponse if request is for ENTITY_EXTRACTION. + *+ * + *+ * .google.cloud.dialogflow.v2beta1.SuggestDialogflowAssistsResponse suggest_entity_extraction_response = 7; + *
+ */ + com.google.cloud.dialogflow.v2beta1.SuggestDialogflowAssistsResponseOrBuilder + getSuggestEntityExtractionResponseOrBuilder(); + com.google.cloud.dialogflow.v2beta1.SuggestionResult.SuggestionResponseCase getSuggestionResponseCase(); } diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/answer_record.proto b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/answer_record.proto index f14e61c69cb3..b5f3cd9b7150 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/answer_record.proto +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/answer_record.proto @@ -144,6 +144,10 @@ message AgentAssistantRecord { // Output only. The FAQ answer. FaqAnswer faq_answer = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The Dialogflow assist answer. + DialogflowAssistAnswer dialogflow_assist_answer = 7 + [(google.api.field_behavior) = OUTPUT_ONLY]; } } diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/conversation.proto b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/conversation.proto index 8627b6ae72cd..05edaf625490 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/conversation.proto +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/conversation.proto @@ -408,7 +408,7 @@ message BatchCreateMessagesRequest { } ]; - // Required. A maximum of 1000 Messages can be created in a batch. + // Required. A maximum of 300 messages can be created in a batch. // [CreateMessageRequest.message.send_time][] is required. All created // messages will have identical // [Message.create_time][google.cloud.dialogflow.v2beta1.Message.create_time]. @@ -494,7 +494,7 @@ message SuggestConversationSummaryRequest { // suggestion. By default 500 and at most 1000. int32 context_size = 4; - // Parameters for a human assist query. + // Parameters for a human assist query. Only used for POC/demo purpose. AssistQueryParameters assist_query_params = 5; } diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/conversation_profile.proto b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/conversation_profile.proto index 9015a17a8bd8..6d38b89ba93e 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/conversation_profile.proto +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/conversation_profile.proto @@ -23,6 +23,7 @@ import "google/api/resource.proto"; import "google/cloud/dialogflow/v2beta1/audio_config.proto"; import "google/cloud/dialogflow/v2beta1/participant.proto"; import "google/longrunning/operations.proto"; +import "google/protobuf/duration.proto"; import "google/protobuf/empty.proto"; import "google/protobuf/field_mask.proto"; import "google/protobuf/timestamp.proto"; @@ -294,6 +295,13 @@ message AutomatedAgentConfig { type: "dialogflow.googleapis.com/Agent" } ]; + + // Optional. Sets Dialogflow CX session life time. + // By default, a Dialogflow CX session remains active and its data is stored + // for 30 minutes after the last request is sent for the session. This value + // should be no longer than 1 day. + google.protobuf.Duration session_ttl = 3 + [(google.api.field_behavior) = OPTIONAL]; } // Defines the Human Agent Assistant to connect to a conversation. @@ -392,8 +400,22 @@ message HumanAgentAssistantConfig { // // Supported feature: DIALOGFLOW_ASSIST. message DialogflowQuerySource { + // The configuration used for human agent side Dialogflow assist + // suggestion. + message HumanAgentSideConfig { + // Optional. The name of a dialogflow virtual agent used for intent + // detection and suggestion triggered by human agent. + // Format: `projects//locations/ /agent`. + string agent = 1 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { + type: "dialogflow.googleapis.com/Agent" + } + ]; + } + // Required. The name of a dialogflow virtual agent used for end user side - // intent detection and suggestion. Format: `projects/ /locations/ /agent`. When multiple agents are allowed in // the same Dialogflow project. string agent = 1 [ @@ -402,6 +424,9 @@ message HumanAgentAssistantConfig { type: "dialogflow.googleapis.com/Agent" } ]; + + // The Dialogflow assist configuration for human agent. + HumanAgentSideConfig human_agent_side_config = 3; } // Settings that determine how to filter recent conversation context when @@ -454,7 +479,8 @@ message HumanAgentAssistantConfig { // If this field is not set, it is default to 0.0, which means that all // suggestions are returned. // - // Supported features: ARTICLE_SUGGESTION, FAQ, SMART_REPLY, SMART_COMPOSE. + // Supported features: ARTICLE_SUGGESTION, FAQ, SMART_REPLY, SMART_COMPOSE, + // KNOWLEDGE_SEARCH, KNOWLEDGE_ASSIST, ENTITY_EXTRACTION. float confidence_threshold = 5; // Determines how recent conversation context is filtered when generating diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/document.proto b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/document.proto index 73cf618e61ad..2b55a834409d 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/document.proto +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/document.proto @@ -508,13 +508,13 @@ message ImportDocumentsRequest { // Dialogflow supports up to 350 documents in each request. If you try to // import more, Dialogflow will return an error. oneof source { - // The Google Cloud Storage location for the documents. + // Optional. The Google Cloud Storage location for the documents. // The path can include a wildcard. // // These URIs may have the forms // `gs:// / `. // `gs:// / /*. `. - GcsSources gcs_source = 2; + GcsSources gcs_source = 2 [(google.api.field_behavior) = OPTIONAL]; } // Required. Document template used for importing all the documents. diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/environment.proto b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/environment.proto index a46c1c478b1a..1d4809f01428 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/environment.proto +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/environment.proto @@ -168,9 +168,9 @@ message Environment { // Output only. The unique identifier of this agent environment. // Supported formats: - // - `projects/ /agent/environments/ ` - // - `projects/ /locations/ /agent/environments/ ` + // - `projects/ /agent/environments/ ` + // - `projects/ /locations/ /agent/environments/ ` string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; // Optional. The developer-provided description for this environment. @@ -181,7 +181,7 @@ message Environment { // Supported formats: // - `projects/ /agent/versions/ ` // - `projects/ /locations/ /agent/versions/ ` + // ID>` string agent_version = 3 [ (google.api.field_behavior) = OPTIONAL, (google.api.resource_reference) = { @@ -235,8 +235,8 @@ message TextToSpeechSettings { message ListEnvironmentsRequest { // Required. The agent to list all environments from. // Format: - // - `projects/ /agent` - // - `projects/ /locations/ /agent` + // - `projects/ /agent` + // - `projects/ /locations/ /agent` string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -269,8 +269,8 @@ message ListEnvironmentsResponse { message GetEnvironmentRequest { // Required. The name of the environment. // Supported formats: - // - `projects/ /agent/environments/ ` - // - `projects/ /locations/ /agent/environments/ ` + // - `projects/ /locations/ /agent/environments/ ` string name = 1 [ (google.api.field_behavior) = REQUIRED, @@ -285,8 +285,8 @@ message GetEnvironmentRequest { message CreateEnvironmentRequest { // Required. The agent to create an environment for. // Supported formats: - // - `projects/ /agent` - // - `projects/ /locations/ /agent` + // - `projects/ /agent` + // - `projects/ /locations/ /agent` string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -324,8 +324,8 @@ message UpdateEnvironmentRequest { message DeleteEnvironmentRequest { // Required. The name of the environment to delete. // / Format: - // - `projects/ /agent/environments/ ` - // - `projects/ /locations/ /agent/environments/ ` + // - `projects/ /locations/ /agent/environments/ ` string name = 1 [ (google.api.field_behavior) = REQUIRED, @@ -340,8 +340,8 @@ message DeleteEnvironmentRequest { message GetEnvironmentHistoryRequest { // Required. The name of the environment to retrieve history for. // Supported formats: - // - `projects/ /agent/environments/ ` - // - `projects/ /locations/ /agent/environments/ ` + // - `projects/ /locations/ /agent/environments/ ` string parent = 1 [ (google.api.field_behavior) = REQUIRED, @@ -375,8 +375,8 @@ message EnvironmentHistory { // Output only. The name of the environment this history is for. // Supported formats: - // - `projects/ /agent/environments/ ` - // - `projects/ /locations/ /agent/environments/ ` + // - `projects/ /locations/ /agent/environments/ ` string parent = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/participant.proto b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/participant.proto index 59786b579d9f..93cfe6ea1d2a 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/participant.proto +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/participant.proto @@ -286,12 +286,13 @@ message Participant { // Dialogflow will update // [Participant.obfuscated_external_user_id][google.cloud.dialogflow.v2beta1.Participant.obfuscated_external_user_id]. // - // Dialogflow uses this user id for following purposes: - // 1) Billing and measurement. If user with the same - // obfuscated_external_user_id is created in a later conversation, dialogflow - // will know it's the same user. 2) Agent assist suggestion personalization. - // For example, Dialogflow can use it to provide personalized smart reply - // suggestions for this user. + // Dialogflow uses this user id for billing and measurement. If a user with + // the same obfuscated_external_user_id is created in a later conversation, + // Dialogflow will know it's the same user. + // + // Dialogflow also uses this user id for Agent Assist suggestion + // personalization. For example, Dialogflow can use it to provide personalized + // smart reply suggestions for this user. // // Note: // @@ -538,6 +539,65 @@ message AutomatedAgentReply { string cx_current_page = 11; } +// Represents the selection of a suggestion. +message SuggestionInput { + // Required. The ID of a suggestion selected by the human agent. + // The suggestion(s) were generated in a previous call to + // request Dialogflow assist. + // The format is: + // `projects/ /locations/ /answerRecords/ ` where is an alphanumeric string. + string answer_record = 1; + + // Optional. If the customer edited the suggestion before using it, include + // the revised text here. + TextInput text_override = 2; + + // In Dialogflow assist for v3, the user can submit a form by sending + // a [SuggestionInput][google.cloud.dialogflow.v2beta1.SuggestionInput]. The + // form is uniquely determined by the + // [answer_record][google.cloud.dialogflow.v2beta1.SuggestionInput.answer_record] + // field, which identifies a v3 + // [QueryResult][google.cloud.dialogflow.v3alpha1.QueryResult] containing the + // current [page][google.cloud.dialogflow.v3alpha1.Page]. The form parameters + // are specified via the + // [parameters][google.cloud.dialogflow.v2beta1.SuggestionInput.parameters] + // field. + // + // Depending on your protocol or client library language, this is a + // map, associative array, symbol table, dictionary, or JSON object + // composed of a collection of (MapKey, MapValue) pairs: + // + // - MapKey type: string + // - MapKey value: parameter name + // - MapValue type: + // - If parameter's entity type is a composite entity: map + // - Else: depending on parameter value type, could be one of string, + // number, boolean, null, list or map + // - MapValue value: + // - If parameter's entity type is a composite entity: + // map from composite entity property names to property values + // - Else: parameter value + google.protobuf.Struct parameters = 4; + + // The intent to be triggered on V3 agent. + IntentInput intent_input = 6; +} + +// Represents the intent to trigger programmatically rather than as a result of +// natural language processing. The intent input is only used for V3 agent. +message IntentInput { + // Required. The unique identifier of the intent in V3 agent. + // Format: `projects/ /locations/ /locations/ /agents/ /intents/ `. + string intent = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The language of this conversational query. See [Language + // Support](https://cloud.google.com/dialogflow/docs/reference/language) + // for a list of the currently supported language codes. + string language_code = 3 [(google.api.field_behavior) = REQUIRED]; +} + // The type of Human Agent Assistant API suggestion to perform, and the maximum // number of results to return for that type. Multiple `Feature` objects can // be specified in the `features` list. @@ -556,6 +616,10 @@ message SuggestionFeature { // Run smart reply model for chat. SMART_REPLY = 3; + // Run Dialogflow assist model for chat, which will return automated agent + // response as suggestion. + DIALOGFLOW_ASSIST = 4; + // Run conversation summarization model for chat. CONVERSATION_SUMMARIZATION = 8; } @@ -609,6 +673,9 @@ message AnalyzeContentRequest { // An input event to send to Dialogflow. EventInput event_input = 8; + + // An input representing the selection of a suggestion. + SuggestionInput suggestion_input = 12; } // Speech synthesis configuration. @@ -1054,6 +1121,42 @@ message SmartReplyAnswer { }]; } +// Represents an intent suggestion. +message IntentSuggestion { + // The display name of the intent. + string display_name = 1; + + // The name of the intent. + oneof intent { + // The unique identifier of this + // [intent][google.cloud.dialogflow.v2beta1.Intent]. Format: + // `projects/ /locations/ /agent/intents/ `. + string intent_v2 = 2; + } + + // Human readable description for better understanding an intent like its + // scope, content, result etc. Maximum character limit: 140 characters. + string description = 5; +} + +// Represents a Dialogflow assist answer. +message DialogflowAssistAnswer { + // Result from DetectIntent for one matched intent. + oneof result { + // Result from v2 agent. + QueryResult query_result = 1; + + // An intent suggestion generated from conversation. + IntentSuggestion intent_suggestion = 5; + } + + // The name of answer record, in the format of + // "projects/ /locations/ /answerRecords/ " + string answer_record = 2; +} + // One response of different type of suggestion response which is used in // the response of // [Participants.AnalyzeContent][google.cloud.dialogflow.v2beta1.Participants.AnalyzeContent] @@ -1075,6 +1178,12 @@ message SuggestionResult { // SuggestSmartRepliesResponse if request is for SMART_REPLY. SuggestSmartRepliesResponse suggest_smart_replies_response = 4; + + // SuggestDialogflowAssistsResponse if request is for DIALOGFLOW_ASSIST. + SuggestDialogflowAssistsResponse suggest_dialogflow_assists_response = 5; + + // SuggestDialogflowAssistsResponse if request is for ENTITY_EXTRACTION. + SuggestDialogflowAssistsResponse suggest_entity_extraction_response = 7; } } @@ -1252,6 +1361,28 @@ message SuggestSmartRepliesResponse { int32 context_size = 3; } +// The response message for +// [Participants.SuggestDialogflowAssists][google.cloud.dialogflow.v2beta1.Participants.SuggestDialogflowAssists]. +message SuggestDialogflowAssistsResponse { + // Output only. Multiple reply options provided by Dialogflow assist + // service. The order is based on the rank of the model prediction. + repeated DialogflowAssistAnswer dialogflow_assist_answers = 1; + + // The name of the latest conversation message used to suggest answer. + // + // Format: `projects/ /locations/ /conversations/ /messages/ `. + string latest_message = 2; + + // Number of messages prior to and including + // [latest_message][google.cloud.dialogflow.v2beta1.SuggestDialogflowAssistsResponse.latest_message] + // to compile the suggestion. It may be smaller than the + // [SuggestDialogflowAssistsRequest.context_size][google.cloud.dialogflow.v2beta1.SuggestDialogflowAssistsRequest.context_size] + // field in the request if there aren't that many messages in the + // conversation. + int32 context_size = 3; +} + // Represents a suggestion for a human agent. message Suggestion { option deprecated = true; @@ -1433,6 +1564,7 @@ message ResponseMessage { // is up to you and your handoff procedures. // // You may set this, for example: + // // * In the entry fulfillment of a CX Page if entering the page indicates // something went extremely wrong in the conversation. // * In a webhook response when you determine that the customer issue can only