messages_;
/**
*
@@ -4763,7 +4825,9 @@ public com.google.cloud.dialogflow.cx.v3.ResponseMessageOrBuilder getMessagesOrB
}
public static final int WEBHOOK_FIELD_NUMBER = 2;
- private volatile java.lang.Object webhook_;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object webhook_ = "";
/**
*
*
@@ -4816,7 +4880,7 @@ public com.google.protobuf.ByteString getWebhookBytes() {
}
public static final int RETURN_PARTIAL_RESPONSES_FIELD_NUMBER = 8;
- private boolean returnPartialResponses_;
+ private boolean returnPartialResponses_ = false;
/**
*
*
@@ -4842,12 +4906,15 @@ public boolean getReturnPartialResponses() {
}
public static final int TAG_FIELD_NUMBER = 3;
- private volatile java.lang.Object tag_;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object tag_ = "";
/**
*
*
*
- * The value of this field will be populated in the [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]
+ * The value of this field will be populated in the
+ * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]
* `fulfillmentInfo.tag` field by Dialogflow when the associated webhook is
* called.
* The tag is typically used by the webhook service to identify which
@@ -4875,7 +4942,8 @@ public java.lang.String getTag() {
*
*
*
- * The value of this field will be populated in the [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]
+ * The value of this field will be populated in the
+ * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]
* `fulfillmentInfo.tag` field by Dialogflow when the associated webhook is
* called.
* The tag is typically used by the webhook service to identify which
@@ -4901,6 +4969,8 @@ public com.google.protobuf.ByteString getTagBytes() {
}
public static final int SET_PARAMETER_ACTIONS_FIELD_NUMBER = 4;
+
+ @SuppressWarnings("serial")
private java.util.List
setParameterActions_;
/**
@@ -4985,6 +5055,8 @@ public com.google.cloud.dialogflow.cx.v3.Fulfillment.SetParameterAction getSetPa
}
public static final int CONDITIONAL_CASES_FIELD_NUMBER = 5;
+
+ @SuppressWarnings("serial")
private java.util.List
conditionalCases_;
/**
@@ -5287,10 +5359,14 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
* * Generate rich message responses.
* * Set parameter values.
* * Call the webhook.
- * Fulfillments can be called at various stages in the [Page][google.cloud.dialogflow.cx.v3.Page] or
- * [Form][google.cloud.dialogflow.cx.v3.Form] lifecycle. For example, when a [DetectIntentRequest][google.cloud.dialogflow.cx.v3.DetectIntentRequest] drives a
- * session to enter a new page, the page's entry fulfillment can add a static
- * response to the [QueryResult][google.cloud.dialogflow.cx.v3.QueryResult] in the returning [DetectIntentResponse][google.cloud.dialogflow.cx.v3.DetectIntentResponse],
+ * Fulfillments can be called at various stages in the
+ * [Page][google.cloud.dialogflow.cx.v3.Page] or
+ * [Form][google.cloud.dialogflow.cx.v3.Form] lifecycle. For example, when a
+ * [DetectIntentRequest][google.cloud.dialogflow.cx.v3.DetectIntentRequest]
+ * drives a session to enter a new page, the page's entry fulfillment can add a
+ * static response to the
+ * [QueryResult][google.cloud.dialogflow.cx.v3.QueryResult] in the returning
+ * [DetectIntentResponse][google.cloud.dialogflow.cx.v3.DetectIntentResponse],
* call the webhook (for example, to load user data from a database), or both.
*
*
@@ -5325,6 +5401,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
@java.lang.Override
public Builder clear() {
super.clear();
+ bitField0_ = 0;
if (messagesBuilder_ == null) {
messages_ = java.util.Collections.emptyList();
} else {
@@ -5333,25 +5410,22 @@ public Builder clear() {
}
bitField0_ = (bitField0_ & ~0x00000001);
webhook_ = "";
-
returnPartialResponses_ = false;
-
tag_ = "";
-
if (setParameterActionsBuilder_ == null) {
setParameterActions_ = java.util.Collections.emptyList();
} else {
setParameterActions_ = null;
setParameterActionsBuilder_.clear();
}
- bitField0_ = (bitField0_ & ~0x00000002);
+ bitField0_ = (bitField0_ & ~0x00000010);
if (conditionalCasesBuilder_ == null) {
conditionalCases_ = java.util.Collections.emptyList();
} else {
conditionalCases_ = null;
conditionalCasesBuilder_.clear();
}
- bitField0_ = (bitField0_ & ~0x00000004);
+ bitField0_ = (bitField0_ & ~0x00000020);
return this;
}
@@ -5379,7 +5453,15 @@ public com.google.cloud.dialogflow.cx.v3.Fulfillment build() {
public com.google.cloud.dialogflow.cx.v3.Fulfillment buildPartial() {
com.google.cloud.dialogflow.cx.v3.Fulfillment result =
new com.google.cloud.dialogflow.cx.v3.Fulfillment(this);
- int from_bitField0_ = bitField0_;
+ buildPartialRepeatedFields(result);
+ if (bitField0_ != 0) {
+ buildPartial0(result);
+ }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartialRepeatedFields(com.google.cloud.dialogflow.cx.v3.Fulfillment result) {
if (messagesBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
messages_ = java.util.Collections.unmodifiableList(messages_);
@@ -5389,29 +5471,37 @@ public com.google.cloud.dialogflow.cx.v3.Fulfillment buildPartial() {
} else {
result.messages_ = messagesBuilder_.build();
}
- result.webhook_ = webhook_;
- result.returnPartialResponses_ = returnPartialResponses_;
- result.tag_ = tag_;
if (setParameterActionsBuilder_ == null) {
- if (((bitField0_ & 0x00000002) != 0)) {
+ if (((bitField0_ & 0x00000010) != 0)) {
setParameterActions_ = java.util.Collections.unmodifiableList(setParameterActions_);
- bitField0_ = (bitField0_ & ~0x00000002);
+ bitField0_ = (bitField0_ & ~0x00000010);
}
result.setParameterActions_ = setParameterActions_;
} else {
result.setParameterActions_ = setParameterActionsBuilder_.build();
}
if (conditionalCasesBuilder_ == null) {
- if (((bitField0_ & 0x00000004) != 0)) {
+ if (((bitField0_ & 0x00000020) != 0)) {
conditionalCases_ = java.util.Collections.unmodifiableList(conditionalCases_);
- bitField0_ = (bitField0_ & ~0x00000004);
+ bitField0_ = (bitField0_ & ~0x00000020);
}
result.conditionalCases_ = conditionalCases_;
} else {
result.conditionalCases_ = conditionalCasesBuilder_.build();
}
- onBuilt();
- return result;
+ }
+
+ private void buildPartial0(com.google.cloud.dialogflow.cx.v3.Fulfillment result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.webhook_ = webhook_;
+ }
+ if (((from_bitField0_ & 0x00000004) != 0)) {
+ result.returnPartialResponses_ = returnPartialResponses_;
+ }
+ if (((from_bitField0_ & 0x00000008) != 0)) {
+ result.tag_ = tag_;
+ }
}
@java.lang.Override
@@ -5488,6 +5578,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.Fulfillment other) {
}
if (!other.getWebhook().isEmpty()) {
webhook_ = other.webhook_;
+ bitField0_ |= 0x00000002;
onChanged();
}
if (other.getReturnPartialResponses() != false) {
@@ -5495,13 +5586,14 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.Fulfillment other) {
}
if (!other.getTag().isEmpty()) {
tag_ = other.tag_;
+ bitField0_ |= 0x00000008;
onChanged();
}
if (setParameterActionsBuilder_ == null) {
if (!other.setParameterActions_.isEmpty()) {
if (setParameterActions_.isEmpty()) {
setParameterActions_ = other.setParameterActions_;
- bitField0_ = (bitField0_ & ~0x00000002);
+ bitField0_ = (bitField0_ & ~0x00000010);
} else {
ensureSetParameterActionsIsMutable();
setParameterActions_.addAll(other.setParameterActions_);
@@ -5514,7 +5606,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.Fulfillment other) {
setParameterActionsBuilder_.dispose();
setParameterActionsBuilder_ = null;
setParameterActions_ = other.setParameterActions_;
- bitField0_ = (bitField0_ & ~0x00000002);
+ bitField0_ = (bitField0_ & ~0x00000010);
setParameterActionsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
? getSetParameterActionsFieldBuilder()
@@ -5528,7 +5620,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.Fulfillment other) {
if (!other.conditionalCases_.isEmpty()) {
if (conditionalCases_.isEmpty()) {
conditionalCases_ = other.conditionalCases_;
- bitField0_ = (bitField0_ & ~0x00000004);
+ bitField0_ = (bitField0_ & ~0x00000020);
} else {
ensureConditionalCasesIsMutable();
conditionalCases_.addAll(other.conditionalCases_);
@@ -5541,7 +5633,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.Fulfillment other) {
conditionalCasesBuilder_.dispose();
conditionalCasesBuilder_ = null;
conditionalCases_ = other.conditionalCases_;
- bitField0_ = (bitField0_ & ~0x00000004);
+ bitField0_ = (bitField0_ & ~0x00000020);
conditionalCasesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
? getConditionalCasesFieldBuilder()
@@ -5594,13 +5686,13 @@ public Builder mergeFrom(
case 18:
{
webhook_ = input.readStringRequireUtf8();
-
+ bitField0_ |= 0x00000002;
break;
} // case 18
case 26:
{
tag_ = input.readStringRequireUtf8();
-
+ bitField0_ |= 0x00000008;
break;
} // case 26
case 34:
@@ -5634,7 +5726,7 @@ public Builder mergeFrom(
case 64:
{
returnPartialResponses_ = input.readBool();
-
+ bitField0_ |= 0x00000004;
break;
} // case 64
default:
@@ -6076,8 +6168,8 @@ public Builder setWebhook(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
-
webhook_ = value;
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -6095,8 +6187,8 @@ public Builder setWebhook(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearWebhook() {
-
webhook_ = getDefaultInstance().getWebhook();
+ bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
@@ -6119,8 +6211,8 @@ public Builder setWebhookBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
-
webhook_ = value;
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -6172,6 +6264,7 @@ public boolean getReturnPartialResponses() {
public Builder setReturnPartialResponses(boolean value) {
returnPartialResponses_ = value;
+ bitField0_ |= 0x00000004;
onChanged();
return this;
}
@@ -6195,7 +6288,7 @@ public Builder setReturnPartialResponses(boolean value) {
* @return This builder for chaining.
*/
public Builder clearReturnPartialResponses() {
-
+ bitField0_ = (bitField0_ & ~0x00000004);
returnPartialResponses_ = false;
onChanged();
return this;
@@ -6206,7 +6299,8 @@ public Builder clearReturnPartialResponses() {
*
*
*
- * The value of this field will be populated in the [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]
+ * The value of this field will be populated in the
+ * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]
* `fulfillmentInfo.tag` field by Dialogflow when the associated webhook is
* called.
* The tag is typically used by the webhook service to identify which
@@ -6233,7 +6327,8 @@ public java.lang.String getTag() {
*
*
*
- * The value of this field will be populated in the [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]
+ * The value of this field will be populated in the
+ * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]
* `fulfillmentInfo.tag` field by Dialogflow when the associated webhook is
* called.
* The tag is typically used by the webhook service to identify which
@@ -6260,7 +6355,8 @@ public com.google.protobuf.ByteString getTagBytes() {
*
*
*
- * The value of this field will be populated in the [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]
+ * The value of this field will be populated in the
+ * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]
* `fulfillmentInfo.tag` field by Dialogflow when the associated webhook is
* called.
* The tag is typically used by the webhook service to identify which
@@ -6277,8 +6373,8 @@ public Builder setTag(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
-
tag_ = value;
+ bitField0_ |= 0x00000008;
onChanged();
return this;
}
@@ -6286,7 +6382,8 @@ public Builder setTag(java.lang.String value) {
*
*
*
- * The value of this field will be populated in the [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]
+ * The value of this field will be populated in the
+ * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]
* `fulfillmentInfo.tag` field by Dialogflow when the associated webhook is
* called.
* The tag is typically used by the webhook service to identify which
@@ -6299,8 +6396,8 @@ public Builder setTag(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearTag() {
-
tag_ = getDefaultInstance().getTag();
+ bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
return this;
}
@@ -6308,7 +6405,8 @@ public Builder clearTag() {
*
*
*
- * The value of this field will be populated in the [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]
+ * The value of this field will be populated in the
+ * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]
* `fulfillmentInfo.tag` field by Dialogflow when the associated webhook is
* called.
* The tag is typically used by the webhook service to identify which
@@ -6326,8 +6424,8 @@ public Builder setTagBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
-
tag_ = value;
+ bitField0_ |= 0x00000008;
onChanged();
return this;
}
@@ -6336,12 +6434,12 @@ public Builder setTagBytes(com.google.protobuf.ByteString value) {
setParameterActions_ = java.util.Collections.emptyList();
private void ensureSetParameterActionsIsMutable() {
- if (!((bitField0_ & 0x00000002) != 0)) {
+ if (!((bitField0_ & 0x00000010) != 0)) {
setParameterActions_ =
new java.util.ArrayList<
com.google.cloud.dialogflow.cx.v3.Fulfillment.SetParameterAction>(
setParameterActions_);
- bitField0_ |= 0x00000002;
+ bitField0_ |= 0x00000010;
}
}
@@ -6588,7 +6686,7 @@ public Builder addAllSetParameterActions(
public Builder clearSetParameterActions() {
if (setParameterActionsBuilder_ == null) {
setParameterActions_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000002);
+ bitField0_ = (bitField0_ & ~0x00000010);
onChanged();
} else {
setParameterActionsBuilder_.clear();
@@ -6735,7 +6833,7 @@ public Builder removeSetParameterActions(int index) {
com.google.cloud.dialogflow.cx.v3.Fulfillment.SetParameterAction.Builder,
com.google.cloud.dialogflow.cx.v3.Fulfillment.SetParameterActionOrBuilder>(
setParameterActions_,
- ((bitField0_ & 0x00000002) != 0),
+ ((bitField0_ & 0x00000010) != 0),
getParentForChildren(),
isClean());
setParameterActions_ = null;
@@ -6747,11 +6845,11 @@ public Builder removeSetParameterActions(int index) {
conditionalCases_ = java.util.Collections.emptyList();
private void ensureConditionalCasesIsMutable() {
- if (!((bitField0_ & 0x00000004) != 0)) {
+ if (!((bitField0_ & 0x00000020) != 0)) {
conditionalCases_ =
new java.util.ArrayList(
conditionalCases_);
- bitField0_ |= 0x00000004;
+ bitField0_ |= 0x00000020;
}
}
@@ -6997,7 +7095,7 @@ public Builder addAllConditionalCases(
public Builder clearConditionalCases() {
if (conditionalCasesBuilder_ == null) {
conditionalCases_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000004);
+ bitField0_ = (bitField0_ & ~0x00000020);
onChanged();
} else {
conditionalCasesBuilder_.clear();
@@ -7142,7 +7240,7 @@ public Builder removeConditionalCases(int index) {
com.google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Builder,
com.google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCasesOrBuilder>(
conditionalCases_,
- ((bitField0_ & 0x00000004) != 0),
+ ((bitField0_ & 0x00000020) != 0),
getParentForChildren(),
isClean());
conditionalCases_ = null;
diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/FulfillmentOrBuilder.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/FulfillmentOrBuilder.java
index 6bb991a5d758..094d29cadc85 100644
--- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/FulfillmentOrBuilder.java
+++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/FulfillmentOrBuilder.java
@@ -129,7 +129,8 @@ public interface FulfillmentOrBuilder
*
*
*
- * The value of this field will be populated in the [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]
+ * The value of this field will be populated in the
+ * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]
* `fulfillmentInfo.tag` field by Dialogflow when the associated webhook is
* called.
* The tag is typically used by the webhook service to identify which
@@ -146,7 +147,8 @@ public interface FulfillmentOrBuilder
*
*
*
- * The value of this field will be populated in the [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]
+ * The value of this field will be populated in the
+ * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]
* `fulfillmentInfo.tag` field by Dialogflow when the associated webhook is
* called.
* The tag is typically used by the webhook service to identify which
diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/FulfillmentProto.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/FulfillmentProto.java
index 45713743c50d..b46e88c9991c 100644
--- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/FulfillmentProto.java
+++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/FulfillmentProto.java
@@ -82,12 +82,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "alogflow.cx.v3.ResponseMessageH\000\022W\n\020addi"
+ "tional_cases\030\002 \001(\0132;.google.cloud.dialog"
+ "flow.cx.v3.Fulfillment.ConditionalCasesH"
- + "\000B\022\n\020cases_or_messageB\304\001\n!com.google.clo"
+ + "\000B\022\n\020cases_or_messageB\266\001\n!com.google.clo"
+ "ud.dialogflow.cx.v3B\020FulfillmentProtoP\001Z"
- + "?google.golang.org/genproto/googleapis/c"
- + "loud/dialogflow/cx/v3;cx\370\001\001\242\002\002DF\252\002\035Googl"
- + "e.Cloud.Dialogflow.Cx.V3\352\002!Google::Cloud"
- + "::Dialogflow::CX::V3b\006proto3"
+ + "1cloud.google.com/go/dialogflow/cx/apiv3"
+ + "/cxpb;cxpb\370\001\001\242\002\002DF\252\002\035Google.Cloud.Dialog"
+ + "flow.Cx.V3\352\002!Google::Cloud::Dialogflow::"
+ + "CX::V3b\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetAgentRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetAgentRequest.java
index a5fb2e797599..8ffecc7af392 100644
--- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetAgentRequest.java
+++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetAgentRequest.java
@@ -22,7 +22,8 @@
*
*
*
- * The request message for [Agents.GetAgent][google.cloud.dialogflow.cx.v3.Agents.GetAgent].
+ * The request message for
+ * [Agents.GetAgent][google.cloud.dialogflow.cx.v3.Agents.GetAgent].
*
*
* Protobuf type {@code google.cloud.dialogflow.cx.v3.GetAgentRequest}
@@ -68,7 +69,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
public static final int NAME_FIELD_NUMBER = 1;
- private volatile java.lang.Object name_;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object name_ = "";
/**
*
*
@@ -285,7 +288,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
*
*
*
- * The request message for [Agents.GetAgent][google.cloud.dialogflow.cx.v3.Agents.GetAgent].
+ * The request message for
+ * [Agents.GetAgent][google.cloud.dialogflow.cx.v3.Agents.GetAgent].
*
*
* Protobuf type {@code google.cloud.dialogflow.cx.v3.GetAgentRequest}
@@ -319,8 +323,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
@java.lang.Override
public Builder clear() {
super.clear();
+ bitField0_ = 0;
name_ = "";
-
return this;
}
@@ -348,11 +352,20 @@ public com.google.cloud.dialogflow.cx.v3.GetAgentRequest build() {
public com.google.cloud.dialogflow.cx.v3.GetAgentRequest buildPartial() {
com.google.cloud.dialogflow.cx.v3.GetAgentRequest result =
new com.google.cloud.dialogflow.cx.v3.GetAgentRequest(this);
- result.name_ = name_;
+ if (bitField0_ != 0) {
+ buildPartial0(result);
+ }
onBuilt();
return result;
}
+ private void buildPartial0(com.google.cloud.dialogflow.cx.v3.GetAgentRequest result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.name_ = name_;
+ }
+ }
+
@java.lang.Override
public Builder clone() {
return super.clone();
@@ -401,6 +414,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.GetAgentRequest other
return this;
if (!other.getName().isEmpty()) {
name_ = other.name_;
+ bitField0_ |= 0x00000001;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
@@ -432,7 +446,7 @@ public Builder mergeFrom(
case 10:
{
name_ = input.readStringRequireUtf8();
-
+ bitField0_ |= 0x00000001;
break;
} // case 10
default:
@@ -452,6 +466,8 @@ public Builder mergeFrom(
return this;
}
+ private int bitField0_;
+
private java.lang.Object name_ = "";
/**
*
@@ -522,8 +538,8 @@ public Builder setName(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
-
name_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -542,8 +558,8 @@ public Builder setName(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearName() {
-
name_ = getDefaultInstance().getName();
+ bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
@@ -567,8 +583,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
-
name_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetAgentValidationResultRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetAgentValidationResultRequest.java
index f30f852cd9f0..af3cc645ae2a 100644
--- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetAgentValidationResultRequest.java
+++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetAgentValidationResultRequest.java
@@ -22,7 +22,8 @@
*
*
*
- * The request message for [Agents.GetAgentValidationResult][google.cloud.dialogflow.cx.v3.Agents.GetAgentValidationResult].
+ * The request message for
+ * [Agents.GetAgentValidationResult][google.cloud.dialogflow.cx.v3.Agents.GetAgentValidationResult].
*
*
* Protobuf type {@code google.cloud.dialogflow.cx.v3.GetAgentValidationResultRequest}
@@ -70,7 +71,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
public static final int NAME_FIELD_NUMBER = 1;
- private volatile java.lang.Object name_;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object name_ = "";
/**
*
*
@@ -127,7 +130,9 @@ public com.google.protobuf.ByteString getNameBytes() {
}
public static final int LANGUAGE_CODE_FIELD_NUMBER = 2;
- private volatile java.lang.Object languageCode_;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object languageCode_ = "";
/**
*
*
@@ -349,7 +354,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
*
*
*
- * The request message for [Agents.GetAgentValidationResult][google.cloud.dialogflow.cx.v3.Agents.GetAgentValidationResult].
+ * The request message for
+ * [Agents.GetAgentValidationResult][google.cloud.dialogflow.cx.v3.Agents.GetAgentValidationResult].
*
*
* Protobuf type {@code google.cloud.dialogflow.cx.v3.GetAgentValidationResultRequest}
@@ -384,10 +390,9 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
@java.lang.Override
public Builder clear() {
super.clear();
+ bitField0_ = 0;
name_ = "";
-
languageCode_ = "";
-
return this;
}
@@ -416,12 +421,24 @@ public com.google.cloud.dialogflow.cx.v3.GetAgentValidationResultRequest build()
public com.google.cloud.dialogflow.cx.v3.GetAgentValidationResultRequest buildPartial() {
com.google.cloud.dialogflow.cx.v3.GetAgentValidationResultRequest result =
new com.google.cloud.dialogflow.cx.v3.GetAgentValidationResultRequest(this);
- result.name_ = name_;
- result.languageCode_ = languageCode_;
+ if (bitField0_ != 0) {
+ buildPartial0(result);
+ }
onBuilt();
return result;
}
+ private void buildPartial0(
+ com.google.cloud.dialogflow.cx.v3.GetAgentValidationResultRequest result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.name_ = name_;
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.languageCode_ = languageCode_;
+ }
+ }
+
@java.lang.Override
public Builder clone() {
return super.clone();
@@ -472,10 +489,12 @@ public Builder mergeFrom(
return this;
if (!other.getName().isEmpty()) {
name_ = other.name_;
+ bitField0_ |= 0x00000001;
onChanged();
}
if (!other.getLanguageCode().isEmpty()) {
languageCode_ = other.languageCode_;
+ bitField0_ |= 0x00000002;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
@@ -507,13 +526,13 @@ public Builder mergeFrom(
case 10:
{
name_ = input.readStringRequireUtf8();
-
+ bitField0_ |= 0x00000001;
break;
} // case 10
case 18:
{
languageCode_ = input.readStringRequireUtf8();
-
+ bitField0_ |= 0x00000002;
break;
} // case 18
default:
@@ -533,6 +552,8 @@ public Builder mergeFrom(
return this;
}
+ private int bitField0_;
+
private java.lang.Object name_ = "";
/**
*
@@ -606,8 +627,8 @@ public Builder setName(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
-
name_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -627,8 +648,8 @@ public Builder setName(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearName() {
-
name_ = getDefaultInstance().getName();
+ bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
@@ -653,8 +674,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
-
name_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -720,8 +741,8 @@ public Builder setLanguageCode(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
-
languageCode_ = value;
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -737,8 +758,8 @@ public Builder setLanguageCode(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearLanguageCode() {
-
languageCode_ = getDefaultInstance().getLanguageCode();
+ bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
@@ -759,8 +780,8 @@ public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
-
languageCode_ = value;
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetChangelogRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetChangelogRequest.java
index 75a4e0a6569b..14344d3216a8 100644
--- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetChangelogRequest.java
+++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetChangelogRequest.java
@@ -22,7 +22,8 @@
*
*
*
- * The request message for [Changelogs.GetChangelog][google.cloud.dialogflow.cx.v3.Changelogs.GetChangelog].
+ * The request message for
+ * [Changelogs.GetChangelog][google.cloud.dialogflow.cx.v3.Changelogs.GetChangelog].
*
*
* Protobuf type {@code google.cloud.dialogflow.cx.v3.GetChangelogRequest}
@@ -68,7 +69,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
public static final int NAME_FIELD_NUMBER = 1;
- private volatile java.lang.Object name_;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object name_ = "";
/**
*
*
@@ -288,7 +291,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
*
*
*
- * The request message for [Changelogs.GetChangelog][google.cloud.dialogflow.cx.v3.Changelogs.GetChangelog].
+ * The request message for
+ * [Changelogs.GetChangelog][google.cloud.dialogflow.cx.v3.Changelogs.GetChangelog].
*
*
* Protobuf type {@code google.cloud.dialogflow.cx.v3.GetChangelogRequest}
@@ -322,8 +326,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
@java.lang.Override
public Builder clear() {
super.clear();
+ bitField0_ = 0;
name_ = "";
-
return this;
}
@@ -351,11 +355,20 @@ public com.google.cloud.dialogflow.cx.v3.GetChangelogRequest build() {
public com.google.cloud.dialogflow.cx.v3.GetChangelogRequest buildPartial() {
com.google.cloud.dialogflow.cx.v3.GetChangelogRequest result =
new com.google.cloud.dialogflow.cx.v3.GetChangelogRequest(this);
- result.name_ = name_;
+ if (bitField0_ != 0) {
+ buildPartial0(result);
+ }
onBuilt();
return result;
}
+ private void buildPartial0(com.google.cloud.dialogflow.cx.v3.GetChangelogRequest result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.name_ = name_;
+ }
+ }
+
@java.lang.Override
public Builder clone() {
return super.clone();
@@ -404,6 +417,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.GetChangelogRequest o
return this;
if (!other.getName().isEmpty()) {
name_ = other.name_;
+ bitField0_ |= 0x00000001;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
@@ -435,7 +449,7 @@ public Builder mergeFrom(
case 10:
{
name_ = input.readStringRequireUtf8();
-
+ bitField0_ |= 0x00000001;
break;
} // case 10
default:
@@ -455,6 +469,8 @@ public Builder mergeFrom(
return this;
}
+ private int bitField0_;
+
private java.lang.Object name_ = "";
/**
*
@@ -528,8 +544,8 @@ public Builder setName(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
-
name_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -549,8 +565,8 @@ public Builder setName(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearName() {
-
name_ = getDefaultInstance().getName();
+ bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
@@ -575,8 +591,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
-
name_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetDeploymentRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetDeploymentRequest.java
index 0c03366fec07..5971dc1868d8 100644
--- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetDeploymentRequest.java
+++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetDeploymentRequest.java
@@ -22,7 +22,8 @@
*
*
*
- * The request message for [Deployments.GetDeployment][google.cloud.dialogflow.cx.v3.Deployments.GetDeployment].
+ * The request message for
+ * [Deployments.GetDeployment][google.cloud.dialogflow.cx.v3.Deployments.GetDeployment].
*
*
* Protobuf type {@code google.cloud.dialogflow.cx.v3.GetDeploymentRequest}
@@ -68,13 +69,16 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
public static final int NAME_FIELD_NUMBER = 1;
- private volatile java.lang.Object name_;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object name_ = "";
/**
*
*
*
- * Required. The name of the [Deployment][google.cloud.dialogflow.cx.v3.Deployment].
- * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+ * Required. The name of the
+ * [Deployment][google.cloud.dialogflow.cx.v3.Deployment]. Format:
+ * `projects/<Project ID>/locations/<Location ID>/agents/<Agent
* ID>/environments/<Environment ID>/deployments/<Deployment ID>`.
*
*
@@ -100,8 +104,9 @@ public java.lang.String getName() {
*
*
*
- * Required. The name of the [Deployment][google.cloud.dialogflow.cx.v3.Deployment].
- * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+ * Required. The name of the
+ * [Deployment][google.cloud.dialogflow.cx.v3.Deployment]. Format:
+ * `projects/<Project ID>/locations/<Location ID>/agents/<Agent
* ID>/environments/<Environment ID>/deployments/<Deployment ID>`.
*
*
@@ -288,7 +293,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
*
*
*
- * The request message for [Deployments.GetDeployment][google.cloud.dialogflow.cx.v3.Deployments.GetDeployment].
+ * The request message for
+ * [Deployments.GetDeployment][google.cloud.dialogflow.cx.v3.Deployments.GetDeployment].
*
*
* Protobuf type {@code google.cloud.dialogflow.cx.v3.GetDeploymentRequest}
@@ -322,8 +328,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
@java.lang.Override
public Builder clear() {
super.clear();
+ bitField0_ = 0;
name_ = "";
-
return this;
}
@@ -351,11 +357,20 @@ public com.google.cloud.dialogflow.cx.v3.GetDeploymentRequest build() {
public com.google.cloud.dialogflow.cx.v3.GetDeploymentRequest buildPartial() {
com.google.cloud.dialogflow.cx.v3.GetDeploymentRequest result =
new com.google.cloud.dialogflow.cx.v3.GetDeploymentRequest(this);
- result.name_ = name_;
+ if (bitField0_ != 0) {
+ buildPartial0(result);
+ }
onBuilt();
return result;
}
+ private void buildPartial0(com.google.cloud.dialogflow.cx.v3.GetDeploymentRequest result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.name_ = name_;
+ }
+ }
+
@java.lang.Override
public Builder clone() {
return super.clone();
@@ -404,6 +419,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.GetDeploymentRequest
return this;
if (!other.getName().isEmpty()) {
name_ = other.name_;
+ bitField0_ |= 0x00000001;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
@@ -435,7 +451,7 @@ public Builder mergeFrom(
case 10:
{
name_ = input.readStringRequireUtf8();
-
+ bitField0_ |= 0x00000001;
break;
} // case 10
default:
@@ -455,13 +471,16 @@ public Builder mergeFrom(
return this;
}
+ private int bitField0_;
+
private java.lang.Object name_ = "";
/**
*
*
*
- * Required. The name of the [Deployment][google.cloud.dialogflow.cx.v3.Deployment].
- * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+ * Required. The name of the
+ * [Deployment][google.cloud.dialogflow.cx.v3.Deployment]. Format:
+ * `projects/<Project ID>/locations/<Location ID>/agents/<Agent
* ID>/environments/<Environment ID>/deployments/<Deployment ID>`.
*
*
@@ -486,8 +505,9 @@ public java.lang.String getName() {
*
*
*
- * Required. The name of the [Deployment][google.cloud.dialogflow.cx.v3.Deployment].
- * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+ * Required. The name of the
+ * [Deployment][google.cloud.dialogflow.cx.v3.Deployment]. Format:
+ * `projects/<Project ID>/locations/<Location ID>/agents/<Agent
* ID>/environments/<Environment ID>/deployments/<Deployment ID>`.
*
*
@@ -512,8 +532,9 @@ public com.google.protobuf.ByteString getNameBytes() {
*
*
*
- * Required. The name of the [Deployment][google.cloud.dialogflow.cx.v3.Deployment].
- * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+ * Required. The name of the
+ * [Deployment][google.cloud.dialogflow.cx.v3.Deployment]. Format:
+ * `projects/<Project ID>/locations/<Location ID>/agents/<Agent
* ID>/environments/<Environment ID>/deployments/<Deployment ID>`.
*
*
@@ -528,8 +549,8 @@ public Builder setName(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
-
name_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -537,8 +558,9 @@ public Builder setName(java.lang.String value) {
*
*
*
- * Required. The name of the [Deployment][google.cloud.dialogflow.cx.v3.Deployment].
- * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+ * Required. The name of the
+ * [Deployment][google.cloud.dialogflow.cx.v3.Deployment]. Format:
+ * `projects/<Project ID>/locations/<Location ID>/agents/<Agent
* ID>/environments/<Environment ID>/deployments/<Deployment ID>`.
*
*
@@ -549,8 +571,8 @@ public Builder setName(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearName() {
-
name_ = getDefaultInstance().getName();
+ bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
@@ -558,8 +580,9 @@ public Builder clearName() {
*
*
*
- * Required. The name of the [Deployment][google.cloud.dialogflow.cx.v3.Deployment].
- * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+ * Required. The name of the
+ * [Deployment][google.cloud.dialogflow.cx.v3.Deployment]. Format:
+ * `projects/<Project ID>/locations/<Location ID>/agents/<Agent
* ID>/environments/<Environment ID>/deployments/<Deployment ID>`.
*
*
@@ -575,8 +598,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
-
name_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetDeploymentRequestOrBuilder.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetDeploymentRequestOrBuilder.java
index ad803532d982..d1191cd6cb80 100644
--- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetDeploymentRequestOrBuilder.java
+++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetDeploymentRequestOrBuilder.java
@@ -27,8 +27,9 @@ public interface GetDeploymentRequestOrBuilder
*
*
*
- * Required. The name of the [Deployment][google.cloud.dialogflow.cx.v3.Deployment].
- * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+ * Required. The name of the
+ * [Deployment][google.cloud.dialogflow.cx.v3.Deployment]. Format:
+ * `projects/<Project ID>/locations/<Location ID>/agents/<Agent
* ID>/environments/<Environment ID>/deployments/<Deployment ID>`.
*
*
@@ -43,8 +44,9 @@ public interface GetDeploymentRequestOrBuilder
*
*
*
- * Required. The name of the [Deployment][google.cloud.dialogflow.cx.v3.Deployment].
- * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+ * Required. The name of the
+ * [Deployment][google.cloud.dialogflow.cx.v3.Deployment]. Format:
+ * `projects/<Project ID>/locations/<Location ID>/agents/<Agent
* ID>/environments/<Environment ID>/deployments/<Deployment ID>`.
*
*
diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetEntityTypeRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetEntityTypeRequest.java
index ab1c7fbdb433..df40877a7aac 100644
--- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetEntityTypeRequest.java
+++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetEntityTypeRequest.java
@@ -22,7 +22,8 @@
*
*
*
- * The request message for [EntityTypes.GetEntityType][google.cloud.dialogflow.cx.v3.EntityTypes.GetEntityType].
+ * The request message for
+ * [EntityTypes.GetEntityType][google.cloud.dialogflow.cx.v3.EntityTypes.GetEntityType].
*
*
* Protobuf type {@code google.cloud.dialogflow.cx.v3.GetEntityTypeRequest}
@@ -69,7 +70,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
public static final int NAME_FIELD_NUMBER = 1;
- private volatile java.lang.Object name_;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object name_ = "";
/**
*
*
@@ -126,7 +129,9 @@ public com.google.protobuf.ByteString getNameBytes() {
}
public static final int LANGUAGE_CODE_FIELD_NUMBER = 2;
- private volatile java.lang.Object languageCode_;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object languageCode_ = "";
/**
*
*
@@ -365,7 +370,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
*
*
*
- * The request message for [EntityTypes.GetEntityType][google.cloud.dialogflow.cx.v3.EntityTypes.GetEntityType].
+ * The request message for
+ * [EntityTypes.GetEntityType][google.cloud.dialogflow.cx.v3.EntityTypes.GetEntityType].
*
*
* Protobuf type {@code google.cloud.dialogflow.cx.v3.GetEntityTypeRequest}
@@ -399,10 +405,9 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
@java.lang.Override
public Builder clear() {
super.clear();
+ bitField0_ = 0;
name_ = "";
-
languageCode_ = "";
-
return this;
}
@@ -430,12 +435,23 @@ public com.google.cloud.dialogflow.cx.v3.GetEntityTypeRequest build() {
public com.google.cloud.dialogflow.cx.v3.GetEntityTypeRequest buildPartial() {
com.google.cloud.dialogflow.cx.v3.GetEntityTypeRequest result =
new com.google.cloud.dialogflow.cx.v3.GetEntityTypeRequest(this);
- result.name_ = name_;
- result.languageCode_ = languageCode_;
+ if (bitField0_ != 0) {
+ buildPartial0(result);
+ }
onBuilt();
return result;
}
+ private void buildPartial0(com.google.cloud.dialogflow.cx.v3.GetEntityTypeRequest result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.name_ = name_;
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.languageCode_ = languageCode_;
+ }
+ }
+
@java.lang.Override
public Builder clone() {
return super.clone();
@@ -484,10 +500,12 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.GetEntityTypeRequest
return this;
if (!other.getName().isEmpty()) {
name_ = other.name_;
+ bitField0_ |= 0x00000001;
onChanged();
}
if (!other.getLanguageCode().isEmpty()) {
languageCode_ = other.languageCode_;
+ bitField0_ |= 0x00000002;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
@@ -519,13 +537,13 @@ public Builder mergeFrom(
case 10:
{
name_ = input.readStringRequireUtf8();
-
+ bitField0_ |= 0x00000001;
break;
} // case 10
case 18:
{
languageCode_ = input.readStringRequireUtf8();
-
+ bitField0_ |= 0x00000002;
break;
} // case 18
default:
@@ -545,6 +563,8 @@ public Builder mergeFrom(
return this;
}
+ private int bitField0_;
+
private java.lang.Object name_ = "";
/**
*
@@ -618,8 +638,8 @@ public Builder setName(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
-
name_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -639,8 +659,8 @@ public Builder setName(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearName() {
-
name_ = getDefaultInstance().getName();
+ bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
@@ -665,8 +685,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
-
name_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -759,8 +779,8 @@ public Builder setLanguageCode(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
-
languageCode_ = value;
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -785,8 +805,8 @@ public Builder setLanguageCode(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearLanguageCode() {
-
languageCode_ = getDefaultInstance().getLanguageCode();
+ bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
@@ -816,8 +836,8 @@ public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
-
languageCode_ = value;
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetEnvironmentRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetEnvironmentRequest.java
index 0a84dddeba10..8778fdb52a86 100644
--- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetEnvironmentRequest.java
+++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetEnvironmentRequest.java
@@ -22,7 +22,8 @@
*
*
*
- * The request message for [Environments.GetEnvironment][google.cloud.dialogflow.cx.v3.Environments.GetEnvironment].
+ * The request message for
+ * [Environments.GetEnvironment][google.cloud.dialogflow.cx.v3.Environments.GetEnvironment].
*
*
* Protobuf type {@code google.cloud.dialogflow.cx.v3.GetEnvironmentRequest}
@@ -68,13 +69,16 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
public static final int NAME_FIELD_NUMBER = 1;
- private volatile java.lang.Object name_;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object name_ = "";
/**
*
*
*
- * Required. The name of the [Environment][google.cloud.dialogflow.cx.v3.Environment].
- * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+ * Required. The name of the
+ * [Environment][google.cloud.dialogflow.cx.v3.Environment]. Format:
+ * `projects/<Project ID>/locations/<Location ID>/agents/<Agent
* ID>/environments/<Environment ID>`.
*
*
@@ -100,8 +104,9 @@ public java.lang.String getName() {
*
*
*
- * Required. The name of the [Environment][google.cloud.dialogflow.cx.v3.Environment].
- * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+ * Required. The name of the
+ * [Environment][google.cloud.dialogflow.cx.v3.Environment]. Format:
+ * `projects/<Project ID>/locations/<Location ID>/agents/<Agent
* ID>/environments/<Environment ID>`.
*
*
@@ -288,7 +293,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
*
*
*
- * The request message for [Environments.GetEnvironment][google.cloud.dialogflow.cx.v3.Environments.GetEnvironment].
+ * The request message for
+ * [Environments.GetEnvironment][google.cloud.dialogflow.cx.v3.Environments.GetEnvironment].
*
*
* Protobuf type {@code google.cloud.dialogflow.cx.v3.GetEnvironmentRequest}
@@ -322,8 +328,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
@java.lang.Override
public Builder clear() {
super.clear();
+ bitField0_ = 0;
name_ = "";
-
return this;
}
@@ -351,11 +357,20 @@ public com.google.cloud.dialogflow.cx.v3.GetEnvironmentRequest build() {
public com.google.cloud.dialogflow.cx.v3.GetEnvironmentRequest buildPartial() {
com.google.cloud.dialogflow.cx.v3.GetEnvironmentRequest result =
new com.google.cloud.dialogflow.cx.v3.GetEnvironmentRequest(this);
- result.name_ = name_;
+ if (bitField0_ != 0) {
+ buildPartial0(result);
+ }
onBuilt();
return result;
}
+ private void buildPartial0(com.google.cloud.dialogflow.cx.v3.GetEnvironmentRequest result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.name_ = name_;
+ }
+ }
+
@java.lang.Override
public Builder clone() {
return super.clone();
@@ -404,6 +419,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.GetEnvironmentRequest
return this;
if (!other.getName().isEmpty()) {
name_ = other.name_;
+ bitField0_ |= 0x00000001;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
@@ -435,7 +451,7 @@ public Builder mergeFrom(
case 10:
{
name_ = input.readStringRequireUtf8();
-
+ bitField0_ |= 0x00000001;
break;
} // case 10
default:
@@ -455,13 +471,16 @@ public Builder mergeFrom(
return this;
}
+ private int bitField0_;
+
private java.lang.Object name_ = "";
/**
*
*
*
- * Required. The name of the [Environment][google.cloud.dialogflow.cx.v3.Environment].
- * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+ * Required. The name of the
+ * [Environment][google.cloud.dialogflow.cx.v3.Environment]. Format:
+ * `projects/<Project ID>/locations/<Location ID>/agents/<Agent
* ID>/environments/<Environment ID>`.
*
*
@@ -486,8 +505,9 @@ public java.lang.String getName() {
*
*
*
- * Required. The name of the [Environment][google.cloud.dialogflow.cx.v3.Environment].
- * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+ * Required. The name of the
+ * [Environment][google.cloud.dialogflow.cx.v3.Environment]. Format:
+ * `projects/<Project ID>/locations/<Location ID>/agents/<Agent
* ID>/environments/<Environment ID>`.
*
*
@@ -512,8 +532,9 @@ public com.google.protobuf.ByteString getNameBytes() {
*
*
*
- * Required. The name of the [Environment][google.cloud.dialogflow.cx.v3.Environment].
- * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+ * Required. The name of the
+ * [Environment][google.cloud.dialogflow.cx.v3.Environment]. Format:
+ * `projects/<Project ID>/locations/<Location ID>/agents/<Agent
* ID>/environments/<Environment ID>`.
*
*
@@ -528,8 +549,8 @@ public Builder setName(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
-
name_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -537,8 +558,9 @@ public Builder setName(java.lang.String value) {
*
*
*
- * Required. The name of the [Environment][google.cloud.dialogflow.cx.v3.Environment].
- * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+ * Required. The name of the
+ * [Environment][google.cloud.dialogflow.cx.v3.Environment]. Format:
+ * `projects/<Project ID>/locations/<Location ID>/agents/<Agent
* ID>/environments/<Environment ID>`.
*
*
@@ -549,8 +571,8 @@ public Builder setName(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearName() {
-
name_ = getDefaultInstance().getName();
+ bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
@@ -558,8 +580,9 @@ public Builder clearName() {
*
*
*
- * Required. The name of the [Environment][google.cloud.dialogflow.cx.v3.Environment].
- * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+ * Required. The name of the
+ * [Environment][google.cloud.dialogflow.cx.v3.Environment]. Format:
+ * `projects/<Project ID>/locations/<Location ID>/agents/<Agent
* ID>/environments/<Environment ID>`.
*
*
@@ -575,8 +598,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
-
name_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetEnvironmentRequestOrBuilder.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetEnvironmentRequestOrBuilder.java
index 13e38593608c..39b262672f7a 100644
--- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetEnvironmentRequestOrBuilder.java
+++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetEnvironmentRequestOrBuilder.java
@@ -27,8 +27,9 @@ public interface GetEnvironmentRequestOrBuilder
*
*
*
- * Required. The name of the [Environment][google.cloud.dialogflow.cx.v3.Environment].
- * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+ * Required. The name of the
+ * [Environment][google.cloud.dialogflow.cx.v3.Environment]. Format:
+ * `projects/<Project ID>/locations/<Location ID>/agents/<Agent
* ID>/environments/<Environment ID>`.
*
*
@@ -43,8 +44,9 @@ public interface GetEnvironmentRequestOrBuilder
*
*
*
- * Required. The name of the [Environment][google.cloud.dialogflow.cx.v3.Environment].
- * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+ * Required. The name of the
+ * [Environment][google.cloud.dialogflow.cx.v3.Environment]. Format:
+ * `projects/<Project ID>/locations/<Location ID>/agents/<Agent
* ID>/environments/<Environment ID>`.
*
*
diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetExperimentRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetExperimentRequest.java
index 7ca0fc4040a7..d93dc185e388 100644
--- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetExperimentRequest.java
+++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetExperimentRequest.java
@@ -22,7 +22,8 @@
*
*
*
- * The request message for [Experiments.GetExperiment][google.cloud.dialogflow.cx.v3.Experiments.GetExperiment].
+ * The request message for
+ * [Experiments.GetExperiment][google.cloud.dialogflow.cx.v3.Experiments.GetExperiment].
*
*
* Protobuf type {@code google.cloud.dialogflow.cx.v3.GetExperimentRequest}
@@ -68,13 +69,16 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
public static final int NAME_FIELD_NUMBER = 1;
- private volatile java.lang.Object name_;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object name_ = "";
/**
*
*
*
- * Required. The name of the [Environment][google.cloud.dialogflow.cx.v3.Environment].
- * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+ * Required. The name of the
+ * [Environment][google.cloud.dialogflow.cx.v3.Environment]. Format:
+ * `projects/<Project ID>/locations/<Location ID>/agents/<Agent
* ID>/environments/<Environment ID>/experiments/<Experiment ID>`.
*
*
@@ -100,8 +104,9 @@ public java.lang.String getName() {
*
*
*
- * Required. The name of the [Environment][google.cloud.dialogflow.cx.v3.Environment].
- * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+ * Required. The name of the
+ * [Environment][google.cloud.dialogflow.cx.v3.Environment]. Format:
+ * `projects/<Project ID>/locations/<Location ID>/agents/<Agent
* ID>/environments/<Environment ID>/experiments/<Experiment ID>`.
*
*
@@ -288,7 +293,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
*
*
*
- * The request message for [Experiments.GetExperiment][google.cloud.dialogflow.cx.v3.Experiments.GetExperiment].
+ * The request message for
+ * [Experiments.GetExperiment][google.cloud.dialogflow.cx.v3.Experiments.GetExperiment].
*
*
* Protobuf type {@code google.cloud.dialogflow.cx.v3.GetExperimentRequest}
@@ -322,8 +328,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
@java.lang.Override
public Builder clear() {
super.clear();
+ bitField0_ = 0;
name_ = "";
-
return this;
}
@@ -351,11 +357,20 @@ public com.google.cloud.dialogflow.cx.v3.GetExperimentRequest build() {
public com.google.cloud.dialogflow.cx.v3.GetExperimentRequest buildPartial() {
com.google.cloud.dialogflow.cx.v3.GetExperimentRequest result =
new com.google.cloud.dialogflow.cx.v3.GetExperimentRequest(this);
- result.name_ = name_;
+ if (bitField0_ != 0) {
+ buildPartial0(result);
+ }
onBuilt();
return result;
}
+ private void buildPartial0(com.google.cloud.dialogflow.cx.v3.GetExperimentRequest result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.name_ = name_;
+ }
+ }
+
@java.lang.Override
public Builder clone() {
return super.clone();
@@ -404,6 +419,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.GetExperimentRequest
return this;
if (!other.getName().isEmpty()) {
name_ = other.name_;
+ bitField0_ |= 0x00000001;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
@@ -435,7 +451,7 @@ public Builder mergeFrom(
case 10:
{
name_ = input.readStringRequireUtf8();
-
+ bitField0_ |= 0x00000001;
break;
} // case 10
default:
@@ -455,13 +471,16 @@ public Builder mergeFrom(
return this;
}
+ private int bitField0_;
+
private java.lang.Object name_ = "";
/**
*
*
*
- * Required. The name of the [Environment][google.cloud.dialogflow.cx.v3.Environment].
- * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+ * Required. The name of the
+ * [Environment][google.cloud.dialogflow.cx.v3.Environment]. Format:
+ * `projects/<Project ID>/locations/<Location ID>/agents/<Agent
* ID>/environments/<Environment ID>/experiments/<Experiment ID>`.
*
*
@@ -486,8 +505,9 @@ public java.lang.String getName() {
*
*
*
- * Required. The name of the [Environment][google.cloud.dialogflow.cx.v3.Environment].
- * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+ * Required. The name of the
+ * [Environment][google.cloud.dialogflow.cx.v3.Environment]. Format:
+ * `projects/<Project ID>/locations/<Location ID>/agents/<Agent
* ID>/environments/<Environment ID>/experiments/<Experiment ID>`.
*
*
@@ -512,8 +532,9 @@ public com.google.protobuf.ByteString getNameBytes() {
*
*
*
- * Required. The name of the [Environment][google.cloud.dialogflow.cx.v3.Environment].
- * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+ * Required. The name of the
+ * [Environment][google.cloud.dialogflow.cx.v3.Environment]. Format:
+ * `projects/<Project ID>/locations/<Location ID>/agents/<Agent
* ID>/environments/<Environment ID>/experiments/<Experiment ID>`.
*
*
@@ -528,8 +549,8 @@ public Builder setName(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
-
name_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -537,8 +558,9 @@ public Builder setName(java.lang.String value) {
*
*
*
- * Required. The name of the [Environment][google.cloud.dialogflow.cx.v3.Environment].
- * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+ * Required. The name of the
+ * [Environment][google.cloud.dialogflow.cx.v3.Environment]. Format:
+ * `projects/<Project ID>/locations/<Location ID>/agents/<Agent
* ID>/environments/<Environment ID>/experiments/<Experiment ID>`.
*
*
@@ -549,8 +571,8 @@ public Builder setName(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearName() {
-
name_ = getDefaultInstance().getName();
+ bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
@@ -558,8 +580,9 @@ public Builder clearName() {
*
*
*
- * Required. The name of the [Environment][google.cloud.dialogflow.cx.v3.Environment].
- * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+ * Required. The name of the
+ * [Environment][google.cloud.dialogflow.cx.v3.Environment]. Format:
+ * `projects/<Project ID>/locations/<Location ID>/agents/<Agent
* ID>/environments/<Environment ID>/experiments/<Experiment ID>`.
*
*
@@ -575,8 +598,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
-
name_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetExperimentRequestOrBuilder.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetExperimentRequestOrBuilder.java
index 539db127ad78..acf07e10e100 100644
--- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetExperimentRequestOrBuilder.java
+++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetExperimentRequestOrBuilder.java
@@ -27,8 +27,9 @@ public interface GetExperimentRequestOrBuilder
*
*
*
- * Required. The name of the [Environment][google.cloud.dialogflow.cx.v3.Environment].
- * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+ * Required. The name of the
+ * [Environment][google.cloud.dialogflow.cx.v3.Environment]. Format:
+ * `projects/<Project ID>/locations/<Location ID>/agents/<Agent
* ID>/environments/<Environment ID>/experiments/<Experiment ID>`.
*
*
@@ -43,8 +44,9 @@ public interface GetExperimentRequestOrBuilder
*
*
*
- * Required. The name of the [Environment][google.cloud.dialogflow.cx.v3.Environment].
- * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+ * Required. The name of the
+ * [Environment][google.cloud.dialogflow.cx.v3.Environment]. Format:
+ * `projects/<Project ID>/locations/<Location ID>/agents/<Agent
* ID>/environments/<Environment ID>/experiments/<Experiment ID>`.
*
*
diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetFlowRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetFlowRequest.java
index b33d3053c6e3..ac0ca778c66a 100644
--- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetFlowRequest.java
+++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetFlowRequest.java
@@ -22,7 +22,8 @@
*
*
*
- * The response message for [Flows.GetFlow][google.cloud.dialogflow.cx.v3.Flows.GetFlow].
+ * The response message for
+ * [Flows.GetFlow][google.cloud.dialogflow.cx.v3.Flows.GetFlow].
*
*
* Protobuf type {@code google.cloud.dialogflow.cx.v3.GetFlowRequest}
@@ -69,7 +70,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
public static final int NAME_FIELD_NUMBER = 1;
- private volatile java.lang.Object name_;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object name_ = "";
/**
*
*
@@ -126,7 +129,9 @@ public com.google.protobuf.ByteString getNameBytes() {
}
public static final int LANGUAGE_CODE_FIELD_NUMBER = 2;
- private volatile java.lang.Object languageCode_;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object languageCode_ = "";
/**
*
*
@@ -366,7 +371,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
*
*
*
- * The response message for [Flows.GetFlow][google.cloud.dialogflow.cx.v3.Flows.GetFlow].
+ * The response message for
+ * [Flows.GetFlow][google.cloud.dialogflow.cx.v3.Flows.GetFlow].
*
*
* Protobuf type {@code google.cloud.dialogflow.cx.v3.GetFlowRequest}
@@ -400,10 +406,9 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
@java.lang.Override
public Builder clear() {
super.clear();
+ bitField0_ = 0;
name_ = "";
-
languageCode_ = "";
-
return this;
}
@@ -431,12 +436,23 @@ public com.google.cloud.dialogflow.cx.v3.GetFlowRequest build() {
public com.google.cloud.dialogflow.cx.v3.GetFlowRequest buildPartial() {
com.google.cloud.dialogflow.cx.v3.GetFlowRequest result =
new com.google.cloud.dialogflow.cx.v3.GetFlowRequest(this);
- result.name_ = name_;
- result.languageCode_ = languageCode_;
+ if (bitField0_ != 0) {
+ buildPartial0(result);
+ }
onBuilt();
return result;
}
+ private void buildPartial0(com.google.cloud.dialogflow.cx.v3.GetFlowRequest result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.name_ = name_;
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.languageCode_ = languageCode_;
+ }
+ }
+
@java.lang.Override
public Builder clone() {
return super.clone();
@@ -485,10 +501,12 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.GetFlowRequest other)
return this;
if (!other.getName().isEmpty()) {
name_ = other.name_;
+ bitField0_ |= 0x00000001;
onChanged();
}
if (!other.getLanguageCode().isEmpty()) {
languageCode_ = other.languageCode_;
+ bitField0_ |= 0x00000002;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
@@ -520,13 +538,13 @@ public Builder mergeFrom(
case 10:
{
name_ = input.readStringRequireUtf8();
-
+ bitField0_ |= 0x00000001;
break;
} // case 10
case 18:
{
languageCode_ = input.readStringRequireUtf8();
-
+ bitField0_ |= 0x00000002;
break;
} // case 18
default:
@@ -546,6 +564,8 @@ public Builder mergeFrom(
return this;
}
+ private int bitField0_;
+
private java.lang.Object name_ = "";
/**
*
@@ -619,8 +639,8 @@ public Builder setName(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
-
name_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -640,8 +660,8 @@ public Builder setName(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearName() {
-
name_ = getDefaultInstance().getName();
+ bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
@@ -666,8 +686,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
-
name_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -763,8 +783,8 @@ public Builder setLanguageCode(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
-
languageCode_ = value;
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -790,8 +810,8 @@ public Builder setLanguageCode(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearLanguageCode() {
-
languageCode_ = getDefaultInstance().getLanguageCode();
+ bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
@@ -822,8 +842,8 @@ public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
-
languageCode_ = value;
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetFlowValidationResultRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetFlowValidationResultRequest.java
index 4c4e2cec7c18..2815b1b9dc5b 100644
--- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetFlowValidationResultRequest.java
+++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetFlowValidationResultRequest.java
@@ -22,7 +22,8 @@
*
*
*
- * The request message for [Flows.GetFlowValidationResult][google.cloud.dialogflow.cx.v3.Flows.GetFlowValidationResult].
+ * The request message for
+ * [Flows.GetFlowValidationResult][google.cloud.dialogflow.cx.v3.Flows.GetFlowValidationResult].
*
*
* Protobuf type {@code google.cloud.dialogflow.cx.v3.GetFlowValidationResultRequest}
@@ -70,7 +71,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
public static final int NAME_FIELD_NUMBER = 1;
- private volatile java.lang.Object name_;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object name_ = "";
/**
*
*
@@ -127,7 +130,9 @@ public com.google.protobuf.ByteString getNameBytes() {
}
public static final int LANGUAGE_CODE_FIELD_NUMBER = 2;
- private volatile java.lang.Object languageCode_;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object languageCode_ = "";
/**
*
*
@@ -348,7 +353,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
*
*
*
- * The request message for [Flows.GetFlowValidationResult][google.cloud.dialogflow.cx.v3.Flows.GetFlowValidationResult].
+ * The request message for
+ * [Flows.GetFlowValidationResult][google.cloud.dialogflow.cx.v3.Flows.GetFlowValidationResult].
*
*
* Protobuf type {@code google.cloud.dialogflow.cx.v3.GetFlowValidationResultRequest}
@@ -382,10 +388,9 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
@java.lang.Override
public Builder clear() {
super.clear();
+ bitField0_ = 0;
name_ = "";
-
languageCode_ = "";
-
return this;
}
@@ -414,12 +419,24 @@ public com.google.cloud.dialogflow.cx.v3.GetFlowValidationResultRequest build()
public com.google.cloud.dialogflow.cx.v3.GetFlowValidationResultRequest buildPartial() {
com.google.cloud.dialogflow.cx.v3.GetFlowValidationResultRequest result =
new com.google.cloud.dialogflow.cx.v3.GetFlowValidationResultRequest(this);
- result.name_ = name_;
- result.languageCode_ = languageCode_;
+ if (bitField0_ != 0) {
+ buildPartial0(result);
+ }
onBuilt();
return result;
}
+ private void buildPartial0(
+ com.google.cloud.dialogflow.cx.v3.GetFlowValidationResultRequest result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.name_ = name_;
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.languageCode_ = languageCode_;
+ }
+ }
+
@java.lang.Override
public Builder clone() {
return super.clone();
@@ -470,10 +487,12 @@ public Builder mergeFrom(
return this;
if (!other.getName().isEmpty()) {
name_ = other.name_;
+ bitField0_ |= 0x00000001;
onChanged();
}
if (!other.getLanguageCode().isEmpty()) {
languageCode_ = other.languageCode_;
+ bitField0_ |= 0x00000002;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
@@ -505,13 +524,13 @@ public Builder mergeFrom(
case 10:
{
name_ = input.readStringRequireUtf8();
-
+ bitField0_ |= 0x00000001;
break;
} // case 10
case 18:
{
languageCode_ = input.readStringRequireUtf8();
-
+ bitField0_ |= 0x00000002;
break;
} // case 18
default:
@@ -531,6 +550,8 @@ public Builder mergeFrom(
return this;
}
+ private int bitField0_;
+
private java.lang.Object name_ = "";
/**
*
@@ -604,8 +625,8 @@ public Builder setName(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
-
name_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -625,8 +646,8 @@ public Builder setName(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearName() {
-
name_ = getDefaultInstance().getName();
+ bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
@@ -651,8 +672,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
-
name_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -718,8 +739,8 @@ public Builder setLanguageCode(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
-
languageCode_ = value;
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -735,8 +756,8 @@ public Builder setLanguageCode(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearLanguageCode() {
-
languageCode_ = getDefaultInstance().getLanguageCode();
+ bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
@@ -757,8 +778,8 @@ public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
-
languageCode_ = value;
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetIntentRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetIntentRequest.java
index efd77684b55b..4c8b079688b3 100644
--- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetIntentRequest.java
+++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetIntentRequest.java
@@ -22,7 +22,8 @@
*
*
*
- * The request message for [Intents.GetIntent][google.cloud.dialogflow.cx.v3.Intents.GetIntent].
+ * The request message for
+ * [Intents.GetIntent][google.cloud.dialogflow.cx.v3.Intents.GetIntent].
*
*
* Protobuf type {@code google.cloud.dialogflow.cx.v3.GetIntentRequest}
@@ -69,7 +70,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
public static final int NAME_FIELD_NUMBER = 1;
- private volatile java.lang.Object name_;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object name_ = "";
/**
*
*
@@ -126,7 +129,9 @@ public com.google.protobuf.ByteString getNameBytes() {
}
public static final int LANGUAGE_CODE_FIELD_NUMBER = 2;
- private volatile java.lang.Object languageCode_;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object languageCode_ = "";
/**
*
*
@@ -360,7 +365,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
*
*
*
- * The request message for [Intents.GetIntent][google.cloud.dialogflow.cx.v3.Intents.GetIntent].
+ * The request message for
+ * [Intents.GetIntent][google.cloud.dialogflow.cx.v3.Intents.GetIntent].
*
*
* Protobuf type {@code google.cloud.dialogflow.cx.v3.GetIntentRequest}
@@ -394,10 +400,9 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
@java.lang.Override
public Builder clear() {
super.clear();
+ bitField0_ = 0;
name_ = "";
-
languageCode_ = "";
-
return this;
}
@@ -425,12 +430,23 @@ public com.google.cloud.dialogflow.cx.v3.GetIntentRequest build() {
public com.google.cloud.dialogflow.cx.v3.GetIntentRequest buildPartial() {
com.google.cloud.dialogflow.cx.v3.GetIntentRequest result =
new com.google.cloud.dialogflow.cx.v3.GetIntentRequest(this);
- result.name_ = name_;
- result.languageCode_ = languageCode_;
+ if (bitField0_ != 0) {
+ buildPartial0(result);
+ }
onBuilt();
return result;
}
+ private void buildPartial0(com.google.cloud.dialogflow.cx.v3.GetIntentRequest result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.name_ = name_;
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.languageCode_ = languageCode_;
+ }
+ }
+
@java.lang.Override
public Builder clone() {
return super.clone();
@@ -479,10 +495,12 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.GetIntentRequest othe
return this;
if (!other.getName().isEmpty()) {
name_ = other.name_;
+ bitField0_ |= 0x00000001;
onChanged();
}
if (!other.getLanguageCode().isEmpty()) {
languageCode_ = other.languageCode_;
+ bitField0_ |= 0x00000002;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
@@ -514,13 +532,13 @@ public Builder mergeFrom(
case 10:
{
name_ = input.readStringRequireUtf8();
-
+ bitField0_ |= 0x00000001;
break;
} // case 10
case 18:
{
languageCode_ = input.readStringRequireUtf8();
-
+ bitField0_ |= 0x00000002;
break;
} // case 18
default:
@@ -540,6 +558,8 @@ public Builder mergeFrom(
return this;
}
+ private int bitField0_;
+
private java.lang.Object name_ = "";
/**
*
@@ -613,8 +633,8 @@ public Builder setName(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
-
name_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -634,8 +654,8 @@ public Builder setName(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearName() {
-
name_ = getDefaultInstance().getName();
+ bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
@@ -660,8 +680,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
-
name_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -748,8 +768,8 @@ public Builder setLanguageCode(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
-
languageCode_ = value;
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -772,8 +792,8 @@ public Builder setLanguageCode(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearLanguageCode() {
-
languageCode_ = getDefaultInstance().getLanguageCode();
+ bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
@@ -801,8 +821,8 @@ public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
-
languageCode_ = value;
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetPageRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetPageRequest.java
index 9f81af497f35..92d9189eabe0 100644
--- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetPageRequest.java
+++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetPageRequest.java
@@ -22,7 +22,8 @@
*
*
*
- * The request message for [Pages.GetPage][google.cloud.dialogflow.cx.v3.Pages.GetPage].
+ * The request message for
+ * [Pages.GetPage][google.cloud.dialogflow.cx.v3.Pages.GetPage].
*
*
* Protobuf type {@code google.cloud.dialogflow.cx.v3.GetPageRequest}
@@ -69,7 +70,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
public static final int NAME_FIELD_NUMBER = 1;
- private volatile java.lang.Object name_;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object name_ = "";
/**
*
*
@@ -126,7 +129,9 @@ public com.google.protobuf.ByteString getNameBytes() {
}
public static final int LANGUAGE_CODE_FIELD_NUMBER = 2;
- private volatile java.lang.Object languageCode_;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object languageCode_ = "";
/**
*
*
@@ -382,7 +387,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
*
*
*
- * The request message for [Pages.GetPage][google.cloud.dialogflow.cx.v3.Pages.GetPage].
+ * The request message for
+ * [Pages.GetPage][google.cloud.dialogflow.cx.v3.Pages.GetPage].
*
*
* Protobuf type {@code google.cloud.dialogflow.cx.v3.GetPageRequest}
@@ -416,10 +422,9 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
@java.lang.Override
public Builder clear() {
super.clear();
+ bitField0_ = 0;
name_ = "";
-
languageCode_ = "";
-
return this;
}
@@ -447,12 +452,23 @@ public com.google.cloud.dialogflow.cx.v3.GetPageRequest build() {
public com.google.cloud.dialogflow.cx.v3.GetPageRequest buildPartial() {
com.google.cloud.dialogflow.cx.v3.GetPageRequest result =
new com.google.cloud.dialogflow.cx.v3.GetPageRequest(this);
- result.name_ = name_;
- result.languageCode_ = languageCode_;
+ if (bitField0_ != 0) {
+ buildPartial0(result);
+ }
onBuilt();
return result;
}
+ private void buildPartial0(com.google.cloud.dialogflow.cx.v3.GetPageRequest result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.name_ = name_;
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.languageCode_ = languageCode_;
+ }
+ }
+
@java.lang.Override
public Builder clone() {
return super.clone();
@@ -501,10 +517,12 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.GetPageRequest other)
return this;
if (!other.getName().isEmpty()) {
name_ = other.name_;
+ bitField0_ |= 0x00000001;
onChanged();
}
if (!other.getLanguageCode().isEmpty()) {
languageCode_ = other.languageCode_;
+ bitField0_ |= 0x00000002;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
@@ -536,13 +554,13 @@ public Builder mergeFrom(
case 10:
{
name_ = input.readStringRequireUtf8();
-
+ bitField0_ |= 0x00000001;
break;
} // case 10
case 18:
{
languageCode_ = input.readStringRequireUtf8();
-
+ bitField0_ |= 0x00000002;
break;
} // case 18
default:
@@ -562,6 +580,8 @@ public Builder mergeFrom(
return this;
}
+ private int bitField0_;
+
private java.lang.Object name_ = "";
/**
*
@@ -635,8 +655,8 @@ public Builder setName(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
-
name_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -656,8 +676,8 @@ public Builder setName(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearName() {
-
name_ = getDefaultInstance().getName();
+ bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
@@ -682,8 +702,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
-
name_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -803,8 +823,8 @@ public Builder setLanguageCode(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
-
languageCode_ = value;
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -838,8 +858,8 @@ public Builder setLanguageCode(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearLanguageCode() {
-
languageCode_ = getDefaultInstance().getLanguageCode();
+ bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
@@ -878,8 +898,8 @@ public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
-
languageCode_ = value;
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetSecuritySettingsRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetSecuritySettingsRequest.java
index e0b89bd9b4f3..5fc9bf46426a 100644
--- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetSecuritySettingsRequest.java
+++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetSecuritySettingsRequest.java
@@ -22,7 +22,8 @@
*
*
*
- * The request message for [SecuritySettingsService.GetSecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettingsService.GetSecuritySettings].
+ * The request message for
+ * [SecuritySettingsService.GetSecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettingsService.GetSecuritySettings].
*
*
* Protobuf type {@code google.cloud.dialogflow.cx.v3.GetSecuritySettingsRequest}
@@ -68,7 +69,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
public static final int NAME_FIELD_NUMBER = 1;
- private volatile java.lang.Object name_;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object name_ = "";
/**
*
*
@@ -288,7 +291,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
*
*
*
- * The request message for [SecuritySettingsService.GetSecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettingsService.GetSecuritySettings].
+ * The request message for
+ * [SecuritySettingsService.GetSecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettingsService.GetSecuritySettings].
*
*
* Protobuf type {@code google.cloud.dialogflow.cx.v3.GetSecuritySettingsRequest}
@@ -322,8 +326,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
@java.lang.Override
public Builder clear() {
super.clear();
+ bitField0_ = 0;
name_ = "";
-
return this;
}
@@ -352,11 +356,21 @@ public com.google.cloud.dialogflow.cx.v3.GetSecuritySettingsRequest build() {
public com.google.cloud.dialogflow.cx.v3.GetSecuritySettingsRequest buildPartial() {
com.google.cloud.dialogflow.cx.v3.GetSecuritySettingsRequest result =
new com.google.cloud.dialogflow.cx.v3.GetSecuritySettingsRequest(this);
- result.name_ = name_;
+ if (bitField0_ != 0) {
+ buildPartial0(result);
+ }
onBuilt();
return result;
}
+ private void buildPartial0(
+ com.google.cloud.dialogflow.cx.v3.GetSecuritySettingsRequest result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.name_ = name_;
+ }
+ }
+
@java.lang.Override
public Builder clone() {
return super.clone();
@@ -406,6 +420,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.GetSecuritySettingsRe
return this;
if (!other.getName().isEmpty()) {
name_ = other.name_;
+ bitField0_ |= 0x00000001;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
@@ -437,7 +452,7 @@ public Builder mergeFrom(
case 10:
{
name_ = input.readStringRequireUtf8();
-
+ bitField0_ |= 0x00000001;
break;
} // case 10
default:
@@ -457,6 +472,8 @@ public Builder mergeFrom(
return this;
}
+ private int bitField0_;
+
private java.lang.Object name_ = "";
/**
*
@@ -530,8 +547,8 @@ public Builder setName(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
-
name_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -551,8 +568,8 @@ public Builder setName(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearName() {
-
name_ = getDefaultInstance().getName();
+ bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
@@ -577,8 +594,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
-
name_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetSessionEntityTypeRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetSessionEntityTypeRequest.java
index 086362c14bfa..5a283a7c83e9 100644
--- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetSessionEntityTypeRequest.java
+++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetSessionEntityTypeRequest.java
@@ -22,7 +22,8 @@
*
*
*
- * The request message for [SessionEntityTypes.GetSessionEntityType][google.cloud.dialogflow.cx.v3.SessionEntityTypes.GetSessionEntityType].
+ * The request message for
+ * [SessionEntityTypes.GetSessionEntityType][google.cloud.dialogflow.cx.v3.SessionEntityTypes.GetSessionEntityType].
*
*
* Protobuf type {@code google.cloud.dialogflow.cx.v3.GetSessionEntityTypeRequest}
@@ -68,7 +69,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
public static final int NAME_FIELD_NUMBER = 1;
- private volatile java.lang.Object name_;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object name_ = "";
/**
*
*
@@ -296,7 +299,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
*
*
*
- * The request message for [SessionEntityTypes.GetSessionEntityType][google.cloud.dialogflow.cx.v3.SessionEntityTypes.GetSessionEntityType].
+ * The request message for
+ * [SessionEntityTypes.GetSessionEntityType][google.cloud.dialogflow.cx.v3.SessionEntityTypes.GetSessionEntityType].
*
*
* Protobuf type {@code google.cloud.dialogflow.cx.v3.GetSessionEntityTypeRequest}
@@ -330,8 +334,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
@java.lang.Override
public Builder clear() {
super.clear();
+ bitField0_ = 0;
name_ = "";
-
return this;
}
@@ -360,11 +364,21 @@ public com.google.cloud.dialogflow.cx.v3.GetSessionEntityTypeRequest build() {
public com.google.cloud.dialogflow.cx.v3.GetSessionEntityTypeRequest buildPartial() {
com.google.cloud.dialogflow.cx.v3.GetSessionEntityTypeRequest result =
new com.google.cloud.dialogflow.cx.v3.GetSessionEntityTypeRequest(this);
- result.name_ = name_;
+ if (bitField0_ != 0) {
+ buildPartial0(result);
+ }
onBuilt();
return result;
}
+ private void buildPartial0(
+ com.google.cloud.dialogflow.cx.v3.GetSessionEntityTypeRequest result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.name_ = name_;
+ }
+ }
+
@java.lang.Override
public Builder clone() {
return super.clone();
@@ -414,6 +428,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.GetSessionEntityTypeR
return this;
if (!other.getName().isEmpty()) {
name_ = other.name_;
+ bitField0_ |= 0x00000001;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
@@ -445,7 +460,7 @@ public Builder mergeFrom(
case 10:
{
name_ = input.readStringRequireUtf8();
-
+ bitField0_ |= 0x00000001;
break;
} // case 10
default:
@@ -465,6 +480,8 @@ public Builder mergeFrom(
return this;
}
+ private int bitField0_;
+
private java.lang.Object name_ = "";
/**
*
@@ -550,8 +567,8 @@ public Builder setName(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
-
name_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -575,8 +592,8 @@ public Builder setName(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearName() {
-
name_ = getDefaultInstance().getName();
+ bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
@@ -605,8 +622,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
-
name_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetTestCaseRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetTestCaseRequest.java
index 2befdf423b72..8745eff6ef46 100644
--- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetTestCaseRequest.java
+++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetTestCaseRequest.java
@@ -22,7 +22,8 @@
*
*
*
- * The request message for [TestCases.GetTestCase][google.cloud.dialogflow.cx.v3.TestCases.GetTestCase].
+ * The request message for
+ * [TestCases.GetTestCase][google.cloud.dialogflow.cx.v3.TestCases.GetTestCase].
*
*
* Protobuf type {@code google.cloud.dialogflow.cx.v3.GetTestCaseRequest}
@@ -68,7 +69,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
public static final int NAME_FIELD_NUMBER = 1;
- private volatile java.lang.Object name_;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object name_ = "";
/**
*
*
@@ -287,7 +290,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
*
*
*
- * The request message for [TestCases.GetTestCase][google.cloud.dialogflow.cx.v3.TestCases.GetTestCase].
+ * The request message for
+ * [TestCases.GetTestCase][google.cloud.dialogflow.cx.v3.TestCases.GetTestCase].
*
*
* Protobuf type {@code google.cloud.dialogflow.cx.v3.GetTestCaseRequest}
@@ -321,8 +325,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
@java.lang.Override
public Builder clear() {
super.clear();
+ bitField0_ = 0;
name_ = "";
-
return this;
}
@@ -350,11 +354,20 @@ public com.google.cloud.dialogflow.cx.v3.GetTestCaseRequest build() {
public com.google.cloud.dialogflow.cx.v3.GetTestCaseRequest buildPartial() {
com.google.cloud.dialogflow.cx.v3.GetTestCaseRequest result =
new com.google.cloud.dialogflow.cx.v3.GetTestCaseRequest(this);
- result.name_ = name_;
+ if (bitField0_ != 0) {
+ buildPartial0(result);
+ }
onBuilt();
return result;
}
+ private void buildPartial0(com.google.cloud.dialogflow.cx.v3.GetTestCaseRequest result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.name_ = name_;
+ }
+ }
+
@java.lang.Override
public Builder clone() {
return super.clone();
@@ -403,6 +416,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.GetTestCaseRequest ot
return this;
if (!other.getName().isEmpty()) {
name_ = other.name_;
+ bitField0_ |= 0x00000001;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
@@ -434,7 +448,7 @@ public Builder mergeFrom(
case 10:
{
name_ = input.readStringRequireUtf8();
-
+ bitField0_ |= 0x00000001;
break;
} // case 10
default:
@@ -454,6 +468,8 @@ public Builder mergeFrom(
return this;
}
+ private int bitField0_;
+
private java.lang.Object name_ = "";
/**
*
@@ -527,8 +543,8 @@ public Builder setName(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
-
name_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -548,8 +564,8 @@ public Builder setName(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearName() {
-
name_ = getDefaultInstance().getName();
+ bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
@@ -574,8 +590,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
-
name_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetTestCaseResultRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetTestCaseResultRequest.java
index 80586c9ab147..1e00420b529e 100644
--- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetTestCaseResultRequest.java
+++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetTestCaseResultRequest.java
@@ -22,7 +22,8 @@
*
*
*
- * The request message for [TestCases.GetTestCaseResult][google.cloud.dialogflow.cx.v3.TestCases.GetTestCaseResult].
+ * The request message for
+ * [TestCases.GetTestCaseResult][google.cloud.dialogflow.cx.v3.TestCases.GetTestCaseResult].
*
*
* Protobuf type {@code google.cloud.dialogflow.cx.v3.GetTestCaseResultRequest}
@@ -68,7 +69,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
public static final int NAME_FIELD_NUMBER = 1;
- private volatile java.lang.Object name_;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object name_ = "";
/**
*
*
@@ -288,7 +291,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
*
*
*
- * The request message for [TestCases.GetTestCaseResult][google.cloud.dialogflow.cx.v3.TestCases.GetTestCaseResult].
+ * The request message for
+ * [TestCases.GetTestCaseResult][google.cloud.dialogflow.cx.v3.TestCases.GetTestCaseResult].
*
*
* Protobuf type {@code google.cloud.dialogflow.cx.v3.GetTestCaseResultRequest}
@@ -322,8 +326,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
@java.lang.Override
public Builder clear() {
super.clear();
+ bitField0_ = 0;
name_ = "";
-
return this;
}
@@ -351,11 +355,20 @@ public com.google.cloud.dialogflow.cx.v3.GetTestCaseResultRequest build() {
public com.google.cloud.dialogflow.cx.v3.GetTestCaseResultRequest buildPartial() {
com.google.cloud.dialogflow.cx.v3.GetTestCaseResultRequest result =
new com.google.cloud.dialogflow.cx.v3.GetTestCaseResultRequest(this);
- result.name_ = name_;
+ if (bitField0_ != 0) {
+ buildPartial0(result);
+ }
onBuilt();
return result;
}
+ private void buildPartial0(com.google.cloud.dialogflow.cx.v3.GetTestCaseResultRequest result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.name_ = name_;
+ }
+ }
+
@java.lang.Override
public Builder clone() {
return super.clone();
@@ -404,6 +417,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.GetTestCaseResultRequ
return this;
if (!other.getName().isEmpty()) {
name_ = other.name_;
+ bitField0_ |= 0x00000001;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
@@ -435,7 +449,7 @@ public Builder mergeFrom(
case 10:
{
name_ = input.readStringRequireUtf8();
-
+ bitField0_ |= 0x00000001;
break;
} // case 10
default:
@@ -455,6 +469,8 @@ public Builder mergeFrom(
return this;
}
+ private int bitField0_;
+
private java.lang.Object name_ = "";
/**
*
@@ -528,8 +544,8 @@ public Builder setName(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
-
name_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -549,8 +565,8 @@ public Builder setName(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearName() {
-
name_ = getDefaultInstance().getName();
+ bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
@@ -575,8 +591,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
-
name_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetTransitionRouteGroupRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetTransitionRouteGroupRequest.java
index 1d6697e4c983..585213c3b6d5 100644
--- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetTransitionRouteGroupRequest.java
+++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetTransitionRouteGroupRequest.java
@@ -22,7 +22,8 @@
*
*
*
- * The request message for [TransitionRouteGroups.GetTransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroups.GetTransitionRouteGroup].
+ * The request message for
+ * [TransitionRouteGroups.GetTransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroups.GetTransitionRouteGroup].
*
*
* Protobuf type {@code google.cloud.dialogflow.cx.v3.GetTransitionRouteGroupRequest}
@@ -70,12 +71,15 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
public static final int NAME_FIELD_NUMBER = 1;
- private volatile java.lang.Object name_;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object name_ = "";
/**
*
*
*
- * Required. The name of the [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].
+ * Required. The name of the
+ * [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].
* Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
* ID>/flows/<Flow ID>/transitionRouteGroups/<Transition Route Group ID>`.
*
@@ -102,7 +106,8 @@ public java.lang.String getName() {
*
*
*
- * Required. The name of the [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].
+ * Required. The name of the
+ * [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].
* Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
* ID>/flows/<Flow ID>/transitionRouteGroups/<Transition Route Group ID>`.
*
@@ -127,7 +132,9 @@ public com.google.protobuf.ByteString getNameBytes() {
}
public static final int LANGUAGE_CODE_FIELD_NUMBER = 2;
- private volatile java.lang.Object languageCode_;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object languageCode_ = "";
/**
*
*
@@ -366,7 +373,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
*
*
*
- * The request message for [TransitionRouteGroups.GetTransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroups.GetTransitionRouteGroup].
+ * The request message for
+ * [TransitionRouteGroups.GetTransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroups.GetTransitionRouteGroup].
*
*
* Protobuf type {@code google.cloud.dialogflow.cx.v3.GetTransitionRouteGroupRequest}
@@ -400,10 +408,9 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
@java.lang.Override
public Builder clear() {
super.clear();
+ bitField0_ = 0;
name_ = "";
-
languageCode_ = "";
-
return this;
}
@@ -432,12 +439,24 @@ public com.google.cloud.dialogflow.cx.v3.GetTransitionRouteGroupRequest build()
public com.google.cloud.dialogflow.cx.v3.GetTransitionRouteGroupRequest buildPartial() {
com.google.cloud.dialogflow.cx.v3.GetTransitionRouteGroupRequest result =
new com.google.cloud.dialogflow.cx.v3.GetTransitionRouteGroupRequest(this);
- result.name_ = name_;
- result.languageCode_ = languageCode_;
+ if (bitField0_ != 0) {
+ buildPartial0(result);
+ }
onBuilt();
return result;
}
+ private void buildPartial0(
+ com.google.cloud.dialogflow.cx.v3.GetTransitionRouteGroupRequest result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.name_ = name_;
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.languageCode_ = languageCode_;
+ }
+ }
+
@java.lang.Override
public Builder clone() {
return super.clone();
@@ -488,10 +507,12 @@ public Builder mergeFrom(
return this;
if (!other.getName().isEmpty()) {
name_ = other.name_;
+ bitField0_ |= 0x00000001;
onChanged();
}
if (!other.getLanguageCode().isEmpty()) {
languageCode_ = other.languageCode_;
+ bitField0_ |= 0x00000002;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
@@ -523,13 +544,13 @@ public Builder mergeFrom(
case 10:
{
name_ = input.readStringRequireUtf8();
-
+ bitField0_ |= 0x00000001;
break;
} // case 10
case 18:
{
languageCode_ = input.readStringRequireUtf8();
-
+ bitField0_ |= 0x00000002;
break;
} // case 18
default:
@@ -549,12 +570,15 @@ public Builder mergeFrom(
return this;
}
+ private int bitField0_;
+
private java.lang.Object name_ = "";
/**
*
*
*
- * Required. The name of the [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].
+ * Required. The name of the
+ * [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].
* Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
* ID>/flows/<Flow ID>/transitionRouteGroups/<Transition Route Group ID>`.
*
@@ -580,7 +604,8 @@ public java.lang.String getName() {
*
*
*
- * Required. The name of the [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].
+ * Required. The name of the
+ * [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].
* Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
* ID>/flows/<Flow ID>/transitionRouteGroups/<Transition Route Group ID>`.
*
@@ -606,7 +631,8 @@ public com.google.protobuf.ByteString getNameBytes() {
*
*
*
- * Required. The name of the [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].
+ * Required. The name of the
+ * [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].
* Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
* ID>/flows/<Flow ID>/transitionRouteGroups/<Transition Route Group ID>`.
*
@@ -622,8 +648,8 @@ public Builder setName(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
-
name_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -631,7 +657,8 @@ public Builder setName(java.lang.String value) {
*
*
*
- * Required. The name of the [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].
+ * Required. The name of the
+ * [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].
* Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
* ID>/flows/<Flow ID>/transitionRouteGroups/<Transition Route Group ID>`.
*
@@ -643,8 +670,8 @@ public Builder setName(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearName() {
-
name_ = getDefaultInstance().getName();
+ bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
@@ -652,7 +679,8 @@ public Builder clearName() {
*
*
*
- * Required. The name of the [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].
+ * Required. The name of the
+ * [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].
* Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
* ID>/flows/<Flow ID>/transitionRouteGroups/<Transition Route Group ID>`.
*
@@ -669,8 +697,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
-
name_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -763,8 +791,8 @@ public Builder setLanguageCode(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
-
languageCode_ = value;
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -789,8 +817,8 @@ public Builder setLanguageCode(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearLanguageCode() {
-
languageCode_ = getDefaultInstance().getLanguageCode();
+ bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
@@ -820,8 +848,8 @@ public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
-
languageCode_ = value;
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetTransitionRouteGroupRequestOrBuilder.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetTransitionRouteGroupRequestOrBuilder.java
index 79e83695801c..6c9d5b4a01b6 100644
--- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetTransitionRouteGroupRequestOrBuilder.java
+++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetTransitionRouteGroupRequestOrBuilder.java
@@ -27,7 +27,8 @@ public interface GetTransitionRouteGroupRequestOrBuilder
*
*
*
- * Required. The name of the [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].
+ * Required. The name of the
+ * [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].
* Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
* ID>/flows/<Flow ID>/transitionRouteGroups/<Transition Route Group ID>`.
*
@@ -43,7 +44,8 @@ public interface GetTransitionRouteGroupRequestOrBuilder
*
*
*
- * Required. The name of the [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].
+ * Required. The name of the
+ * [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].
* Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
* ID>/flows/<Flow ID>/transitionRouteGroups/<Transition Route Group ID>`.
*
diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetVersionRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetVersionRequest.java
index cde834104fd1..eac680ccd388 100644
--- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetVersionRequest.java
+++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetVersionRequest.java
@@ -22,7 +22,8 @@
*
*
*
- * The request message for [Versions.GetVersion][google.cloud.dialogflow.cx.v3.Versions.GetVersion].
+ * The request message for
+ * [Versions.GetVersion][google.cloud.dialogflow.cx.v3.Versions.GetVersion].
*
*
* Protobuf type {@code google.cloud.dialogflow.cx.v3.GetVersionRequest}
@@ -68,7 +69,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
public static final int NAME_FIELD_NUMBER = 1;
- private volatile java.lang.Object name_;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object name_ = "";
/**
*
*
@@ -287,7 +290,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
*
*
*
- * The request message for [Versions.GetVersion][google.cloud.dialogflow.cx.v3.Versions.GetVersion].
+ * The request message for
+ * [Versions.GetVersion][google.cloud.dialogflow.cx.v3.Versions.GetVersion].
*
*
* Protobuf type {@code google.cloud.dialogflow.cx.v3.GetVersionRequest}
@@ -321,8 +325,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
@java.lang.Override
public Builder clear() {
super.clear();
+ bitField0_ = 0;
name_ = "";
-
return this;
}
@@ -350,11 +354,20 @@ public com.google.cloud.dialogflow.cx.v3.GetVersionRequest build() {
public com.google.cloud.dialogflow.cx.v3.GetVersionRequest buildPartial() {
com.google.cloud.dialogflow.cx.v3.GetVersionRequest result =
new com.google.cloud.dialogflow.cx.v3.GetVersionRequest(this);
- result.name_ = name_;
+ if (bitField0_ != 0) {
+ buildPartial0(result);
+ }
onBuilt();
return result;
}
+ private void buildPartial0(com.google.cloud.dialogflow.cx.v3.GetVersionRequest result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.name_ = name_;
+ }
+ }
+
@java.lang.Override
public Builder clone() {
return super.clone();
@@ -403,6 +416,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.GetVersionRequest oth
return this;
if (!other.getName().isEmpty()) {
name_ = other.name_;
+ bitField0_ |= 0x00000001;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
@@ -434,7 +448,7 @@ public Builder mergeFrom(
case 10:
{
name_ = input.readStringRequireUtf8();
-
+ bitField0_ |= 0x00000001;
break;
} // case 10
default:
@@ -454,6 +468,8 @@ public Builder mergeFrom(
return this;
}
+ private int bitField0_;
+
private java.lang.Object name_ = "";
/**
*
@@ -527,8 +543,8 @@ public Builder setName(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
-
name_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -548,8 +564,8 @@ public Builder setName(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearName() {
-
name_ = getDefaultInstance().getName();
+ bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
@@ -574,8 +590,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
-
name_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetWebhookRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetWebhookRequest.java
index 9ecebd985b4f..40735fdb2df7 100644
--- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetWebhookRequest.java
+++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetWebhookRequest.java
@@ -22,7 +22,8 @@
*
*
*
- * The request message for [Webhooks.GetWebhook][google.cloud.dialogflow.cx.v3.Webhooks.GetWebhook].
+ * The request message for
+ * [Webhooks.GetWebhook][google.cloud.dialogflow.cx.v3.Webhooks.GetWebhook].
*
*
* Protobuf type {@code google.cloud.dialogflow.cx.v3.GetWebhookRequest}
@@ -68,7 +69,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
public static final int NAME_FIELD_NUMBER = 1;
- private volatile java.lang.Object name_;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object name_ = "";
/**
*
*
@@ -287,7 +290,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
*
*
*
- * The request message for [Webhooks.GetWebhook][google.cloud.dialogflow.cx.v3.Webhooks.GetWebhook].
+ * The request message for
+ * [Webhooks.GetWebhook][google.cloud.dialogflow.cx.v3.Webhooks.GetWebhook].
*
*
* Protobuf type {@code google.cloud.dialogflow.cx.v3.GetWebhookRequest}
@@ -321,8 +325,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
@java.lang.Override
public Builder clear() {
super.clear();
+ bitField0_ = 0;
name_ = "";
-
return this;
}
@@ -350,11 +354,20 @@ public com.google.cloud.dialogflow.cx.v3.GetWebhookRequest build() {
public com.google.cloud.dialogflow.cx.v3.GetWebhookRequest buildPartial() {
com.google.cloud.dialogflow.cx.v3.GetWebhookRequest result =
new com.google.cloud.dialogflow.cx.v3.GetWebhookRequest(this);
- result.name_ = name_;
+ if (bitField0_ != 0) {
+ buildPartial0(result);
+ }
onBuilt();
return result;
}
+ private void buildPartial0(com.google.cloud.dialogflow.cx.v3.GetWebhookRequest result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.name_ = name_;
+ }
+ }
+
@java.lang.Override
public Builder clone() {
return super.clone();
@@ -403,6 +416,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.GetWebhookRequest oth
return this;
if (!other.getName().isEmpty()) {
name_ = other.name_;
+ bitField0_ |= 0x00000001;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
@@ -434,7 +448,7 @@ public Builder mergeFrom(
case 10:
{
name_ = input.readStringRequireUtf8();
-
+ bitField0_ |= 0x00000001;
break;
} // case 10
default:
@@ -454,6 +468,8 @@ public Builder mergeFrom(
return this;
}
+ private int bitField0_;
+
private java.lang.Object name_ = "";
/**
*
@@ -527,8 +543,8 @@ public Builder setName(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
-
name_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -548,8 +564,8 @@ public Builder setName(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearName() {
-
name_ = getDefaultInstance().getName();
+ bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
@@ -574,8 +590,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
-
name_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ImportFlowRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ImportFlowRequest.java
index 27121684d2d1..bbe7dcad4ecf 100644
--- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ImportFlowRequest.java
+++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ImportFlowRequest.java
@@ -22,7 +22,8 @@
*
*
*
- * The request message for [Flows.ImportFlow][google.cloud.dialogflow.cx.v3.Flows.ImportFlow].
+ * The request message for
+ * [Flows.ImportFlow][google.cloud.dialogflow.cx.v3.Flows.ImportFlow].
*
*
* Protobuf type {@code google.cloud.dialogflow.cx.v3.ImportFlowRequest}
@@ -283,7 +284,9 @@ public FlowCase getFlowCase() {
}
public static final int PARENT_FIELD_NUMBER = 1;
- private volatile java.lang.Object parent_;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object parent_ = "";
/**
*
*
@@ -464,7 +467,7 @@ public com.google.protobuf.ByteString getFlowContent() {
}
public static final int IMPORT_OPTION_FIELD_NUMBER = 4;
- private int importOption_;
+ private int importOption_ = 0;
/**
*
*
@@ -493,9 +496,8 @@ public int getImportOptionValue() {
*/
@java.lang.Override
public com.google.cloud.dialogflow.cx.v3.ImportFlowRequest.ImportOption getImportOption() {
- @SuppressWarnings("deprecation")
com.google.cloud.dialogflow.cx.v3.ImportFlowRequest.ImportOption result =
- com.google.cloud.dialogflow.cx.v3.ImportFlowRequest.ImportOption.valueOf(importOption_);
+ com.google.cloud.dialogflow.cx.v3.ImportFlowRequest.ImportOption.forNumber(importOption_);
return result == null
? com.google.cloud.dialogflow.cx.v3.ImportFlowRequest.ImportOption.UNRECOGNIZED
: result;
@@ -716,7 +718,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
*
*
*
- * The request message for [Flows.ImportFlow][google.cloud.dialogflow.cx.v3.Flows.ImportFlow].
+ * The request message for
+ * [Flows.ImportFlow][google.cloud.dialogflow.cx.v3.Flows.ImportFlow].
*
*
* Protobuf type {@code google.cloud.dialogflow.cx.v3.ImportFlowRequest}
@@ -750,10 +753,9 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
@java.lang.Override
public Builder clear() {
super.clear();
+ bitField0_ = 0;
parent_ = "";
-
importOption_ = 0;
-
flowCase_ = 0;
flow_ = null;
return this;
@@ -783,19 +785,29 @@ public com.google.cloud.dialogflow.cx.v3.ImportFlowRequest build() {
public com.google.cloud.dialogflow.cx.v3.ImportFlowRequest buildPartial() {
com.google.cloud.dialogflow.cx.v3.ImportFlowRequest result =
new com.google.cloud.dialogflow.cx.v3.ImportFlowRequest(this);
- result.parent_ = parent_;
- if (flowCase_ == 2) {
- result.flow_ = flow_;
- }
- if (flowCase_ == 3) {
- result.flow_ = flow_;
+ if (bitField0_ != 0) {
+ buildPartial0(result);
}
- result.importOption_ = importOption_;
- result.flowCase_ = flowCase_;
+ buildPartialOneofs(result);
onBuilt();
return result;
}
+ private void buildPartial0(com.google.cloud.dialogflow.cx.v3.ImportFlowRequest result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.parent_ = parent_;
+ }
+ if (((from_bitField0_ & 0x00000008) != 0)) {
+ result.importOption_ = importOption_;
+ }
+ }
+
+ private void buildPartialOneofs(com.google.cloud.dialogflow.cx.v3.ImportFlowRequest result) {
+ result.flowCase_ = flowCase_;
+ result.flow_ = this.flow_;
+ }
+
@java.lang.Override
public Builder clone() {
return super.clone();
@@ -844,6 +856,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.ImportFlowRequest oth
return this;
if (!other.getParent().isEmpty()) {
parent_ = other.parent_;
+ bitField0_ |= 0x00000001;
onChanged();
}
if (other.importOption_ != 0) {
@@ -896,7 +909,7 @@ public Builder mergeFrom(
case 10:
{
parent_ = input.readStringRequireUtf8();
-
+ bitField0_ |= 0x00000001;
break;
} // case 10
case 18:
@@ -915,7 +928,7 @@ public Builder mergeFrom(
case 32:
{
importOption_ = input.readEnum();
-
+ bitField0_ |= 0x00000008;
break;
} // case 32
default:
@@ -949,6 +962,8 @@ public Builder clearFlow() {
return this;
}
+ private int bitField0_;
+
private java.lang.Object parent_ = "";
/**
*
@@ -1019,8 +1034,8 @@ public Builder setParent(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
-
parent_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -1039,8 +1054,8 @@ public Builder setParent(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearParent() {
-
parent_ = getDefaultInstance().getParent();
+ bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
@@ -1064,8 +1079,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
-
parent_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -1347,8 +1362,8 @@ public int getImportOptionValue() {
* @return This builder for chaining.
*/
public Builder setImportOptionValue(int value) {
-
importOption_ = value;
+ bitField0_ |= 0x00000008;
onChanged();
return this;
}
@@ -1365,9 +1380,8 @@ public Builder setImportOptionValue(int value) {
*/
@java.lang.Override
public com.google.cloud.dialogflow.cx.v3.ImportFlowRequest.ImportOption getImportOption() {
- @SuppressWarnings("deprecation")
com.google.cloud.dialogflow.cx.v3.ImportFlowRequest.ImportOption result =
- com.google.cloud.dialogflow.cx.v3.ImportFlowRequest.ImportOption.valueOf(importOption_);
+ com.google.cloud.dialogflow.cx.v3.ImportFlowRequest.ImportOption.forNumber(importOption_);
return result == null
? com.google.cloud.dialogflow.cx.v3.ImportFlowRequest.ImportOption.UNRECOGNIZED
: result;
@@ -1389,7 +1403,7 @@ public Builder setImportOption(
if (value == null) {
throw new NullPointerException();
}
-
+ bitField0_ |= 0x00000008;
importOption_ = value.getNumber();
onChanged();
return this;
@@ -1406,7 +1420,7 @@ public Builder setImportOption(
* @return This builder for chaining.
*/
public Builder clearImportOption() {
-
+ bitField0_ = (bitField0_ & ~0x00000008);
importOption_ = 0;
onChanged();
return this;
diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ImportFlowResponse.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ImportFlowResponse.java
index 443872d4e029..304fd4b6950b 100644
--- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ImportFlowResponse.java
+++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ImportFlowResponse.java
@@ -22,7 +22,8 @@
*
*
*
- * The response message for [Flows.ImportFlow][google.cloud.dialogflow.cx.v3.Flows.ImportFlow].
+ * The response message for
+ * [Flows.ImportFlow][google.cloud.dialogflow.cx.v3.Flows.ImportFlow].
*
*
* Protobuf type {@code google.cloud.dialogflow.cx.v3.ImportFlowResponse}
@@ -68,7 +69,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
public static final int FLOW_FIELD_NUMBER = 1;
- private volatile java.lang.Object flow_;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object flow_ = "";
/**
*
*
@@ -283,7 +286,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
*
*
*
- * The response message for [Flows.ImportFlow][google.cloud.dialogflow.cx.v3.Flows.ImportFlow].
+ * The response message for
+ * [Flows.ImportFlow][google.cloud.dialogflow.cx.v3.Flows.ImportFlow].
*
*
* Protobuf type {@code google.cloud.dialogflow.cx.v3.ImportFlowResponse}
@@ -317,8 +321,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
@java.lang.Override
public Builder clear() {
super.clear();
+ bitField0_ = 0;
flow_ = "";
-
return this;
}
@@ -346,11 +350,20 @@ public com.google.cloud.dialogflow.cx.v3.ImportFlowResponse build() {
public com.google.cloud.dialogflow.cx.v3.ImportFlowResponse buildPartial() {
com.google.cloud.dialogflow.cx.v3.ImportFlowResponse result =
new com.google.cloud.dialogflow.cx.v3.ImportFlowResponse(this);
- result.flow_ = flow_;
+ if (bitField0_ != 0) {
+ buildPartial0(result);
+ }
onBuilt();
return result;
}
+ private void buildPartial0(com.google.cloud.dialogflow.cx.v3.ImportFlowResponse result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.flow_ = flow_;
+ }
+ }
+
@java.lang.Override
public Builder clone() {
return super.clone();
@@ -399,6 +412,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.ImportFlowResponse ot
return this;
if (!other.getFlow().isEmpty()) {
flow_ = other.flow_;
+ bitField0_ |= 0x00000001;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
@@ -430,7 +444,7 @@ public Builder mergeFrom(
case 10:
{
flow_ = input.readStringRequireUtf8();
-
+ bitField0_ |= 0x00000001;
break;
} // case 10
default:
@@ -450,6 +464,8 @@ public Builder mergeFrom(
return this;
}
+ private int bitField0_;
+
private java.lang.Object flow_ = "";
/**
*
@@ -517,8 +533,8 @@ public Builder setFlow(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
-
flow_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -536,8 +552,8 @@ public Builder setFlow(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearFlow() {
-
flow_ = getDefaultInstance().getFlow();
+ bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
@@ -560,8 +576,8 @@ public Builder setFlowBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
-
flow_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ImportTestCasesMetadata.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ImportTestCasesMetadata.java
index 230fde8fd318..652b95eb71e5 100644
--- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ImportTestCasesMetadata.java
+++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ImportTestCasesMetadata.java
@@ -22,8 +22,9 @@
*
*
*
- * Metadata returned for the [TestCases.ImportTestCases][google.cloud.dialogflow.cx.v3.TestCases.ImportTestCases] long running
- * operation.
+ * Metadata returned for the
+ * [TestCases.ImportTestCases][google.cloud.dialogflow.cx.v3.TestCases.ImportTestCases]
+ * long running operation.
*
*
* Protobuf type {@code google.cloud.dialogflow.cx.v3.ImportTestCasesMetadata}
@@ -69,6 +70,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
public static final int ERRORS_FIELD_NUMBER = 1;
+
+ @SuppressWarnings("serial")
private java.util.List errors_;
/**
*
@@ -303,8 +306,9 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
*
*
*
- * Metadata returned for the [TestCases.ImportTestCases][google.cloud.dialogflow.cx.v3.TestCases.ImportTestCases] long running
- * operation.
+ * Metadata returned for the
+ * [TestCases.ImportTestCases][google.cloud.dialogflow.cx.v3.TestCases.ImportTestCases]
+ * long running operation.
*
*
* Protobuf type {@code google.cloud.dialogflow.cx.v3.ImportTestCasesMetadata}
@@ -338,6 +342,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
@java.lang.Override
public Builder clear() {
super.clear();
+ bitField0_ = 0;
if (errorsBuilder_ == null) {
errors_ = java.util.Collections.emptyList();
} else {
@@ -372,7 +377,16 @@ public com.google.cloud.dialogflow.cx.v3.ImportTestCasesMetadata build() {
public com.google.cloud.dialogflow.cx.v3.ImportTestCasesMetadata buildPartial() {
com.google.cloud.dialogflow.cx.v3.ImportTestCasesMetadata result =
new com.google.cloud.dialogflow.cx.v3.ImportTestCasesMetadata(this);
- int from_bitField0_ = bitField0_;
+ buildPartialRepeatedFields(result);
+ if (bitField0_ != 0) {
+ buildPartial0(result);
+ }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartialRepeatedFields(
+ com.google.cloud.dialogflow.cx.v3.ImportTestCasesMetadata result) {
if (errorsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
errors_ = java.util.Collections.unmodifiableList(errors_);
@@ -382,8 +396,10 @@ public com.google.cloud.dialogflow.cx.v3.ImportTestCasesMetadata buildPartial()
} else {
result.errors_ = errorsBuilder_.build();
}
- onBuilt();
- return result;
+ }
+
+ private void buildPartial0(com.google.cloud.dialogflow.cx.v3.ImportTestCasesMetadata result) {
+ int from_bitField0_ = bitField0_;
}
@java.lang.Override
diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ImportTestCasesRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ImportTestCasesRequest.java
index e514f0e84966..5c7181b99904 100644
--- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ImportTestCasesRequest.java
+++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ImportTestCasesRequest.java
@@ -22,7 +22,8 @@
*
*
*
- * The request message for [TestCases.ImportTestCases][google.cloud.dialogflow.cx.v3.TestCases.ImportTestCases].
+ * The request message for
+ * [TestCases.ImportTestCases][google.cloud.dialogflow.cx.v3.TestCases.ImportTestCases].
*
*
* Protobuf type {@code google.cloud.dialogflow.cx.v3.ImportTestCasesRequest}
@@ -115,7 +116,9 @@ public SourceCase getSourceCase() {
}
public static final int PARENT_FIELD_NUMBER = 1;
- private volatile java.lang.Object parent_;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object parent_ = "";
/**
*
*
@@ -496,7 +499,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
*
*
*
- * The request message for [TestCases.ImportTestCases][google.cloud.dialogflow.cx.v3.TestCases.ImportTestCases].
+ * The request message for
+ * [TestCases.ImportTestCases][google.cloud.dialogflow.cx.v3.TestCases.ImportTestCases].
*
*
* Protobuf type {@code google.cloud.dialogflow.cx.v3.ImportTestCasesRequest}
@@ -530,8 +534,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
@java.lang.Override
public Builder clear() {
super.clear();
+ bitField0_ = 0;
parent_ = "";
-
sourceCase_ = 0;
source_ = null;
return this;
@@ -561,18 +565,27 @@ public com.google.cloud.dialogflow.cx.v3.ImportTestCasesRequest build() {
public com.google.cloud.dialogflow.cx.v3.ImportTestCasesRequest buildPartial() {
com.google.cloud.dialogflow.cx.v3.ImportTestCasesRequest result =
new com.google.cloud.dialogflow.cx.v3.ImportTestCasesRequest(this);
- result.parent_ = parent_;
- if (sourceCase_ == 2) {
- result.source_ = source_;
- }
- if (sourceCase_ == 3) {
- result.source_ = source_;
+ if (bitField0_ != 0) {
+ buildPartial0(result);
}
- result.sourceCase_ = sourceCase_;
+ buildPartialOneofs(result);
onBuilt();
return result;
}
+ private void buildPartial0(com.google.cloud.dialogflow.cx.v3.ImportTestCasesRequest result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.parent_ = parent_;
+ }
+ }
+
+ private void buildPartialOneofs(
+ com.google.cloud.dialogflow.cx.v3.ImportTestCasesRequest result) {
+ result.sourceCase_ = sourceCase_;
+ result.source_ = this.source_;
+ }
+
@java.lang.Override
public Builder clone() {
return super.clone();
@@ -621,6 +634,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.ImportTestCasesReques
return this;
if (!other.getParent().isEmpty()) {
parent_ = other.parent_;
+ bitField0_ |= 0x00000001;
onChanged();
}
switch (other.getSourceCase()) {
@@ -670,7 +684,7 @@ public Builder mergeFrom(
case 10:
{
parent_ = input.readStringRequireUtf8();
-
+ bitField0_ |= 0x00000001;
break;
} // case 10
case 18:
@@ -717,6 +731,8 @@ public Builder clearSource() {
return this;
}
+ private int bitField0_;
+
private java.lang.Object parent_ = "";
/**
*
@@ -787,8 +803,8 @@ public Builder setParent(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
-
parent_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -807,8 +823,8 @@ public Builder setParent(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearParent() {
-
parent_ = getDefaultInstance().getParent();
+ bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
@@ -832,8 +848,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
-
parent_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ImportTestCasesResponse.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ImportTestCasesResponse.java
index 26535c7f5ac9..902dd684eb48 100644
--- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ImportTestCasesResponse.java
+++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ImportTestCasesResponse.java
@@ -22,7 +22,8 @@
*
*
*
- * The response message for [TestCases.ImportTestCases][google.cloud.dialogflow.cx.v3.TestCases.ImportTestCases].
+ * The response message for
+ * [TestCases.ImportTestCases][google.cloud.dialogflow.cx.v3.TestCases.ImportTestCases].
*
*
* Protobuf type {@code google.cloud.dialogflow.cx.v3.ImportTestCasesResponse}
@@ -68,6 +69,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
public static final int NAMES_FIELD_NUMBER = 1;
+
+ @SuppressWarnings("serial")
private com.google.protobuf.LazyStringList names_;
/**
*
@@ -307,7 +310,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
*
*
*
- * The response message for [TestCases.ImportTestCases][google.cloud.dialogflow.cx.v3.TestCases.ImportTestCases].
+ * The response message for
+ * [TestCases.ImportTestCases][google.cloud.dialogflow.cx.v3.TestCases.ImportTestCases].
*
*
* Protobuf type {@code google.cloud.dialogflow.cx.v3.ImportTestCasesResponse}
@@ -341,6 +345,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
@java.lang.Override
public Builder clear() {
super.clear();
+ bitField0_ = 0;
names_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
return this;
@@ -370,14 +375,25 @@ public com.google.cloud.dialogflow.cx.v3.ImportTestCasesResponse build() {
public com.google.cloud.dialogflow.cx.v3.ImportTestCasesResponse buildPartial() {
com.google.cloud.dialogflow.cx.v3.ImportTestCasesResponse result =
new com.google.cloud.dialogflow.cx.v3.ImportTestCasesResponse(this);
- int from_bitField0_ = bitField0_;
+ buildPartialRepeatedFields(result);
+ if (bitField0_ != 0) {
+ buildPartial0(result);
+ }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartialRepeatedFields(
+ com.google.cloud.dialogflow.cx.v3.ImportTestCasesResponse result) {
if (((bitField0_ & 0x00000001) != 0)) {
names_ = names_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000001);
}
result.names_ = names_;
- onBuilt();
- return result;
+ }
+
+ private void buildPartial0(com.google.cloud.dialogflow.cx.v3.ImportTestCasesResponse result) {
+ int from_bitField0_ = bitField0_;
}
@java.lang.Override
diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/InputAudioConfig.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/InputAudioConfig.java
index 53d962656229..970cccbf5824 100644
--- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/InputAudioConfig.java
+++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/InputAudioConfig.java
@@ -71,7 +71,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
public static final int AUDIO_ENCODING_FIELD_NUMBER = 1;
- private int audioEncoding_;
+ private int audioEncoding_ = 0;
/**
*
*
@@ -104,14 +104,13 @@ public int getAudioEncodingValue() {
*/
@java.lang.Override
public com.google.cloud.dialogflow.cx.v3.AudioEncoding getAudioEncoding() {
- @SuppressWarnings("deprecation")
com.google.cloud.dialogflow.cx.v3.AudioEncoding result =
- com.google.cloud.dialogflow.cx.v3.AudioEncoding.valueOf(audioEncoding_);
+ com.google.cloud.dialogflow.cx.v3.AudioEncoding.forNumber(audioEncoding_);
return result == null ? com.google.cloud.dialogflow.cx.v3.AudioEncoding.UNRECOGNIZED : result;
}
public static final int SAMPLE_RATE_HERTZ_FIELD_NUMBER = 2;
- private int sampleRateHertz_;
+ private int sampleRateHertz_ = 0;
/**
*
*
@@ -133,15 +132,17 @@ public int getSampleRateHertz() {
}
public static final int ENABLE_WORD_INFO_FIELD_NUMBER = 13;
- private boolean enableWordInfo_;
+ private boolean enableWordInfo_ = false;
/**
*
*
*
- * Optional. If `true`, Dialogflow returns [SpeechWordInfo][google.cloud.dialogflow.cx.v3.SpeechWordInfo] in
- * [StreamingRecognitionResult][google.cloud.dialogflow.cx.v3.StreamingRecognitionResult] with information about the recognized speech
- * words, e.g. start and end time offsets. If false or unspecified, Speech
- * doesn't return any word-level information.
+ * Optional. If `true`, Dialogflow returns
+ * [SpeechWordInfo][google.cloud.dialogflow.cx.v3.SpeechWordInfo] in
+ * [StreamingRecognitionResult][google.cloud.dialogflow.cx.v3.StreamingRecognitionResult]
+ * with information about the recognized speech words, e.g. start and end time
+ * offsets. If false or unspecified, Speech doesn't return any word-level
+ * information.
*
*
* bool enable_word_info = 13;
@@ -154,6 +155,8 @@ public boolean getEnableWordInfo() {
}
public static final int PHRASE_HINTS_FIELD_NUMBER = 4;
+
+ @SuppressWarnings("serial")
private com.google.protobuf.LazyStringList phraseHints_;
/**
*
@@ -231,7 +234,9 @@ public com.google.protobuf.ByteString getPhraseHintsBytes(int index) {
}
public static final int MODEL_FIELD_NUMBER = 7;
- private volatile java.lang.Object model_;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object model_ = "";
/**
*
*
@@ -300,12 +305,13 @@ public com.google.protobuf.ByteString getModelBytes() {
}
public static final int MODEL_VARIANT_FIELD_NUMBER = 10;
- private int modelVariant_;
+ private int modelVariant_ = 0;
/**
*
*
*
- * Optional. Which variant of the [Speech model][google.cloud.dialogflow.cx.v3.InputAudioConfig.model] to use.
+ * Optional. Which variant of the [Speech
+ * model][google.cloud.dialogflow.cx.v3.InputAudioConfig.model] to use.
*
*
* .google.cloud.dialogflow.cx.v3.SpeechModelVariant model_variant = 10;
@@ -320,7 +326,8 @@ public int getModelVariantValue() {
*
*
*
- * Optional. Which variant of the [Speech model][google.cloud.dialogflow.cx.v3.InputAudioConfig.model] to use.
+ * Optional. Which variant of the [Speech
+ * model][google.cloud.dialogflow.cx.v3.InputAudioConfig.model] to use.
*
*
* .google.cloud.dialogflow.cx.v3.SpeechModelVariant model_variant = 10;
@@ -329,16 +336,15 @@ public int getModelVariantValue() {
*/
@java.lang.Override
public com.google.cloud.dialogflow.cx.v3.SpeechModelVariant getModelVariant() {
- @SuppressWarnings("deprecation")
com.google.cloud.dialogflow.cx.v3.SpeechModelVariant result =
- com.google.cloud.dialogflow.cx.v3.SpeechModelVariant.valueOf(modelVariant_);
+ com.google.cloud.dialogflow.cx.v3.SpeechModelVariant.forNumber(modelVariant_);
return result == null
? com.google.cloud.dialogflow.cx.v3.SpeechModelVariant.UNRECOGNIZED
: result;
}
public static final int SINGLE_UTTERANCE_FIELD_NUMBER = 8;
- private boolean singleUtterance_;
+ private boolean singleUtterance_ = false;
/**
*
*
@@ -626,20 +632,15 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
@java.lang.Override
public Builder clear() {
super.clear();
+ bitField0_ = 0;
audioEncoding_ = 0;
-
sampleRateHertz_ = 0;
-
enableWordInfo_ = false;
-
phraseHints_ = com.google.protobuf.LazyStringArrayList.EMPTY;
- bitField0_ = (bitField0_ & ~0x00000001);
+ bitField0_ = (bitField0_ & ~0x00000008);
model_ = "";
-
modelVariant_ = 0;
-
singleUtterance_ = false;
-
return this;
}
@@ -667,22 +668,45 @@ public com.google.cloud.dialogflow.cx.v3.InputAudioConfig build() {
public com.google.cloud.dialogflow.cx.v3.InputAudioConfig buildPartial() {
com.google.cloud.dialogflow.cx.v3.InputAudioConfig result =
new com.google.cloud.dialogflow.cx.v3.InputAudioConfig(this);
- int from_bitField0_ = bitField0_;
- result.audioEncoding_ = audioEncoding_;
- result.sampleRateHertz_ = sampleRateHertz_;
- result.enableWordInfo_ = enableWordInfo_;
- if (((bitField0_ & 0x00000001) != 0)) {
- phraseHints_ = phraseHints_.getUnmodifiableView();
- bitField0_ = (bitField0_ & ~0x00000001);
+ buildPartialRepeatedFields(result);
+ if (bitField0_ != 0) {
+ buildPartial0(result);
}
- result.phraseHints_ = phraseHints_;
- result.model_ = model_;
- result.modelVariant_ = modelVariant_;
- result.singleUtterance_ = singleUtterance_;
onBuilt();
return result;
}
+ private void buildPartialRepeatedFields(
+ com.google.cloud.dialogflow.cx.v3.InputAudioConfig result) {
+ if (((bitField0_ & 0x00000008) != 0)) {
+ phraseHints_ = phraseHints_.getUnmodifiableView();
+ bitField0_ = (bitField0_ & ~0x00000008);
+ }
+ result.phraseHints_ = phraseHints_;
+ }
+
+ private void buildPartial0(com.google.cloud.dialogflow.cx.v3.InputAudioConfig result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.audioEncoding_ = audioEncoding_;
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.sampleRateHertz_ = sampleRateHertz_;
+ }
+ if (((from_bitField0_ & 0x00000004) != 0)) {
+ result.enableWordInfo_ = enableWordInfo_;
+ }
+ if (((from_bitField0_ & 0x00000010) != 0)) {
+ result.model_ = model_;
+ }
+ if (((from_bitField0_ & 0x00000020) != 0)) {
+ result.modelVariant_ = modelVariant_;
+ }
+ if (((from_bitField0_ & 0x00000040) != 0)) {
+ result.singleUtterance_ = singleUtterance_;
+ }
+ }
+
@java.lang.Override
public Builder clone() {
return super.clone();
@@ -741,7 +765,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.InputAudioConfig othe
if (!other.phraseHints_.isEmpty()) {
if (phraseHints_.isEmpty()) {
phraseHints_ = other.phraseHints_;
- bitField0_ = (bitField0_ & ~0x00000001);
+ bitField0_ = (bitField0_ & ~0x00000008);
} else {
ensurePhraseHintsIsMutable();
phraseHints_.addAll(other.phraseHints_);
@@ -750,6 +774,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.InputAudioConfig othe
}
if (!other.getModel().isEmpty()) {
model_ = other.model_;
+ bitField0_ |= 0x00000010;
onChanged();
}
if (other.modelVariant_ != 0) {
@@ -787,13 +812,13 @@ public Builder mergeFrom(
case 8:
{
audioEncoding_ = input.readEnum();
-
+ bitField0_ |= 0x00000001;
break;
} // case 8
case 16:
{
sampleRateHertz_ = input.readInt32();
-
+ bitField0_ |= 0x00000002;
break;
} // case 16
case 34:
@@ -806,25 +831,25 @@ public Builder mergeFrom(
case 58:
{
model_ = input.readStringRequireUtf8();
-
+ bitField0_ |= 0x00000010;
break;
} // case 58
case 64:
{
singleUtterance_ = input.readBool();
-
+ bitField0_ |= 0x00000040;
break;
} // case 64
case 80:
{
modelVariant_ = input.readEnum();
-
+ bitField0_ |= 0x00000020;
break;
} // case 80
case 104:
{
enableWordInfo_ = input.readBool();
-
+ bitField0_ |= 0x00000004;
break;
} // case 104
default:
@@ -879,8 +904,8 @@ public int getAudioEncodingValue() {
* @return This builder for chaining.
*/
public Builder setAudioEncodingValue(int value) {
-
audioEncoding_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -899,9 +924,8 @@ public Builder setAudioEncodingValue(int value) {
*/
@java.lang.Override
public com.google.cloud.dialogflow.cx.v3.AudioEncoding getAudioEncoding() {
- @SuppressWarnings("deprecation")
com.google.cloud.dialogflow.cx.v3.AudioEncoding result =
- com.google.cloud.dialogflow.cx.v3.AudioEncoding.valueOf(audioEncoding_);
+ com.google.cloud.dialogflow.cx.v3.AudioEncoding.forNumber(audioEncoding_);
return result == null ? com.google.cloud.dialogflow.cx.v3.AudioEncoding.UNRECOGNIZED : result;
}
/**
@@ -922,7 +946,7 @@ public Builder setAudioEncoding(com.google.cloud.dialogflow.cx.v3.AudioEncoding
if (value == null) {
throw new NullPointerException();
}
-
+ bitField0_ |= 0x00000001;
audioEncoding_ = value.getNumber();
onChanged();
return this;
@@ -941,7 +965,7 @@ public Builder setAudioEncoding(com.google.cloud.dialogflow.cx.v3.AudioEncoding
* @return This builder for chaining.
*/
public Builder clearAudioEncoding() {
-
+ bitField0_ = (bitField0_ & ~0x00000001);
audioEncoding_ = 0;
onChanged();
return this;
@@ -986,6 +1010,7 @@ public int getSampleRateHertz() {
public Builder setSampleRateHertz(int value) {
sampleRateHertz_ = value;
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -1005,7 +1030,7 @@ public Builder setSampleRateHertz(int value) {
* @return This builder for chaining.
*/
public Builder clearSampleRateHertz() {
-
+ bitField0_ = (bitField0_ & ~0x00000002);
sampleRateHertz_ = 0;
onChanged();
return this;
@@ -1016,10 +1041,12 @@ public Builder clearSampleRateHertz() {
*
*
*
- * Optional. If `true`, Dialogflow returns [SpeechWordInfo][google.cloud.dialogflow.cx.v3.SpeechWordInfo] in
- * [StreamingRecognitionResult][google.cloud.dialogflow.cx.v3.StreamingRecognitionResult] with information about the recognized speech
- * words, e.g. start and end time offsets. If false or unspecified, Speech
- * doesn't return any word-level information.
+ * Optional. If `true`, Dialogflow returns
+ * [SpeechWordInfo][google.cloud.dialogflow.cx.v3.SpeechWordInfo] in
+ * [StreamingRecognitionResult][google.cloud.dialogflow.cx.v3.StreamingRecognitionResult]
+ * with information about the recognized speech words, e.g. start and end time
+ * offsets. If false or unspecified, Speech doesn't return any word-level
+ * information.
*
*
* bool enable_word_info = 13;
@@ -1034,10 +1061,12 @@ public boolean getEnableWordInfo() {
*
*
*
- * Optional. If `true`, Dialogflow returns [SpeechWordInfo][google.cloud.dialogflow.cx.v3.SpeechWordInfo] in
- * [StreamingRecognitionResult][google.cloud.dialogflow.cx.v3.StreamingRecognitionResult] with information about the recognized speech
- * words, e.g. start and end time offsets. If false or unspecified, Speech
- * doesn't return any word-level information.
+ * Optional. If `true`, Dialogflow returns
+ * [SpeechWordInfo][google.cloud.dialogflow.cx.v3.SpeechWordInfo] in
+ * [StreamingRecognitionResult][google.cloud.dialogflow.cx.v3.StreamingRecognitionResult]
+ * with information about the recognized speech words, e.g. start and end time
+ * offsets. If false or unspecified, Speech doesn't return any word-level
+ * information.
*
*
* bool enable_word_info = 13;
@@ -1048,6 +1077,7 @@ public boolean getEnableWordInfo() {
public Builder setEnableWordInfo(boolean value) {
enableWordInfo_ = value;
+ bitField0_ |= 0x00000004;
onChanged();
return this;
}
@@ -1055,10 +1085,12 @@ public Builder setEnableWordInfo(boolean value) {
*
*
*
- * Optional. If `true`, Dialogflow returns [SpeechWordInfo][google.cloud.dialogflow.cx.v3.SpeechWordInfo] in
- * [StreamingRecognitionResult][google.cloud.dialogflow.cx.v3.StreamingRecognitionResult] with information about the recognized speech
- * words, e.g. start and end time offsets. If false or unspecified, Speech
- * doesn't return any word-level information.
+ * Optional. If `true`, Dialogflow returns
+ * [SpeechWordInfo][google.cloud.dialogflow.cx.v3.SpeechWordInfo] in
+ * [StreamingRecognitionResult][google.cloud.dialogflow.cx.v3.StreamingRecognitionResult]
+ * with information about the recognized speech words, e.g. start and end time
+ * offsets. If false or unspecified, Speech doesn't return any word-level
+ * information.
*
*
* bool enable_word_info = 13;
@@ -1066,7 +1098,7 @@ public Builder setEnableWordInfo(boolean value) {
* @return This builder for chaining.
*/
public Builder clearEnableWordInfo() {
-
+ bitField0_ = (bitField0_ & ~0x00000004);
enableWordInfo_ = false;
onChanged();
return this;
@@ -1076,9 +1108,9 @@ public Builder clearEnableWordInfo() {
com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensurePhraseHintsIsMutable() {
- if (!((bitField0_ & 0x00000001) != 0)) {
+ if (!((bitField0_ & 0x00000008) != 0)) {
phraseHints_ = new com.google.protobuf.LazyStringArrayList(phraseHints_);
- bitField0_ |= 0x00000001;
+ bitField0_ |= 0x00000008;
}
}
/**
@@ -1245,7 +1277,7 @@ public Builder addAllPhraseHints(java.lang.Iterable values) {
*/
public Builder clearPhraseHints() {
phraseHints_ = com.google.protobuf.LazyStringArrayList.EMPTY;
- bitField0_ = (bitField0_ & ~0x00000001);
+ bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
return this;
}
@@ -1367,8 +1399,8 @@ public Builder setModel(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
-
model_ = value;
+ bitField0_ |= 0x00000010;
onChanged();
return this;
}
@@ -1394,8 +1426,8 @@ public Builder setModel(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearModel() {
-
model_ = getDefaultInstance().getModel();
+ bitField0_ = (bitField0_ & ~0x00000010);
onChanged();
return this;
}
@@ -1426,8 +1458,8 @@ public Builder setModelBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
-
model_ = value;
+ bitField0_ |= 0x00000010;
onChanged();
return this;
}
@@ -1437,7 +1469,8 @@ public Builder setModelBytes(com.google.protobuf.ByteString value) {
*
*
*
- * Optional. Which variant of the [Speech model][google.cloud.dialogflow.cx.v3.InputAudioConfig.model] to use.
+ * Optional. Which variant of the [Speech
+ * model][google.cloud.dialogflow.cx.v3.InputAudioConfig.model] to use.
*
*
* .google.cloud.dialogflow.cx.v3.SpeechModelVariant model_variant = 10;
@@ -1452,7 +1485,8 @@ public int getModelVariantValue() {
*
*
*
- * Optional. Which variant of the [Speech model][google.cloud.dialogflow.cx.v3.InputAudioConfig.model] to use.
+ * Optional. Which variant of the [Speech
+ * model][google.cloud.dialogflow.cx.v3.InputAudioConfig.model] to use.
*
*
* .google.cloud.dialogflow.cx.v3.SpeechModelVariant model_variant = 10;
@@ -1461,8 +1495,8 @@ public int getModelVariantValue() {
* @return This builder for chaining.
*/
public Builder setModelVariantValue(int value) {
-
modelVariant_ = value;
+ bitField0_ |= 0x00000020;
onChanged();
return this;
}
@@ -1470,7 +1504,8 @@ public Builder setModelVariantValue(int value) {
*
*
*
- * Optional. Which variant of the [Speech model][google.cloud.dialogflow.cx.v3.InputAudioConfig.model] to use.
+ * Optional. Which variant of the [Speech
+ * model][google.cloud.dialogflow.cx.v3.InputAudioConfig.model] to use.
*
*
* .google.cloud.dialogflow.cx.v3.SpeechModelVariant model_variant = 10;
@@ -1479,9 +1514,8 @@ public Builder setModelVariantValue(int value) {
*/
@java.lang.Override
public com.google.cloud.dialogflow.cx.v3.SpeechModelVariant getModelVariant() {
- @SuppressWarnings("deprecation")
com.google.cloud.dialogflow.cx.v3.SpeechModelVariant result =
- com.google.cloud.dialogflow.cx.v3.SpeechModelVariant.valueOf(modelVariant_);
+ com.google.cloud.dialogflow.cx.v3.SpeechModelVariant.forNumber(modelVariant_);
return result == null
? com.google.cloud.dialogflow.cx.v3.SpeechModelVariant.UNRECOGNIZED
: result;
@@ -1490,7 +1524,8 @@ public com.google.cloud.dialogflow.cx.v3.SpeechModelVariant getModelVariant() {
*
*
*
- * Optional. Which variant of the [Speech model][google.cloud.dialogflow.cx.v3.InputAudioConfig.model] to use.
+ * Optional. Which variant of the [Speech
+ * model][google.cloud.dialogflow.cx.v3.InputAudioConfig.model] to use.
*
*
* .google.cloud.dialogflow.cx.v3.SpeechModelVariant model_variant = 10;
@@ -1502,7 +1537,7 @@ public Builder setModelVariant(com.google.cloud.dialogflow.cx.v3.SpeechModelVari
if (value == null) {
throw new NullPointerException();
}
-
+ bitField0_ |= 0x00000020;
modelVariant_ = value.getNumber();
onChanged();
return this;
@@ -1511,7 +1546,8 @@ public Builder setModelVariant(com.google.cloud.dialogflow.cx.v3.SpeechModelVari
*
*
*
- * Optional. Which variant of the [Speech model][google.cloud.dialogflow.cx.v3.InputAudioConfig.model] to use.
+ * Optional. Which variant of the [Speech
+ * model][google.cloud.dialogflow.cx.v3.InputAudioConfig.model] to use.
*
*
* .google.cloud.dialogflow.cx.v3.SpeechModelVariant model_variant = 10;
@@ -1519,7 +1555,7 @@ public Builder setModelVariant(com.google.cloud.dialogflow.cx.v3.SpeechModelVari
* @return This builder for chaining.
*/
public Builder clearModelVariant() {
-
+ bitField0_ = (bitField0_ & ~0x00000020);
modelVariant_ = 0;
onChanged();
return this;
@@ -1570,6 +1606,7 @@ public boolean getSingleUtterance() {
public Builder setSingleUtterance(boolean value) {
singleUtterance_ = value;
+ bitField0_ |= 0x00000040;
onChanged();
return this;
}
@@ -1592,7 +1629,7 @@ public Builder setSingleUtterance(boolean value) {
* @return This builder for chaining.
*/
public Builder clearSingleUtterance() {
-
+ bitField0_ = (bitField0_ & ~0x00000040);
singleUtterance_ = false;
onChanged();
return this;
diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/InputAudioConfigOrBuilder.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/InputAudioConfigOrBuilder.java
index bf0f7099ac88..33e9cf7e3462 100644
--- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/InputAudioConfigOrBuilder.java
+++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/InputAudioConfigOrBuilder.java
@@ -73,10 +73,12 @@ public interface InputAudioConfigOrBuilder
*
*
*
- * Optional. If `true`, Dialogflow returns [SpeechWordInfo][google.cloud.dialogflow.cx.v3.SpeechWordInfo] in
- * [StreamingRecognitionResult][google.cloud.dialogflow.cx.v3.StreamingRecognitionResult] with information about the recognized speech
- * words, e.g. start and end time offsets. If false or unspecified, Speech
- * doesn't return any word-level information.
+ * Optional. If `true`, Dialogflow returns
+ * [SpeechWordInfo][google.cloud.dialogflow.cx.v3.SpeechWordInfo] in
+ * [StreamingRecognitionResult][google.cloud.dialogflow.cx.v3.StreamingRecognitionResult]
+ * with information about the recognized speech words, e.g. start and end time
+ * offsets. If false or unspecified, Speech doesn't return any word-level
+ * information.
*
*
* bool enable_word_info = 13;
@@ -201,7 +203,8 @@ public interface InputAudioConfigOrBuilder
*
*
*
- * Optional. Which variant of the [Speech model][google.cloud.dialogflow.cx.v3.InputAudioConfig.model] to use.
+ * Optional. Which variant of the [Speech
+ * model][google.cloud.dialogflow.cx.v3.InputAudioConfig.model] to use.
*
*
* .google.cloud.dialogflow.cx.v3.SpeechModelVariant model_variant = 10;
@@ -213,7 +216,8 @@ public interface InputAudioConfigOrBuilder
*
*
*
- * Optional. Which variant of the [Speech model][google.cloud.dialogflow.cx.v3.InputAudioConfig.model] to use.
+ * Optional. Which variant of the [Speech
+ * model][google.cloud.dialogflow.cx.v3.InputAudioConfig.model] to use.
*
*
* .google.cloud.dialogflow.cx.v3.SpeechModelVariant model_variant = 10;
diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/Intent.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/Intent.java
index 73b51c0821fa..44b6472f7af6 100644
--- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/Intent.java
+++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/Intent.java
@@ -126,7 +126,9 @@ public interface TrainingPhraseOrBuilder
* Note: Do not forget to include whitespace at part boundaries, so the
* training phrase is well formatted when the parts are concatenated.
* If the training phrase does not need to be annotated with parameters,
- * you just need a single part with only the [Part.text][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part.text] field set.
+ * you just need a single part with only the
+ * [Part.text][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part.text]
+ * field set.
* If you want to annotate the training phrase, you must create multiple
* parts, where the fields of each part are populated in one of two ways:
* - `Part.text` is set to a part of the phrase that has no parameters.
@@ -150,7 +152,9 @@ public interface TrainingPhraseOrBuilder
* Note: Do not forget to include whitespace at part boundaries, so the
* training phrase is well formatted when the parts are concatenated.
* If the training phrase does not need to be annotated with parameters,
- * you just need a single part with only the [Part.text][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part.text] field set.
+ * you just need a single part with only the
+ * [Part.text][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part.text]
+ * field set.
* If you want to annotate the training phrase, you must create multiple
* parts, where the fields of each part are populated in one of two ways:
* - `Part.text` is set to a part of the phrase that has no parameters.
@@ -174,7 +178,9 @@ public interface TrainingPhraseOrBuilder
* Note: Do not forget to include whitespace at part boundaries, so the
* training phrase is well formatted when the parts are concatenated.
* If the training phrase does not need to be annotated with parameters,
- * you just need a single part with only the [Part.text][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part.text] field set.
+ * you just need a single part with only the
+ * [Part.text][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part.text]
+ * field set.
* If you want to annotate the training phrase, you must create multiple
* parts, where the fields of each part are populated in one of two ways:
* - `Part.text` is set to a part of the phrase that has no parameters.
@@ -198,7 +204,9 @@ public interface TrainingPhraseOrBuilder
* Note: Do not forget to include whitespace at part boundaries, so the
* training phrase is well formatted when the parts are concatenated.
* If the training phrase does not need to be annotated with parameters,
- * you just need a single part with only the [Part.text][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part.text] field set.
+ * you just need a single part with only the
+ * [Part.text][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part.text]
+ * field set.
* If you want to annotate the training phrase, you must create multiple
* parts, where the fields of each part are populated in one of two ways:
* - `Part.text` is set to a part of the phrase that has no parameters.
@@ -223,7 +231,9 @@ public interface TrainingPhraseOrBuilder
* Note: Do not forget to include whitespace at part boundaries, so the
* training phrase is well formatted when the parts are concatenated.
* If the training phrase does not need to be annotated with parameters,
- * you just need a single part with only the [Part.text][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part.text] field set.
+ * you just need a single part with only the
+ * [Part.text][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part.text]
+ * field set.
* If you want to annotate the training phrase, you must create multiple
* parts, where the fields of each part are populated in one of two ways:
* - `Part.text` is set to a part of the phrase that has no parameters.
@@ -335,9 +345,9 @@ public interface PartOrBuilder
*
*
*
- * The [parameter][google.cloud.dialogflow.cx.v3.Intent.Parameter] used to annotate this part of the
- * training phrase. This field is required for annotated parts of the
- * training phrase.
+ * The [parameter][google.cloud.dialogflow.cx.v3.Intent.Parameter] used to
+ * annotate this part of the training phrase. This field is required for
+ * annotated parts of the training phrase.
*
*
* string parameter_id = 2;
@@ -349,9 +359,9 @@ public interface PartOrBuilder
*
*
*
- * The [parameter][google.cloud.dialogflow.cx.v3.Intent.Parameter] used to annotate this part of the
- * training phrase. This field is required for annotated parts of the
- * training phrase.
+ * The [parameter][google.cloud.dialogflow.cx.v3.Intent.Parameter] used to
+ * annotate this part of the training phrase. This field is required for
+ * annotated parts of the training phrase.
*
*
* string parameter_id = 2;
@@ -411,7 +421,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
public static final int TEXT_FIELD_NUMBER = 1;
- private volatile java.lang.Object text_;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object text_ = "";
/**
*
*
@@ -460,14 +472,16 @@ public com.google.protobuf.ByteString getTextBytes() {
}
public static final int PARAMETER_ID_FIELD_NUMBER = 2;
- private volatile java.lang.Object parameterId_;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object parameterId_ = "";
/**
*
*
*
- * The [parameter][google.cloud.dialogflow.cx.v3.Intent.Parameter] used to annotate this part of the
- * training phrase. This field is required for annotated parts of the
- * training phrase.
+ * The [parameter][google.cloud.dialogflow.cx.v3.Intent.Parameter] used to
+ * annotate this part of the training phrase. This field is required for
+ * annotated parts of the training phrase.
*
*
* string parameter_id = 2;
@@ -490,9 +504,9 @@ public java.lang.String getParameterId() {
*
*
*
- * The [parameter][google.cloud.dialogflow.cx.v3.Intent.Parameter] used to annotate this part of the
- * training phrase. This field is required for annotated parts of the
- * training phrase.
+ * The [parameter][google.cloud.dialogflow.cx.v3.Intent.Parameter] used to
+ * annotate this part of the training phrase. This field is required for
+ * annotated parts of the training phrase.
*
*
* string parameter_id = 2;
@@ -721,10 +735,9 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
@java.lang.Override
public Builder clear() {
super.clear();
+ bitField0_ = 0;
text_ = "";
-
parameterId_ = "";
-
return this;
}
@@ -753,12 +766,24 @@ public com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part build() {
public com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part buildPartial() {
com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part result =
new com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part(this);
- result.text_ = text_;
- result.parameterId_ = parameterId_;
+ if (bitField0_ != 0) {
+ buildPartial0(result);
+ }
onBuilt();
return result;
}
+ private void buildPartial0(
+ com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.text_ = text_;
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.parameterId_ = parameterId_;
+ }
+ }
+
@java.lang.Override
public Builder clone() {
return super.clone();
@@ -811,10 +836,12 @@ public Builder mergeFrom(
return this;
if (!other.getText().isEmpty()) {
text_ = other.text_;
+ bitField0_ |= 0x00000001;
onChanged();
}
if (!other.getParameterId().isEmpty()) {
parameterId_ = other.parameterId_;
+ bitField0_ |= 0x00000002;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
@@ -846,13 +873,13 @@ public Builder mergeFrom(
case 10:
{
text_ = input.readStringRequireUtf8();
-
+ bitField0_ |= 0x00000001;
break;
} // case 10
case 18:
{
parameterId_ = input.readStringRequireUtf8();
-
+ bitField0_ |= 0x00000002;
break;
} // case 18
default:
@@ -872,6 +899,8 @@ public Builder mergeFrom(
return this;
}
+ private int bitField0_;
+
private java.lang.Object text_ = "";
/**
*
@@ -933,8 +962,8 @@ public Builder setText(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
-
text_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -950,8 +979,8 @@ public Builder setText(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearText() {
-
text_ = getDefaultInstance().getText();
+ bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
@@ -972,8 +1001,8 @@ public Builder setTextBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
-
text_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -983,9 +1012,9 @@ public Builder setTextBytes(com.google.protobuf.ByteString value) {
*
*
*
- * The [parameter][google.cloud.dialogflow.cx.v3.Intent.Parameter] used to annotate this part of the
- * training phrase. This field is required for annotated parts of the
- * training phrase.
+ * The [parameter][google.cloud.dialogflow.cx.v3.Intent.Parameter] used to
+ * annotate this part of the training phrase. This field is required for
+ * annotated parts of the training phrase.
*
*
* string parameter_id = 2;
@@ -1007,9 +1036,9 @@ public java.lang.String getParameterId() {
*
*
*
- * The [parameter][google.cloud.dialogflow.cx.v3.Intent.Parameter] used to annotate this part of the
- * training phrase. This field is required for annotated parts of the
- * training phrase.
+ * The [parameter][google.cloud.dialogflow.cx.v3.Intent.Parameter] used to
+ * annotate this part of the training phrase. This field is required for
+ * annotated parts of the training phrase.
*
*
* string parameter_id = 2;
@@ -1031,9 +1060,9 @@ public com.google.protobuf.ByteString getParameterIdBytes() {
*
*
*
- * The [parameter][google.cloud.dialogflow.cx.v3.Intent.Parameter] used to annotate this part of the
- * training phrase. This field is required for annotated parts of the
- * training phrase.
+ * The [parameter][google.cloud.dialogflow.cx.v3.Intent.Parameter] used to
+ * annotate this part of the training phrase. This field is required for
+ * annotated parts of the training phrase.
*
*
* string parameter_id = 2;
@@ -1045,8 +1074,8 @@ public Builder setParameterId(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
-
parameterId_ = value;
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -1054,9 +1083,9 @@ public Builder setParameterId(java.lang.String value) {
*
*
*
- * The [parameter][google.cloud.dialogflow.cx.v3.Intent.Parameter] used to annotate this part of the
- * training phrase. This field is required for annotated parts of the
- * training phrase.
+ * The [parameter][google.cloud.dialogflow.cx.v3.Intent.Parameter] used to
+ * annotate this part of the training phrase. This field is required for
+ * annotated parts of the training phrase.
*
*
* string parameter_id = 2;
@@ -1064,8 +1093,8 @@ public Builder setParameterId(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearParameterId() {
-
parameterId_ = getDefaultInstance().getParameterId();
+ bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
@@ -1073,9 +1102,9 @@ public Builder clearParameterId() {
*
*
*
- * The [parameter][google.cloud.dialogflow.cx.v3.Intent.Parameter] used to annotate this part of the
- * training phrase. This field is required for annotated parts of the
- * training phrase.
+ * The [parameter][google.cloud.dialogflow.cx.v3.Intent.Parameter] used to
+ * annotate this part of the training phrase. This field is required for
+ * annotated parts of the training phrase.
*
*
* string parameter_id = 2;
@@ -1088,8 +1117,8 @@ public Builder setParameterIdBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
-
parameterId_ = value;
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -1162,7 +1191,9 @@ public com.google.protobuf.Parser getParserForType() {
}
public static final int ID_FIELD_NUMBER = 1;
- private volatile java.lang.Object id_;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object id_ = "";
/**
*
*
@@ -1211,6 +1242,8 @@ public com.google.protobuf.ByteString getIdBytes() {
}
public static final int PARTS_FIELD_NUMBER = 2;
+
+ @SuppressWarnings("serial")
private java.util.List parts_;
/**
*
@@ -1223,7 +1256,9 @@ public com.google.protobuf.ByteString getIdBytes() {
* Note: Do not forget to include whitespace at part boundaries, so the
* training phrase is well formatted when the parts are concatenated.
* If the training phrase does not need to be annotated with parameters,
- * you just need a single part with only the [Part.text][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part.text] field set.
+ * you just need a single part with only the
+ * [Part.text][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part.text]
+ * field set.
* If you want to annotate the training phrase, you must create multiple
* parts, where the fields of each part are populated in one of two ways:
* - `Part.text` is set to a part of the phrase that has no parameters.
@@ -1251,7 +1286,9 @@ public com.google.protobuf.ByteString getIdBytes() {
* Note: Do not forget to include whitespace at part boundaries, so the
* training phrase is well formatted when the parts are concatenated.
* If the training phrase does not need to be annotated with parameters,
- * you just need a single part with only the [Part.text][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part.text] field set.
+ * you just need a single part with only the
+ * [Part.text][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part.text]
+ * field set.
* If you want to annotate the training phrase, you must create multiple
* parts, where the fields of each part are populated in one of two ways:
* - `Part.text` is set to a part of the phrase that has no parameters.
@@ -1280,7 +1317,9 @@ public com.google.protobuf.ByteString getIdBytes() {
* Note: Do not forget to include whitespace at part boundaries, so the
* training phrase is well formatted when the parts are concatenated.
* If the training phrase does not need to be annotated with parameters,
- * you just need a single part with only the [Part.text][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part.text] field set.
+ * you just need a single part with only the
+ * [Part.text][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part.text]
+ * field set.
* If you want to annotate the training phrase, you must create multiple
* parts, where the fields of each part are populated in one of two ways:
* - `Part.text` is set to a part of the phrase that has no parameters.
@@ -1307,7 +1346,9 @@ public int getPartsCount() {
* Note: Do not forget to include whitespace at part boundaries, so the
* training phrase is well formatted when the parts are concatenated.
* If the training phrase does not need to be annotated with parameters,
- * you just need a single part with only the [Part.text][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part.text] field set.
+ * you just need a single part with only the
+ * [Part.text][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part.text]
+ * field set.
* If you want to annotate the training phrase, you must create multiple
* parts, where the fields of each part are populated in one of two ways:
* - `Part.text` is set to a part of the phrase that has no parameters.
@@ -1334,7 +1375,9 @@ public com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part getParts(int
* Note: Do not forget to include whitespace at part boundaries, so the
* training phrase is well formatted when the parts are concatenated.
* If the training phrase does not need to be annotated with parameters,
- * you just need a single part with only the [Part.text][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part.text] field set.
+ * you just need a single part with only the
+ * [Part.text][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part.text]
+ * field set.
* If you want to annotate the training phrase, you must create multiple
* parts, where the fields of each part are populated in one of two ways:
* - `Part.text` is set to a part of the phrase that has no parameters.
@@ -1353,7 +1396,7 @@ public com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.PartOrBuilder get
}
public static final int REPEAT_COUNT_FIELD_NUMBER = 3;
- private int repeatCount_;
+ private int repeatCount_ = 0;
/**
*
*
@@ -1590,17 +1633,16 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
@java.lang.Override
public Builder clear() {
super.clear();
+ bitField0_ = 0;
id_ = "";
-
if (partsBuilder_ == null) {
parts_ = java.util.Collections.emptyList();
} else {
parts_ = null;
partsBuilder_.clear();
}
- bitField0_ = (bitField0_ & ~0x00000001);
+ bitField0_ = (bitField0_ & ~0x00000002);
repeatCount_ = 0;
-
return this;
}
@@ -1628,20 +1670,35 @@ public com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase build() {
public com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase buildPartial() {
com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase result =
new com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase(this);
- int from_bitField0_ = bitField0_;
- result.id_ = id_;
+ buildPartialRepeatedFields(result);
+ if (bitField0_ != 0) {
+ buildPartial0(result);
+ }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartialRepeatedFields(
+ com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase result) {
if (partsBuilder_ == null) {
- if (((bitField0_ & 0x00000001) != 0)) {
+ if (((bitField0_ & 0x00000002) != 0)) {
parts_ = java.util.Collections.unmodifiableList(parts_);
- bitField0_ = (bitField0_ & ~0x00000001);
+ bitField0_ = (bitField0_ & ~0x00000002);
}
result.parts_ = parts_;
} else {
result.parts_ = partsBuilder_.build();
}
- result.repeatCount_ = repeatCount_;
- onBuilt();
- return result;
+ }
+
+ private void buildPartial0(com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.id_ = id_;
+ }
+ if (((from_bitField0_ & 0x00000004) != 0)) {
+ result.repeatCount_ = repeatCount_;
+ }
}
@java.lang.Override
@@ -1694,13 +1751,14 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase
return this;
if (!other.getId().isEmpty()) {
id_ = other.id_;
+ bitField0_ |= 0x00000001;
onChanged();
}
if (partsBuilder_ == null) {
if (!other.parts_.isEmpty()) {
if (parts_.isEmpty()) {
parts_ = other.parts_;
- bitField0_ = (bitField0_ & ~0x00000001);
+ bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensurePartsIsMutable();
parts_.addAll(other.parts_);
@@ -1713,7 +1771,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase
partsBuilder_.dispose();
partsBuilder_ = null;
parts_ = other.parts_;
- bitField0_ = (bitField0_ & ~0x00000001);
+ bitField0_ = (bitField0_ & ~0x00000002);
partsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
? getPartsFieldBuilder()
@@ -1755,7 +1813,7 @@ public Builder mergeFrom(
case 10:
{
id_ = input.readStringRequireUtf8();
-
+ bitField0_ |= 0x00000001;
break;
} // case 10
case 18:
@@ -1775,7 +1833,7 @@ public Builder mergeFrom(
case 24:
{
repeatCount_ = input.readInt32();
-
+ bitField0_ |= 0x00000004;
break;
} // case 24
default:
@@ -1858,8 +1916,8 @@ public Builder setId(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
-
id_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -1875,8 +1933,8 @@ public Builder setId(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearId() {
-
id_ = getDefaultInstance().getId();
+ bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
@@ -1897,8 +1955,8 @@ public Builder setIdBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
-
id_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -1907,11 +1965,11 @@ public Builder setIdBytes(com.google.protobuf.ByteString value) {
java.util.Collections.emptyList();
private void ensurePartsIsMutable() {
- if (!((bitField0_ & 0x00000001) != 0)) {
+ if (!((bitField0_ & 0x00000002) != 0)) {
parts_ =
new java.util.ArrayList(
parts_);
- bitField0_ |= 0x00000001;
+ bitField0_ |= 0x00000002;
}
}
@@ -1932,7 +1990,9 @@ private void ensurePartsIsMutable() {
* Note: Do not forget to include whitespace at part boundaries, so the
* training phrase is well formatted when the parts are concatenated.
* If the training phrase does not need to be annotated with parameters,
- * you just need a single part with only the [Part.text][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part.text] field set.
+ * you just need a single part with only the
+ * [Part.text][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part.text]
+ * field set.
* If you want to annotate the training phrase, you must create multiple
* parts, where the fields of each part are populated in one of two ways:
* - `Part.text` is set to a part of the phrase that has no parameters.
@@ -1963,7 +2023,9 @@ private void ensurePartsIsMutable() {
* Note: Do not forget to include whitespace at part boundaries, so the
* training phrase is well formatted when the parts are concatenated.
* If the training phrase does not need to be annotated with parameters,
- * you just need a single part with only the [Part.text][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part.text] field set.
+ * you just need a single part with only the
+ * [Part.text][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part.text]
+ * field set.
* If you want to annotate the training phrase, you must create multiple
* parts, where the fields of each part are populated in one of two ways:
* - `Part.text` is set to a part of the phrase that has no parameters.
@@ -1993,7 +2055,9 @@ public int getPartsCount() {
* Note: Do not forget to include whitespace at part boundaries, so the
* training phrase is well formatted when the parts are concatenated.
* If the training phrase does not need to be annotated with parameters,
- * you just need a single part with only the [Part.text][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part.text] field set.
+ * you just need a single part with only the
+ * [Part.text][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part.text]
+ * field set.
* If you want to annotate the training phrase, you must create multiple
* parts, where the fields of each part are populated in one of two ways:
* - `Part.text` is set to a part of the phrase that has no parameters.
@@ -2023,7 +2087,9 @@ public com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part getParts(int
* Note: Do not forget to include whitespace at part boundaries, so the
* training phrase is well formatted when the parts are concatenated.
* If the training phrase does not need to be annotated with parameters,
- * you just need a single part with only the [Part.text][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part.text] field set.
+ * you just need a single part with only the
+ * [Part.text][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part.text]
+ * field set.
* If you want to annotate the training phrase, you must create multiple
* parts, where the fields of each part are populated in one of two ways:
* - `Part.text` is set to a part of the phrase that has no parameters.
@@ -2060,7 +2126,9 @@ public Builder setParts(
* Note: Do not forget to include whitespace at part boundaries, so the
* training phrase is well formatted when the parts are concatenated.
* If the training phrase does not need to be annotated with parameters,
- * you just need a single part with only the [Part.text][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part.text] field set.
+ * you just need a single part with only the
+ * [Part.text][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part.text]
+ * field set.
* If you want to annotate the training phrase, you must create multiple
* parts, where the fields of each part are populated in one of two ways:
* - `Part.text` is set to a part of the phrase that has no parameters.
@@ -2095,7 +2163,9 @@ public Builder setParts(
* Note: Do not forget to include whitespace at part boundaries, so the
* training phrase is well formatted when the parts are concatenated.
* If the training phrase does not need to be annotated with parameters,
- * you just need a single part with only the [Part.text][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part.text] field set.
+ * you just need a single part with only the
+ * [Part.text][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part.text]
+ * field set.
* If you want to annotate the training phrase, you must create multiple
* parts, where the fields of each part are populated in one of two ways:
* - `Part.text` is set to a part of the phrase that has no parameters.
@@ -2131,7 +2201,9 @@ public Builder addParts(com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.
* Note: Do not forget to include whitespace at part boundaries, so the
* training phrase is well formatted when the parts are concatenated.
* If the training phrase does not need to be annotated with parameters,
- * you just need a single part with only the [Part.text][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part.text] field set.
+ * you just need a single part with only the
+ * [Part.text][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part.text]
+ * field set.
* If you want to annotate the training phrase, you must create multiple
* parts, where the fields of each part are populated in one of two ways:
* - `Part.text` is set to a part of the phrase that has no parameters.
@@ -2168,7 +2240,9 @@ public Builder addParts(
* Note: Do not forget to include whitespace at part boundaries, so the
* training phrase is well formatted when the parts are concatenated.
* If the training phrase does not need to be annotated with parameters,
- * you just need a single part with only the [Part.text][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part.text] field set.
+ * you just need a single part with only the
+ * [Part.text][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part.text]
+ * field set.
* If you want to annotate the training phrase, you must create multiple
* parts, where the fields of each part are populated in one of two ways:
* - `Part.text` is set to a part of the phrase that has no parameters.
@@ -2202,7 +2276,9 @@ public Builder addParts(
* Note: Do not forget to include whitespace at part boundaries, so the
* training phrase is well formatted when the parts are concatenated.
* If the training phrase does not need to be annotated with parameters,
- * you just need a single part with only the [Part.text][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part.text] field set.
+ * you just need a single part with only the
+ * [Part.text][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part.text]
+ * field set.
* If you want to annotate the training phrase, you must create multiple
* parts, where the fields of each part are populated in one of two ways:
* - `Part.text` is set to a part of the phrase that has no parameters.
@@ -2237,7 +2313,9 @@ public Builder addParts(
* Note: Do not forget to include whitespace at part boundaries, so the
* training phrase is well formatted when the parts are concatenated.
* If the training phrase does not need to be annotated with parameters,
- * you just need a single part with only the [Part.text][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part.text] field set.
+ * you just need a single part with only the
+ * [Part.text][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part.text]
+ * field set.
* If you want to annotate the training phrase, you must create multiple
* parts, where the fields of each part are populated in one of two ways:
* - `Part.text` is set to a part of the phrase that has no parameters.
@@ -2272,7 +2350,9 @@ public Builder addAllParts(
* Note: Do not forget to include whitespace at part boundaries, so the
* training phrase is well formatted when the parts are concatenated.
* If the training phrase does not need to be annotated with parameters,
- * you just need a single part with only the [Part.text][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part.text] field set.
+ * you just need a single part with only the
+ * [Part.text][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part.text]
+ * field set.
* If you want to annotate the training phrase, you must create multiple
* parts, where the fields of each part are populated in one of two ways:
* - `Part.text` is set to a part of the phrase that has no parameters.
@@ -2287,7 +2367,7 @@ public Builder addAllParts(
public Builder clearParts() {
if (partsBuilder_ == null) {
parts_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000001);
+ bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
partsBuilder_.clear();
@@ -2305,7 +2385,9 @@ public Builder clearParts() {
* Note: Do not forget to include whitespace at part boundaries, so the
* training phrase is well formatted when the parts are concatenated.
* If the training phrase does not need to be annotated with parameters,
- * you just need a single part with only the [Part.text][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part.text] field set.
+ * you just need a single part with only the
+ * [Part.text][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part.text]
+ * field set.
* If you want to annotate the training phrase, you must create multiple
* parts, where the fields of each part are populated in one of two ways:
* - `Part.text` is set to a part of the phrase that has no parameters.
@@ -2338,7 +2420,9 @@ public Builder removeParts(int index) {
* Note: Do not forget to include whitespace at part boundaries, so the
* training phrase is well formatted when the parts are concatenated.
* If the training phrase does not need to be annotated with parameters,
- * you just need a single part with only the [Part.text][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part.text] field set.
+ * you just need a single part with only the
+ * [Part.text][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part.text]
+ * field set.
* If you want to annotate the training phrase, you must create multiple
* parts, where the fields of each part are populated in one of two ways:
* - `Part.text` is set to a part of the phrase that has no parameters.
@@ -2365,7 +2449,9 @@ public com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part.Builder getP
* Note: Do not forget to include whitespace at part boundaries, so the
* training phrase is well formatted when the parts are concatenated.
* If the training phrase does not need to be annotated with parameters,
- * you just need a single part with only the [Part.text][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part.text] field set.
+ * you just need a single part with only the
+ * [Part.text][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part.text]
+ * field set.
* If you want to annotate the training phrase, you must create multiple
* parts, where the fields of each part are populated in one of two ways:
* - `Part.text` is set to a part of the phrase that has no parameters.
@@ -2396,7 +2482,9 @@ public com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part.Builder getP
* Note: Do not forget to include whitespace at part boundaries, so the
* training phrase is well formatted when the parts are concatenated.
* If the training phrase does not need to be annotated with parameters,
- * you just need a single part with only the [Part.text][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part.text] field set.
+ * you just need a single part with only the
+ * [Part.text][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part.text]
+ * field set.
* If you want to annotate the training phrase, you must create multiple
* parts, where the fields of each part are populated in one of two ways:
* - `Part.text` is set to a part of the phrase that has no parameters.
@@ -2428,7 +2516,9 @@ public com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part.Builder getP
* Note: Do not forget to include whitespace at part boundaries, so the
* training phrase is well formatted when the parts are concatenated.
* If the training phrase does not need to be annotated with parameters,
- * you just need a single part with only the [Part.text][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part.text] field set.
+ * you just need a single part with only the
+ * [Part.text][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part.text]
+ * field set.
* If you want to annotate the training phrase, you must create multiple
* parts, where the fields of each part are populated in one of two ways:
* - `Part.text` is set to a part of the phrase that has no parameters.
@@ -2457,7 +2547,9 @@ public com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part.Builder getP
* Note: Do not forget to include whitespace at part boundaries, so the
* training phrase is well formatted when the parts are concatenated.
* If the training phrase does not need to be annotated with parameters,
- * you just need a single part with only the [Part.text][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part.text] field set.
+ * you just need a single part with only the
+ * [Part.text][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part.text]
+ * field set.
* If you want to annotate the training phrase, you must create multiple
* parts, where the fields of each part are populated in one of two ways:
* - `Part.text` is set to a part of the phrase that has no parameters.
@@ -2487,7 +2579,9 @@ public com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part.Builder addP
* Note: Do not forget to include whitespace at part boundaries, so the
* training phrase is well formatted when the parts are concatenated.
* If the training phrase does not need to be annotated with parameters,
- * you just need a single part with only the [Part.text][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part.text] field set.
+ * you just need a single part with only the
+ * [Part.text][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part.text]
+ * field set.
* If you want to annotate the training phrase, you must create multiple
* parts, where the fields of each part are populated in one of two ways:
* - `Part.text` is set to a part of the phrase that has no parameters.
@@ -2515,7 +2609,7 @@ public com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part.Builder addP
com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part,
com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part.Builder,
com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.PartOrBuilder>(
- parts_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
+ parts_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean());
parts_ = null;
}
return partsBuilder_;
@@ -2552,6 +2646,7 @@ public int getRepeatCount() {
public Builder setRepeatCount(int value) {
repeatCount_ = value;
+ bitField0_ |= 0x00000004;
onChanged();
return this;
}
@@ -2567,7 +2662,7 @@ public Builder setRepeatCount(int value) {
* @return This builder for chaining.
*/
public Builder clearRepeatCount() {
-
+ bitField0_ = (bitField0_ & ~0x00000004);
repeatCount_ = 0;
onChanged();
return this;
@@ -2647,8 +2742,9 @@ public interface ParameterOrBuilder
*
*
* Required. The unique identifier of the parameter. This field
- * is used by [training phrases][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase] to annotate their
- * [parts][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part].
+ * is used by [training
+ * phrases][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase] to annotate
+ * their [parts][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part].
*
*
* string id = 1 [(.google.api.field_behavior) = REQUIRED];
@@ -2661,8 +2757,9 @@ public interface ParameterOrBuilder
*
*
* Required. The unique identifier of the parameter. This field
- * is used by [training phrases][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase] to annotate their
- * [parts][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part].
+ * is used by [training
+ * phrases][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase] to annotate
+ * their [parts][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part].
*
*
* string id = 1 [(.google.api.field_behavior) = REQUIRED];
@@ -2731,8 +2828,8 @@ public interface ParameterOrBuilder
* redaction is enabled, the parameter content will be replaced by parameter
* name during logging.
* Note: the parameter content is subject to redaction if either parameter
- * level redaction or [entity type level redaction][google.cloud.dialogflow.cx.v3.EntityType.redact] is
- * enabled.
+ * level redaction or [entity type level
+ * redaction][google.cloud.dialogflow.cx.v3.EntityType.redact] is enabled.
*
*
* bool redact = 4;
@@ -2792,14 +2889,17 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
public static final int ID_FIELD_NUMBER = 1;
- private volatile java.lang.Object id_;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object id_ = "";
/**
*
*
*
* Required. The unique identifier of the parameter. This field
- * is used by [training phrases][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase] to annotate their
- * [parts][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part].
+ * is used by [training
+ * phrases][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase] to annotate
+ * their [parts][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part].
*
*
* string id = 1 [(.google.api.field_behavior) = REQUIRED];
@@ -2823,8 +2923,9 @@ public java.lang.String getId() {
*
*
* Required. The unique identifier of the parameter. This field
- * is used by [training phrases][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase] to annotate their
- * [parts][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part].
+ * is used by [training
+ * phrases][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase] to annotate
+ * their [parts][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part].
*
*
* string id = 1 [(.google.api.field_behavior) = REQUIRED];
@@ -2845,7 +2946,9 @@ public com.google.protobuf.ByteString getIdBytes() {
}
public static final int ENTITY_TYPE_FIELD_NUMBER = 2;
- private volatile java.lang.Object entityType_;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object entityType_ = "";
/**
*
*
@@ -2908,7 +3011,7 @@ public com.google.protobuf.ByteString getEntityTypeBytes() {
}
public static final int IS_LIST_FIELD_NUMBER = 3;
- private boolean isList_;
+ private boolean isList_ = false;
/**
*
*
@@ -2926,7 +3029,7 @@ public boolean getIsList() {
}
public static final int REDACT_FIELD_NUMBER = 4;
- private boolean redact_;
+ private boolean redact_ = false;
/**
*
*
@@ -2935,8 +3038,8 @@ public boolean getIsList() {
* redaction is enabled, the parameter content will be replaced by parameter
* name during logging.
* Note: the parameter content is subject to redaction if either parameter
- * level redaction or [entity type level redaction][google.cloud.dialogflow.cx.v3.EntityType.redact] is
- * enabled.
+ * level redaction or [entity type level
+ * redaction][google.cloud.dialogflow.cx.v3.EntityType.redact] is enabled.
*
*
* bool redact = 4;
@@ -3174,14 +3277,11 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
@java.lang.Override
public Builder clear() {
super.clear();
+ bitField0_ = 0;
id_ = "";
-
entityType_ = "";
-
isList_ = false;
-
redact_ = false;
-
return this;
}
@@ -3209,14 +3309,29 @@ public com.google.cloud.dialogflow.cx.v3.Intent.Parameter build() {
public com.google.cloud.dialogflow.cx.v3.Intent.Parameter buildPartial() {
com.google.cloud.dialogflow.cx.v3.Intent.Parameter result =
new com.google.cloud.dialogflow.cx.v3.Intent.Parameter(this);
- result.id_ = id_;
- result.entityType_ = entityType_;
- result.isList_ = isList_;
- result.redact_ = redact_;
+ if (bitField0_ != 0) {
+ buildPartial0(result);
+ }
onBuilt();
return result;
}
+ private void buildPartial0(com.google.cloud.dialogflow.cx.v3.Intent.Parameter result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.id_ = id_;
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.entityType_ = entityType_;
+ }
+ if (((from_bitField0_ & 0x00000004) != 0)) {
+ result.isList_ = isList_;
+ }
+ if (((from_bitField0_ & 0x00000008) != 0)) {
+ result.redact_ = redact_;
+ }
+ }
+
@java.lang.Override
public Builder clone() {
return super.clone();
@@ -3267,10 +3382,12 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.Intent.Parameter othe
return this;
if (!other.getId().isEmpty()) {
id_ = other.id_;
+ bitField0_ |= 0x00000001;
onChanged();
}
if (!other.getEntityType().isEmpty()) {
entityType_ = other.entityType_;
+ bitField0_ |= 0x00000002;
onChanged();
}
if (other.getIsList() != false) {
@@ -3308,25 +3425,25 @@ public Builder mergeFrom(
case 10:
{
id_ = input.readStringRequireUtf8();
-
+ bitField0_ |= 0x00000001;
break;
} // case 10
case 18:
{
entityType_ = input.readStringRequireUtf8();
-
+ bitField0_ |= 0x00000002;
break;
} // case 18
case 24:
{
isList_ = input.readBool();
-
+ bitField0_ |= 0x00000004;
break;
} // case 24
case 32:
{
redact_ = input.readBool();
-
+ bitField0_ |= 0x00000008;
break;
} // case 32
default:
@@ -3346,14 +3463,17 @@ public Builder mergeFrom(
return this;
}
+ private int bitField0_;
+
private java.lang.Object id_ = "";
/**
*
*
*
* Required. The unique identifier of the parameter. This field
- * is used by [training phrases][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase] to annotate their
- * [parts][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part].
+ * is used by [training
+ * phrases][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase] to annotate
+ * their [parts][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part].
*
*
* string id = 1 [(.google.api.field_behavior) = REQUIRED];
@@ -3376,8 +3496,9 @@ public java.lang.String getId() {
*
*
* Required. The unique identifier of the parameter. This field
- * is used by [training phrases][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase] to annotate their
- * [parts][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part].
+ * is used by [training
+ * phrases][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase] to annotate
+ * their [parts][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part].
*
*
* string id = 1 [(.google.api.field_behavior) = REQUIRED];
@@ -3400,8 +3521,9 @@ public com.google.protobuf.ByteString getIdBytes() {
*
*
* Required. The unique identifier of the parameter. This field
- * is used by [training phrases][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase] to annotate their
- * [parts][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part].
+ * is used by [training
+ * phrases][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase] to annotate
+ * their [parts][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part].
*
*
* string id = 1 [(.google.api.field_behavior) = REQUIRED];
@@ -3413,8 +3535,8 @@ public Builder setId(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
-
id_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -3423,8 +3545,9 @@ public Builder setId(java.lang.String value) {
*
*
* Required. The unique identifier of the parameter. This field
- * is used by [training phrases][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase] to annotate their
- * [parts][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part].
+ * is used by [training
+ * phrases][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase] to annotate
+ * their [parts][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part].
*
*
* string id = 1 [(.google.api.field_behavior) = REQUIRED];
@@ -3432,8 +3555,8 @@ public Builder setId(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearId() {
-
id_ = getDefaultInstance().getId();
+ bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
@@ -3442,8 +3565,9 @@ public Builder clearId() {
*
*
* Required. The unique identifier of the parameter. This field
- * is used by [training phrases][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase] to annotate their
- * [parts][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part].
+ * is used by [training
+ * phrases][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase] to annotate
+ * their [parts][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part].
*
*
* string id = 1 [(.google.api.field_behavior) = REQUIRED];
@@ -3456,8 +3580,8 @@ public Builder setIdBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
-
id_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -3544,8 +3668,8 @@ public Builder setEntityType(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
-
entityType_ = value;
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -3568,8 +3692,8 @@ public Builder setEntityType(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearEntityType() {
-
entityType_ = getDefaultInstance().getEntityType();
+ bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
@@ -3597,8 +3721,8 @@ public Builder setEntityTypeBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
-
entityType_ = value;
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -3634,6 +3758,7 @@ public boolean getIsList() {
public Builder setIsList(boolean value) {
isList_ = value;
+ bitField0_ |= 0x00000004;
onChanged();
return this;
}
@@ -3649,7 +3774,7 @@ public Builder setIsList(boolean value) {
* @return This builder for chaining.
*/
public Builder clearIsList() {
-
+ bitField0_ = (bitField0_ & ~0x00000004);
isList_ = false;
onChanged();
return this;
@@ -3664,8 +3789,8 @@ public Builder clearIsList() {
* redaction is enabled, the parameter content will be replaced by parameter
* name during logging.
* Note: the parameter content is subject to redaction if either parameter
- * level redaction or [entity type level redaction][google.cloud.dialogflow.cx.v3.EntityType.redact] is
- * enabled.
+ * level redaction or [entity type level
+ * redaction][google.cloud.dialogflow.cx.v3.EntityType.redact] is enabled.
*
*
* bool redact = 4;
@@ -3684,8 +3809,8 @@ public boolean getRedact() {
* redaction is enabled, the parameter content will be replaced by parameter
* name during logging.
* Note: the parameter content is subject to redaction if either parameter
- * level redaction or [entity type level redaction][google.cloud.dialogflow.cx.v3.EntityType.redact] is
- * enabled.
+ * level redaction or [entity type level
+ * redaction][google.cloud.dialogflow.cx.v3.EntityType.redact] is enabled.
*
*
* bool redact = 4;
@@ -3696,6 +3821,7 @@ public boolean getRedact() {
public Builder setRedact(boolean value) {
redact_ = value;
+ bitField0_ |= 0x00000008;
onChanged();
return this;
}
@@ -3707,8 +3833,8 @@ public Builder setRedact(boolean value) {
* redaction is enabled, the parameter content will be replaced by parameter
* name during logging.
* Note: the parameter content is subject to redaction if either parameter
- * level redaction or [entity type level redaction][google.cloud.dialogflow.cx.v3.EntityType.redact] is
- * enabled.
+ * level redaction or [entity type level
+ * redaction][google.cloud.dialogflow.cx.v3.EntityType.redact] is enabled.
*
*
* bool redact = 4;
@@ -3716,7 +3842,7 @@ public Builder setRedact(boolean value) {
* @return This builder for chaining.
*/
public Builder clearRedact() {
-
+ bitField0_ = (bitField0_ & ~0x00000008);
redact_ = false;
onChanged();
return this;
@@ -3787,13 +3913,18 @@ public com.google.cloud.dialogflow.cx.v3.Intent.Parameter getDefaultInstanceForT
}
public static final int NAME_FIELD_NUMBER = 1;
- private volatile java.lang.Object name_;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object name_ = "";
/**
*
*
*
* The unique identifier of the intent.
- * Required for the [Intents.UpdateIntent][google.cloud.dialogflow.cx.v3.Intents.UpdateIntent] method. [Intents.CreateIntent][google.cloud.dialogflow.cx.v3.Intents.CreateIntent]
+ * Required for the
+ * [Intents.UpdateIntent][google.cloud.dialogflow.cx.v3.Intents.UpdateIntent]
+ * method.
+ * [Intents.CreateIntent][google.cloud.dialogflow.cx.v3.Intents.CreateIntent]
* populates the name automatically.
* Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
* ID>/intents/<Intent ID>`.
@@ -3820,7 +3951,10 @@ public java.lang.String getName() {
*
*
* The unique identifier of the intent.
- * Required for the [Intents.UpdateIntent][google.cloud.dialogflow.cx.v3.Intents.UpdateIntent] method. [Intents.CreateIntent][google.cloud.dialogflow.cx.v3.Intents.CreateIntent]
+ * Required for the
+ * [Intents.UpdateIntent][google.cloud.dialogflow.cx.v3.Intents.UpdateIntent]
+ * method.
+ * [Intents.CreateIntent][google.cloud.dialogflow.cx.v3.Intents.CreateIntent]
* populates the name automatically.
* Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
* ID>/intents/<Intent ID>`.
@@ -3844,7 +3978,9 @@ public com.google.protobuf.ByteString getNameBytes() {
}
public static final int DISPLAY_NAME_FIELD_NUMBER = 2;
- private volatile java.lang.Object displayName_;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object displayName_ = "";
/**
*
*
@@ -3893,6 +4029,8 @@ public com.google.protobuf.ByteString getDisplayNameBytes() {
}
public static final int TRAINING_PHRASES_FIELD_NUMBER = 3;
+
+ @SuppressWarnings("serial")
private java.util.List trainingPhrases_;
/**
*
@@ -3974,6 +4112,8 @@ public com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase getTrainingPhrase
}
public static final int PARAMETERS_FIELD_NUMBER = 4;
+
+ @SuppressWarnings("serial")
private java.util.List parameters_;
/**
*
@@ -4044,7 +4184,7 @@ public com.google.cloud.dialogflow.cx.v3.Intent.ParameterOrBuilder getParameters
}
public static final int PRIORITY_FIELD_NUMBER = 5;
- private int priority_;
+ private int priority_ = 0;
/**
*
*
@@ -4068,7 +4208,7 @@ public int getPriority() {
}
public static final int IS_FALLBACK_FIELD_NUMBER = 6;
- private boolean isFallback_;
+ private boolean isFallback_ = false;
/**
*
*
@@ -4103,6 +4243,7 @@ private static final class LabelsDefaultEntryHolder {
"");
}
+ @SuppressWarnings("serial")
private com.google.protobuf.MapField labels_;
private com.google.protobuf.MapField internalGetLabels() {
@@ -4190,7 +4331,10 @@ public java.util.Map getLabelsMap() {
* map<string, string> labels = 7;
*/
@java.lang.Override
- public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) {
+ public /* nullable */ java.lang.String getLabelsOrDefault(
+ java.lang.String key,
+ /* nullable */
+ java.lang.String defaultValue) {
if (key == null) {
throw new NullPointerException("map key");
}
@@ -4229,7 +4373,9 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) {
}
public static final int DESCRIPTION_FIELD_NUMBER = 8;
- private volatile java.lang.Object description_;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object description_ = "";
/**
*
*
@@ -4573,31 +4719,27 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
@java.lang.Override
public Builder clear() {
super.clear();
+ bitField0_ = 0;
name_ = "";
-
displayName_ = "";
-
if (trainingPhrasesBuilder_ == null) {
trainingPhrases_ = java.util.Collections.emptyList();
} else {
trainingPhrases_ = null;
trainingPhrasesBuilder_.clear();
}
- bitField0_ = (bitField0_ & ~0x00000001);
+ bitField0_ = (bitField0_ & ~0x00000004);
if (parametersBuilder_ == null) {
parameters_ = java.util.Collections.emptyList();
} else {
parameters_ = null;
parametersBuilder_.clear();
}
- bitField0_ = (bitField0_ & ~0x00000002);
+ bitField0_ = (bitField0_ & ~0x00000008);
priority_ = 0;
-
isFallback_ = false;
-
internalGetMutableLabels().clear();
description_ = "";
-
return this;
}
@@ -4625,34 +4767,56 @@ public com.google.cloud.dialogflow.cx.v3.Intent build() {
public com.google.cloud.dialogflow.cx.v3.Intent buildPartial() {
com.google.cloud.dialogflow.cx.v3.Intent result =
new com.google.cloud.dialogflow.cx.v3.Intent(this);
- int from_bitField0_ = bitField0_;
- result.name_ = name_;
- result.displayName_ = displayName_;
+ buildPartialRepeatedFields(result);
+ if (bitField0_ != 0) {
+ buildPartial0(result);
+ }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartialRepeatedFields(com.google.cloud.dialogflow.cx.v3.Intent result) {
if (trainingPhrasesBuilder_ == null) {
- if (((bitField0_ & 0x00000001) != 0)) {
+ if (((bitField0_ & 0x00000004) != 0)) {
trainingPhrases_ = java.util.Collections.unmodifiableList(trainingPhrases_);
- bitField0_ = (bitField0_ & ~0x00000001);
+ bitField0_ = (bitField0_ & ~0x00000004);
}
result.trainingPhrases_ = trainingPhrases_;
} else {
result.trainingPhrases_ = trainingPhrasesBuilder_.build();
}
if (parametersBuilder_ == null) {
- if (((bitField0_ & 0x00000002) != 0)) {
+ if (((bitField0_ & 0x00000008) != 0)) {
parameters_ = java.util.Collections.unmodifiableList(parameters_);
- bitField0_ = (bitField0_ & ~0x00000002);
+ bitField0_ = (bitField0_ & ~0x00000008);
}
result.parameters_ = parameters_;
} else {
result.parameters_ = parametersBuilder_.build();
}
- result.priority_ = priority_;
- result.isFallback_ = isFallback_;
- result.labels_ = internalGetLabels();
- result.labels_.makeImmutable();
- result.description_ = description_;
- onBuilt();
- return result;
+ }
+
+ private void buildPartial0(com.google.cloud.dialogflow.cx.v3.Intent result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.name_ = name_;
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.displayName_ = displayName_;
+ }
+ if (((from_bitField0_ & 0x00000010) != 0)) {
+ result.priority_ = priority_;
+ }
+ if (((from_bitField0_ & 0x00000020) != 0)) {
+ result.isFallback_ = isFallback_;
+ }
+ if (((from_bitField0_ & 0x00000040) != 0)) {
+ result.labels_ = internalGetLabels();
+ result.labels_.makeImmutable();
+ }
+ if (((from_bitField0_ & 0x00000080) != 0)) {
+ result.description_ = description_;
+ }
}
@java.lang.Override
@@ -4702,17 +4866,19 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.Intent other) {
if (other == com.google.cloud.dialogflow.cx.v3.Intent.getDefaultInstance()) return this;
if (!other.getName().isEmpty()) {
name_ = other.name_;
+ bitField0_ |= 0x00000001;
onChanged();
}
if (!other.getDisplayName().isEmpty()) {
displayName_ = other.displayName_;
+ bitField0_ |= 0x00000002;
onChanged();
}
if (trainingPhrasesBuilder_ == null) {
if (!other.trainingPhrases_.isEmpty()) {
if (trainingPhrases_.isEmpty()) {
trainingPhrases_ = other.trainingPhrases_;
- bitField0_ = (bitField0_ & ~0x00000001);
+ bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensureTrainingPhrasesIsMutable();
trainingPhrases_.addAll(other.trainingPhrases_);
@@ -4725,7 +4891,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.Intent other) {
trainingPhrasesBuilder_.dispose();
trainingPhrasesBuilder_ = null;
trainingPhrases_ = other.trainingPhrases_;
- bitField0_ = (bitField0_ & ~0x00000001);
+ bitField0_ = (bitField0_ & ~0x00000004);
trainingPhrasesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
? getTrainingPhrasesFieldBuilder()
@@ -4739,7 +4905,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.Intent other) {
if (!other.parameters_.isEmpty()) {
if (parameters_.isEmpty()) {
parameters_ = other.parameters_;
- bitField0_ = (bitField0_ & ~0x00000002);
+ bitField0_ = (bitField0_ & ~0x00000008);
} else {
ensureParametersIsMutable();
parameters_.addAll(other.parameters_);
@@ -4752,7 +4918,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.Intent other) {
parametersBuilder_.dispose();
parametersBuilder_ = null;
parameters_ = other.parameters_;
- bitField0_ = (bitField0_ & ~0x00000002);
+ bitField0_ = (bitField0_ & ~0x00000008);
parametersBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
? getParametersFieldBuilder()
@@ -4769,8 +4935,10 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.Intent other) {
setIsFallback(other.getIsFallback());
}
internalGetMutableLabels().mergeFrom(other.internalGetLabels());
+ bitField0_ |= 0x00000040;
if (!other.getDescription().isEmpty()) {
description_ = other.description_;
+ bitField0_ |= 0x00000080;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
@@ -4802,13 +4970,13 @@ public Builder mergeFrom(
case 10:
{
name_ = input.readStringRequireUtf8();
-
+ bitField0_ |= 0x00000001;
break;
} // case 10
case 18:
{
displayName_ = input.readStringRequireUtf8();
-
+ bitField0_ |= 0x00000002;
break;
} // case 18
case 26:
@@ -4842,13 +5010,13 @@ public Builder mergeFrom(
case 40:
{
priority_ = input.readInt32();
-
+ bitField0_ |= 0x00000010;
break;
} // case 40
case 48:
{
isFallback_ = input.readBool();
-
+ bitField0_ |= 0x00000020;
break;
} // case 48
case 58:
@@ -4860,12 +5028,13 @@ public Builder mergeFrom(
internalGetMutableLabels()
.getMutableMap()
.put(labels__.getKey(), labels__.getValue());
+ bitField0_ |= 0x00000040;
break;
} // case 58
case 66:
{
description_ = input.readStringRequireUtf8();
-
+ bitField0_ |= 0x00000080;
break;
} // case 66
default:
@@ -4893,7 +5062,10 @@ public Builder mergeFrom(
*
*
* The unique identifier of the intent.
- * Required for the [Intents.UpdateIntent][google.cloud.dialogflow.cx.v3.Intents.UpdateIntent] method. [Intents.CreateIntent][google.cloud.dialogflow.cx.v3.Intents.CreateIntent]
+ * Required for the
+ * [Intents.UpdateIntent][google.cloud.dialogflow.cx.v3.Intents.UpdateIntent]
+ * method.
+ * [Intents.CreateIntent][google.cloud.dialogflow.cx.v3.Intents.CreateIntent]
* populates the name automatically.
* Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
* ID>/intents/<Intent ID>`.
@@ -4919,7 +5091,10 @@ public java.lang.String getName() {
*
*
* The unique identifier of the intent.
- * Required for the [Intents.UpdateIntent][google.cloud.dialogflow.cx.v3.Intents.UpdateIntent] method. [Intents.CreateIntent][google.cloud.dialogflow.cx.v3.Intents.CreateIntent]
+ * Required for the
+ * [Intents.UpdateIntent][google.cloud.dialogflow.cx.v3.Intents.UpdateIntent]
+ * method.
+ * [Intents.CreateIntent][google.cloud.dialogflow.cx.v3.Intents.CreateIntent]
* populates the name automatically.
* Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
* ID>/intents/<Intent ID>`.
@@ -4945,7 +5120,10 @@ public com.google.protobuf.ByteString getNameBytes() {
*
*
* The unique identifier of the intent.
- * Required for the [Intents.UpdateIntent][google.cloud.dialogflow.cx.v3.Intents.UpdateIntent] method. [Intents.CreateIntent][google.cloud.dialogflow.cx.v3.Intents.CreateIntent]
+ * Required for the
+ * [Intents.UpdateIntent][google.cloud.dialogflow.cx.v3.Intents.UpdateIntent]
+ * method.
+ * [Intents.CreateIntent][google.cloud.dialogflow.cx.v3.Intents.CreateIntent]
* populates the name automatically.
* Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
* ID>/intents/<Intent ID>`.
@@ -4960,8 +5138,8 @@ public Builder setName(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
-
name_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -4970,7 +5148,10 @@ public Builder setName(java.lang.String value) {
*
*
* The unique identifier of the intent.
- * Required for the [Intents.UpdateIntent][google.cloud.dialogflow.cx.v3.Intents.UpdateIntent] method. [Intents.CreateIntent][google.cloud.dialogflow.cx.v3.Intents.CreateIntent]
+ * Required for the
+ * [Intents.UpdateIntent][google.cloud.dialogflow.cx.v3.Intents.UpdateIntent]
+ * method.
+ * [Intents.CreateIntent][google.cloud.dialogflow.cx.v3.Intents.CreateIntent]
* populates the name automatically.
* Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
* ID>/intents/<Intent ID>`.
@@ -4981,8 +5162,8 @@ public Builder setName(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearName() {
-
name_ = getDefaultInstance().getName();
+ bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
@@ -4991,7 +5172,10 @@ public Builder clearName() {
*
*
* The unique identifier of the intent.
- * Required for the [Intents.UpdateIntent][google.cloud.dialogflow.cx.v3.Intents.UpdateIntent] method. [Intents.CreateIntent][google.cloud.dialogflow.cx.v3.Intents.CreateIntent]
+ * Required for the
+ * [Intents.UpdateIntent][google.cloud.dialogflow.cx.v3.Intents.UpdateIntent]
+ * method.
+ * [Intents.CreateIntent][google.cloud.dialogflow.cx.v3.Intents.CreateIntent]
* populates the name automatically.
* Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
* ID>/intents/<Intent ID>`.
@@ -5007,8 +5191,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
-
name_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -5074,8 +5258,8 @@ public Builder setDisplayName(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
-
displayName_ = value;
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -5091,8 +5275,8 @@ public Builder setDisplayName(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearDisplayName() {
-
displayName_ = getDefaultInstance().getDisplayName();
+ bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
@@ -5113,8 +5297,8 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
-
displayName_ = value;
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -5123,11 +5307,11 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) {
trainingPhrases_ = java.util.Collections.emptyList();
private void ensureTrainingPhrasesIsMutable() {
- if (!((bitField0_ & 0x00000001) != 0)) {
+ if (!((bitField0_ & 0x00000004) != 0)) {
trainingPhrases_ =
new java.util.ArrayList(
trainingPhrases_);
- bitField0_ |= 0x00000001;
+ bitField0_ |= 0x00000004;
}
}
@@ -5372,7 +5556,7 @@ public Builder addAllTrainingPhrases(
public Builder clearTrainingPhrases() {
if (trainingPhrasesBuilder_ == null) {
trainingPhrases_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000001);
+ bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
} else {
trainingPhrasesBuilder_.clear();
@@ -5515,7 +5699,7 @@ public Builder removeTrainingPhrases(int index) {
com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Builder,
com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhraseOrBuilder>(
trainingPhrases_,
- ((bitField0_ & 0x00000001) != 0),
+ ((bitField0_ & 0x00000004) != 0),
getParentForChildren(),
isClean());
trainingPhrases_ = null;
@@ -5527,11 +5711,11 @@ public Builder removeTrainingPhrases(int index) {
java.util.Collections.emptyList();
private void ensureParametersIsMutable() {
- if (!((bitField0_ & 0x00000002) != 0)) {
+ if (!((bitField0_ & 0x00000008) != 0)) {
parameters_ =
new java.util.ArrayList(
parameters_);
- bitField0_ |= 0x00000002;
+ bitField0_ |= 0x00000008;
}
}
@@ -5749,7 +5933,7 @@ public Builder addAllParameters(
public Builder clearParameters() {
if (parametersBuilder_ == null) {
parameters_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000002);
+ bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
} else {
parametersBuilder_.clear();
@@ -5875,7 +6059,7 @@ public com.google.cloud.dialogflow.cx.v3.Intent.Parameter.Builder addParametersB
com.google.cloud.dialogflow.cx.v3.Intent.Parameter,
com.google.cloud.dialogflow.cx.v3.Intent.Parameter.Builder,
com.google.cloud.dialogflow.cx.v3.Intent.ParameterOrBuilder>(
- parameters_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean());
+ parameters_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean());
parameters_ = null;
}
return parametersBuilder_;
@@ -5924,6 +6108,7 @@ public int getPriority() {
public Builder setPriority(int value) {
priority_ = value;
+ bitField0_ |= 0x00000010;
onChanged();
return this;
}
@@ -5945,7 +6130,7 @@ public Builder setPriority(int value) {
* @return This builder for chaining.
*/
public Builder clearPriority() {
-
+ bitField0_ = (bitField0_ & ~0x00000010);
priority_ = 0;
onChanged();
return this;
@@ -5992,6 +6177,7 @@ public boolean getIsFallback() {
public Builder setIsFallback(boolean value) {
isFallback_ = value;
+ bitField0_ |= 0x00000020;
onChanged();
return this;
}
@@ -6012,7 +6198,7 @@ public Builder setIsFallback(boolean value) {
* @return This builder for chaining.
*/
public Builder clearIsFallback() {
-
+ bitField0_ = (bitField0_ & ~0x00000020);
isFallback_ = false;
onChanged();
return this;
@@ -6029,14 +6215,14 @@ private com.google.protobuf.MapField interna
private com.google.protobuf.MapField
internalGetMutableLabels() {
- onChanged();
- ;
if (labels_ == null) {
labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry);
}
if (!labels_.isMutable()) {
labels_ = labels_.copy();
}
+ bitField0_ |= 0x00000040;
+ onChanged();
return labels_;
}
@@ -6118,8 +6304,10 @@ public java.util.Map getLabelsMap() {
* map<string, string> labels = 7;
*/
@java.lang.Override
- public java.lang.String getLabelsOrDefault(
- java.lang.String key, java.lang.String defaultValue) {
+ public /* nullable */ java.lang.String getLabelsOrDefault(
+ java.lang.String key,
+ /* nullable */
+ java.lang.String defaultValue) {
if (key == null) {
throw new NullPointerException("map key");
}
@@ -6158,6 +6346,7 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) {
}
public Builder clearLabels() {
+ bitField0_ = (bitField0_ & ~0x00000040);
internalGetMutableLabels().getMutableMap().clear();
return this;
}
@@ -6190,6 +6379,7 @@ public Builder removeLabels(java.lang.String key) {
/** Use alternate mutation accessors instead. */
@java.lang.Deprecated
public java.util.Map getMutableLabels() {
+ bitField0_ |= 0x00000040;
return internalGetMutableLabels().getMutableMap();
}
/**
@@ -6218,8 +6408,8 @@ public Builder putLabels(java.lang.String key, java.lang.String value) {
if (value == null) {
throw new NullPointerException("map value");
}
-
internalGetMutableLabels().getMutableMap().put(key, value);
+ bitField0_ |= 0x00000040;
return this;
}
/**
@@ -6243,6 +6433,7 @@ public Builder putLabels(java.lang.String key, java.lang.String value) {
*/
public Builder putAllLabels(java.util.Map values) {
internalGetMutableLabels().getMutableMap().putAll(values);
+ bitField0_ |= 0x00000040;
return this;
}
@@ -6310,8 +6501,8 @@ public Builder setDescription(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
-
description_ = value;
+ bitField0_ |= 0x00000080;
onChanged();
return this;
}
@@ -6328,8 +6519,8 @@ public Builder setDescription(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearDescription() {
-
description_ = getDefaultInstance().getDescription();
+ bitField0_ = (bitField0_ & ~0x00000080);
onChanged();
return this;
}
@@ -6351,8 +6542,8 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
-
description_ = value;
+ bitField0_ |= 0x00000080;
onChanged();
return this;
}
diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/IntentCoverage.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/IntentCoverage.java
index 127ecf74a60c..09df66b9ac49 100644
--- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/IntentCoverage.java
+++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/IntentCoverage.java
@@ -162,7 +162,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
public static final int INTENT_FIELD_NUMBER = 1;
- private volatile java.lang.Object intent_;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object intent_ = "";
/**
*
*
@@ -211,7 +213,7 @@ public com.google.protobuf.ByteString getIntentBytes() {
}
public static final int COVERED_FIELD_NUMBER = 2;
- private boolean covered_;
+ private boolean covered_ = false;
/**
*
*
@@ -438,10 +440,9 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
@java.lang.Override
public Builder clear() {
super.clear();
+ bitField0_ = 0;
intent_ = "";
-
covered_ = false;
-
return this;
}
@@ -469,12 +470,23 @@ public com.google.cloud.dialogflow.cx.v3.IntentCoverage.Intent build() {
public com.google.cloud.dialogflow.cx.v3.IntentCoverage.Intent buildPartial() {
com.google.cloud.dialogflow.cx.v3.IntentCoverage.Intent result =
new com.google.cloud.dialogflow.cx.v3.IntentCoverage.Intent(this);
- result.intent_ = intent_;
- result.covered_ = covered_;
+ if (bitField0_ != 0) {
+ buildPartial0(result);
+ }
onBuilt();
return result;
}
+ private void buildPartial0(com.google.cloud.dialogflow.cx.v3.IntentCoverage.Intent result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.intent_ = intent_;
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.covered_ = covered_;
+ }
+ }
+
@java.lang.Override
public Builder clone() {
return super.clone();
@@ -525,6 +537,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.IntentCoverage.Intent
return this;
if (!other.getIntent().isEmpty()) {
intent_ = other.intent_;
+ bitField0_ |= 0x00000001;
onChanged();
}
if (other.getCovered() != false) {
@@ -559,13 +572,13 @@ public Builder mergeFrom(
case 10:
{
intent_ = input.readStringRequireUtf8();
-
+ bitField0_ |= 0x00000001;
break;
} // case 10
case 16:
{
covered_ = input.readBool();
-
+ bitField0_ |= 0x00000002;
break;
} // case 16
default:
@@ -585,6 +598,8 @@ public Builder mergeFrom(
return this;
}
+ private int bitField0_;
+
private java.lang.Object intent_ = "";
/**
*
@@ -646,8 +661,8 @@ public Builder setIntent(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
-
intent_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -663,8 +678,8 @@ public Builder setIntent(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearIntent() {
-
intent_ = getDefaultInstance().getIntent();
+ bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
@@ -685,8 +700,8 @@ public Builder setIntentBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
-
intent_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -724,6 +739,7 @@ public boolean getCovered() {
public Builder setCovered(boolean value) {
covered_ = value;
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -740,7 +756,7 @@ public Builder setCovered(boolean value) {
* @return This builder for chaining.
*/
public Builder clearCovered() {
-
+ bitField0_ = (bitField0_ & ~0x00000002);
covered_ = false;
onChanged();
return this;
@@ -811,6 +827,8 @@ public com.google.cloud.dialogflow.cx.v3.IntentCoverage.Intent getDefaultInstanc
}
public static final int INTENTS_FIELD_NUMBER = 1;
+
+ @SuppressWarnings("serial")
private java.util.List intents_;
/**
*
@@ -881,7 +899,7 @@ public com.google.cloud.dialogflow.cx.v3.IntentCoverage.IntentOrBuilder getInten
}
public static final int COVERAGE_SCORE_FIELD_NUMBER = 2;
- private float coverageScore_;
+ private float coverageScore_ = 0F;
/**
*
*
@@ -1108,6 +1126,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
@java.lang.Override
public Builder clear() {
super.clear();
+ bitField0_ = 0;
if (intentsBuilder_ == null) {
intents_ = java.util.Collections.emptyList();
} else {
@@ -1116,7 +1135,6 @@ public Builder clear() {
}
bitField0_ = (bitField0_ & ~0x00000001);
coverageScore_ = 0F;
-
return this;
}
@@ -1144,7 +1162,16 @@ public com.google.cloud.dialogflow.cx.v3.IntentCoverage build() {
public com.google.cloud.dialogflow.cx.v3.IntentCoverage buildPartial() {
com.google.cloud.dialogflow.cx.v3.IntentCoverage result =
new com.google.cloud.dialogflow.cx.v3.IntentCoverage(this);
- int from_bitField0_ = bitField0_;
+ buildPartialRepeatedFields(result);
+ if (bitField0_ != 0) {
+ buildPartial0(result);
+ }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartialRepeatedFields(
+ com.google.cloud.dialogflow.cx.v3.IntentCoverage result) {
if (intentsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
intents_ = java.util.Collections.unmodifiableList(intents_);
@@ -1154,9 +1181,13 @@ public com.google.cloud.dialogflow.cx.v3.IntentCoverage buildPartial() {
} else {
result.intents_ = intentsBuilder_.build();
}
- result.coverageScore_ = coverageScore_;
- onBuilt();
- return result;
+ }
+
+ private void buildPartial0(com.google.cloud.dialogflow.cx.v3.IntentCoverage result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.coverageScore_ = coverageScore_;
+ }
}
@java.lang.Override
@@ -1278,7 +1309,7 @@ public Builder mergeFrom(
case 21:
{
coverageScore_ = input.readFloat();
-
+ bitField0_ |= 0x00000002;
break;
} // case 21
default:
@@ -1694,6 +1725,7 @@ public float getCoverageScore() {
public Builder setCoverageScore(float value) {
coverageScore_ = value;
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -1709,7 +1741,7 @@ public Builder setCoverageScore(float value) {
* @return This builder for chaining.
*/
public Builder clearCoverageScore() {
-
+ bitField0_ = (bitField0_ & ~0x00000002);
coverageScore_ = 0F;
onChanged();
return this;
diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/IntentInput.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/IntentInput.java
index 99087e255c1e..029125d4ecf4 100644
--- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/IntentInput.java
+++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/IntentInput.java
@@ -69,7 +69,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
public static final int INTENT_FIELD_NUMBER = 1;
- private volatile java.lang.Object intent_;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object intent_ = "";
/**
*
*
@@ -323,8 +325,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
@java.lang.Override
public Builder clear() {
super.clear();
+ bitField0_ = 0;
intent_ = "";
-
return this;
}
@@ -352,11 +354,20 @@ public com.google.cloud.dialogflow.cx.v3.IntentInput build() {
public com.google.cloud.dialogflow.cx.v3.IntentInput buildPartial() {
com.google.cloud.dialogflow.cx.v3.IntentInput result =
new com.google.cloud.dialogflow.cx.v3.IntentInput(this);
- result.intent_ = intent_;
+ if (bitField0_ != 0) {
+ buildPartial0(result);
+ }
onBuilt();
return result;
}
+ private void buildPartial0(com.google.cloud.dialogflow.cx.v3.IntentInput result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.intent_ = intent_;
+ }
+ }
+
@java.lang.Override
public Builder clone() {
return super.clone();
@@ -404,6 +415,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.IntentInput other) {
if (other == com.google.cloud.dialogflow.cx.v3.IntentInput.getDefaultInstance()) return this;
if (!other.getIntent().isEmpty()) {
intent_ = other.intent_;
+ bitField0_ |= 0x00000001;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
@@ -435,7 +447,7 @@ public Builder mergeFrom(
case 10:
{
intent_ = input.readStringRequireUtf8();
-
+ bitField0_ |= 0x00000001;
break;
} // case 10
default:
@@ -455,6 +467,8 @@ public Builder mergeFrom(
return this;
}
+ private int bitField0_;
+
private java.lang.Object intent_ = "";
/**
*
@@ -528,8 +542,8 @@ public Builder setIntent(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
-
intent_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -549,8 +563,8 @@ public Builder setIntent(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearIntent() {
-
intent_ = getDefaultInstance().getIntent();
+ bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
@@ -575,8 +589,8 @@ public Builder setIntentBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
-
intent_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/IntentOrBuilder.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/IntentOrBuilder.java
index f5a8612ea97c..4b9c77d83123 100644
--- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/IntentOrBuilder.java
+++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/IntentOrBuilder.java
@@ -28,7 +28,10 @@ public interface IntentOrBuilder
*
*
* The unique identifier of the intent.
- * Required for the [Intents.UpdateIntent][google.cloud.dialogflow.cx.v3.Intents.UpdateIntent] method. [Intents.CreateIntent][google.cloud.dialogflow.cx.v3.Intents.CreateIntent]
+ * Required for the
+ * [Intents.UpdateIntent][google.cloud.dialogflow.cx.v3.Intents.UpdateIntent]
+ * method.
+ * [Intents.CreateIntent][google.cloud.dialogflow.cx.v3.Intents.CreateIntent]
* populates the name automatically.
* Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
* ID>/intents/<Intent ID>`.
@@ -44,7 +47,10 @@ public interface IntentOrBuilder
*
*
* The unique identifier of the intent.
- * Required for the [Intents.UpdateIntent][google.cloud.dialogflow.cx.v3.Intents.UpdateIntent] method. [Intents.CreateIntent][google.cloud.dialogflow.cx.v3.Intents.CreateIntent]
+ * Required for the
+ * [Intents.UpdateIntent][google.cloud.dialogflow.cx.v3.Intents.UpdateIntent]
+ * method.
+ * [Intents.CreateIntent][google.cloud.dialogflow.cx.v3.Intents.CreateIntent]
* populates the name automatically.
* Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
* ID>/intents/<Intent ID>`.
@@ -315,7 +321,6 @@ com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhraseOrBuilder getTrainingPhra
*
* map<string, string> labels = 7;
*/
-
/* nullable */
java.lang.String getLabelsOrDefault(
java.lang.String key,
diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/IntentProto.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/IntentProto.java
index 1cd23b219e7e..5ef987da0cab 100644
--- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/IntentProto.java
+++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/IntentProto.java
@@ -155,12 +155,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\332A\004name\032x\312A\031dialogflow.googleapis.com\322AY"
+ "https://www.googleapis.com/auth/cloud-pl"
+ "atform,https://www.googleapis.com/auth/d"
- + "ialogflowB\277\001\n!com.google.cloud.dialogflo"
- + "w.cx.v3B\013IntentProtoP\001Z?google.golang.or"
- + "g/genproto/googleapis/cloud/dialogflow/c"
- + "x/v3;cx\370\001\001\242\002\002DF\252\002\035Google.Cloud.Dialogflo"
- + "w.Cx.V3\352\002!Google::Cloud::Dialogflow::CX:"
- + ":V3b\006proto3"
+ + "ialogflowB\261\001\n!com.google.cloud.dialogflo"
+ + "w.cx.v3B\013IntentProtoP\001Z1cloud.google.com"
+ + "/go/dialogflow/cx/apiv3/cxpb;cxpb\370\001\001\242\002\002D"
+ + "F\252\002\035Google.Cloud.Dialogflow.Cx.V3\352\002!Goog"
+ + "le::Cloud::Dialogflow::CX::V3b\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListAgentsRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListAgentsRequest.java
index 5d69891eb724..fa2ea915ff4f 100644
--- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListAgentsRequest.java
+++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListAgentsRequest.java
@@ -22,7 +22,8 @@
*
*
*
- * The request message for [Agents.ListAgents][google.cloud.dialogflow.cx.v3.Agents.ListAgents].
+ * The request message for
+ * [Agents.ListAgents][google.cloud.dialogflow.cx.v3.Agents.ListAgents].
*
*
* Protobuf type {@code google.cloud.dialogflow.cx.v3.ListAgentsRequest}
@@ -69,7 +70,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
public static final int PARENT_FIELD_NUMBER = 1;
- private volatile java.lang.Object parent_;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object parent_ = "";
/**
*
*
@@ -124,7 +127,7 @@ public com.google.protobuf.ByteString getParentBytes() {
}
public static final int PAGE_SIZE_FIELD_NUMBER = 2;
- private int pageSize_;
+ private int pageSize_ = 0;
/**
*
*
@@ -143,7 +146,9 @@ public int getPageSize() {
}
public static final int PAGE_TOKEN_FIELD_NUMBER = 3;
- private volatile java.lang.Object pageToken_;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object pageToken_ = "";
/**
*
*
@@ -372,7 +377,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
*
*
*
- * The request message for [Agents.ListAgents][google.cloud.dialogflow.cx.v3.Agents.ListAgents].
+ * The request message for
+ * [Agents.ListAgents][google.cloud.dialogflow.cx.v3.Agents.ListAgents].
*
*
* Protobuf type {@code google.cloud.dialogflow.cx.v3.ListAgentsRequest}
@@ -406,12 +412,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
@java.lang.Override
public Builder clear() {
super.clear();
+ bitField0_ = 0;
parent_ = "";
-
pageSize_ = 0;
-
pageToken_ = "";
-
return this;
}
@@ -439,13 +443,26 @@ public com.google.cloud.dialogflow.cx.v3.ListAgentsRequest build() {
public com.google.cloud.dialogflow.cx.v3.ListAgentsRequest buildPartial() {
com.google.cloud.dialogflow.cx.v3.ListAgentsRequest result =
new com.google.cloud.dialogflow.cx.v3.ListAgentsRequest(this);
- result.parent_ = parent_;
- result.pageSize_ = pageSize_;
- result.pageToken_ = pageToken_;
+ if (bitField0_ != 0) {
+ buildPartial0(result);
+ }
onBuilt();
return result;
}
+ private void buildPartial0(com.google.cloud.dialogflow.cx.v3.ListAgentsRequest result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.parent_ = parent_;
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.pageSize_ = pageSize_;
+ }
+ if (((from_bitField0_ & 0x00000004) != 0)) {
+ result.pageToken_ = pageToken_;
+ }
+ }
+
@java.lang.Override
public Builder clone() {
return super.clone();
@@ -494,6 +511,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.ListAgentsRequest oth
return this;
if (!other.getParent().isEmpty()) {
parent_ = other.parent_;
+ bitField0_ |= 0x00000001;
onChanged();
}
if (other.getPageSize() != 0) {
@@ -501,6 +519,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.ListAgentsRequest oth
}
if (!other.getPageToken().isEmpty()) {
pageToken_ = other.pageToken_;
+ bitField0_ |= 0x00000004;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
@@ -532,19 +551,19 @@ public Builder mergeFrom(
case 10:
{
parent_ = input.readStringRequireUtf8();
-
+ bitField0_ |= 0x00000001;
break;
} // case 10
case 16:
{
pageSize_ = input.readInt32();
-
+ bitField0_ |= 0x00000002;
break;
} // case 16
case 26:
{
pageToken_ = input.readStringRequireUtf8();
-
+ bitField0_ |= 0x00000004;
break;
} // case 26
default:
@@ -564,6 +583,8 @@ public Builder mergeFrom(
return this;
}
+ private int bitField0_;
+
private java.lang.Object parent_ = "";
/**
*
@@ -634,8 +655,8 @@ public Builder setParent(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
-
parent_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -654,8 +675,8 @@ public Builder setParent(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearParent() {
-
parent_ = getDefaultInstance().getParent();
+ bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
@@ -679,8 +700,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
-
parent_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -718,6 +739,7 @@ public int getPageSize() {
public Builder setPageSize(int value) {
pageSize_ = value;
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -734,7 +756,7 @@ public Builder setPageSize(int value) {
* @return This builder for chaining.
*/
public Builder clearPageSize() {
-
+ bitField0_ = (bitField0_ & ~0x00000002);
pageSize_ = 0;
onChanged();
return this;
@@ -801,8 +823,8 @@ public Builder setPageToken(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
-
pageToken_ = value;
+ bitField0_ |= 0x00000004;
onChanged();
return this;
}
@@ -818,8 +840,8 @@ public Builder setPageToken(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearPageToken() {
-
pageToken_ = getDefaultInstance().getPageToken();
+ bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
@@ -840,8 +862,8 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
-
pageToken_ = value;
+ bitField0_ |= 0x00000004;
onChanged();
return this;
}
diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListAgentsResponse.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListAgentsResponse.java
index 435a3d65af8b..6096e6cb2f0f 100644
--- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListAgentsResponse.java
+++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListAgentsResponse.java
@@ -22,7 +22,8 @@
*
*
*
- * The response message for [Agents.ListAgents][google.cloud.dialogflow.cx.v3.Agents.ListAgents].
+ * The response message for
+ * [Agents.ListAgents][google.cloud.dialogflow.cx.v3.Agents.ListAgents].
*
*
* Protobuf type {@code google.cloud.dialogflow.cx.v3.ListAgentsResponse}
@@ -69,6 +70,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
public static final int AGENTS_FIELD_NUMBER = 1;
+
+ @SuppressWarnings("serial")
private java.util.List agents_;
/**
*
@@ -143,7 +146,9 @@ public com.google.cloud.dialogflow.cx.v3.AgentOrBuilder getAgentsOrBuilder(int i
}
public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2;
- private volatile java.lang.Object nextPageToken_;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object nextPageToken_ = "";
/**
*
*
@@ -367,7 +372,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
*
*
*
- * The response message for [Agents.ListAgents][google.cloud.dialogflow.cx.v3.Agents.ListAgents].
+ * The response message for
+ * [Agents.ListAgents][google.cloud.dialogflow.cx.v3.Agents.ListAgents].
*
*
* Protobuf type {@code google.cloud.dialogflow.cx.v3.ListAgentsResponse}
@@ -401,6 +407,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
@java.lang.Override
public Builder clear() {
super.clear();
+ bitField0_ = 0;
if (agentsBuilder_ == null) {
agents_ = java.util.Collections.emptyList();
} else {
@@ -409,7 +416,6 @@ public Builder clear() {
}
bitField0_ = (bitField0_ & ~0x00000001);
nextPageToken_ = "";
-
return this;
}
@@ -437,7 +443,16 @@ public com.google.cloud.dialogflow.cx.v3.ListAgentsResponse build() {
public com.google.cloud.dialogflow.cx.v3.ListAgentsResponse buildPartial() {
com.google.cloud.dialogflow.cx.v3.ListAgentsResponse result =
new com.google.cloud.dialogflow.cx.v3.ListAgentsResponse(this);
- int from_bitField0_ = bitField0_;
+ buildPartialRepeatedFields(result);
+ if (bitField0_ != 0) {
+ buildPartial0(result);
+ }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartialRepeatedFields(
+ com.google.cloud.dialogflow.cx.v3.ListAgentsResponse result) {
if (agentsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
agents_ = java.util.Collections.unmodifiableList(agents_);
@@ -447,9 +462,13 @@ public com.google.cloud.dialogflow.cx.v3.ListAgentsResponse buildPartial() {
} else {
result.agents_ = agentsBuilder_.build();
}
- result.nextPageToken_ = nextPageToken_;
- onBuilt();
- return result;
+ }
+
+ private void buildPartial0(com.google.cloud.dialogflow.cx.v3.ListAgentsResponse result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.nextPageToken_ = nextPageToken_;
+ }
}
@java.lang.Override
@@ -527,6 +546,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.ListAgentsResponse ot
}
if (!other.getNextPageToken().isEmpty()) {
nextPageToken_ = other.nextPageToken_;
+ bitField0_ |= 0x00000002;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
@@ -571,7 +591,7 @@ public Builder mergeFrom(
case 18:
{
nextPageToken_ = input.readStringRequireUtf8();
-
+ bitField0_ |= 0x00000002;
break;
} // case 18
default:
@@ -1023,8 +1043,8 @@ public Builder setNextPageToken(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
-
nextPageToken_ = value;
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -1041,8 +1061,8 @@ public Builder setNextPageToken(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearNextPageToken() {
-
nextPageToken_ = getDefaultInstance().getNextPageToken();
+ bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
@@ -1064,8 +1084,8 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
-
nextPageToken_ = value;
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListChangelogsRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListChangelogsRequest.java
index c56689ca9cf2..2680cadcb531 100644
--- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListChangelogsRequest.java
+++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListChangelogsRequest.java
@@ -22,7 +22,8 @@
*
*
*
- * The request message for [Changelogs.ListChangelogs][google.cloud.dialogflow.cx.v3.Changelogs.ListChangelogs].
+ * The request message for
+ * [Changelogs.ListChangelogs][google.cloud.dialogflow.cx.v3.Changelogs.ListChangelogs].
*
*
* Protobuf type {@code google.cloud.dialogflow.cx.v3.ListChangelogsRequest}
@@ -70,7 +71,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
public static final int PARENT_FIELD_NUMBER = 1;
- private volatile java.lang.Object parent_;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object parent_ = "";
/**
*
*
@@ -125,7 +128,9 @@ public com.google.protobuf.ByteString getParentBytes() {
}
public static final int FILTER_FIELD_NUMBER = 2;
- private volatile java.lang.Object filter_;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object filter_ = "";
/**
*
*
@@ -212,7 +217,7 @@ public com.google.protobuf.ByteString getFilterBytes() {
}
public static final int PAGE_SIZE_FIELD_NUMBER = 3;
- private int pageSize_;
+ private int pageSize_ = 0;
/**
*
*
@@ -231,7 +236,9 @@ public int getPageSize() {
}
public static final int PAGE_TOKEN_FIELD_NUMBER = 4;
- private volatile java.lang.Object pageToken_;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object pageToken_ = "";
/**
*
*
@@ -470,7 +477,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
*
*
*
- * The request message for [Changelogs.ListChangelogs][google.cloud.dialogflow.cx.v3.Changelogs.ListChangelogs].
+ * The request message for
+ * [Changelogs.ListChangelogs][google.cloud.dialogflow.cx.v3.Changelogs.ListChangelogs].
*
*
* Protobuf type {@code google.cloud.dialogflow.cx.v3.ListChangelogsRequest}
@@ -504,14 +512,11 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
@java.lang.Override
public Builder clear() {
super.clear();
+ bitField0_ = 0;
parent_ = "";
-
filter_ = "";
-
pageSize_ = 0;
-
pageToken_ = "";
-
return this;
}
@@ -539,14 +544,29 @@ public com.google.cloud.dialogflow.cx.v3.ListChangelogsRequest build() {
public com.google.cloud.dialogflow.cx.v3.ListChangelogsRequest buildPartial() {
com.google.cloud.dialogflow.cx.v3.ListChangelogsRequest result =
new com.google.cloud.dialogflow.cx.v3.ListChangelogsRequest(this);
- result.parent_ = parent_;
- result.filter_ = filter_;
- result.pageSize_ = pageSize_;
- result.pageToken_ = pageToken_;
+ if (bitField0_ != 0) {
+ buildPartial0(result);
+ }
onBuilt();
return result;
}
+ private void buildPartial0(com.google.cloud.dialogflow.cx.v3.ListChangelogsRequest result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.parent_ = parent_;
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.filter_ = filter_;
+ }
+ if (((from_bitField0_ & 0x00000004) != 0)) {
+ result.pageSize_ = pageSize_;
+ }
+ if (((from_bitField0_ & 0x00000008) != 0)) {
+ result.pageToken_ = pageToken_;
+ }
+ }
+
@java.lang.Override
public Builder clone() {
return super.clone();
@@ -595,10 +615,12 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.ListChangelogsRequest
return this;
if (!other.getParent().isEmpty()) {
parent_ = other.parent_;
+ bitField0_ |= 0x00000001;
onChanged();
}
if (!other.getFilter().isEmpty()) {
filter_ = other.filter_;
+ bitField0_ |= 0x00000002;
onChanged();
}
if (other.getPageSize() != 0) {
@@ -606,6 +628,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.ListChangelogsRequest
}
if (!other.getPageToken().isEmpty()) {
pageToken_ = other.pageToken_;
+ bitField0_ |= 0x00000008;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
@@ -637,25 +660,25 @@ public Builder mergeFrom(
case 10:
{
parent_ = input.readStringRequireUtf8();
-
+ bitField0_ |= 0x00000001;
break;
} // case 10
case 18:
{
filter_ = input.readStringRequireUtf8();
-
+ bitField0_ |= 0x00000002;
break;
} // case 18
case 24:
{
pageSize_ = input.readInt32();
-
+ bitField0_ |= 0x00000004;
break;
} // case 24
case 34:
{
pageToken_ = input.readStringRequireUtf8();
-
+ bitField0_ |= 0x00000008;
break;
} // case 34
default:
@@ -675,6 +698,8 @@ public Builder mergeFrom(
return this;
}
+ private int bitField0_;
+
private java.lang.Object parent_ = "";
/**
*
@@ -745,8 +770,8 @@ public Builder setParent(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
-
parent_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -765,8 +790,8 @@ public Builder setParent(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearParent() {
-
parent_ = getDefaultInstance().getParent();
+ bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
@@ -790,8 +815,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
-
parent_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -914,8 +939,8 @@ public Builder setFilter(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
-
filter_ = value;
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -950,8 +975,8 @@ public Builder setFilter(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearFilter() {
-
filter_ = getDefaultInstance().getFilter();
+ bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
@@ -991,8 +1016,8 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
-
filter_ = value;
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -1030,6 +1055,7 @@ public int getPageSize() {
public Builder setPageSize(int value) {
pageSize_ = value;
+ bitField0_ |= 0x00000004;
onChanged();
return this;
}
@@ -1046,7 +1072,7 @@ public Builder setPageSize(int value) {
* @return This builder for chaining.
*/
public Builder clearPageSize() {
-
+ bitField0_ = (bitField0_ & ~0x00000004);
pageSize_ = 0;
onChanged();
return this;
@@ -1113,8 +1139,8 @@ public Builder setPageToken(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
-
pageToken_ = value;
+ bitField0_ |= 0x00000008;
onChanged();
return this;
}
@@ -1130,8 +1156,8 @@ public Builder setPageToken(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearPageToken() {
-
pageToken_ = getDefaultInstance().getPageToken();
+ bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
return this;
}
@@ -1152,8 +1178,8 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
-
pageToken_ = value;
+ bitField0_ |= 0x00000008;
onChanged();
return this;
}
diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListChangelogsResponse.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListChangelogsResponse.java
index db2fdc13ce85..f4d69842cc80 100644
--- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListChangelogsResponse.java
+++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListChangelogsResponse.java
@@ -22,7 +22,8 @@
*
*
*
- * The response message for [Changelogs.ListChangelogs][google.cloud.dialogflow.cx.v3.Changelogs.ListChangelogs].
+ * The response message for
+ * [Changelogs.ListChangelogs][google.cloud.dialogflow.cx.v3.Changelogs.ListChangelogs].
*
*
* Protobuf type {@code google.cloud.dialogflow.cx.v3.ListChangelogsResponse}
@@ -69,6 +70,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
public static final int CHANGELOGS_FIELD_NUMBER = 1;
+
+ @SuppressWarnings("serial")
private java.util.List changelogs_;
/**
*
@@ -148,7 +151,9 @@ public com.google.cloud.dialogflow.cx.v3.ChangelogOrBuilder getChangelogsOrBuild
}
public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2;
- private volatile java.lang.Object nextPageToken_;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object nextPageToken_ = "";
/**
*
*
@@ -373,7 +378,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
*
*
*
- * The response message for [Changelogs.ListChangelogs][google.cloud.dialogflow.cx.v3.Changelogs.ListChangelogs].
+ * The response message for
+ * [Changelogs.ListChangelogs][google.cloud.dialogflow.cx.v3.Changelogs.ListChangelogs].
*
*
* Protobuf type {@code google.cloud.dialogflow.cx.v3.ListChangelogsResponse}
@@ -407,6 +413,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
@java.lang.Override
public Builder clear() {
super.clear();
+ bitField0_ = 0;
if (changelogsBuilder_ == null) {
changelogs_ = java.util.Collections.emptyList();
} else {
@@ -415,7 +422,6 @@ public Builder clear() {
}
bitField0_ = (bitField0_ & ~0x00000001);
nextPageToken_ = "";
-
return this;
}
@@ -443,7 +449,16 @@ public com.google.cloud.dialogflow.cx.v3.ListChangelogsResponse build() {
public com.google.cloud.dialogflow.cx.v3.ListChangelogsResponse buildPartial() {
com.google.cloud.dialogflow.cx.v3.ListChangelogsResponse result =
new com.google.cloud.dialogflow.cx.v3.ListChangelogsResponse(this);
- int from_bitField0_ = bitField0_;
+ buildPartialRepeatedFields(result);
+ if (bitField0_ != 0) {
+ buildPartial0(result);
+ }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartialRepeatedFields(
+ com.google.cloud.dialogflow.cx.v3.ListChangelogsResponse result) {
if (changelogsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
changelogs_ = java.util.Collections.unmodifiableList(changelogs_);
@@ -453,9 +468,13 @@ public com.google.cloud.dialogflow.cx.v3.ListChangelogsResponse buildPartial() {
} else {
result.changelogs_ = changelogsBuilder_.build();
}
- result.nextPageToken_ = nextPageToken_;
- onBuilt();
- return result;
+ }
+
+ private void buildPartial0(com.google.cloud.dialogflow.cx.v3.ListChangelogsResponse result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.nextPageToken_ = nextPageToken_;
+ }
}
@java.lang.Override
@@ -533,6 +552,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.ListChangelogsRespons
}
if (!other.getNextPageToken().isEmpty()) {
nextPageToken_ = other.nextPageToken_;
+ bitField0_ |= 0x00000002;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
@@ -577,7 +597,7 @@ public Builder mergeFrom(
case 18:
{
nextPageToken_ = input.readStringRequireUtf8();
-
+ bitField0_ |= 0x00000002;
break;
} // case 18
default:
@@ -1050,8 +1070,8 @@ public Builder setNextPageToken(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
-
nextPageToken_ = value;
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -1068,8 +1088,8 @@ public Builder setNextPageToken(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearNextPageToken() {
-
nextPageToken_ = getDefaultInstance().getNextPageToken();
+ bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
@@ -1091,8 +1111,8 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
-
nextPageToken_ = value;
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListContinuousTestResultsRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListContinuousTestResultsRequest.java
index e77f4840e6e2..476c0f30078a 100644
--- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListContinuousTestResultsRequest.java
+++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListContinuousTestResultsRequest.java
@@ -22,7 +22,8 @@
*
*
*
- * The request message for [Environments.ListContinuousTestResults][google.cloud.dialogflow.cx.v3.Environments.ListContinuousTestResults].
+ * The request message for
+ * [Environments.ListContinuousTestResults][google.cloud.dialogflow.cx.v3.Environments.ListContinuousTestResults].
*
*
* Protobuf type {@code google.cloud.dialogflow.cx.v3.ListContinuousTestResultsRequest}
@@ -70,7 +71,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
public static final int PARENT_FIELD_NUMBER = 1;
- private volatile java.lang.Object parent_;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object parent_ = "";
/**
*
*
@@ -127,7 +130,7 @@ public com.google.protobuf.ByteString getParentBytes() {
}
public static final int PAGE_SIZE_FIELD_NUMBER = 2;
- private int pageSize_;
+ private int pageSize_ = 0;
/**
*
*
@@ -146,7 +149,9 @@ public int getPageSize() {
}
public static final int PAGE_TOKEN_FIELD_NUMBER = 3;
- private volatile java.lang.Object pageToken_;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object pageToken_ = "";
/**
*
*
@@ -377,7 +382,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
*
*
*
- * The request message for [Environments.ListContinuousTestResults][google.cloud.dialogflow.cx.v3.Environments.ListContinuousTestResults].
+ * The request message for
+ * [Environments.ListContinuousTestResults][google.cloud.dialogflow.cx.v3.Environments.ListContinuousTestResults].
*
*
* Protobuf type {@code google.cloud.dialogflow.cx.v3.ListContinuousTestResultsRequest}
@@ -412,12 +418,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
@java.lang.Override
public Builder clear() {
super.clear();
+ bitField0_ = 0;
parent_ = "";
-
pageSize_ = 0;
-
pageToken_ = "";
-
return this;
}
@@ -447,13 +451,27 @@ public com.google.cloud.dialogflow.cx.v3.ListContinuousTestResultsRequest build(
public com.google.cloud.dialogflow.cx.v3.ListContinuousTestResultsRequest buildPartial() {
com.google.cloud.dialogflow.cx.v3.ListContinuousTestResultsRequest result =
new com.google.cloud.dialogflow.cx.v3.ListContinuousTestResultsRequest(this);
- result.parent_ = parent_;
- result.pageSize_ = pageSize_;
- result.pageToken_ = pageToken_;
+ if (bitField0_ != 0) {
+ buildPartial0(result);
+ }
onBuilt();
return result;
}
+ private void buildPartial0(
+ com.google.cloud.dialogflow.cx.v3.ListContinuousTestResultsRequest result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.parent_ = parent_;
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.pageSize_ = pageSize_;
+ }
+ if (((from_bitField0_ & 0x00000004) != 0)) {
+ result.pageToken_ = pageToken_;
+ }
+ }
+
@java.lang.Override
public Builder clone() {
return super.clone();
@@ -505,6 +523,7 @@ public Builder mergeFrom(
.getDefaultInstance()) return this;
if (!other.getParent().isEmpty()) {
parent_ = other.parent_;
+ bitField0_ |= 0x00000001;
onChanged();
}
if (other.getPageSize() != 0) {
@@ -512,6 +531,7 @@ public Builder mergeFrom(
}
if (!other.getPageToken().isEmpty()) {
pageToken_ = other.pageToken_;
+ bitField0_ |= 0x00000004;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
@@ -543,19 +563,19 @@ public Builder mergeFrom(
case 10:
{
parent_ = input.readStringRequireUtf8();
-
+ bitField0_ |= 0x00000001;
break;
} // case 10
case 16:
{
pageSize_ = input.readInt32();
-
+ bitField0_ |= 0x00000002;
break;
} // case 16
case 26:
{
pageToken_ = input.readStringRequireUtf8();
-
+ bitField0_ |= 0x00000004;
break;
} // case 26
default:
@@ -575,6 +595,8 @@ public Builder mergeFrom(
return this;
}
+ private int bitField0_;
+
private java.lang.Object parent_ = "";
/**
*
@@ -648,8 +670,8 @@ public Builder setParent(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
-
parent_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -669,8 +691,8 @@ public Builder setParent(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearParent() {
-
parent_ = getDefaultInstance().getParent();
+ bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
@@ -695,8 +717,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
-
parent_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -734,6 +756,7 @@ public int getPageSize() {
public Builder setPageSize(int value) {
pageSize_ = value;
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -750,7 +773,7 @@ public Builder setPageSize(int value) {
* @return This builder for chaining.
*/
public Builder clearPageSize() {
-
+ bitField0_ = (bitField0_ & ~0x00000002);
pageSize_ = 0;
onChanged();
return this;
@@ -817,8 +840,8 @@ public Builder setPageToken(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
-
pageToken_ = value;
+ bitField0_ |= 0x00000004;
onChanged();
return this;
}
@@ -834,8 +857,8 @@ public Builder setPageToken(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearPageToken() {
-
pageToken_ = getDefaultInstance().getPageToken();
+ bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
@@ -856,8 +879,8 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
-
pageToken_ = value;
+ bitField0_ |= 0x00000004;
onChanged();
return this;
}
diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListContinuousTestResultsResponse.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListContinuousTestResultsResponse.java
index 5b470fc9a7ad..91c6ea058f78 100644
--- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListContinuousTestResultsResponse.java
+++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListContinuousTestResultsResponse.java
@@ -70,6 +70,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
public static final int CONTINUOUS_TEST_RESULTS_FIELD_NUMBER = 1;
+
+ @SuppressWarnings("serial")
private java.util.List
continuousTestResults_;
/**
@@ -148,7 +150,9 @@ public com.google.cloud.dialogflow.cx.v3.ContinuousTestResult getContinuousTestR
}
public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2;
- private volatile java.lang.Object nextPageToken_;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object nextPageToken_ = "";
/**
*
*
@@ -411,6 +415,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
@java.lang.Override
public Builder clear() {
super.clear();
+ bitField0_ = 0;
if (continuousTestResultsBuilder_ == null) {
continuousTestResults_ = java.util.Collections.emptyList();
} else {
@@ -419,7 +424,6 @@ public Builder clear() {
}
bitField0_ = (bitField0_ & ~0x00000001);
nextPageToken_ = "";
-
return this;
}
@@ -449,7 +453,16 @@ public com.google.cloud.dialogflow.cx.v3.ListContinuousTestResultsResponse build
public com.google.cloud.dialogflow.cx.v3.ListContinuousTestResultsResponse buildPartial() {
com.google.cloud.dialogflow.cx.v3.ListContinuousTestResultsResponse result =
new com.google.cloud.dialogflow.cx.v3.ListContinuousTestResultsResponse(this);
- int from_bitField0_ = bitField0_;
+ buildPartialRepeatedFields(result);
+ if (bitField0_ != 0) {
+ buildPartial0(result);
+ }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartialRepeatedFields(
+ com.google.cloud.dialogflow.cx.v3.ListContinuousTestResultsResponse result) {
if (continuousTestResultsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
continuousTestResults_ = java.util.Collections.unmodifiableList(continuousTestResults_);
@@ -459,9 +472,14 @@ public com.google.cloud.dialogflow.cx.v3.ListContinuousTestResultsResponse build
} else {
result.continuousTestResults_ = continuousTestResultsBuilder_.build();
}
- result.nextPageToken_ = nextPageToken_;
- onBuilt();
- return result;
+ }
+
+ private void buildPartial0(
+ com.google.cloud.dialogflow.cx.v3.ListContinuousTestResultsResponse result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.nextPageToken_ = nextPageToken_;
+ }
}
@java.lang.Override
@@ -542,6 +560,7 @@ public Builder mergeFrom(
}
if (!other.getNextPageToken().isEmpty()) {
nextPageToken_ = other.nextPageToken_;
+ bitField0_ |= 0x00000002;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
@@ -587,7 +606,7 @@ public Builder mergeFrom(
case 18:
{
nextPageToken_ = input.readStringRequireUtf8();
-
+ bitField0_ |= 0x00000002;
break;
} // case 18
default:
@@ -1075,8 +1094,8 @@ public Builder setNextPageToken(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
-
nextPageToken_ = value;
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -1093,8 +1112,8 @@ public Builder setNextPageToken(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearNextPageToken() {
-
nextPageToken_ = getDefaultInstance().getNextPageToken();
+ bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
@@ -1116,8 +1135,8 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
-
nextPageToken_ = value;
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListDeploymentsRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListDeploymentsRequest.java
index 98545a8b1722..55c708b7a4b4 100644
--- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListDeploymentsRequest.java
+++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListDeploymentsRequest.java
@@ -22,7 +22,8 @@
*
*
*
- * The request message for [Deployments.ListDeployments][google.cloud.dialogflow.cx.v3.Deployments.ListDeployments].
+ * The request message for
+ * [Deployments.ListDeployments][google.cloud.dialogflow.cx.v3.Deployments.ListDeployments].
*
*
* Protobuf type {@code google.cloud.dialogflow.cx.v3.ListDeploymentsRequest}
@@ -69,14 +70,17 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
public static final int PARENT_FIELD_NUMBER = 1;
- private volatile java.lang.Object parent_;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object parent_ = "";
/**
*
*
*
- * Required. The [Environment][google.cloud.dialogflow.cx.v3.Environment] to list all environments for.
- * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
- * ID>/environments/<Environment ID>`.
+ * Required. The [Environment][google.cloud.dialogflow.cx.v3.Environment] to
+ * list all environments for. Format: `projects/<Project
+ * ID>/locations/<Location ID>/agents/<Agent ID>/environments/<Environment
+ * ID>`.
*
*
*
@@ -101,9 +105,10 @@ public java.lang.String getParent() {
*
*
*
- * Required. The [Environment][google.cloud.dialogflow.cx.v3.Environment] to list all environments for.
- * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
- * ID>/environments/<Environment ID>`.
+ * Required. The [Environment][google.cloud.dialogflow.cx.v3.Environment] to
+ * list all environments for. Format: `projects/<Project
+ * ID>/locations/<Location ID>/agents/<Agent ID>/environments/<Environment
+ * ID>`.
*
*
*
@@ -126,7 +131,7 @@ public com.google.protobuf.ByteString getParentBytes() {
}
public static final int PAGE_SIZE_FIELD_NUMBER = 2;
- private int pageSize_;
+ private int pageSize_ = 0;
/**
*
*
@@ -145,7 +150,9 @@ public int getPageSize() {
}
public static final int PAGE_TOKEN_FIELD_NUMBER = 3;
- private volatile java.lang.Object pageToken_;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object pageToken_ = "";
/**
*
*
@@ -375,7 +382,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
*
*
*
- * The request message for [Deployments.ListDeployments][google.cloud.dialogflow.cx.v3.Deployments.ListDeployments].
+ * The request message for
+ * [Deployments.ListDeployments][google.cloud.dialogflow.cx.v3.Deployments.ListDeployments].
*
*
* Protobuf type {@code google.cloud.dialogflow.cx.v3.ListDeploymentsRequest}
@@ -409,12 +417,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
@java.lang.Override
public Builder clear() {
super.clear();
+ bitField0_ = 0;
parent_ = "";
-
pageSize_ = 0;
-
pageToken_ = "";
-
return this;
}
@@ -442,13 +448,26 @@ public com.google.cloud.dialogflow.cx.v3.ListDeploymentsRequest build() {
public com.google.cloud.dialogflow.cx.v3.ListDeploymentsRequest buildPartial() {
com.google.cloud.dialogflow.cx.v3.ListDeploymentsRequest result =
new com.google.cloud.dialogflow.cx.v3.ListDeploymentsRequest(this);
- result.parent_ = parent_;
- result.pageSize_ = pageSize_;
- result.pageToken_ = pageToken_;
+ if (bitField0_ != 0) {
+ buildPartial0(result);
+ }
onBuilt();
return result;
}
+ private void buildPartial0(com.google.cloud.dialogflow.cx.v3.ListDeploymentsRequest result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.parent_ = parent_;
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.pageSize_ = pageSize_;
+ }
+ if (((from_bitField0_ & 0x00000004) != 0)) {
+ result.pageToken_ = pageToken_;
+ }
+ }
+
@java.lang.Override
public Builder clone() {
return super.clone();
@@ -497,6 +516,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.ListDeploymentsReques
return this;
if (!other.getParent().isEmpty()) {
parent_ = other.parent_;
+ bitField0_ |= 0x00000001;
onChanged();
}
if (other.getPageSize() != 0) {
@@ -504,6 +524,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.ListDeploymentsReques
}
if (!other.getPageToken().isEmpty()) {
pageToken_ = other.pageToken_;
+ bitField0_ |= 0x00000004;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
@@ -535,19 +556,19 @@ public Builder mergeFrom(
case 10:
{
parent_ = input.readStringRequireUtf8();
-
+ bitField0_ |= 0x00000001;
break;
} // case 10
case 16:
{
pageSize_ = input.readInt32();
-
+ bitField0_ |= 0x00000002;
break;
} // case 16
case 26:
{
pageToken_ = input.readStringRequireUtf8();
-
+ bitField0_ |= 0x00000004;
break;
} // case 26
default:
@@ -567,14 +588,17 @@ public Builder mergeFrom(
return this;
}
+ private int bitField0_;
+
private java.lang.Object parent_ = "";
/**
*
*
*
- * Required. The [Environment][google.cloud.dialogflow.cx.v3.Environment] to list all environments for.
- * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
- * ID>/environments/<Environment ID>`.
+ * Required. The [Environment][google.cloud.dialogflow.cx.v3.Environment] to
+ * list all environments for. Format: `projects/<Project
+ * ID>/locations/<Location ID>/agents/<Agent ID>/environments/<Environment
+ * ID>`.
*
*
*
@@ -598,9 +622,10 @@ public java.lang.String getParent() {
*
*
*
- * Required. The [Environment][google.cloud.dialogflow.cx.v3.Environment] to list all environments for.
- * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
- * ID>/environments/<Environment ID>`.
+ * Required. The [Environment][google.cloud.dialogflow.cx.v3.Environment] to
+ * list all environments for. Format: `projects/<Project
+ * ID>/locations/<Location ID>/agents/<Agent ID>/environments/<Environment
+ * ID>`.
*
*
*
@@ -624,9 +649,10 @@ public com.google.protobuf.ByteString getParentBytes() {
*
*
*
- * Required. The [Environment][google.cloud.dialogflow.cx.v3.Environment] to list all environments for.
- * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
- * ID>/environments/<Environment ID>`.
+ * Required. The [Environment][google.cloud.dialogflow.cx.v3.Environment] to
+ * list all environments for. Format: `projects/<Project
+ * ID>/locations/<Location ID>/agents/<Agent ID>/environments/<Environment
+ * ID>`.
*
*
*
@@ -640,8 +666,8 @@ public Builder setParent(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
-
parent_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -649,9 +675,10 @@ public Builder setParent(java.lang.String value) {
*
*
*
- * Required. The [Environment][google.cloud.dialogflow.cx.v3.Environment] to list all environments for.
- * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
- * ID>/environments/<Environment ID>`.
+ * Required. The [Environment][google.cloud.dialogflow.cx.v3.Environment] to
+ * list all environments for. Format: `projects/<Project
+ * ID>/locations/<Location ID>/agents/<Agent ID>/environments/<Environment
+ * ID>`.
*
*
*
@@ -661,8 +688,8 @@ public Builder setParent(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearParent() {
-
parent_ = getDefaultInstance().getParent();
+ bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
@@ -670,9 +697,10 @@ public Builder clearParent() {
*
*
*
- * Required. The [Environment][google.cloud.dialogflow.cx.v3.Environment] to list all environments for.
- * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
- * ID>/environments/<Environment ID>`.
+ * Required. The [Environment][google.cloud.dialogflow.cx.v3.Environment] to
+ * list all environments for. Format: `projects/<Project
+ * ID>/locations/<Location ID>/agents/<Agent ID>/environments/<Environment
+ * ID>`.
*
*
*
@@ -687,8 +715,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
-
parent_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -726,6 +754,7 @@ public int getPageSize() {
public Builder setPageSize(int value) {
pageSize_ = value;
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -742,7 +771,7 @@ public Builder setPageSize(int value) {
* @return This builder for chaining.
*/
public Builder clearPageSize() {
-
+ bitField0_ = (bitField0_ & ~0x00000002);
pageSize_ = 0;
onChanged();
return this;
@@ -809,8 +838,8 @@ public Builder setPageToken(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
-
pageToken_ = value;
+ bitField0_ |= 0x00000004;
onChanged();
return this;
}
@@ -826,8 +855,8 @@ public Builder setPageToken(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearPageToken() {
-
pageToken_ = getDefaultInstance().getPageToken();
+ bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
@@ -848,8 +877,8 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
-
pageToken_ = value;
+ bitField0_ |= 0x00000004;
onChanged();
return this;
}
diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListDeploymentsRequestOrBuilder.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListDeploymentsRequestOrBuilder.java
index 7a416f1e5f53..31b206ff2311 100644
--- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListDeploymentsRequestOrBuilder.java
+++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListDeploymentsRequestOrBuilder.java
@@ -27,9 +27,10 @@ public interface ListDeploymentsRequestOrBuilder
*
*
*
- * Required. The [Environment][google.cloud.dialogflow.cx.v3.Environment] to list all environments for.
- * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
- * ID>/environments/<Environment ID>`.
+ * Required. The [Environment][google.cloud.dialogflow.cx.v3.Environment] to
+ * list all environments for. Format: `projects/<Project
+ * ID>/locations/<Location ID>/agents/<Agent ID>/environments/<Environment
+ * ID>`.
*
*
*
@@ -43,9 +44,10 @@ public interface ListDeploymentsRequestOrBuilder
*
*
*
- * Required. The [Environment][google.cloud.dialogflow.cx.v3.Environment] to list all environments for.
- * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
- * ID>/environments/<Environment ID>`.
+ * Required. The [Environment][google.cloud.dialogflow.cx.v3.Environment] to
+ * list all environments for. Format: `projects/<Project
+ * ID>/locations/<Location ID>/agents/<Agent ID>/environments/<Environment
+ * ID>`.
*
*
*
diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListDeploymentsResponse.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListDeploymentsResponse.java
index 7c3a4f6a45da..b262ef515add 100644
--- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListDeploymentsResponse.java
+++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListDeploymentsResponse.java
@@ -22,7 +22,8 @@
*
*
*
- * The response message for [Deployments.ListDeployments][google.cloud.dialogflow.cx.v3.Deployments.ListDeployments].
+ * The response message for
+ * [Deployments.ListDeployments][google.cloud.dialogflow.cx.v3.Deployments.ListDeployments].
*
*
* Protobuf type {@code google.cloud.dialogflow.cx.v3.ListDeploymentsResponse}
@@ -69,6 +70,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
public static final int DEPLOYMENTS_FIELD_NUMBER = 1;
+
+ @SuppressWarnings("serial")
private java.util.List deployments_;
/**
*
@@ -153,7 +156,9 @@ public com.google.cloud.dialogflow.cx.v3.DeploymentOrBuilder getDeploymentsOrBui
}
public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2;
- private volatile java.lang.Object nextPageToken_;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object nextPageToken_ = "";
/**
*
*
@@ -378,7 +383,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
*
*
*
- * The response message for [Deployments.ListDeployments][google.cloud.dialogflow.cx.v3.Deployments.ListDeployments].
+ * The response message for
+ * [Deployments.ListDeployments][google.cloud.dialogflow.cx.v3.Deployments.ListDeployments].
*
*
* Protobuf type {@code google.cloud.dialogflow.cx.v3.ListDeploymentsResponse}
@@ -412,6 +418,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
@java.lang.Override
public Builder clear() {
super.clear();
+ bitField0_ = 0;
if (deploymentsBuilder_ == null) {
deployments_ = java.util.Collections.emptyList();
} else {
@@ -420,7 +427,6 @@ public Builder clear() {
}
bitField0_ = (bitField0_ & ~0x00000001);
nextPageToken_ = "";
-
return this;
}
@@ -448,7 +454,16 @@ public com.google.cloud.dialogflow.cx.v3.ListDeploymentsResponse build() {
public com.google.cloud.dialogflow.cx.v3.ListDeploymentsResponse buildPartial() {
com.google.cloud.dialogflow.cx.v3.ListDeploymentsResponse result =
new com.google.cloud.dialogflow.cx.v3.ListDeploymentsResponse(this);
- int from_bitField0_ = bitField0_;
+ buildPartialRepeatedFields(result);
+ if (bitField0_ != 0) {
+ buildPartial0(result);
+ }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartialRepeatedFields(
+ com.google.cloud.dialogflow.cx.v3.ListDeploymentsResponse result) {
if (deploymentsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
deployments_ = java.util.Collections.unmodifiableList(deployments_);
@@ -458,9 +473,13 @@ public com.google.cloud.dialogflow.cx.v3.ListDeploymentsResponse buildPartial()
} else {
result.deployments_ = deploymentsBuilder_.build();
}
- result.nextPageToken_ = nextPageToken_;
- onBuilt();
- return result;
+ }
+
+ private void buildPartial0(com.google.cloud.dialogflow.cx.v3.ListDeploymentsResponse result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.nextPageToken_ = nextPageToken_;
+ }
}
@java.lang.Override
@@ -538,6 +557,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.ListDeploymentsRespon
}
if (!other.getNextPageToken().isEmpty()) {
nextPageToken_ = other.nextPageToken_;
+ bitField0_ |= 0x00000002;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
@@ -582,7 +602,7 @@ public Builder mergeFrom(
case 18:
{
nextPageToken_ = input.readStringRequireUtf8();
-
+ bitField0_ |= 0x00000002;
break;
} // case 18
default:
@@ -1074,8 +1094,8 @@ public Builder setNextPageToken(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
-
nextPageToken_ = value;
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -1092,8 +1112,8 @@ public Builder setNextPageToken(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearNextPageToken() {
-
nextPageToken_ = getDefaultInstance().getNextPageToken();
+ bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
@@ -1115,8 +1135,8 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
-
nextPageToken_ = value;
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListEntityTypesRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListEntityTypesRequest.java
index b7ee8f512a5d..fc5751576b2a 100644
--- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListEntityTypesRequest.java
+++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListEntityTypesRequest.java
@@ -22,7 +22,8 @@
*
*
*
- * The request message for [EntityTypes.ListEntityTypes][google.cloud.dialogflow.cx.v3.EntityTypes.ListEntityTypes].
+ * The request message for
+ * [EntityTypes.ListEntityTypes][google.cloud.dialogflow.cx.v3.EntityTypes.ListEntityTypes].
*
*
* Protobuf type {@code google.cloud.dialogflow.cx.v3.ListEntityTypesRequest}
@@ -70,7 +71,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
public static final int PARENT_FIELD_NUMBER = 1;
- private volatile java.lang.Object parent_;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object parent_ = "";
/**
*
*
@@ -125,7 +128,9 @@ public com.google.protobuf.ByteString getParentBytes() {
}
public static final int LANGUAGE_CODE_FIELD_NUMBER = 2;
- private volatile java.lang.Object languageCode_;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object languageCode_ = "";
/**
*
*
@@ -192,7 +197,7 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() {
}
public static final int PAGE_SIZE_FIELD_NUMBER = 3;
- private int pageSize_;
+ private int pageSize_ = 0;
/**
*
*
@@ -211,7 +216,9 @@ public int getPageSize() {
}
public static final int PAGE_TOKEN_FIELD_NUMBER = 4;
- private volatile java.lang.Object pageToken_;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object pageToken_ = "";
/**
*
*
@@ -450,7 +457,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
*
*
*
- * The request message for [EntityTypes.ListEntityTypes][google.cloud.dialogflow.cx.v3.EntityTypes.ListEntityTypes].
+ * The request message for
+ * [EntityTypes.ListEntityTypes][google.cloud.dialogflow.cx.v3.EntityTypes.ListEntityTypes].
*
*
* Protobuf type {@code google.cloud.dialogflow.cx.v3.ListEntityTypesRequest}
@@ -484,14 +492,11 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
@java.lang.Override
public Builder clear() {
super.clear();
+ bitField0_ = 0;
parent_ = "";
-
languageCode_ = "";
-
pageSize_ = 0;
-
pageToken_ = "";
-
return this;
}
@@ -519,14 +524,29 @@ public com.google.cloud.dialogflow.cx.v3.ListEntityTypesRequest build() {
public com.google.cloud.dialogflow.cx.v3.ListEntityTypesRequest buildPartial() {
com.google.cloud.dialogflow.cx.v3.ListEntityTypesRequest result =
new com.google.cloud.dialogflow.cx.v3.ListEntityTypesRequest(this);
- result.parent_ = parent_;
- result.languageCode_ = languageCode_;
- result.pageSize_ = pageSize_;
- result.pageToken_ = pageToken_;
+ if (bitField0_ != 0) {
+ buildPartial0(result);
+ }
onBuilt();
return result;
}
+ private void buildPartial0(com.google.cloud.dialogflow.cx.v3.ListEntityTypesRequest result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.parent_ = parent_;
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.languageCode_ = languageCode_;
+ }
+ if (((from_bitField0_ & 0x00000004) != 0)) {
+ result.pageSize_ = pageSize_;
+ }
+ if (((from_bitField0_ & 0x00000008) != 0)) {
+ result.pageToken_ = pageToken_;
+ }
+ }
+
@java.lang.Override
public Builder clone() {
return super.clone();
@@ -575,10 +595,12 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.ListEntityTypesReques
return this;
if (!other.getParent().isEmpty()) {
parent_ = other.parent_;
+ bitField0_ |= 0x00000001;
onChanged();
}
if (!other.getLanguageCode().isEmpty()) {
languageCode_ = other.languageCode_;
+ bitField0_ |= 0x00000002;
onChanged();
}
if (other.getPageSize() != 0) {
@@ -586,6 +608,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.ListEntityTypesReques
}
if (!other.getPageToken().isEmpty()) {
pageToken_ = other.pageToken_;
+ bitField0_ |= 0x00000008;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
@@ -617,25 +640,25 @@ public Builder mergeFrom(
case 10:
{
parent_ = input.readStringRequireUtf8();
-
+ bitField0_ |= 0x00000001;
break;
} // case 10
case 18:
{
languageCode_ = input.readStringRequireUtf8();
-
+ bitField0_ |= 0x00000002;
break;
} // case 18
case 24:
{
pageSize_ = input.readInt32();
-
+ bitField0_ |= 0x00000004;
break;
} // case 24
case 34:
{
pageToken_ = input.readStringRequireUtf8();
-
+ bitField0_ |= 0x00000008;
break;
} // case 34
default:
@@ -655,6 +678,8 @@ public Builder mergeFrom(
return this;
}
+ private int bitField0_;
+
private java.lang.Object parent_ = "";
/**
*
@@ -725,8 +750,8 @@ public Builder setParent(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
-
parent_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -745,8 +770,8 @@ public Builder setParent(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearParent() {
-
parent_ = getDefaultInstance().getParent();
+ bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
@@ -770,8 +795,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
-
parent_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -864,8 +889,8 @@ public Builder setLanguageCode(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
-
languageCode_ = value;
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -890,8 +915,8 @@ public Builder setLanguageCode(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearLanguageCode() {
-
languageCode_ = getDefaultInstance().getLanguageCode();
+ bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
@@ -921,8 +946,8 @@ public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
-
languageCode_ = value;
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -960,6 +985,7 @@ public int getPageSize() {
public Builder setPageSize(int value) {
pageSize_ = value;
+ bitField0_ |= 0x00000004;
onChanged();
return this;
}
@@ -976,7 +1002,7 @@ public Builder setPageSize(int value) {
* @return This builder for chaining.
*/
public Builder clearPageSize() {
-
+ bitField0_ = (bitField0_ & ~0x00000004);
pageSize_ = 0;
onChanged();
return this;
@@ -1043,8 +1069,8 @@ public Builder setPageToken(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
-
pageToken_ = value;
+ bitField0_ |= 0x00000008;
onChanged();
return this;
}
@@ -1060,8 +1086,8 @@ public Builder setPageToken(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearPageToken() {
-
pageToken_ = getDefaultInstance().getPageToken();
+ bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
return this;
}
@@ -1082,8 +1108,8 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
-
pageToken_ = value;
+ bitField0_ |= 0x00000008;
onChanged();
return this;
}
diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListEntityTypesResponse.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListEntityTypesResponse.java
index 350f7ff64a45..7b9a4026f9ff 100644
--- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListEntityTypesResponse.java
+++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListEntityTypesResponse.java
@@ -22,7 +22,8 @@
*
*
*
- * The response message for [EntityTypes.ListEntityTypes][google.cloud.dialogflow.cx.v3.EntityTypes.ListEntityTypes].
+ * The response message for
+ * [EntityTypes.ListEntityTypes][google.cloud.dialogflow.cx.v3.EntityTypes.ListEntityTypes].
*
*
* Protobuf type {@code google.cloud.dialogflow.cx.v3.ListEntityTypesResponse}
@@ -69,6 +70,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
public static final int ENTITY_TYPES_FIELD_NUMBER = 1;
+
+ @SuppressWarnings("serial")
private java.util.List entityTypes_;
/**
*
@@ -143,7 +146,9 @@ public com.google.cloud.dialogflow.cx.v3.EntityTypeOrBuilder getEntityTypesOrBui
}
public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2;
- private volatile java.lang.Object nextPageToken_;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object nextPageToken_ = "";
/**
*
*
@@ -368,7 +373,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
*
*
*
- * The response message for [EntityTypes.ListEntityTypes][google.cloud.dialogflow.cx.v3.EntityTypes.ListEntityTypes].
+ * The response message for
+ * [EntityTypes.ListEntityTypes][google.cloud.dialogflow.cx.v3.EntityTypes.ListEntityTypes].
*
*
* Protobuf type {@code google.cloud.dialogflow.cx.v3.ListEntityTypesResponse}
@@ -402,6 +408,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
@java.lang.Override
public Builder clear() {
super.clear();
+ bitField0_ = 0;
if (entityTypesBuilder_ == null) {
entityTypes_ = java.util.Collections.emptyList();
} else {
@@ -410,7 +417,6 @@ public Builder clear() {
}
bitField0_ = (bitField0_ & ~0x00000001);
nextPageToken_ = "";
-
return this;
}
@@ -438,7 +444,16 @@ public com.google.cloud.dialogflow.cx.v3.ListEntityTypesResponse build() {
public com.google.cloud.dialogflow.cx.v3.ListEntityTypesResponse buildPartial() {
com.google.cloud.dialogflow.cx.v3.ListEntityTypesResponse result =
new com.google.cloud.dialogflow.cx.v3.ListEntityTypesResponse(this);
- int from_bitField0_ = bitField0_;
+ buildPartialRepeatedFields(result);
+ if (bitField0_ != 0) {
+ buildPartial0(result);
+ }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartialRepeatedFields(
+ com.google.cloud.dialogflow.cx.v3.ListEntityTypesResponse result) {
if (entityTypesBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
entityTypes_ = java.util.Collections.unmodifiableList(entityTypes_);
@@ -448,9 +463,13 @@ public com.google.cloud.dialogflow.cx.v3.ListEntityTypesResponse buildPartial()
} else {
result.entityTypes_ = entityTypesBuilder_.build();
}
- result.nextPageToken_ = nextPageToken_;
- onBuilt();
- return result;
+ }
+
+ private void buildPartial0(com.google.cloud.dialogflow.cx.v3.ListEntityTypesResponse result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.nextPageToken_ = nextPageToken_;
+ }
}
@java.lang.Override
@@ -528,6 +547,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.ListEntityTypesRespon
}
if (!other.getNextPageToken().isEmpty()) {
nextPageToken_ = other.nextPageToken_;
+ bitField0_ |= 0x00000002;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
@@ -572,7 +592,7 @@ public Builder mergeFrom(
case 18:
{
nextPageToken_ = input.readStringRequireUtf8();
-
+ bitField0_ |= 0x00000002;
break;
} // case 18
default:
@@ -1028,8 +1048,8 @@ public Builder setNextPageToken(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
-
nextPageToken_ = value;
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -1046,8 +1066,8 @@ public Builder setNextPageToken(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearNextPageToken() {
-
nextPageToken_ = getDefaultInstance().getNextPageToken();
+ bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
@@ -1069,8 +1089,8 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
-
nextPageToken_ = value;
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListEnvironmentsRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListEnvironmentsRequest.java
index 7942b9ab3bbc..737d3e7f9716 100644
--- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListEnvironmentsRequest.java
+++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListEnvironmentsRequest.java
@@ -22,7 +22,8 @@
*
*
*
- * The request message for [Environments.ListEnvironments][google.cloud.dialogflow.cx.v3.Environments.ListEnvironments].
+ * The request message for
+ * [Environments.ListEnvironments][google.cloud.dialogflow.cx.v3.Environments.ListEnvironments].
*
*
* Protobuf type {@code google.cloud.dialogflow.cx.v3.ListEnvironmentsRequest}
@@ -69,13 +70,16 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
public static final int PARENT_FIELD_NUMBER = 1;
- private volatile java.lang.Object parent_;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object parent_ = "";
/**
*
*
*
- * Required. The [Agent][google.cloud.dialogflow.cx.v3.Agent] to list all environments for.
- * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>`.
+ * Required. The [Agent][google.cloud.dialogflow.cx.v3.Agent] to list all
+ * environments for. Format: `projects/<Project ID>/locations/<Location
+ * ID>/agents/<Agent ID>`.
*
*
*
@@ -100,8 +104,9 @@ public java.lang.String getParent() {
*
*
*
- * Required. The [Agent][google.cloud.dialogflow.cx.v3.Agent] to list all environments for.
- * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>`.
+ * Required. The [Agent][google.cloud.dialogflow.cx.v3.Agent] to list all
+ * environments for. Format: `projects/<Project ID>/locations/<Location
+ * ID>/agents/<Agent ID>`.
*
*
*
@@ -124,7 +129,7 @@ public com.google.protobuf.ByteString getParentBytes() {
}
public static final int PAGE_SIZE_FIELD_NUMBER = 2;
- private int pageSize_;
+ private int pageSize_ = 0;
/**
*
*
@@ -143,7 +148,9 @@ public int getPageSize() {
}
public static final int PAGE_TOKEN_FIELD_NUMBER = 3;
- private volatile java.lang.Object pageToken_;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object pageToken_ = "";
/**
*
*
@@ -373,7 +380,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
*
*
*
- * The request message for [Environments.ListEnvironments][google.cloud.dialogflow.cx.v3.Environments.ListEnvironments].
+ * The request message for
+ * [Environments.ListEnvironments][google.cloud.dialogflow.cx.v3.Environments.ListEnvironments].
*
*
* Protobuf type {@code google.cloud.dialogflow.cx.v3.ListEnvironmentsRequest}
@@ -407,12 +415,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
@java.lang.Override
public Builder clear() {
super.clear();
+ bitField0_ = 0;
parent_ = "";
-
pageSize_ = 0;
-
pageToken_ = "";
-
return this;
}
@@ -440,13 +446,26 @@ public com.google.cloud.dialogflow.cx.v3.ListEnvironmentsRequest build() {
public com.google.cloud.dialogflow.cx.v3.ListEnvironmentsRequest buildPartial() {
com.google.cloud.dialogflow.cx.v3.ListEnvironmentsRequest result =
new com.google.cloud.dialogflow.cx.v3.ListEnvironmentsRequest(this);
- result.parent_ = parent_;
- result.pageSize_ = pageSize_;
- result.pageToken_ = pageToken_;
+ if (bitField0_ != 0) {
+ buildPartial0(result);
+ }
onBuilt();
return result;
}
+ private void buildPartial0(com.google.cloud.dialogflow.cx.v3.ListEnvironmentsRequest result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.parent_ = parent_;
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.pageSize_ = pageSize_;
+ }
+ if (((from_bitField0_ & 0x00000004) != 0)) {
+ result.pageToken_ = pageToken_;
+ }
+ }
+
@java.lang.Override
public Builder clone() {
return super.clone();
@@ -495,6 +514,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.ListEnvironmentsReque
return this;
if (!other.getParent().isEmpty()) {
parent_ = other.parent_;
+ bitField0_ |= 0x00000001;
onChanged();
}
if (other.getPageSize() != 0) {
@@ -502,6 +522,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.ListEnvironmentsReque
}
if (!other.getPageToken().isEmpty()) {
pageToken_ = other.pageToken_;
+ bitField0_ |= 0x00000004;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
@@ -533,19 +554,19 @@ public Builder mergeFrom(
case 10:
{
parent_ = input.readStringRequireUtf8();
-
+ bitField0_ |= 0x00000001;
break;
} // case 10
case 16:
{
pageSize_ = input.readInt32();
-
+ bitField0_ |= 0x00000002;
break;
} // case 16
case 26:
{
pageToken_ = input.readStringRequireUtf8();
-
+ bitField0_ |= 0x00000004;
break;
} // case 26
default:
@@ -565,13 +586,16 @@ public Builder mergeFrom(
return this;
}
+ private int bitField0_;
+
private java.lang.Object parent_ = "";
/**
*
*
*
- * Required. The [Agent][google.cloud.dialogflow.cx.v3.Agent] to list all environments for.
- * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>`.
+ * Required. The [Agent][google.cloud.dialogflow.cx.v3.Agent] to list all
+ * environments for. Format: `projects/<Project ID>/locations/<Location
+ * ID>/agents/<Agent ID>`.
*
*
*
@@ -595,8 +619,9 @@ public java.lang.String getParent() {
*
*
*
- * Required. The [Agent][google.cloud.dialogflow.cx.v3.Agent] to list all environments for.
- * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>`.
+ * Required. The [Agent][google.cloud.dialogflow.cx.v3.Agent] to list all
+ * environments for. Format: `projects/<Project ID>/locations/<Location
+ * ID>/agents/<Agent ID>`.
*
*
*
@@ -620,8 +645,9 @@ public com.google.protobuf.ByteString getParentBytes() {
*
*
*
- * Required. The [Agent][google.cloud.dialogflow.cx.v3.Agent] to list all environments for.
- * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>`.
+ * Required. The [Agent][google.cloud.dialogflow.cx.v3.Agent] to list all
+ * environments for. Format: `projects/<Project ID>/locations/<Location
+ * ID>/agents/<Agent ID>`.
*
*
*
@@ -635,8 +661,8 @@ public Builder setParent(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
-
parent_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -644,8 +670,9 @@ public Builder setParent(java.lang.String value) {
*
*
*
- * Required. The [Agent][google.cloud.dialogflow.cx.v3.Agent] to list all environments for.
- * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>`.
+ * Required. The [Agent][google.cloud.dialogflow.cx.v3.Agent] to list all
+ * environments for. Format: `projects/<Project ID>/locations/<Location
+ * ID>/agents/<Agent ID>`.
*
*
*
@@ -655,8 +682,8 @@ public Builder setParent(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearParent() {
-
parent_ = getDefaultInstance().getParent();
+ bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
@@ -664,8 +691,9 @@ public Builder clearParent() {
*
*
*
- * Required. The [Agent][google.cloud.dialogflow.cx.v3.Agent] to list all environments for.
- * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>`.
+ * Required. The [Agent][google.cloud.dialogflow.cx.v3.Agent] to list all
+ * environments for. Format: `projects/<Project ID>/locations/<Location
+ * ID>/agents/<Agent ID>`.
*
*
*
@@ -680,8 +708,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
-
parent_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -719,6 +747,7 @@ public int getPageSize() {
public Builder setPageSize(int value) {
pageSize_ = value;
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -735,7 +764,7 @@ public Builder setPageSize(int value) {
* @return This builder for chaining.
*/
public Builder clearPageSize() {
-
+ bitField0_ = (bitField0_ & ~0x00000002);
pageSize_ = 0;
onChanged();
return this;
@@ -802,8 +831,8 @@ public Builder setPageToken(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
-
pageToken_ = value;
+ bitField0_ |= 0x00000004;
onChanged();
return this;
}
@@ -819,8 +848,8 @@ public Builder setPageToken(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearPageToken() {
-
pageToken_ = getDefaultInstance().getPageToken();
+ bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
@@ -841,8 +870,8 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
-
pageToken_ = value;
+ bitField0_ |= 0x00000004;
onChanged();
return this;
}
diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListEnvironmentsRequestOrBuilder.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListEnvironmentsRequestOrBuilder.java
index 6adfce4c0ae0..1c4808774838 100644
--- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListEnvironmentsRequestOrBuilder.java
+++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListEnvironmentsRequestOrBuilder.java
@@ -27,8 +27,9 @@ public interface ListEnvironmentsRequestOrBuilder
*
*
*
- * Required. The [Agent][google.cloud.dialogflow.cx.v3.Agent] to list all environments for.
- * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>`.
+ * Required. The [Agent][google.cloud.dialogflow.cx.v3.Agent] to list all
+ * environments for. Format: `projects/<Project ID>/locations/<Location
+ * ID>/agents/<Agent ID>`.
*
*
*
@@ -42,8 +43,9 @@ public interface ListEnvironmentsRequestOrBuilder
*
*
*
- * Required. The [Agent][google.cloud.dialogflow.cx.v3.Agent] to list all environments for.
- * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>`.
+ * Required. The [Agent][google.cloud.dialogflow.cx.v3.Agent] to list all
+ * environments for. Format: `projects/<Project ID>/locations/<Location
+ * ID>/agents/<Agent ID>`.
*
*
*
diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListEnvironmentsResponse.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListEnvironmentsResponse.java
index 2ec867fddf52..d1386eea10f9 100644
--- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListEnvironmentsResponse.java
+++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListEnvironmentsResponse.java
@@ -22,7 +22,8 @@
*
*
*
- * The response message for [Environments.ListEnvironments][google.cloud.dialogflow.cx.v3.Environments.ListEnvironments].
+ * The response message for
+ * [Environments.ListEnvironments][google.cloud.dialogflow.cx.v3.Environments.ListEnvironments].
*
*
* Protobuf type {@code google.cloud.dialogflow.cx.v3.ListEnvironmentsResponse}
@@ -69,6 +70,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
public static final int ENVIRONMENTS_FIELD_NUMBER = 1;
+
+ @SuppressWarnings("serial")
private java.util.List environments_;
/**
*
@@ -154,7 +157,9 @@ public com.google.cloud.dialogflow.cx.v3.EnvironmentOrBuilder getEnvironmentsOrB
}
public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2;
- private volatile java.lang.Object nextPageToken_;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object nextPageToken_ = "";
/**
*
*
@@ -379,7 +384,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
*
*
*
- * The response message for [Environments.ListEnvironments][google.cloud.dialogflow.cx.v3.Environments.ListEnvironments].
+ * The response message for
+ * [Environments.ListEnvironments][google.cloud.dialogflow.cx.v3.Environments.ListEnvironments].
*
*
* Protobuf type {@code google.cloud.dialogflow.cx.v3.ListEnvironmentsResponse}
@@ -413,6 +419,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
@java.lang.Override
public Builder clear() {
super.clear();
+ bitField0_ = 0;
if (environmentsBuilder_ == null) {
environments_ = java.util.Collections.emptyList();
} else {
@@ -421,7 +428,6 @@ public Builder clear() {
}
bitField0_ = (bitField0_ & ~0x00000001);
nextPageToken_ = "";
-
return this;
}
@@ -449,7 +455,16 @@ public com.google.cloud.dialogflow.cx.v3.ListEnvironmentsResponse build() {
public com.google.cloud.dialogflow.cx.v3.ListEnvironmentsResponse buildPartial() {
com.google.cloud.dialogflow.cx.v3.ListEnvironmentsResponse result =
new com.google.cloud.dialogflow.cx.v3.ListEnvironmentsResponse(this);
- int from_bitField0_ = bitField0_;
+ buildPartialRepeatedFields(result);
+ if (bitField0_ != 0) {
+ buildPartial0(result);
+ }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartialRepeatedFields(
+ com.google.cloud.dialogflow.cx.v3.ListEnvironmentsResponse result) {
if (environmentsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
environments_ = java.util.Collections.unmodifiableList(environments_);
@@ -459,9 +474,13 @@ public com.google.cloud.dialogflow.cx.v3.ListEnvironmentsResponse buildPartial()
} else {
result.environments_ = environmentsBuilder_.build();
}
- result.nextPageToken_ = nextPageToken_;
- onBuilt();
- return result;
+ }
+
+ private void buildPartial0(com.google.cloud.dialogflow.cx.v3.ListEnvironmentsResponse result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.nextPageToken_ = nextPageToken_;
+ }
}
@java.lang.Override
@@ -539,6 +558,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.ListEnvironmentsRespo
}
if (!other.getNextPageToken().isEmpty()) {
nextPageToken_ = other.nextPageToken_;
+ bitField0_ |= 0x00000002;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
@@ -583,7 +603,7 @@ public Builder mergeFrom(
case 18:
{
nextPageToken_ = input.readStringRequireUtf8();
-
+ bitField0_ |= 0x00000002;
break;
} // case 18
default:
@@ -1075,8 +1095,8 @@ public Builder setNextPageToken(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
-
nextPageToken_ = value;
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -1093,8 +1113,8 @@ public Builder setNextPageToken(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearNextPageToken() {
-
nextPageToken_ = getDefaultInstance().getNextPageToken();
+ bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
@@ -1116,8 +1136,8 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
-
nextPageToken_ = value;
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListExperimentsRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListExperimentsRequest.java
index 360f31336248..070c53c9e0ac 100644
--- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListExperimentsRequest.java
+++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListExperimentsRequest.java
@@ -22,7 +22,8 @@
*
*
*
- * The request message for [Experiments.ListExperiments][google.cloud.dialogflow.cx.v3.Experiments.ListExperiments].
+ * The request message for
+ * [Experiments.ListExperiments][google.cloud.dialogflow.cx.v3.Experiments.ListExperiments].
*
*
* Protobuf type {@code google.cloud.dialogflow.cx.v3.ListExperimentsRequest}
@@ -69,14 +70,17 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
public static final int PARENT_FIELD_NUMBER = 1;
- private volatile java.lang.Object parent_;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object parent_ = "";
/**
*
*
*
- * Required. The [Environment][google.cloud.dialogflow.cx.v3.Environment] to list all environments for.
- * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
- * ID>/environments/<Environment ID>`.
+ * Required. The [Environment][google.cloud.dialogflow.cx.v3.Environment] to
+ * list all environments for. Format: `projects/<Project
+ * ID>/locations/<Location ID>/agents/<Agent ID>/environments/<Environment
+ * ID>`.
*
*
*
@@ -101,9 +105,10 @@ public java.lang.String getParent() {
*
*
*
- * Required. The [Environment][google.cloud.dialogflow.cx.v3.Environment] to list all environments for.
- * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
- * ID>/environments/<Environment ID>`.
+ * Required. The [Environment][google.cloud.dialogflow.cx.v3.Environment] to
+ * list all environments for. Format: `projects/<Project
+ * ID>/locations/<Location ID>/agents/<Agent ID>/environments/<Environment
+ * ID>`.
*
*
*
@@ -126,7 +131,7 @@ public com.google.protobuf.ByteString getParentBytes() {
}
public static final int PAGE_SIZE_FIELD_NUMBER = 2;
- private int pageSize_;
+ private int pageSize_ = 0;
/**
*
*
@@ -145,7 +150,9 @@ public int getPageSize() {
}
public static final int PAGE_TOKEN_FIELD_NUMBER = 3;
- private volatile java.lang.Object pageToken_;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object pageToken_ = "";
/**
*
*
@@ -375,7 +382,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
*
*
*
- * The request message for [Experiments.ListExperiments][google.cloud.dialogflow.cx.v3.Experiments.ListExperiments].
+ * The request message for
+ * [Experiments.ListExperiments][google.cloud.dialogflow.cx.v3.Experiments.ListExperiments].
*
*
* Protobuf type {@code google.cloud.dialogflow.cx.v3.ListExperimentsRequest}
@@ -409,12 +417,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
@java.lang.Override
public Builder clear() {
super.clear();
+ bitField0_ = 0;
parent_ = "";
-
pageSize_ = 0;
-
pageToken_ = "";
-
return this;
}
@@ -442,13 +448,26 @@ public com.google.cloud.dialogflow.cx.v3.ListExperimentsRequest build() {
public com.google.cloud.dialogflow.cx.v3.ListExperimentsRequest buildPartial() {
com.google.cloud.dialogflow.cx.v3.ListExperimentsRequest result =
new com.google.cloud.dialogflow.cx.v3.ListExperimentsRequest(this);
- result.parent_ = parent_;
- result.pageSize_ = pageSize_;
- result.pageToken_ = pageToken_;
+ if (bitField0_ != 0) {
+ buildPartial0(result);
+ }
onBuilt();
return result;
}
+ private void buildPartial0(com.google.cloud.dialogflow.cx.v3.ListExperimentsRequest result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.parent_ = parent_;
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.pageSize_ = pageSize_;
+ }
+ if (((from_bitField0_ & 0x00000004) != 0)) {
+ result.pageToken_ = pageToken_;
+ }
+ }
+
@java.lang.Override
public Builder clone() {
return super.clone();
@@ -497,6 +516,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.ListExperimentsReques
return this;
if (!other.getParent().isEmpty()) {
parent_ = other.parent_;
+ bitField0_ |= 0x00000001;
onChanged();
}
if (other.getPageSize() != 0) {
@@ -504,6 +524,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.ListExperimentsReques
}
if (!other.getPageToken().isEmpty()) {
pageToken_ = other.pageToken_;
+ bitField0_ |= 0x00000004;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
@@ -535,19 +556,19 @@ public Builder mergeFrom(
case 10:
{
parent_ = input.readStringRequireUtf8();
-
+ bitField0_ |= 0x00000001;
break;
} // case 10
case 16:
{
pageSize_ = input.readInt32();
-
+ bitField0_ |= 0x00000002;
break;
} // case 16
case 26:
{
pageToken_ = input.readStringRequireUtf8();
-
+ bitField0_ |= 0x00000004;
break;
} // case 26
default:
@@ -567,14 +588,17 @@ public Builder mergeFrom(
return this;
}
+ private int bitField0_;
+
private java.lang.Object parent_ = "";
/**
*
*
*
- * Required. The [Environment][google.cloud.dialogflow.cx.v3.Environment] to list all environments for.
- * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
- * ID>/environments/<Environment ID>`.
+ * Required. The [Environment][google.cloud.dialogflow.cx.v3.Environment] to
+ * list all environments for. Format: `projects/<Project
+ * ID>/locations/<Location ID>/agents/<Agent ID>/environments/<Environment
+ * ID>`.
*
*
*
@@ -598,9 +622,10 @@ public java.lang.String getParent() {
*
*
*
- * Required. The [Environment][google.cloud.dialogflow.cx.v3.Environment] to list all environments for.
- * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
- * ID>/environments/<Environment ID>`.
+ * Required. The [Environment][google.cloud.dialogflow.cx.v3.Environment] to
+ * list all environments for. Format: `projects/<Project
+ * ID>/locations/<Location ID>/agents/<Agent ID>/environments/<Environment
+ * ID>`.
*
*
*
@@ -624,9 +649,10 @@ public com.google.protobuf.ByteString getParentBytes() {
*
*
*
- * Required. The [Environment][google.cloud.dialogflow.cx.v3.Environment] to list all environments for.
- * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
- * ID>/environments/<Environment ID>`.
+ * Required. The [Environment][google.cloud.dialogflow.cx.v3.Environment] to
+ * list all environments for. Format: `projects/<Project
+ * ID>/locations/<Location ID>/agents/<Agent ID>/environments/<Environment
+ * ID>`.
*
*
*
@@ -640,8 +666,8 @@ public Builder setParent(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
-
parent_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -649,9 +675,10 @@ public Builder setParent(java.lang.String value) {
*
*
*
- * Required. The [Environment][google.cloud.dialogflow.cx.v3.Environment] to list all environments for.
- * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
- * ID>/environments/<Environment ID>`.
+ * Required. The [Environment][google.cloud.dialogflow.cx.v3.Environment] to
+ * list all environments for. Format: `projects/<Project
+ * ID>/locations/<Location ID>/agents/<Agent ID>/environments/<Environment
+ * ID>`.
*
*
*
@@ -661,8 +688,8 @@ public Builder setParent(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearParent() {
-
parent_ = getDefaultInstance().getParent();
+ bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
@@ -670,9 +697,10 @@ public Builder clearParent() {
*
*
*
- * Required. The [Environment][google.cloud.dialogflow.cx.v3.Environment] to list all environments for.
- * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
- * ID>/environments/<Environment ID>`.
+ * Required. The [Environment][google.cloud.dialogflow.cx.v3.Environment] to
+ * list all environments for. Format: `projects/<Project
+ * ID>/locations/<Location ID>/agents/<Agent ID>/environments/<Environment
+ * ID>`.
*
*
*
@@ -687,8 +715,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
-
parent_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -726,6 +754,7 @@ public int getPageSize() {
public Builder setPageSize(int value) {
pageSize_ = value;
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -742,7 +771,7 @@ public Builder setPageSize(int value) {
* @return This builder for chaining.
*/
public Builder clearPageSize() {
-
+ bitField0_ = (bitField0_ & ~0x00000002);
pageSize_ = 0;
onChanged();
return this;
@@ -809,8 +838,8 @@ public Builder setPageToken(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
-
pageToken_ = value;
+ bitField0_ |= 0x00000004;
onChanged();
return this;
}
@@ -826,8 +855,8 @@ public Builder setPageToken(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearPageToken() {
-
pageToken_ = getDefaultInstance().getPageToken();
+ bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
@@ -848,8 +877,8 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
-
pageToken_ = value;
+ bitField0_ |= 0x00000004;
onChanged();
return this;
}
diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListExperimentsRequestOrBuilder.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListExperimentsRequestOrBuilder.java
index fc5ffe75be0a..ad17ed322193 100644
--- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListExperimentsRequestOrBuilder.java
+++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListExperimentsRequestOrBuilder.java
@@ -27,9 +27,10 @@ public interface ListExperimentsRequestOrBuilder
*
*
*
- * Required. The [Environment][google.cloud.dialogflow.cx.v3.Environment] to list all environments for.
- * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
- * ID>/environments/<Environment ID>`.
+ * Required. The [Environment][google.cloud.dialogflow.cx.v3.Environment] to
+ * list all environments for. Format: `projects/<Project
+ * ID>/locations/<Location ID>/agents/<Agent ID>/environments/<Environment
+ * ID>`.
*
*
*
@@ -43,9 +44,10 @@ public interface ListExperimentsRequestOrBuilder
*
*
*
- * Required. The [Environment][google.cloud.dialogflow.cx.v3.Environment] to list all environments for.
- * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
- * ID>/environments/<Environment ID>`.
+ * Required. The [Environment][google.cloud.dialogflow.cx.v3.Environment] to
+ * list all environments for. Format: `projects/<Project
+ * ID>/locations/<Location ID>/agents/<Agent ID>/environments/<Environment
+ * ID>`.
*
*
*
diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListExperimentsResponse.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListExperimentsResponse.java
index 5ff3972e680d..e9442ac88610 100644
--- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListExperimentsResponse.java
+++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListExperimentsResponse.java
@@ -22,7 +22,8 @@
*
*
*
- * The response message for [Experiments.ListExperiments][google.cloud.dialogflow.cx.v3.Experiments.ListExperiments].
+ * The response message for
+ * [Experiments.ListExperiments][google.cloud.dialogflow.cx.v3.Experiments.ListExperiments].
*
*
* Protobuf type {@code google.cloud.dialogflow.cx.v3.ListExperimentsResponse}
@@ -69,6 +70,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
public static final int EXPERIMENTS_FIELD_NUMBER = 1;
+
+ @SuppressWarnings("serial")
private java.util.List experiments_;
/**
*
@@ -153,7 +156,9 @@ public com.google.cloud.dialogflow.cx.v3.ExperimentOrBuilder getExperimentsOrBui
}
public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2;
- private volatile java.lang.Object nextPageToken_;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object nextPageToken_ = "";
/**
*
*
@@ -378,7 +383,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
*
*
*
- * The response message for [Experiments.ListExperiments][google.cloud.dialogflow.cx.v3.Experiments.ListExperiments].
+ * The response message for
+ * [Experiments.ListExperiments][google.cloud.dialogflow.cx.v3.Experiments.ListExperiments].
*
*
* Protobuf type {@code google.cloud.dialogflow.cx.v3.ListExperimentsResponse}
@@ -412,6 +418,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
@java.lang.Override
public Builder clear() {
super.clear();
+ bitField0_ = 0;
if (experimentsBuilder_ == null) {
experiments_ = java.util.Collections.emptyList();
} else {
@@ -420,7 +427,6 @@ public Builder clear() {
}
bitField0_ = (bitField0_ & ~0x00000001);
nextPageToken_ = "";
-
return this;
}
@@ -448,7 +454,16 @@ public com.google.cloud.dialogflow.cx.v3.ListExperimentsResponse build() {
public com.google.cloud.dialogflow.cx.v3.ListExperimentsResponse buildPartial() {
com.google.cloud.dialogflow.cx.v3.ListExperimentsResponse result =
new com.google.cloud.dialogflow.cx.v3.ListExperimentsResponse(this);
- int from_bitField0_ = bitField0_;
+ buildPartialRepeatedFields(result);
+ if (bitField0_ != 0) {
+ buildPartial0(result);
+ }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartialRepeatedFields(
+ com.google.cloud.dialogflow.cx.v3.ListExperimentsResponse result) {
if (experimentsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
experiments_ = java.util.Collections.unmodifiableList(experiments_);
@@ -458,9 +473,13 @@ public com.google.cloud.dialogflow.cx.v3.ListExperimentsResponse buildPartial()
} else {
result.experiments_ = experimentsBuilder_.build();
}
- result.nextPageToken_ = nextPageToken_;
- onBuilt();
- return result;
+ }
+
+ private void buildPartial0(com.google.cloud.dialogflow.cx.v3.ListExperimentsResponse result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.nextPageToken_ = nextPageToken_;
+ }
}
@java.lang.Override
@@ -538,6 +557,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.ListExperimentsRespon
}
if (!other.getNextPageToken().isEmpty()) {
nextPageToken_ = other.nextPageToken_;
+ bitField0_ |= 0x00000002;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
@@ -582,7 +602,7 @@ public Builder mergeFrom(
case 18:
{
nextPageToken_ = input.readStringRequireUtf8();
-
+ bitField0_ |= 0x00000002;
break;
} // case 18
default:
@@ -1074,8 +1094,8 @@ public Builder setNextPageToken(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
-
nextPageToken_ = value;
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -1092,8 +1112,8 @@ public Builder setNextPageToken(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearNextPageToken() {
-
nextPageToken_ = getDefaultInstance().getNextPageToken();
+ bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
@@ -1115,8 +1135,8 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
-
nextPageToken_ = value;
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListFlowsRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListFlowsRequest.java
index 95d62f3bd1a5..3084205925b7 100644
--- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListFlowsRequest.java
+++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListFlowsRequest.java
@@ -22,7 +22,8 @@
*
*
*
- * The request message for [Flows.ListFlows][google.cloud.dialogflow.cx.v3.Flows.ListFlows].
+ * The request message for
+ * [Flows.ListFlows][google.cloud.dialogflow.cx.v3.Flows.ListFlows].
*
*
* Protobuf type {@code google.cloud.dialogflow.cx.v3.ListFlowsRequest}
@@ -70,7 +71,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
public static final int PARENT_FIELD_NUMBER = 1;
- private volatile java.lang.Object parent_;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object parent_ = "";
/**
*
*
@@ -125,7 +128,7 @@ public com.google.protobuf.ByteString getParentBytes() {
}
public static final int PAGE_SIZE_FIELD_NUMBER = 2;
- private int pageSize_;
+ private int pageSize_ = 0;
/**
*
*
@@ -144,7 +147,9 @@ public int getPageSize() {
}
public static final int PAGE_TOKEN_FIELD_NUMBER = 3;
- private volatile java.lang.Object pageToken_;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object pageToken_ = "";
/**
*
*
@@ -193,7 +198,9 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
}
public static final int LANGUAGE_CODE_FIELD_NUMBER = 4;
- private volatile java.lang.Object languageCode_;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object languageCode_ = "";
/**
*
*
@@ -451,7 +458,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
*
*
*
- * The request message for [Flows.ListFlows][google.cloud.dialogflow.cx.v3.Flows.ListFlows].
+ * The request message for
+ * [Flows.ListFlows][google.cloud.dialogflow.cx.v3.Flows.ListFlows].
*
*
* Protobuf type {@code google.cloud.dialogflow.cx.v3.ListFlowsRequest}
@@ -485,14 +493,11 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
@java.lang.Override
public Builder clear() {
super.clear();
+ bitField0_ = 0;
parent_ = "";
-
pageSize_ = 0;
-
pageToken_ = "";
-
languageCode_ = "";
-
return this;
}
@@ -520,14 +525,29 @@ public com.google.cloud.dialogflow.cx.v3.ListFlowsRequest build() {
public com.google.cloud.dialogflow.cx.v3.ListFlowsRequest buildPartial() {
com.google.cloud.dialogflow.cx.v3.ListFlowsRequest result =
new com.google.cloud.dialogflow.cx.v3.ListFlowsRequest(this);
- result.parent_ = parent_;
- result.pageSize_ = pageSize_;
- result.pageToken_ = pageToken_;
- result.languageCode_ = languageCode_;
+ if (bitField0_ != 0) {
+ buildPartial0(result);
+ }
onBuilt();
return result;
}
+ private void buildPartial0(com.google.cloud.dialogflow.cx.v3.ListFlowsRequest result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.parent_ = parent_;
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.pageSize_ = pageSize_;
+ }
+ if (((from_bitField0_ & 0x00000004) != 0)) {
+ result.pageToken_ = pageToken_;
+ }
+ if (((from_bitField0_ & 0x00000008) != 0)) {
+ result.languageCode_ = languageCode_;
+ }
+ }
+
@java.lang.Override
public Builder clone() {
return super.clone();
@@ -576,6 +596,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.ListFlowsRequest othe
return this;
if (!other.getParent().isEmpty()) {
parent_ = other.parent_;
+ bitField0_ |= 0x00000001;
onChanged();
}
if (other.getPageSize() != 0) {
@@ -583,10 +604,12 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.ListFlowsRequest othe
}
if (!other.getPageToken().isEmpty()) {
pageToken_ = other.pageToken_;
+ bitField0_ |= 0x00000004;
onChanged();
}
if (!other.getLanguageCode().isEmpty()) {
languageCode_ = other.languageCode_;
+ bitField0_ |= 0x00000008;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
@@ -618,25 +641,25 @@ public Builder mergeFrom(
case 10:
{
parent_ = input.readStringRequireUtf8();
-
+ bitField0_ |= 0x00000001;
break;
} // case 10
case 16:
{
pageSize_ = input.readInt32();
-
+ bitField0_ |= 0x00000002;
break;
} // case 16
case 26:
{
pageToken_ = input.readStringRequireUtf8();
-
+ bitField0_ |= 0x00000004;
break;
} // case 26
case 34:
{
languageCode_ = input.readStringRequireUtf8();
-
+ bitField0_ |= 0x00000008;
break;
} // case 34
default:
@@ -656,6 +679,8 @@ public Builder mergeFrom(
return this;
}
+ private int bitField0_;
+
private java.lang.Object parent_ = "";
/**
*
@@ -726,8 +751,8 @@ public Builder setParent(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
-
parent_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -746,8 +771,8 @@ public Builder setParent(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearParent() {
-
parent_ = getDefaultInstance().getParent();
+ bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
@@ -771,8 +796,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
-
parent_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -810,6 +835,7 @@ public int getPageSize() {
public Builder setPageSize(int value) {
pageSize_ = value;
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -826,7 +852,7 @@ public Builder setPageSize(int value) {
* @return This builder for chaining.
*/
public Builder clearPageSize() {
-
+ bitField0_ = (bitField0_ & ~0x00000002);
pageSize_ = 0;
onChanged();
return this;
@@ -893,8 +919,8 @@ public Builder setPageToken(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
-
pageToken_ = value;
+ bitField0_ |= 0x00000004;
onChanged();
return this;
}
@@ -910,8 +936,8 @@ public Builder setPageToken(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearPageToken() {
-
pageToken_ = getDefaultInstance().getPageToken();
+ bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
@@ -932,8 +958,8 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
-
pageToken_ = value;
+ bitField0_ |= 0x00000004;
onChanged();
return this;
}
@@ -1029,8 +1055,8 @@ public Builder setLanguageCode(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
-
languageCode_ = value;
+ bitField0_ |= 0x00000008;
onChanged();
return this;
}
@@ -1056,8 +1082,8 @@ public Builder setLanguageCode(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearLanguageCode() {
-
languageCode_ = getDefaultInstance().getLanguageCode();
+ bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
return this;
}
@@ -1088,8 +1114,8 @@ public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
-
languageCode_ = value;
+ bitField0_ |= 0x00000008;
onChanged();
return this;
}
diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListFlowsResponse.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListFlowsResponse.java
index 3b2255561715..ac42bd439471 100644
--- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListFlowsResponse.java
+++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListFlowsResponse.java
@@ -22,7 +22,8 @@
*
*
*
- * The response message for [Flows.ListFlows][google.cloud.dialogflow.cx.v3.Flows.ListFlows].
+ * The response message for
+ * [Flows.ListFlows][google.cloud.dialogflow.cx.v3.Flows.ListFlows].
*
*
* Protobuf type {@code google.cloud.dialogflow.cx.v3.ListFlowsResponse}
@@ -69,6 +70,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
public static final int FLOWS_FIELD_NUMBER = 1;
+
+ @SuppressWarnings("serial")
private java.util.List flows_;
/**
*
@@ -143,7 +146,9 @@ public com.google.cloud.dialogflow.cx.v3.FlowOrBuilder getFlowsOrBuilder(int ind
}
public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2;
- private volatile java.lang.Object nextPageToken_;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object nextPageToken_ = "";
/**
*
*
@@ -367,7 +372,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
*
*
*
- * The response message for [Flows.ListFlows][google.cloud.dialogflow.cx.v3.Flows.ListFlows].
+ * The response message for
+ * [Flows.ListFlows][google.cloud.dialogflow.cx.v3.Flows.ListFlows].
*
*
* Protobuf type {@code google.cloud.dialogflow.cx.v3.ListFlowsResponse}
@@ -401,6 +407,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
@java.lang.Override
public Builder clear() {
super.clear();
+ bitField0_ = 0;
if (flowsBuilder_ == null) {
flows_ = java.util.Collections.emptyList();
} else {
@@ -409,7 +416,6 @@ public Builder clear() {
}
bitField0_ = (bitField0_ & ~0x00000001);
nextPageToken_ = "";
-
return this;
}
@@ -437,7 +443,16 @@ public com.google.cloud.dialogflow.cx.v3.ListFlowsResponse build() {
public com.google.cloud.dialogflow.cx.v3.ListFlowsResponse buildPartial() {
com.google.cloud.dialogflow.cx.v3.ListFlowsResponse result =
new com.google.cloud.dialogflow.cx.v3.ListFlowsResponse(this);
- int from_bitField0_ = bitField0_;
+ buildPartialRepeatedFields(result);
+ if (bitField0_ != 0) {
+ buildPartial0(result);
+ }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartialRepeatedFields(
+ com.google.cloud.dialogflow.cx.v3.ListFlowsResponse result) {
if (flowsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
flows_ = java.util.Collections.unmodifiableList(flows_);
@@ -447,9 +462,13 @@ public com.google.cloud.dialogflow.cx.v3.ListFlowsResponse buildPartial() {
} else {
result.flows_ = flowsBuilder_.build();
}
- result.nextPageToken_ = nextPageToken_;
- onBuilt();
- return result;
+ }
+
+ private void buildPartial0(com.google.cloud.dialogflow.cx.v3.ListFlowsResponse result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.nextPageToken_ = nextPageToken_;
+ }
}
@java.lang.Override
@@ -527,6 +546,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.ListFlowsResponse oth
}
if (!other.getNextPageToken().isEmpty()) {
nextPageToken_ = other.nextPageToken_;
+ bitField0_ |= 0x00000002;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
@@ -571,7 +591,7 @@ public Builder mergeFrom(
case 18:
{
nextPageToken_ = input.readStringRequireUtf8();
-
+ bitField0_ |= 0x00000002;
break;
} // case 18
default:
@@ -1023,8 +1043,8 @@ public Builder setNextPageToken(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
-
nextPageToken_ = value;
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -1041,8 +1061,8 @@ public Builder setNextPageToken(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearNextPageToken() {
-
nextPageToken_ = getDefaultInstance().getNextPageToken();
+ bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
@@ -1064,8 +1084,8 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
-
nextPageToken_ = value;
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListIntentsRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListIntentsRequest.java
index 473f60253c66..3d0893256ea1 100644
--- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListIntentsRequest.java
+++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListIntentsRequest.java
@@ -22,7 +22,8 @@
*
*
*
- * The request message for [Intents.ListIntents][google.cloud.dialogflow.cx.v3.Intents.ListIntents].
+ * The request message for
+ * [Intents.ListIntents][google.cloud.dialogflow.cx.v3.Intents.ListIntents].
*
*
* Protobuf type {@code google.cloud.dialogflow.cx.v3.ListIntentsRequest}
@@ -71,7 +72,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
public static final int PARENT_FIELD_NUMBER = 1;
- private volatile java.lang.Object parent_;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object parent_ = "";
/**
*
*
@@ -126,7 +129,9 @@ public com.google.protobuf.ByteString getParentBytes() {
}
public static final int LANGUAGE_CODE_FIELD_NUMBER = 2;
- private volatile java.lang.Object languageCode_;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object languageCode_ = "";
/**
*
*
@@ -189,7 +194,7 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() {
}
public static final int INTENT_VIEW_FIELD_NUMBER = 5;
- private int intentView_;
+ private int intentView_ = 0;
/**
*
*
@@ -218,14 +223,13 @@ public int getIntentViewValue() {
*/
@java.lang.Override
public com.google.cloud.dialogflow.cx.v3.IntentView getIntentView() {
- @SuppressWarnings("deprecation")
com.google.cloud.dialogflow.cx.v3.IntentView result =
- com.google.cloud.dialogflow.cx.v3.IntentView.valueOf(intentView_);
+ com.google.cloud.dialogflow.cx.v3.IntentView.forNumber(intentView_);
return result == null ? com.google.cloud.dialogflow.cx.v3.IntentView.UNRECOGNIZED : result;
}
public static final int PAGE_SIZE_FIELD_NUMBER = 3;
- private int pageSize_;
+ private int pageSize_ = 0;
/**
*
*
@@ -244,7 +248,9 @@ public int getPageSize() {
}
public static final int PAGE_TOKEN_FIELD_NUMBER = 4;
- private volatile java.lang.Object pageToken_;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object pageToken_ = "";
/**
*
*
@@ -493,7 +499,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
*
*
*
- * The request message for [Intents.ListIntents][google.cloud.dialogflow.cx.v3.Intents.ListIntents].
+ * The request message for
+ * [Intents.ListIntents][google.cloud.dialogflow.cx.v3.Intents.ListIntents].
*
*
* Protobuf type {@code google.cloud.dialogflow.cx.v3.ListIntentsRequest}
@@ -527,16 +534,12 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
@java.lang.Override
public Builder clear() {
super.clear();
+ bitField0_ = 0;
parent_ = "";
-
languageCode_ = "";
-
intentView_ = 0;
-
pageSize_ = 0;
-
pageToken_ = "";
-
return this;
}
@@ -564,15 +567,32 @@ public com.google.cloud.dialogflow.cx.v3.ListIntentsRequest build() {
public com.google.cloud.dialogflow.cx.v3.ListIntentsRequest buildPartial() {
com.google.cloud.dialogflow.cx.v3.ListIntentsRequest result =
new com.google.cloud.dialogflow.cx.v3.ListIntentsRequest(this);
- result.parent_ = parent_;
- result.languageCode_ = languageCode_;
- result.intentView_ = intentView_;
- result.pageSize_ = pageSize_;
- result.pageToken_ = pageToken_;
+ if (bitField0_ != 0) {
+ buildPartial0(result);
+ }
onBuilt();
return result;
}
+ private void buildPartial0(com.google.cloud.dialogflow.cx.v3.ListIntentsRequest result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.parent_ = parent_;
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.languageCode_ = languageCode_;
+ }
+ if (((from_bitField0_ & 0x00000004) != 0)) {
+ result.intentView_ = intentView_;
+ }
+ if (((from_bitField0_ & 0x00000008) != 0)) {
+ result.pageSize_ = pageSize_;
+ }
+ if (((from_bitField0_ & 0x00000010) != 0)) {
+ result.pageToken_ = pageToken_;
+ }
+ }
+
@java.lang.Override
public Builder clone() {
return super.clone();
@@ -621,10 +641,12 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.ListIntentsRequest ot
return this;
if (!other.getParent().isEmpty()) {
parent_ = other.parent_;
+ bitField0_ |= 0x00000001;
onChanged();
}
if (!other.getLanguageCode().isEmpty()) {
languageCode_ = other.languageCode_;
+ bitField0_ |= 0x00000002;
onChanged();
}
if (other.intentView_ != 0) {
@@ -635,6 +657,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.ListIntentsRequest ot
}
if (!other.getPageToken().isEmpty()) {
pageToken_ = other.pageToken_;
+ bitField0_ |= 0x00000010;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
@@ -666,31 +689,31 @@ public Builder mergeFrom(
case 10:
{
parent_ = input.readStringRequireUtf8();
-
+ bitField0_ |= 0x00000001;
break;
} // case 10
case 18:
{
languageCode_ = input.readStringRequireUtf8();
-
+ bitField0_ |= 0x00000002;
break;
} // case 18
case 24:
{
pageSize_ = input.readInt32();
-
+ bitField0_ |= 0x00000008;
break;
} // case 24
case 34:
{
pageToken_ = input.readStringRequireUtf8();
-
+ bitField0_ |= 0x00000010;
break;
} // case 34
case 40:
{
intentView_ = input.readEnum();
-
+ bitField0_ |= 0x00000004;
break;
} // case 40
default:
@@ -710,6 +733,8 @@ public Builder mergeFrom(
return this;
}
+ private int bitField0_;
+
private java.lang.Object parent_ = "";
/**
*
@@ -780,8 +805,8 @@ public Builder setParent(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
-
parent_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -800,8 +825,8 @@ public Builder setParent(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearParent() {
-
parent_ = getDefaultInstance().getParent();
+ bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
@@ -825,8 +850,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
-
parent_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -913,8 +938,8 @@ public Builder setLanguageCode(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
-
languageCode_ = value;
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -937,8 +962,8 @@ public Builder setLanguageCode(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearLanguageCode() {
-
languageCode_ = getDefaultInstance().getLanguageCode();
+ bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
@@ -966,8 +991,8 @@ public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
-
languageCode_ = value;
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -1001,8 +1026,8 @@ public int getIntentViewValue() {
* @return This builder for chaining.
*/
public Builder setIntentViewValue(int value) {
-
intentView_ = value;
+ bitField0_ |= 0x00000004;
onChanged();
return this;
}
@@ -1019,9 +1044,8 @@ public Builder setIntentViewValue(int value) {
*/
@java.lang.Override
public com.google.cloud.dialogflow.cx.v3.IntentView getIntentView() {
- @SuppressWarnings("deprecation")
com.google.cloud.dialogflow.cx.v3.IntentView result =
- com.google.cloud.dialogflow.cx.v3.IntentView.valueOf(intentView_);
+ com.google.cloud.dialogflow.cx.v3.IntentView.forNumber(intentView_);
return result == null ? com.google.cloud.dialogflow.cx.v3.IntentView.UNRECOGNIZED : result;
}
/**
@@ -1040,7 +1064,7 @@ public Builder setIntentView(com.google.cloud.dialogflow.cx.v3.IntentView value)
if (value == null) {
throw new NullPointerException();
}
-
+ bitField0_ |= 0x00000004;
intentView_ = value.getNumber();
onChanged();
return this;
@@ -1057,7 +1081,7 @@ public Builder setIntentView(com.google.cloud.dialogflow.cx.v3.IntentView value)
* @return This builder for chaining.
*/
public Builder clearIntentView() {
-
+ bitField0_ = (bitField0_ & ~0x00000004);
intentView_ = 0;
onChanged();
return this;
@@ -1096,6 +1120,7 @@ public int getPageSize() {
public Builder setPageSize(int value) {
pageSize_ = value;
+ bitField0_ |= 0x00000008;
onChanged();
return this;
}
@@ -1112,7 +1137,7 @@ public Builder setPageSize(int value) {
* @return This builder for chaining.
*/
public Builder clearPageSize() {
-
+ bitField0_ = (bitField0_ & ~0x00000008);
pageSize_ = 0;
onChanged();
return this;
@@ -1179,8 +1204,8 @@ public Builder setPageToken(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
-
pageToken_ = value;
+ bitField0_ |= 0x00000010;
onChanged();
return this;
}
@@ -1196,8 +1221,8 @@ public Builder setPageToken(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearPageToken() {
-
pageToken_ = getDefaultInstance().getPageToken();
+ bitField0_ = (bitField0_ & ~0x00000010);
onChanged();
return this;
}
@@ -1218,8 +1243,8 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
-
pageToken_ = value;
+ bitField0_ |= 0x00000010;
onChanged();
return this;
}
diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListIntentsResponse.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListIntentsResponse.java
index 2f290972256c..4f1b4a7f333e 100644
--- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListIntentsResponse.java
+++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListIntentsResponse.java
@@ -22,7 +22,8 @@
*
*
*
- * The response message for [Intents.ListIntents][google.cloud.dialogflow.cx.v3.Intents.ListIntents].
+ * The response message for
+ * [Intents.ListIntents][google.cloud.dialogflow.cx.v3.Intents.ListIntents].
*
*
* Protobuf type {@code google.cloud.dialogflow.cx.v3.ListIntentsResponse}
@@ -69,6 +70,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
public static final int INTENTS_FIELD_NUMBER = 1;
+
+ @SuppressWarnings("serial")
private java.util.List intents_;
/**
*
@@ -143,7 +146,9 @@ public com.google.cloud.dialogflow.cx.v3.IntentOrBuilder getIntentsOrBuilder(int
}
public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2;
- private volatile java.lang.Object nextPageToken_;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object nextPageToken_ = "";
/**
*
*
@@ -368,7 +373,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
*
*
*
- * The response message for [Intents.ListIntents][google.cloud.dialogflow.cx.v3.Intents.ListIntents].
+ * The response message for
+ * [Intents.ListIntents][google.cloud.dialogflow.cx.v3.Intents.ListIntents].
*
*
* Protobuf type {@code google.cloud.dialogflow.cx.v3.ListIntentsResponse}
@@ -402,6 +408,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
@java.lang.Override
public Builder clear() {
super.clear();
+ bitField0_ = 0;
if (intentsBuilder_ == null) {
intents_ = java.util.Collections.emptyList();
} else {
@@ -410,7 +417,6 @@ public Builder clear() {
}
bitField0_ = (bitField0_ & ~0x00000001);
nextPageToken_ = "";
-
return this;
}
@@ -438,7 +444,16 @@ public com.google.cloud.dialogflow.cx.v3.ListIntentsResponse build() {
public com.google.cloud.dialogflow.cx.v3.ListIntentsResponse buildPartial() {
com.google.cloud.dialogflow.cx.v3.ListIntentsResponse result =
new com.google.cloud.dialogflow.cx.v3.ListIntentsResponse(this);
- int from_bitField0_ = bitField0_;
+ buildPartialRepeatedFields(result);
+ if (bitField0_ != 0) {
+ buildPartial0(result);
+ }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartialRepeatedFields(
+ com.google.cloud.dialogflow.cx.v3.ListIntentsResponse result) {
if (intentsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
intents_ = java.util.Collections.unmodifiableList(intents_);
@@ -448,9 +463,13 @@ public com.google.cloud.dialogflow.cx.v3.ListIntentsResponse buildPartial() {
} else {
result.intents_ = intentsBuilder_.build();
}
- result.nextPageToken_ = nextPageToken_;
- onBuilt();
- return result;
+ }
+
+ private void buildPartial0(com.google.cloud.dialogflow.cx.v3.ListIntentsResponse result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.nextPageToken_ = nextPageToken_;
+ }
}
@java.lang.Override
@@ -528,6 +547,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.ListIntentsResponse o
}
if (!other.getNextPageToken().isEmpty()) {
nextPageToken_ = other.nextPageToken_;
+ bitField0_ |= 0x00000002;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
@@ -572,7 +592,7 @@ public Builder mergeFrom(
case 18:
{
nextPageToken_ = input.readStringRequireUtf8();
-
+ bitField0_ |= 0x00000002;
break;
} // case 18
default:
@@ -1025,8 +1045,8 @@ public Builder setNextPageToken(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
-
nextPageToken_ = value;
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -1043,8 +1063,8 @@ public Builder setNextPageToken(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearNextPageToken() {
-
nextPageToken_ = getDefaultInstance().getNextPageToken();
+ bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
@@ -1066,8 +1086,8 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
-
nextPageToken_ = value;
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListPagesRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListPagesRequest.java
index 446ffc1ed595..c784ee6a57ae 100644
--- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListPagesRequest.java
+++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListPagesRequest.java
@@ -22,7 +22,8 @@
*
*
*
- * The request message for [Pages.ListPages][google.cloud.dialogflow.cx.v3.Pages.ListPages].
+ * The request message for
+ * [Pages.ListPages][google.cloud.dialogflow.cx.v3.Pages.ListPages].
*
*
* Protobuf type {@code google.cloud.dialogflow.cx.v3.ListPagesRequest}
@@ -70,7 +71,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
public static final int PARENT_FIELD_NUMBER = 1;
- private volatile java.lang.Object parent_;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object parent_ = "";
/**
*
*
@@ -127,7 +130,9 @@ public com.google.protobuf.ByteString getParentBytes() {
}
public static final int LANGUAGE_CODE_FIELD_NUMBER = 2;
- private volatile java.lang.Object languageCode_;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object languageCode_ = "";
/**
*
*
@@ -212,7 +217,7 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() {
}
public static final int PAGE_SIZE_FIELD_NUMBER = 3;
- private int pageSize_;
+ private int pageSize_ = 0;
/**
*
*
@@ -231,7 +236,9 @@ public int getPageSize() {
}
public static final int PAGE_TOKEN_FIELD_NUMBER = 4;
- private volatile java.lang.Object pageToken_;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object pageToken_ = "";
/**
*
*
@@ -469,7 +476,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
*
*
*
- * The request message for [Pages.ListPages][google.cloud.dialogflow.cx.v3.Pages.ListPages].
+ * The request message for
+ * [Pages.ListPages][google.cloud.dialogflow.cx.v3.Pages.ListPages].
*
*
* Protobuf type {@code google.cloud.dialogflow.cx.v3.ListPagesRequest}
@@ -503,14 +511,11 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
@java.lang.Override
public Builder clear() {
super.clear();
+ bitField0_ = 0;
parent_ = "";
-
languageCode_ = "";
-
pageSize_ = 0;
-
pageToken_ = "";
-
return this;
}
@@ -538,14 +543,29 @@ public com.google.cloud.dialogflow.cx.v3.ListPagesRequest build() {
public com.google.cloud.dialogflow.cx.v3.ListPagesRequest buildPartial() {
com.google.cloud.dialogflow.cx.v3.ListPagesRequest result =
new com.google.cloud.dialogflow.cx.v3.ListPagesRequest(this);
- result.parent_ = parent_;
- result.languageCode_ = languageCode_;
- result.pageSize_ = pageSize_;
- result.pageToken_ = pageToken_;
+ if (bitField0_ != 0) {
+ buildPartial0(result);
+ }
onBuilt();
return result;
}
+ private void buildPartial0(com.google.cloud.dialogflow.cx.v3.ListPagesRequest result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.parent_ = parent_;
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.languageCode_ = languageCode_;
+ }
+ if (((from_bitField0_ & 0x00000004) != 0)) {
+ result.pageSize_ = pageSize_;
+ }
+ if (((from_bitField0_ & 0x00000008) != 0)) {
+ result.pageToken_ = pageToken_;
+ }
+ }
+
@java.lang.Override
public Builder clone() {
return super.clone();
@@ -594,10 +614,12 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.ListPagesRequest othe
return this;
if (!other.getParent().isEmpty()) {
parent_ = other.parent_;
+ bitField0_ |= 0x00000001;
onChanged();
}
if (!other.getLanguageCode().isEmpty()) {
languageCode_ = other.languageCode_;
+ bitField0_ |= 0x00000002;
onChanged();
}
if (other.getPageSize() != 0) {
@@ -605,6 +627,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.ListPagesRequest othe
}
if (!other.getPageToken().isEmpty()) {
pageToken_ = other.pageToken_;
+ bitField0_ |= 0x00000008;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
@@ -636,25 +659,25 @@ public Builder mergeFrom(
case 10:
{
parent_ = input.readStringRequireUtf8();
-
+ bitField0_ |= 0x00000001;
break;
} // case 10
case 18:
{
languageCode_ = input.readStringRequireUtf8();
-
+ bitField0_ |= 0x00000002;
break;
} // case 18
case 24:
{
pageSize_ = input.readInt32();
-
+ bitField0_ |= 0x00000004;
break;
} // case 24
case 34:
{
pageToken_ = input.readStringRequireUtf8();
-
+ bitField0_ |= 0x00000008;
break;
} // case 34
default:
@@ -674,6 +697,8 @@ public Builder mergeFrom(
return this;
}
+ private int bitField0_;
+
private java.lang.Object parent_ = "";
/**
*
@@ -747,8 +772,8 @@ public Builder setParent(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
-
parent_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -768,8 +793,8 @@ public Builder setParent(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearParent() {
-
parent_ = getDefaultInstance().getParent();
+ bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
@@ -794,8 +819,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
-
parent_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -915,8 +940,8 @@ public Builder setLanguageCode(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
-
languageCode_ = value;
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -950,8 +975,8 @@ public Builder setLanguageCode(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearLanguageCode() {
-
languageCode_ = getDefaultInstance().getLanguageCode();
+ bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
@@ -990,8 +1015,8 @@ public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
-
languageCode_ = value;
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -1029,6 +1054,7 @@ public int getPageSize() {
public Builder setPageSize(int value) {
pageSize_ = value;
+ bitField0_ |= 0x00000004;
onChanged();
return this;
}
@@ -1045,7 +1071,7 @@ public Builder setPageSize(int value) {
* @return This builder for chaining.
*/
public Builder clearPageSize() {
-
+ bitField0_ = (bitField0_ & ~0x00000004);
pageSize_ = 0;
onChanged();
return this;
@@ -1112,8 +1138,8 @@ public Builder setPageToken(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
-
pageToken_ = value;
+ bitField0_ |= 0x00000008;
onChanged();
return this;
}
@@ -1129,8 +1155,8 @@ public Builder setPageToken(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearPageToken() {
-
pageToken_ = getDefaultInstance().getPageToken();
+ bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
return this;
}
@@ -1151,8 +1177,8 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
-
pageToken_ = value;
+ bitField0_ |= 0x00000008;
onChanged();
return this;
}
diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListPagesResponse.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListPagesResponse.java
index 99aae1dced7c..21d22ab8b929 100644
--- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListPagesResponse.java
+++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListPagesResponse.java
@@ -22,7 +22,8 @@
*
*
*
- * The response message for [Pages.ListPages][google.cloud.dialogflow.cx.v3.Pages.ListPages].
+ * The response message for
+ * [Pages.ListPages][google.cloud.dialogflow.cx.v3.Pages.ListPages].
*
*
* Protobuf type {@code google.cloud.dialogflow.cx.v3.ListPagesResponse}
@@ -69,6 +70,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
public static final int PAGES_FIELD_NUMBER = 1;
+
+ @SuppressWarnings("serial")
private java.util.List pages_;
/**
*
@@ -143,7 +146,9 @@ public com.google.cloud.dialogflow.cx.v3.PageOrBuilder getPagesOrBuilder(int ind
}
public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2;
- private volatile java.lang.Object nextPageToken_;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object nextPageToken_ = "";
/**
*
*
@@ -367,7 +372,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
*
*
*
- * The response message for [Pages.ListPages][google.cloud.dialogflow.cx.v3.Pages.ListPages].
+ * The response message for
+ * [Pages.ListPages][google.cloud.dialogflow.cx.v3.Pages.ListPages].
*
*
* Protobuf type {@code google.cloud.dialogflow.cx.v3.ListPagesResponse}
@@ -401,6 +407,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
@java.lang.Override
public Builder clear() {
super.clear();
+ bitField0_ = 0;
if (pagesBuilder_ == null) {
pages_ = java.util.Collections.emptyList();
} else {
@@ -409,7 +416,6 @@ public Builder clear() {
}
bitField0_ = (bitField0_ & ~0x00000001);
nextPageToken_ = "";
-
return this;
}
@@ -437,7 +443,16 @@ public com.google.cloud.dialogflow.cx.v3.ListPagesResponse build() {
public com.google.cloud.dialogflow.cx.v3.ListPagesResponse buildPartial() {
com.google.cloud.dialogflow.cx.v3.ListPagesResponse result =
new com.google.cloud.dialogflow.cx.v3.ListPagesResponse(this);
- int from_bitField0_ = bitField0_;
+ buildPartialRepeatedFields(result);
+ if (bitField0_ != 0) {
+ buildPartial0(result);
+ }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartialRepeatedFields(
+ com.google.cloud.dialogflow.cx.v3.ListPagesResponse result) {
if (pagesBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
pages_ = java.util.Collections.unmodifiableList(pages_);
@@ -447,9 +462,13 @@ public com.google.cloud.dialogflow.cx.v3.ListPagesResponse buildPartial() {
} else {
result.pages_ = pagesBuilder_.build();
}
- result.nextPageToken_ = nextPageToken_;
- onBuilt();
- return result;
+ }
+
+ private void buildPartial0(com.google.cloud.dialogflow.cx.v3.ListPagesResponse result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.nextPageToken_ = nextPageToken_;
+ }
}
@java.lang.Override
@@ -527,6 +546,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.ListPagesResponse oth
}
if (!other.getNextPageToken().isEmpty()) {
nextPageToken_ = other.nextPageToken_;
+ bitField0_ |= 0x00000002;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
@@ -571,7 +591,7 @@ public Builder mergeFrom(
case 18:
{
nextPageToken_ = input.readStringRequireUtf8();
-
+ bitField0_ |= 0x00000002;
break;
} // case 18
default:
@@ -1023,8 +1043,8 @@ public Builder setNextPageToken(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
-
nextPageToken_ = value;
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -1041,8 +1061,8 @@ public Builder setNextPageToken(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearNextPageToken() {
-
nextPageToken_ = getDefaultInstance().getNextPageToken();
+ bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
@@ -1064,8 +1084,8 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
-
nextPageToken_ = value;
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListSecuritySettingsRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListSecuritySettingsRequest.java
index 578d7472266e..6a4cc6996347 100644
--- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListSecuritySettingsRequest.java
+++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListSecuritySettingsRequest.java
@@ -69,7 +69,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
public static final int PARENT_FIELD_NUMBER = 1;
- private volatile java.lang.Object parent_;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object parent_ = "";
/**
*
*
@@ -124,7 +126,7 @@ public com.google.protobuf.ByteString getParentBytes() {
}
public static final int PAGE_SIZE_FIELD_NUMBER = 2;
- private int pageSize_;
+ private int pageSize_ = 0;
/**
*
*
@@ -143,7 +145,9 @@ public int getPageSize() {
}
public static final int PAGE_TOKEN_FIELD_NUMBER = 3;
- private volatile java.lang.Object pageToken_;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object pageToken_ = "";
/**
*
*
@@ -407,12 +411,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
@java.lang.Override
public Builder clear() {
super.clear();
+ bitField0_ = 0;
parent_ = "";
-
pageSize_ = 0;
-
pageToken_ = "";
-
return this;
}
@@ -441,13 +443,27 @@ public com.google.cloud.dialogflow.cx.v3.ListSecuritySettingsRequest build() {
public com.google.cloud.dialogflow.cx.v3.ListSecuritySettingsRequest buildPartial() {
com.google.cloud.dialogflow.cx.v3.ListSecuritySettingsRequest result =
new com.google.cloud.dialogflow.cx.v3.ListSecuritySettingsRequest(this);
- result.parent_ = parent_;
- result.pageSize_ = pageSize_;
- result.pageToken_ = pageToken_;
+ if (bitField0_ != 0) {
+ buildPartial0(result);
+ }
onBuilt();
return result;
}
+ private void buildPartial0(
+ com.google.cloud.dialogflow.cx.v3.ListSecuritySettingsRequest result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.parent_ = parent_;
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.pageSize_ = pageSize_;
+ }
+ if (((from_bitField0_ & 0x00000004) != 0)) {
+ result.pageToken_ = pageToken_;
+ }
+ }
+
@java.lang.Override
public Builder clone() {
return super.clone();
@@ -497,6 +513,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.ListSecuritySettingsR
return this;
if (!other.getParent().isEmpty()) {
parent_ = other.parent_;
+ bitField0_ |= 0x00000001;
onChanged();
}
if (other.getPageSize() != 0) {
@@ -504,6 +521,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.ListSecuritySettingsR
}
if (!other.getPageToken().isEmpty()) {
pageToken_ = other.pageToken_;
+ bitField0_ |= 0x00000004;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
@@ -535,19 +553,19 @@ public Builder mergeFrom(
case 10:
{
parent_ = input.readStringRequireUtf8();
-
+ bitField0_ |= 0x00000001;
break;
} // case 10
case 16:
{
pageSize_ = input.readInt32();
-
+ bitField0_ |= 0x00000002;
break;
} // case 16
case 26:
{
pageToken_ = input.readStringRequireUtf8();
-
+ bitField0_ |= 0x00000004;
break;
} // case 26
default:
@@ -567,6 +585,8 @@ public Builder mergeFrom(
return this;
}
+ private int bitField0_;
+
private java.lang.Object parent_ = "";
/**
*
@@ -637,8 +657,8 @@ public Builder setParent(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
-
parent_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -657,8 +677,8 @@ public Builder setParent(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearParent() {
-
parent_ = getDefaultInstance().getParent();
+ bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
@@ -682,8 +702,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
-
parent_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -721,6 +741,7 @@ public int getPageSize() {
public Builder setPageSize(int value) {
pageSize_ = value;
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -737,7 +758,7 @@ public Builder setPageSize(int value) {
* @return This builder for chaining.
*/
public Builder clearPageSize() {
-
+ bitField0_ = (bitField0_ & ~0x00000002);
pageSize_ = 0;
onChanged();
return this;
@@ -804,8 +825,8 @@ public Builder setPageToken(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
-
pageToken_ = value;
+ bitField0_ |= 0x00000004;
onChanged();
return this;
}
@@ -821,8 +842,8 @@ public Builder setPageToken(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearPageToken() {
-
pageToken_ = getDefaultInstance().getPageToken();
+ bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
@@ -843,8 +864,8 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
-
pageToken_ = value;
+ bitField0_ |= 0x00000004;
onChanged();
return this;
}
diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListSecuritySettingsResponse.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListSecuritySettingsResponse.java
index 5c387d9439b0..01b610152fc5 100644
--- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListSecuritySettingsResponse.java
+++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListSecuritySettingsResponse.java
@@ -69,6 +69,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
public static final int SECURITY_SETTINGS_FIELD_NUMBER = 1;
+
+ @SuppressWarnings("serial")
private java.util.List securitySettings_;
/**
*
@@ -140,7 +142,9 @@ public com.google.cloud.dialogflow.cx.v3.SecuritySettingsOrBuilder getSecuritySe
}
public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2;
- private volatile java.lang.Object nextPageToken_;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object nextPageToken_ = "";
/**
*
*
@@ -399,6 +403,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
@java.lang.Override
public Builder clear() {
super.clear();
+ bitField0_ = 0;
if (securitySettingsBuilder_ == null) {
securitySettings_ = java.util.Collections.emptyList();
} else {
@@ -407,7 +412,6 @@ public Builder clear() {
}
bitField0_ = (bitField0_ & ~0x00000001);
nextPageToken_ = "";
-
return this;
}
@@ -436,7 +440,16 @@ public com.google.cloud.dialogflow.cx.v3.ListSecuritySettingsResponse build() {
public com.google.cloud.dialogflow.cx.v3.ListSecuritySettingsResponse buildPartial() {
com.google.cloud.dialogflow.cx.v3.ListSecuritySettingsResponse result =
new com.google.cloud.dialogflow.cx.v3.ListSecuritySettingsResponse(this);
- int from_bitField0_ = bitField0_;
+ buildPartialRepeatedFields(result);
+ if (bitField0_ != 0) {
+ buildPartial0(result);
+ }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartialRepeatedFields(
+ com.google.cloud.dialogflow.cx.v3.ListSecuritySettingsResponse result) {
if (securitySettingsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
securitySettings_ = java.util.Collections.unmodifiableList(securitySettings_);
@@ -446,9 +459,14 @@ public com.google.cloud.dialogflow.cx.v3.ListSecuritySettingsResponse buildParti
} else {
result.securitySettings_ = securitySettingsBuilder_.build();
}
- result.nextPageToken_ = nextPageToken_;
- onBuilt();
- return result;
+ }
+
+ private void buildPartial0(
+ com.google.cloud.dialogflow.cx.v3.ListSecuritySettingsResponse result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.nextPageToken_ = nextPageToken_;
+ }
}
@java.lang.Override
@@ -527,6 +545,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.ListSecuritySettingsR
}
if (!other.getNextPageToken().isEmpty()) {
nextPageToken_ = other.nextPageToken_;
+ bitField0_ |= 0x00000002;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
@@ -572,7 +591,7 @@ public Builder mergeFrom(
case 18:
{
nextPageToken_ = input.readStringRequireUtf8();
-
+ bitField0_ |= 0x00000002;
break;
} // case 18
default:
@@ -1020,8 +1039,8 @@ public Builder setNextPageToken(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
-
nextPageToken_ = value;
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -1038,8 +1057,8 @@ public Builder setNextPageToken(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearNextPageToken() {
-
nextPageToken_ = getDefaultInstance().getNextPageToken();
+ bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
@@ -1061,8 +1080,8 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
-
nextPageToken_ = value;
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListSessionEntityTypesRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListSessionEntityTypesRequest.java
index e53d71888148..89da3dac8ea4 100644
--- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListSessionEntityTypesRequest.java
+++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListSessionEntityTypesRequest.java
@@ -22,7 +22,8 @@
*
*
*
- * The request message for [SessionEntityTypes.ListSessionEntityTypes][google.cloud.dialogflow.cx.v3.SessionEntityTypes.ListSessionEntityTypes].
+ * The request message for
+ * [SessionEntityTypes.ListSessionEntityTypes][google.cloud.dialogflow.cx.v3.SessionEntityTypes.ListSessionEntityTypes].
*
*
* Protobuf type {@code google.cloud.dialogflow.cx.v3.ListSessionEntityTypesRequest}
@@ -69,7 +70,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
public static final int PARENT_FIELD_NUMBER = 1;
- private volatile java.lang.Object parent_;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object parent_ = "";
/**
*
*
@@ -132,7 +135,7 @@ public com.google.protobuf.ByteString getParentBytes() {
}
public static final int PAGE_SIZE_FIELD_NUMBER = 2;
- private int pageSize_;
+ private int pageSize_ = 0;
/**
*
*
@@ -151,7 +154,9 @@ public int getPageSize() {
}
public static final int PAGE_TOKEN_FIELD_NUMBER = 3;
- private volatile java.lang.Object pageToken_;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object pageToken_ = "";
/**
*
*
@@ -381,7 +386,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
*
*
*
- * The request message for [SessionEntityTypes.ListSessionEntityTypes][google.cloud.dialogflow.cx.v3.SessionEntityTypes.ListSessionEntityTypes].
+ * The request message for
+ * [SessionEntityTypes.ListSessionEntityTypes][google.cloud.dialogflow.cx.v3.SessionEntityTypes.ListSessionEntityTypes].
*
*
* Protobuf type {@code google.cloud.dialogflow.cx.v3.ListSessionEntityTypesRequest}
@@ -415,12 +421,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
@java.lang.Override
public Builder clear() {
super.clear();
+ bitField0_ = 0;
parent_ = "";
-
pageSize_ = 0;
-
pageToken_ = "";
-
return this;
}
@@ -449,13 +453,27 @@ public com.google.cloud.dialogflow.cx.v3.ListSessionEntityTypesRequest build() {
public com.google.cloud.dialogflow.cx.v3.ListSessionEntityTypesRequest buildPartial() {
com.google.cloud.dialogflow.cx.v3.ListSessionEntityTypesRequest result =
new com.google.cloud.dialogflow.cx.v3.ListSessionEntityTypesRequest(this);
- result.parent_ = parent_;
- result.pageSize_ = pageSize_;
- result.pageToken_ = pageToken_;
+ if (bitField0_ != 0) {
+ buildPartial0(result);
+ }
onBuilt();
return result;
}
+ private void buildPartial0(
+ com.google.cloud.dialogflow.cx.v3.ListSessionEntityTypesRequest result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.parent_ = parent_;
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.pageSize_ = pageSize_;
+ }
+ if (((from_bitField0_ & 0x00000004) != 0)) {
+ result.pageToken_ = pageToken_;
+ }
+ }
+
@java.lang.Override
public Builder clone() {
return super.clone();
@@ -506,6 +524,7 @@ public Builder mergeFrom(
return this;
if (!other.getParent().isEmpty()) {
parent_ = other.parent_;
+ bitField0_ |= 0x00000001;
onChanged();
}
if (other.getPageSize() != 0) {
@@ -513,6 +532,7 @@ public Builder mergeFrom(
}
if (!other.getPageToken().isEmpty()) {
pageToken_ = other.pageToken_;
+ bitField0_ |= 0x00000004;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
@@ -544,19 +564,19 @@ public Builder mergeFrom(
case 10:
{
parent_ = input.readStringRequireUtf8();
-
+ bitField0_ |= 0x00000001;
break;
} // case 10
case 16:
{
pageSize_ = input.readInt32();
-
+ bitField0_ |= 0x00000002;
break;
} // case 16
case 26:
{
pageToken_ = input.readStringRequireUtf8();
-
+ bitField0_ |= 0x00000004;
break;
} // case 26
default:
@@ -576,6 +596,8 @@ public Builder mergeFrom(
return this;
}
+ private int bitField0_;
+
private java.lang.Object parent_ = "";
/**
*
@@ -658,8 +680,8 @@ public Builder setParent(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
-
parent_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -682,8 +704,8 @@ public Builder setParent(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearParent() {
-
parent_ = getDefaultInstance().getParent();
+ bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
@@ -711,8 +733,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
-
parent_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -750,6 +772,7 @@ public int getPageSize() {
public Builder setPageSize(int value) {
pageSize_ = value;
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -766,7 +789,7 @@ public Builder setPageSize(int value) {
* @return This builder for chaining.
*/
public Builder clearPageSize() {
-
+ bitField0_ = (bitField0_ & ~0x00000002);
pageSize_ = 0;
onChanged();
return this;
@@ -833,8 +856,8 @@ public Builder setPageToken(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
-
pageToken_ = value;
+ bitField0_ |= 0x00000004;
onChanged();
return this;
}
@@ -850,8 +873,8 @@ public Builder setPageToken(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearPageToken() {
-
pageToken_ = getDefaultInstance().getPageToken();
+ bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
@@ -872,8 +895,8 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
-
pageToken_ = value;
+ bitField0_ |= 0x00000004;
onChanged();
return this;
}
diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListSessionEntityTypesResponse.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListSessionEntityTypesResponse.java
index cab9c6cc6998..4f28523021c5 100644
--- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListSessionEntityTypesResponse.java
+++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListSessionEntityTypesResponse.java
@@ -22,7 +22,8 @@
*
*
*
- * The response message for [SessionEntityTypes.ListSessionEntityTypes][google.cloud.dialogflow.cx.v3.SessionEntityTypes.ListSessionEntityTypes].
+ * The response message for
+ * [SessionEntityTypes.ListSessionEntityTypes][google.cloud.dialogflow.cx.v3.SessionEntityTypes.ListSessionEntityTypes].
*
*
* Protobuf type {@code google.cloud.dialogflow.cx.v3.ListSessionEntityTypesResponse}
@@ -70,6 +71,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
public static final int SESSION_ENTITY_TYPES_FIELD_NUMBER = 1;
+
+ @SuppressWarnings("serial")
private java.util.List sessionEntityTypes_;
/**
*
@@ -151,7 +154,9 @@ public com.google.cloud.dialogflow.cx.v3.SessionEntityType getSessionEntityTypes
}
public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2;
- private volatile java.lang.Object nextPageToken_;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object nextPageToken_ = "";
/**
*
*
@@ -377,7 +382,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
*
*
*
- * The response message for [SessionEntityTypes.ListSessionEntityTypes][google.cloud.dialogflow.cx.v3.SessionEntityTypes.ListSessionEntityTypes].
+ * The response message for
+ * [SessionEntityTypes.ListSessionEntityTypes][google.cloud.dialogflow.cx.v3.SessionEntityTypes.ListSessionEntityTypes].
*
*
* Protobuf type {@code google.cloud.dialogflow.cx.v3.ListSessionEntityTypesResponse}
@@ -411,6 +417,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
@java.lang.Override
public Builder clear() {
super.clear();
+ bitField0_ = 0;
if (sessionEntityTypesBuilder_ == null) {
sessionEntityTypes_ = java.util.Collections.emptyList();
} else {
@@ -419,7 +426,6 @@ public Builder clear() {
}
bitField0_ = (bitField0_ & ~0x00000001);
nextPageToken_ = "";
-
return this;
}
@@ -448,7 +454,16 @@ public com.google.cloud.dialogflow.cx.v3.ListSessionEntityTypesResponse build()
public com.google.cloud.dialogflow.cx.v3.ListSessionEntityTypesResponse buildPartial() {
com.google.cloud.dialogflow.cx.v3.ListSessionEntityTypesResponse result =
new com.google.cloud.dialogflow.cx.v3.ListSessionEntityTypesResponse(this);
- int from_bitField0_ = bitField0_;
+ buildPartialRepeatedFields(result);
+ if (bitField0_ != 0) {
+ buildPartial0(result);
+ }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartialRepeatedFields(
+ com.google.cloud.dialogflow.cx.v3.ListSessionEntityTypesResponse result) {
if (sessionEntityTypesBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
sessionEntityTypes_ = java.util.Collections.unmodifiableList(sessionEntityTypes_);
@@ -458,9 +473,14 @@ public com.google.cloud.dialogflow.cx.v3.ListSessionEntityTypesResponse buildPar
} else {
result.sessionEntityTypes_ = sessionEntityTypesBuilder_.build();
}
- result.nextPageToken_ = nextPageToken_;
- onBuilt();
- return result;
+ }
+
+ private void buildPartial0(
+ com.google.cloud.dialogflow.cx.v3.ListSessionEntityTypesResponse result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.nextPageToken_ = nextPageToken_;
+ }
}
@java.lang.Override
@@ -540,6 +560,7 @@ public Builder mergeFrom(
}
if (!other.getNextPageToken().isEmpty()) {
nextPageToken_ = other.nextPageToken_;
+ bitField0_ |= 0x00000002;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
@@ -585,7 +606,7 @@ public Builder mergeFrom(
case 18:
{
nextPageToken_ = input.readStringRequireUtf8();
-
+ bitField0_ |= 0x00000002;
break;
} // case 18
default:
@@ -1071,8 +1092,8 @@ public Builder setNextPageToken(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
-
nextPageToken_ = value;
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -1089,8 +1110,8 @@ public Builder setNextPageToken(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearNextPageToken() {
-
nextPageToken_ = getDefaultInstance().getNextPageToken();
+ bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
@@ -1112,8 +1133,8 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
-
nextPageToken_ = value;
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListTestCaseResultsRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListTestCaseResultsRequest.java
index d85bedfab184..5586e979d134 100644
--- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListTestCaseResultsRequest.java
+++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListTestCaseResultsRequest.java
@@ -22,7 +22,8 @@
*
*
*
- * The request message for [TestCases.ListTestCaseResults][google.cloud.dialogflow.cx.v3.TestCases.ListTestCaseResults].
+ * The request message for
+ * [TestCases.ListTestCaseResults][google.cloud.dialogflow.cx.v3.TestCases.ListTestCaseResults].
*
*
* Protobuf type {@code google.cloud.dialogflow.cx.v3.ListTestCaseResultsRequest}
@@ -70,7 +71,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
public static final int PARENT_FIELD_NUMBER = 1;
- private volatile java.lang.Object parent_;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object parent_ = "";
/**
*
*
@@ -129,7 +132,7 @@ public com.google.protobuf.ByteString getParentBytes() {
}
public static final int PAGE_SIZE_FIELD_NUMBER = 2;
- private int pageSize_;
+ private int pageSize_ = 0;
/**
*
*
@@ -148,7 +151,9 @@ public int getPageSize() {
}
public static final int PAGE_TOKEN_FIELD_NUMBER = 3;
- private volatile java.lang.Object pageToken_;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object pageToken_ = "";
/**
*
*
@@ -197,7 +202,9 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
}
public static final int FILTER_FIELD_NUMBER = 4;
- private volatile java.lang.Object filter_;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object filter_ = "";
/**
*
*
@@ -472,7 +479,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
*
*
*
- * The request message for [TestCases.ListTestCaseResults][google.cloud.dialogflow.cx.v3.TestCases.ListTestCaseResults].
+ * The request message for
+ * [TestCases.ListTestCaseResults][google.cloud.dialogflow.cx.v3.TestCases.ListTestCaseResults].
*
*
* Protobuf type {@code google.cloud.dialogflow.cx.v3.ListTestCaseResultsRequest}
@@ -506,14 +514,11 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
@java.lang.Override
public Builder clear() {
super.clear();
+ bitField0_ = 0;
parent_ = "";
-
pageSize_ = 0;
-
pageToken_ = "";
-
filter_ = "";
-
return this;
}
@@ -542,14 +547,30 @@ public com.google.cloud.dialogflow.cx.v3.ListTestCaseResultsRequest build() {
public com.google.cloud.dialogflow.cx.v3.ListTestCaseResultsRequest buildPartial() {
com.google.cloud.dialogflow.cx.v3.ListTestCaseResultsRequest result =
new com.google.cloud.dialogflow.cx.v3.ListTestCaseResultsRequest(this);
- result.parent_ = parent_;
- result.pageSize_ = pageSize_;
- result.pageToken_ = pageToken_;
- result.filter_ = filter_;
+ if (bitField0_ != 0) {
+ buildPartial0(result);
+ }
onBuilt();
return result;
}
+ private void buildPartial0(
+ com.google.cloud.dialogflow.cx.v3.ListTestCaseResultsRequest result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.parent_ = parent_;
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.pageSize_ = pageSize_;
+ }
+ if (((from_bitField0_ & 0x00000004) != 0)) {
+ result.pageToken_ = pageToken_;
+ }
+ if (((from_bitField0_ & 0x00000008) != 0)) {
+ result.filter_ = filter_;
+ }
+ }
+
@java.lang.Override
public Builder clone() {
return super.clone();
@@ -599,6 +620,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.ListTestCaseResultsRe
return this;
if (!other.getParent().isEmpty()) {
parent_ = other.parent_;
+ bitField0_ |= 0x00000001;
onChanged();
}
if (other.getPageSize() != 0) {
@@ -606,10 +628,12 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.ListTestCaseResultsRe
}
if (!other.getPageToken().isEmpty()) {
pageToken_ = other.pageToken_;
+ bitField0_ |= 0x00000004;
onChanged();
}
if (!other.getFilter().isEmpty()) {
filter_ = other.filter_;
+ bitField0_ |= 0x00000008;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
@@ -641,25 +665,25 @@ public Builder mergeFrom(
case 10:
{
parent_ = input.readStringRequireUtf8();
-
+ bitField0_ |= 0x00000001;
break;
} // case 10
case 16:
{
pageSize_ = input.readInt32();
-
+ bitField0_ |= 0x00000002;
break;
} // case 16
case 26:
{
pageToken_ = input.readStringRequireUtf8();
-
+ bitField0_ |= 0x00000004;
break;
} // case 26
case 34:
{
filter_ = input.readStringRequireUtf8();
-
+ bitField0_ |= 0x00000008;
break;
} // case 34
default:
@@ -679,6 +703,8 @@ public Builder mergeFrom(
return this;
}
+ private int bitField0_;
+
private java.lang.Object parent_ = "";
/**
*
@@ -755,8 +781,8 @@ public Builder setParent(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
-
parent_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -777,8 +803,8 @@ public Builder setParent(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearParent() {
-
parent_ = getDefaultInstance().getParent();
+ bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
@@ -804,8 +830,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
-
parent_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -843,6 +869,7 @@ public int getPageSize() {
public Builder setPageSize(int value) {
pageSize_ = value;
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -859,7 +886,7 @@ public Builder setPageSize(int value) {
* @return This builder for chaining.
*/
public Builder clearPageSize() {
-
+ bitField0_ = (bitField0_ & ~0x00000002);
pageSize_ = 0;
onChanged();
return this;
@@ -926,8 +953,8 @@ public Builder setPageToken(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
-
pageToken_ = value;
+ bitField0_ |= 0x00000004;
onChanged();
return this;
}
@@ -943,8 +970,8 @@ public Builder setPageToken(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearPageToken() {
-
pageToken_ = getDefaultInstance().getPageToken();
+ bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
@@ -965,8 +992,8 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
-
pageToken_ = value;
+ bitField0_ |= 0x00000004;
onChanged();
return this;
}
@@ -1086,8 +1113,8 @@ public Builder setFilter(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
-
filter_ = value;
+ bitField0_ |= 0x00000008;
onChanged();
return this;
}
@@ -1121,8 +1148,8 @@ public Builder setFilter(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearFilter() {
-
filter_ = getDefaultInstance().getFilter();
+ bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
return this;
}
@@ -1161,8 +1188,8 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
-
filter_ = value;
+ bitField0_ |= 0x00000008;
onChanged();
return this;
}
diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListTestCaseResultsResponse.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListTestCaseResultsResponse.java
index 74b7c1741351..8ec188473e5f 100644
--- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListTestCaseResultsResponse.java
+++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListTestCaseResultsResponse.java
@@ -22,7 +22,8 @@
*
*
*
- * The response message for [TestCases.ListTestCaseResults][google.cloud.dialogflow.cx.v3.TestCases.ListTestCaseResults].
+ * The response message for
+ * [TestCases.ListTestCaseResults][google.cloud.dialogflow.cx.v3.TestCases.ListTestCaseResults].
*
*
* Protobuf type {@code google.cloud.dialogflow.cx.v3.ListTestCaseResultsResponse}
@@ -69,6 +70,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
public static final int TEST_CASE_RESULTS_FIELD_NUMBER = 1;
+
+ @SuppressWarnings("serial")
private java.util.List testCaseResults_;
/**
*
@@ -139,7 +142,9 @@ public com.google.cloud.dialogflow.cx.v3.TestCaseResultOrBuilder getTestCaseResu
}
public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2;
- private volatile java.lang.Object nextPageToken_;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object nextPageToken_ = "";
/**
*
*
@@ -364,7 +369,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
*
*
*
- * The response message for [TestCases.ListTestCaseResults][google.cloud.dialogflow.cx.v3.TestCases.ListTestCaseResults].
+ * The response message for
+ * [TestCases.ListTestCaseResults][google.cloud.dialogflow.cx.v3.TestCases.ListTestCaseResults].
*
*
* Protobuf type {@code google.cloud.dialogflow.cx.v3.ListTestCaseResultsResponse}
@@ -398,6 +404,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
@java.lang.Override
public Builder clear() {
super.clear();
+ bitField0_ = 0;
if (testCaseResultsBuilder_ == null) {
testCaseResults_ = java.util.Collections.emptyList();
} else {
@@ -406,7 +413,6 @@ public Builder clear() {
}
bitField0_ = (bitField0_ & ~0x00000001);
nextPageToken_ = "";
-
return this;
}
@@ -435,7 +441,16 @@ public com.google.cloud.dialogflow.cx.v3.ListTestCaseResultsResponse build() {
public com.google.cloud.dialogflow.cx.v3.ListTestCaseResultsResponse buildPartial() {
com.google.cloud.dialogflow.cx.v3.ListTestCaseResultsResponse result =
new com.google.cloud.dialogflow.cx.v3.ListTestCaseResultsResponse(this);
- int from_bitField0_ = bitField0_;
+ buildPartialRepeatedFields(result);
+ if (bitField0_ != 0) {
+ buildPartial0(result);
+ }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartialRepeatedFields(
+ com.google.cloud.dialogflow.cx.v3.ListTestCaseResultsResponse result) {
if (testCaseResultsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
testCaseResults_ = java.util.Collections.unmodifiableList(testCaseResults_);
@@ -445,9 +460,14 @@ public com.google.cloud.dialogflow.cx.v3.ListTestCaseResultsResponse buildPartia
} else {
result.testCaseResults_ = testCaseResultsBuilder_.build();
}
- result.nextPageToken_ = nextPageToken_;
- onBuilt();
- return result;
+ }
+
+ private void buildPartial0(
+ com.google.cloud.dialogflow.cx.v3.ListTestCaseResultsResponse result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.nextPageToken_ = nextPageToken_;
+ }
}
@java.lang.Override
@@ -526,6 +546,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.ListTestCaseResultsRe
}
if (!other.getNextPageToken().isEmpty()) {
nextPageToken_ = other.nextPageToken_;
+ bitField0_ |= 0x00000002;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
@@ -571,7 +592,7 @@ public Builder mergeFrom(
case 18:
{
nextPageToken_ = input.readStringRequireUtf8();
-
+ bitField0_ |= 0x00000002;
break;
} // case 18
default:
@@ -1018,8 +1039,8 @@ public Builder setNextPageToken(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
-
nextPageToken_ = value;
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -1036,8 +1057,8 @@ public Builder setNextPageToken(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearNextPageToken() {
-
nextPageToken_ = getDefaultInstance().getNextPageToken();
+ bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
@@ -1059,8 +1080,8 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
-
nextPageToken_ = value;
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListTestCasesRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListTestCasesRequest.java
index 4f7bc7bfa436..cd13d308d220 100644
--- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListTestCasesRequest.java
+++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListTestCasesRequest.java
@@ -22,7 +22,8 @@
*
*
*
- * The request message for [TestCases.ListTestCases][google.cloud.dialogflow.cx.v3.TestCases.ListTestCases].
+ * The request message for
+ * [TestCases.ListTestCases][google.cloud.dialogflow.cx.v3.TestCases.ListTestCases].
*
*
* Protobuf type {@code google.cloud.dialogflow.cx.v3.ListTestCasesRequest}
@@ -233,7 +234,9 @@ private TestCaseView(int value) {
}
public static final int PARENT_FIELD_NUMBER = 1;
- private volatile java.lang.Object parent_;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object parent_ = "";
/**
*
*
@@ -288,7 +291,7 @@ public com.google.protobuf.ByteString getParentBytes() {
}
public static final int PAGE_SIZE_FIELD_NUMBER = 2;
- private int pageSize_;
+ private int pageSize_ = 0;
/**
*
*
@@ -308,7 +311,9 @@ public int getPageSize() {
}
public static final int PAGE_TOKEN_FIELD_NUMBER = 3;
- private volatile java.lang.Object pageToken_;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object pageToken_ = "";
/**
*
*
@@ -357,7 +362,7 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
}
public static final int VIEW_FIELD_NUMBER = 4;
- private int view_;
+ private int view_ = 0;
/**
*
*
@@ -386,9 +391,8 @@ public int getViewValue() {
*/
@java.lang.Override
public com.google.cloud.dialogflow.cx.v3.ListTestCasesRequest.TestCaseView getView() {
- @SuppressWarnings("deprecation")
com.google.cloud.dialogflow.cx.v3.ListTestCasesRequest.TestCaseView result =
- com.google.cloud.dialogflow.cx.v3.ListTestCasesRequest.TestCaseView.valueOf(view_);
+ com.google.cloud.dialogflow.cx.v3.ListTestCasesRequest.TestCaseView.forNumber(view_);
return result == null
? com.google.cloud.dialogflow.cx.v3.ListTestCasesRequest.TestCaseView.UNRECOGNIZED
: result;
@@ -591,7 +595,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
*
*
*
- * The request message for [TestCases.ListTestCases][google.cloud.dialogflow.cx.v3.TestCases.ListTestCases].
+ * The request message for
+ * [TestCases.ListTestCases][google.cloud.dialogflow.cx.v3.TestCases.ListTestCases].
*
*
* Protobuf type {@code google.cloud.dialogflow.cx.v3.ListTestCasesRequest}
@@ -625,14 +630,11 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
@java.lang.Override
public Builder clear() {
super.clear();
+ bitField0_ = 0;
parent_ = "";
-
pageSize_ = 0;
-
pageToken_ = "";
-
view_ = 0;
-
return this;
}
@@ -660,14 +662,29 @@ public com.google.cloud.dialogflow.cx.v3.ListTestCasesRequest build() {
public com.google.cloud.dialogflow.cx.v3.ListTestCasesRequest buildPartial() {
com.google.cloud.dialogflow.cx.v3.ListTestCasesRequest result =
new com.google.cloud.dialogflow.cx.v3.ListTestCasesRequest(this);
- result.parent_ = parent_;
- result.pageSize_ = pageSize_;
- result.pageToken_ = pageToken_;
- result.view_ = view_;
+ if (bitField0_ != 0) {
+ buildPartial0(result);
+ }
onBuilt();
return result;
}
+ private void buildPartial0(com.google.cloud.dialogflow.cx.v3.ListTestCasesRequest result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.parent_ = parent_;
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.pageSize_ = pageSize_;
+ }
+ if (((from_bitField0_ & 0x00000004) != 0)) {
+ result.pageToken_ = pageToken_;
+ }
+ if (((from_bitField0_ & 0x00000008) != 0)) {
+ result.view_ = view_;
+ }
+ }
+
@java.lang.Override
public Builder clone() {
return super.clone();
@@ -716,6 +733,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.ListTestCasesRequest
return this;
if (!other.getParent().isEmpty()) {
parent_ = other.parent_;
+ bitField0_ |= 0x00000001;
onChanged();
}
if (other.getPageSize() != 0) {
@@ -723,6 +741,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.ListTestCasesRequest
}
if (!other.getPageToken().isEmpty()) {
pageToken_ = other.pageToken_;
+ bitField0_ |= 0x00000004;
onChanged();
}
if (other.view_ != 0) {
@@ -757,25 +776,25 @@ public Builder mergeFrom(
case 10:
{
parent_ = input.readStringRequireUtf8();
-
+ bitField0_ |= 0x00000001;
break;
} // case 10
case 16:
{
pageSize_ = input.readInt32();
-
+ bitField0_ |= 0x00000002;
break;
} // case 16
case 26:
{
pageToken_ = input.readStringRequireUtf8();
-
+ bitField0_ |= 0x00000004;
break;
} // case 26
case 32:
{
view_ = input.readEnum();
-
+ bitField0_ |= 0x00000008;
break;
} // case 32
default:
@@ -795,6 +814,8 @@ public Builder mergeFrom(
return this;
}
+ private int bitField0_;
+
private java.lang.Object parent_ = "";
/**
*
@@ -865,8 +886,8 @@ public Builder setParent(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
-
parent_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -885,8 +906,8 @@ public Builder setParent(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearParent() {
-
parent_ = getDefaultInstance().getParent();
+ bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
@@ -910,8 +931,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
-
parent_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -951,6 +972,7 @@ public int getPageSize() {
public Builder setPageSize(int value) {
pageSize_ = value;
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -968,7 +990,7 @@ public Builder setPageSize(int value) {
* @return This builder for chaining.
*/
public Builder clearPageSize() {
-
+ bitField0_ = (bitField0_ & ~0x00000002);
pageSize_ = 0;
onChanged();
return this;
@@ -1035,8 +1057,8 @@ public Builder setPageToken(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
-
pageToken_ = value;
+ bitField0_ |= 0x00000004;
onChanged();
return this;
}
@@ -1052,8 +1074,8 @@ public Builder setPageToken(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearPageToken() {
-
pageToken_ = getDefaultInstance().getPageToken();
+ bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
@@ -1074,8 +1096,8 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
-
pageToken_ = value;
+ bitField0_ |= 0x00000004;
onChanged();
return this;
}
@@ -1109,8 +1131,8 @@ public int getViewValue() {
* @return This builder for chaining.
*/
public Builder setViewValue(int value) {
-
view_ = value;
+ bitField0_ |= 0x00000008;
onChanged();
return this;
}
@@ -1127,9 +1149,8 @@ public Builder setViewValue(int value) {
*/
@java.lang.Override
public com.google.cloud.dialogflow.cx.v3.ListTestCasesRequest.TestCaseView getView() {
- @SuppressWarnings("deprecation")
com.google.cloud.dialogflow.cx.v3.ListTestCasesRequest.TestCaseView result =
- com.google.cloud.dialogflow.cx.v3.ListTestCasesRequest.TestCaseView.valueOf(view_);
+ com.google.cloud.dialogflow.cx.v3.ListTestCasesRequest.TestCaseView.forNumber(view_);
return result == null
? com.google.cloud.dialogflow.cx.v3.ListTestCasesRequest.TestCaseView.UNRECOGNIZED
: result;
@@ -1151,7 +1172,7 @@ public Builder setView(
if (value == null) {
throw new NullPointerException();
}
-
+ bitField0_ |= 0x00000008;
view_ = value.getNumber();
onChanged();
return this;
@@ -1168,7 +1189,7 @@ public Builder setView(
* @return This builder for chaining.
*/
public Builder clearView() {
-
+ bitField0_ = (bitField0_ & ~0x00000008);
view_ = 0;
onChanged();
return this;
diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListTestCasesResponse.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListTestCasesResponse.java
index 4b7506b603c3..9b1a33f3dd51 100644
--- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListTestCasesResponse.java
+++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListTestCasesResponse.java
@@ -22,7 +22,8 @@
*
*
*
- * The response message for [TestCases.ListTestCases][google.cloud.dialogflow.cx.v3.TestCases.ListTestCases].
+ * The response message for
+ * [TestCases.ListTestCases][google.cloud.dialogflow.cx.v3.TestCases.ListTestCases].
*
*
* Protobuf type {@code google.cloud.dialogflow.cx.v3.ListTestCasesResponse}
@@ -69,6 +70,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
public static final int TEST_CASES_FIELD_NUMBER = 1;
+
+ @SuppressWarnings("serial")
private java.util.List testCases_;
/**
*
@@ -143,7 +146,9 @@ public com.google.cloud.dialogflow.cx.v3.TestCaseOrBuilder getTestCasesOrBuilder
}
public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2;
- private volatile java.lang.Object nextPageToken_;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object nextPageToken_ = "";
/**
*
*
@@ -368,7 +373,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
*
*
*
- * The response message for [TestCases.ListTestCases][google.cloud.dialogflow.cx.v3.TestCases.ListTestCases].
+ * The response message for
+ * [TestCases.ListTestCases][google.cloud.dialogflow.cx.v3.TestCases.ListTestCases].
*
*
* Protobuf type {@code google.cloud.dialogflow.cx.v3.ListTestCasesResponse}
@@ -402,6 +408,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
@java.lang.Override
public Builder clear() {
super.clear();
+ bitField0_ = 0;
if (testCasesBuilder_ == null) {
testCases_ = java.util.Collections.emptyList();
} else {
@@ -410,7 +417,6 @@ public Builder clear() {
}
bitField0_ = (bitField0_ & ~0x00000001);
nextPageToken_ = "";
-
return this;
}
@@ -438,7 +444,16 @@ public com.google.cloud.dialogflow.cx.v3.ListTestCasesResponse build() {
public com.google.cloud.dialogflow.cx.v3.ListTestCasesResponse buildPartial() {
com.google.cloud.dialogflow.cx.v3.ListTestCasesResponse result =
new com.google.cloud.dialogflow.cx.v3.ListTestCasesResponse(this);
- int from_bitField0_ = bitField0_;
+ buildPartialRepeatedFields(result);
+ if (bitField0_ != 0) {
+ buildPartial0(result);
+ }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartialRepeatedFields(
+ com.google.cloud.dialogflow.cx.v3.ListTestCasesResponse result) {
if (testCasesBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
testCases_ = java.util.Collections.unmodifiableList(testCases_);
@@ -448,9 +463,13 @@ public com.google.cloud.dialogflow.cx.v3.ListTestCasesResponse buildPartial() {
} else {
result.testCases_ = testCasesBuilder_.build();
}
- result.nextPageToken_ = nextPageToken_;
- onBuilt();
- return result;
+ }
+
+ private void buildPartial0(com.google.cloud.dialogflow.cx.v3.ListTestCasesResponse result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.nextPageToken_ = nextPageToken_;
+ }
}
@java.lang.Override
@@ -528,6 +547,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.ListTestCasesResponse
}
if (!other.getNextPageToken().isEmpty()) {
nextPageToken_ = other.nextPageToken_;
+ bitField0_ |= 0x00000002;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
@@ -572,7 +592,7 @@ public Builder mergeFrom(
case 18:
{
nextPageToken_ = input.readStringRequireUtf8();
-
+ bitField0_ |= 0x00000002;
break;
} // case 18
default:
@@ -1027,8 +1047,8 @@ public Builder setNextPageToken(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
-
nextPageToken_ = value;
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -1045,8 +1065,8 @@ public Builder setNextPageToken(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearNextPageToken() {
-
nextPageToken_ = getDefaultInstance().getNextPageToken();
+ bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
@@ -1068,8 +1088,8 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
-
nextPageToken_ = value;
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListTransitionRouteGroupsRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListTransitionRouteGroupsRequest.java
index 83619fe37fda..81bdbb19d8bb 100644
--- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListTransitionRouteGroupsRequest.java
+++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListTransitionRouteGroupsRequest.java
@@ -22,7 +22,8 @@
*
*
*
- * The request message for [TransitionRouteGroups.ListTransitionRouteGroups][google.cloud.dialogflow.cx.v3.TransitionRouteGroups.ListTransitionRouteGroups].
+ * The request message for
+ * [TransitionRouteGroups.ListTransitionRouteGroups][google.cloud.dialogflow.cx.v3.TransitionRouteGroups.ListTransitionRouteGroups].
*
*
* Protobuf type {@code google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsRequest}
@@ -71,7 +72,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
public static final int PARENT_FIELD_NUMBER = 1;
- private volatile java.lang.Object parent_;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object parent_ = "";
/**
*
*
@@ -128,7 +131,7 @@ public com.google.protobuf.ByteString getParentBytes() {
}
public static final int PAGE_SIZE_FIELD_NUMBER = 2;
- private int pageSize_;
+ private int pageSize_ = 0;
/**
*
*
@@ -147,7 +150,9 @@ public int getPageSize() {
}
public static final int PAGE_TOKEN_FIELD_NUMBER = 3;
- private volatile java.lang.Object pageToken_;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object pageToken_ = "";
/**
*
*
@@ -196,7 +201,9 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
}
public static final int LANGUAGE_CODE_FIELD_NUMBER = 4;
- private volatile java.lang.Object languageCode_;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object languageCode_ = "";
/**
*
*
@@ -454,7 +461,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
*
*
*
- * The request message for [TransitionRouteGroups.ListTransitionRouteGroups][google.cloud.dialogflow.cx.v3.TransitionRouteGroups.ListTransitionRouteGroups].
+ * The request message for
+ * [TransitionRouteGroups.ListTransitionRouteGroups][google.cloud.dialogflow.cx.v3.TransitionRouteGroups.ListTransitionRouteGroups].
*
*
* Protobuf type {@code google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsRequest}
@@ -489,14 +497,11 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
@java.lang.Override
public Builder clear() {
super.clear();
+ bitField0_ = 0;
parent_ = "";
-
pageSize_ = 0;
-
pageToken_ = "";
-
languageCode_ = "";
-
return this;
}
@@ -526,14 +531,30 @@ public com.google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsRequest build(
public com.google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsRequest buildPartial() {
com.google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsRequest result =
new com.google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsRequest(this);
- result.parent_ = parent_;
- result.pageSize_ = pageSize_;
- result.pageToken_ = pageToken_;
- result.languageCode_ = languageCode_;
+ if (bitField0_ != 0) {
+ buildPartial0(result);
+ }
onBuilt();
return result;
}
+ private void buildPartial0(
+ com.google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsRequest result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.parent_ = parent_;
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.pageSize_ = pageSize_;
+ }
+ if (((from_bitField0_ & 0x00000004) != 0)) {
+ result.pageToken_ = pageToken_;
+ }
+ if (((from_bitField0_ & 0x00000008) != 0)) {
+ result.languageCode_ = languageCode_;
+ }
+ }
+
@java.lang.Override
public Builder clone() {
return super.clone();
@@ -585,6 +606,7 @@ public Builder mergeFrom(
.getDefaultInstance()) return this;
if (!other.getParent().isEmpty()) {
parent_ = other.parent_;
+ bitField0_ |= 0x00000001;
onChanged();
}
if (other.getPageSize() != 0) {
@@ -592,10 +614,12 @@ public Builder mergeFrom(
}
if (!other.getPageToken().isEmpty()) {
pageToken_ = other.pageToken_;
+ bitField0_ |= 0x00000004;
onChanged();
}
if (!other.getLanguageCode().isEmpty()) {
languageCode_ = other.languageCode_;
+ bitField0_ |= 0x00000008;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
@@ -627,25 +651,25 @@ public Builder mergeFrom(
case 10:
{
parent_ = input.readStringRequireUtf8();
-
+ bitField0_ |= 0x00000001;
break;
} // case 10
case 16:
{
pageSize_ = input.readInt32();
-
+ bitField0_ |= 0x00000002;
break;
} // case 16
case 26:
{
pageToken_ = input.readStringRequireUtf8();
-
+ bitField0_ |= 0x00000004;
break;
} // case 26
case 34:
{
languageCode_ = input.readStringRequireUtf8();
-
+ bitField0_ |= 0x00000008;
break;
} // case 34
default:
@@ -665,6 +689,8 @@ public Builder mergeFrom(
return this;
}
+ private int bitField0_;
+
private java.lang.Object parent_ = "";
/**
*
@@ -738,8 +764,8 @@ public Builder setParent(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
-
parent_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -759,8 +785,8 @@ public Builder setParent(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearParent() {
-
parent_ = getDefaultInstance().getParent();
+ bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
@@ -785,8 +811,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
-
parent_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -824,6 +850,7 @@ public int getPageSize() {
public Builder setPageSize(int value) {
pageSize_ = value;
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -840,7 +867,7 @@ public Builder setPageSize(int value) {
* @return This builder for chaining.
*/
public Builder clearPageSize() {
-
+ bitField0_ = (bitField0_ & ~0x00000002);
pageSize_ = 0;
onChanged();
return this;
@@ -907,8 +934,8 @@ public Builder setPageToken(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
-
pageToken_ = value;
+ bitField0_ |= 0x00000004;
onChanged();
return this;
}
@@ -924,8 +951,8 @@ public Builder setPageToken(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearPageToken() {
-
pageToken_ = getDefaultInstance().getPageToken();
+ bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
@@ -946,8 +973,8 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
-
pageToken_ = value;
+ bitField0_ |= 0x00000004;
onChanged();
return this;
}
@@ -1040,8 +1067,8 @@ public Builder setLanguageCode(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
-
languageCode_ = value;
+ bitField0_ |= 0x00000008;
onChanged();
return this;
}
@@ -1066,8 +1093,8 @@ public Builder setLanguageCode(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearLanguageCode() {
-
languageCode_ = getDefaultInstance().getLanguageCode();
+ bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
return this;
}
@@ -1097,8 +1124,8 @@ public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
-
languageCode_ = value;
+ bitField0_ |= 0x00000008;
onChanged();
return this;
}
diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListTransitionRouteGroupsResponse.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListTransitionRouteGroupsResponse.java
index 2f3a550f7821..ffea45898de5 100644
--- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListTransitionRouteGroupsResponse.java
+++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListTransitionRouteGroupsResponse.java
@@ -22,7 +22,8 @@
*
*
*
- * The response message for [TransitionRouteGroups.ListTransitionRouteGroups][google.cloud.dialogflow.cx.v3.TransitionRouteGroups.ListTransitionRouteGroups].
+ * The response message for
+ * [TransitionRouteGroups.ListTransitionRouteGroups][google.cloud.dialogflow.cx.v3.TransitionRouteGroups.ListTransitionRouteGroups].
*
*
* Protobuf type {@code google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsResponse}
@@ -70,6 +71,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
public static final int TRANSITION_ROUTE_GROUPS_FIELD_NUMBER = 1;
+
+ @SuppressWarnings("serial")
private java.util.List
transitionRouteGroups_;
/**
@@ -163,7 +166,9 @@ public com.google.cloud.dialogflow.cx.v3.TransitionRouteGroup getTransitionRoute
}
public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2;
- private volatile java.lang.Object nextPageToken_;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object nextPageToken_ = "";
/**
*
*
@@ -391,7 +396,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
*
*
*
- * The response message for [TransitionRouteGroups.ListTransitionRouteGroups][google.cloud.dialogflow.cx.v3.TransitionRouteGroups.ListTransitionRouteGroups].
+ * The response message for
+ * [TransitionRouteGroups.ListTransitionRouteGroups][google.cloud.dialogflow.cx.v3.TransitionRouteGroups.ListTransitionRouteGroups].
*
*
* Protobuf type {@code google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsResponse}
@@ -426,6 +432,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
@java.lang.Override
public Builder clear() {
super.clear();
+ bitField0_ = 0;
if (transitionRouteGroupsBuilder_ == null) {
transitionRouteGroups_ = java.util.Collections.emptyList();
} else {
@@ -434,7 +441,6 @@ public Builder clear() {
}
bitField0_ = (bitField0_ & ~0x00000001);
nextPageToken_ = "";
-
return this;
}
@@ -464,7 +470,16 @@ public com.google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsResponse build
public com.google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsResponse buildPartial() {
com.google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsResponse result =
new com.google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsResponse(this);
- int from_bitField0_ = bitField0_;
+ buildPartialRepeatedFields(result);
+ if (bitField0_ != 0) {
+ buildPartial0(result);
+ }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartialRepeatedFields(
+ com.google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsResponse result) {
if (transitionRouteGroupsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
transitionRouteGroups_ = java.util.Collections.unmodifiableList(transitionRouteGroups_);
@@ -474,9 +489,14 @@ public com.google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsResponse build
} else {
result.transitionRouteGroups_ = transitionRouteGroupsBuilder_.build();
}
- result.nextPageToken_ = nextPageToken_;
- onBuilt();
- return result;
+ }
+
+ private void buildPartial0(
+ com.google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsResponse result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.nextPageToken_ = nextPageToken_;
+ }
}
@java.lang.Override
@@ -557,6 +577,7 @@ public Builder mergeFrom(
}
if (!other.getNextPageToken().isEmpty()) {
nextPageToken_ = other.nextPageToken_;
+ bitField0_ |= 0x00000002;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
@@ -602,7 +623,7 @@ public Builder mergeFrom(
case 18:
{
nextPageToken_ = input.readStringRequireUtf8();
-
+ bitField0_ |= 0x00000002;
break;
} // case 18
default:
@@ -1144,8 +1165,8 @@ public Builder setNextPageToken(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
-
nextPageToken_ = value;
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -1162,8 +1183,8 @@ public Builder setNextPageToken(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearNextPageToken() {
-
nextPageToken_ = getDefaultInstance().getNextPageToken();
+ bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
@@ -1185,8 +1206,8 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
-
nextPageToken_ = value;
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListVersionsRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListVersionsRequest.java
index 95035f04e2bf..478b352e239e 100644
--- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListVersionsRequest.java
+++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListVersionsRequest.java
@@ -22,7 +22,8 @@
*
*
*
- * The request message for [Versions.ListVersions][google.cloud.dialogflow.cx.v3.Versions.ListVersions].
+ * The request message for
+ * [Versions.ListVersions][google.cloud.dialogflow.cx.v3.Versions.ListVersions].
*
*
* Protobuf type {@code google.cloud.dialogflow.cx.v3.ListVersionsRequest}
@@ -69,14 +70,16 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
public static final int PARENT_FIELD_NUMBER = 1;
- private volatile java.lang.Object parent_;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object parent_ = "";
/**
*
*
*
- * Required. The [Flow][google.cloud.dialogflow.cx.v3.Flow] to list all versions for.
- * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
- * ID>/flows/<Flow ID>`.
+ * Required. The [Flow][google.cloud.dialogflow.cx.v3.Flow] to list all
+ * versions for. Format: `projects/<Project ID>/locations/<Location
+ * ID>/agents/<Agent ID>/flows/<Flow ID>`.
*
*
*
@@ -101,9 +104,9 @@ public java.lang.String getParent() {
*
*
*
- * Required. The [Flow][google.cloud.dialogflow.cx.v3.Flow] to list all versions for.
- * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
- * ID>/flows/<Flow ID>`.
+ * Required. The [Flow][google.cloud.dialogflow.cx.v3.Flow] to list all
+ * versions for. Format: `projects/<Project ID>/locations/<Location
+ * ID>/agents/<Agent ID>/flows/<Flow ID>`.
*
*
*
@@ -126,7 +129,7 @@ public com.google.protobuf.ByteString getParentBytes() {
}
public static final int PAGE_SIZE_FIELD_NUMBER = 2;
- private int pageSize_;
+ private int pageSize_ = 0;
/**
*
*
@@ -145,7 +148,9 @@ public int getPageSize() {
}
public static final int PAGE_TOKEN_FIELD_NUMBER = 3;
- private volatile java.lang.Object pageToken_;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object pageToken_ = "";
/**
*
*
@@ -375,7 +380,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
*
*
*
- * The request message for [Versions.ListVersions][google.cloud.dialogflow.cx.v3.Versions.ListVersions].
+ * The request message for
+ * [Versions.ListVersions][google.cloud.dialogflow.cx.v3.Versions.ListVersions].
*
*
* Protobuf type {@code google.cloud.dialogflow.cx.v3.ListVersionsRequest}
@@ -409,12 +415,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
@java.lang.Override
public Builder clear() {
super.clear();
+ bitField0_ = 0;
parent_ = "";
-
pageSize_ = 0;
-
pageToken_ = "";
-
return this;
}
@@ -442,13 +446,26 @@ public com.google.cloud.dialogflow.cx.v3.ListVersionsRequest build() {
public com.google.cloud.dialogflow.cx.v3.ListVersionsRequest buildPartial() {
com.google.cloud.dialogflow.cx.v3.ListVersionsRequest result =
new com.google.cloud.dialogflow.cx.v3.ListVersionsRequest(this);
- result.parent_ = parent_;
- result.pageSize_ = pageSize_;
- result.pageToken_ = pageToken_;
+ if (bitField0_ != 0) {
+ buildPartial0(result);
+ }
onBuilt();
return result;
}
+ private void buildPartial0(com.google.cloud.dialogflow.cx.v3.ListVersionsRequest result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.parent_ = parent_;
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.pageSize_ = pageSize_;
+ }
+ if (((from_bitField0_ & 0x00000004) != 0)) {
+ result.pageToken_ = pageToken_;
+ }
+ }
+
@java.lang.Override
public Builder clone() {
return super.clone();
@@ -497,6 +514,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.ListVersionsRequest o
return this;
if (!other.getParent().isEmpty()) {
parent_ = other.parent_;
+ bitField0_ |= 0x00000001;
onChanged();
}
if (other.getPageSize() != 0) {
@@ -504,6 +522,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.ListVersionsRequest o
}
if (!other.getPageToken().isEmpty()) {
pageToken_ = other.pageToken_;
+ bitField0_ |= 0x00000004;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
@@ -535,19 +554,19 @@ public Builder mergeFrom(
case 10:
{
parent_ = input.readStringRequireUtf8();
-
+ bitField0_ |= 0x00000001;
break;
} // case 10
case 16:
{
pageSize_ = input.readInt32();
-
+ bitField0_ |= 0x00000002;
break;
} // case 16
case 26:
{
pageToken_ = input.readStringRequireUtf8();
-
+ bitField0_ |= 0x00000004;
break;
} // case 26
default:
@@ -567,14 +586,16 @@ public Builder mergeFrom(
return this;
}
+ private int bitField0_;
+
private java.lang.Object parent_ = "";
/**
*
*
*
- * Required. The [Flow][google.cloud.dialogflow.cx.v3.Flow] to list all versions for.
- * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
- * ID>/flows/<Flow ID>`.
+ * Required. The [Flow][google.cloud.dialogflow.cx.v3.Flow] to list all
+ * versions for. Format: `projects/<Project ID>/locations/<Location
+ * ID>/agents/<Agent ID>/flows/<Flow ID>`.
*
*
*
@@ -598,9 +619,9 @@ public java.lang.String getParent() {
*
*
*
- * Required. The [Flow][google.cloud.dialogflow.cx.v3.Flow] to list all versions for.
- * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
- * ID>/flows/<Flow ID>`.
+ * Required. The [Flow][google.cloud.dialogflow.cx.v3.Flow] to list all
+ * versions for. Format: `projects/<Project ID>/locations/<Location
+ * ID>/agents/<Agent ID>/flows/<Flow ID>`.
*
*
*
@@ -624,9 +645,9 @@ public com.google.protobuf.ByteString getParentBytes() {
*
*
*
- * Required. The [Flow][google.cloud.dialogflow.cx.v3.Flow] to list all versions for.
- * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
- * ID>/flows/<Flow ID>`.
+ * Required. The [Flow][google.cloud.dialogflow.cx.v3.Flow] to list all
+ * versions for. Format: `projects/<Project ID>/locations/<Location
+ * ID>/agents/<Agent ID>/flows/<Flow ID>`.
*
*
*
@@ -640,8 +661,8 @@ public Builder setParent(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
-
parent_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -649,9 +670,9 @@ public Builder setParent(java.lang.String value) {
*
*
*
- * Required. The [Flow][google.cloud.dialogflow.cx.v3.Flow] to list all versions for.
- * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
- * ID>/flows/<Flow ID>`.
+ * Required. The [Flow][google.cloud.dialogflow.cx.v3.Flow] to list all
+ * versions for. Format: `projects/<Project ID>/locations/<Location
+ * ID>/agents/<Agent ID>/flows/<Flow ID>`.
*
*
*
@@ -661,8 +682,8 @@ public Builder setParent(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearParent() {
-
parent_ = getDefaultInstance().getParent();
+ bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
@@ -670,9 +691,9 @@ public Builder clearParent() {
*
*
*
- * Required. The [Flow][google.cloud.dialogflow.cx.v3.Flow] to list all versions for.
- * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
- * ID>/flows/<Flow ID>`.
+ * Required. The [Flow][google.cloud.dialogflow.cx.v3.Flow] to list all
+ * versions for. Format: `projects/<Project ID>/locations/<Location
+ * ID>/agents/<Agent ID>/flows/<Flow ID>`.
*
*
*
@@ -687,8 +708,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
-
parent_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -726,6 +747,7 @@ public int getPageSize() {
public Builder setPageSize(int value) {
pageSize_ = value;
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -742,7 +764,7 @@ public Builder setPageSize(int value) {
* @return This builder for chaining.
*/
public Builder clearPageSize() {
-
+ bitField0_ = (bitField0_ & ~0x00000002);
pageSize_ = 0;
onChanged();
return this;
@@ -809,8 +831,8 @@ public Builder setPageToken(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
-
pageToken_ = value;
+ bitField0_ |= 0x00000004;
onChanged();
return this;
}
@@ -826,8 +848,8 @@ public Builder setPageToken(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearPageToken() {
-
pageToken_ = getDefaultInstance().getPageToken();
+ bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
@@ -848,8 +870,8 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
-
pageToken_ = value;
+ bitField0_ |= 0x00000004;
onChanged();
return this;
}
diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListVersionsRequestOrBuilder.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListVersionsRequestOrBuilder.java
index 9c22038158b6..7a540d5b048c 100644
--- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListVersionsRequestOrBuilder.java
+++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListVersionsRequestOrBuilder.java
@@ -27,9 +27,9 @@ public interface ListVersionsRequestOrBuilder
*
*
*
- * Required. The [Flow][google.cloud.dialogflow.cx.v3.Flow] to list all versions for.
- * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
- * ID>/flows/<Flow ID>`.
+ * Required. The [Flow][google.cloud.dialogflow.cx.v3.Flow] to list all
+ * versions for. Format: `projects/<Project ID>/locations/<Location
+ * ID>/agents/<Agent ID>/flows/<Flow ID>`.
*
*
*
@@ -43,9 +43,9 @@ public interface ListVersionsRequestOrBuilder
*
*
*
- * Required. The [Flow][google.cloud.dialogflow.cx.v3.Flow] to list all versions for.
- * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
- * ID>/flows/<Flow ID>`.
+ * Required. The [Flow][google.cloud.dialogflow.cx.v3.Flow] to list all
+ * versions for. Format: `projects/<Project ID>/locations/<Location
+ * ID>/agents/<Agent ID>/flows/<Flow ID>`.
*
*
*
diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListVersionsResponse.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListVersionsResponse.java
index f552a13b4cbc..458e655c3ed5 100644
--- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListVersionsResponse.java
+++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListVersionsResponse.java
@@ -22,7 +22,8 @@
*
*
*
- * The response message for [Versions.ListVersions][google.cloud.dialogflow.cx.v3.Versions.ListVersions].
+ * The response message for
+ * [Versions.ListVersions][google.cloud.dialogflow.cx.v3.Versions.ListVersions].
*
*
* Protobuf type {@code google.cloud.dialogflow.cx.v3.ListVersionsResponse}
@@ -69,6 +70,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
public static final int VERSIONS_FIELD_NUMBER = 1;
+
+ @SuppressWarnings("serial")
private java.util.List versions_;
/**
*
@@ -148,7 +151,9 @@ public com.google.cloud.dialogflow.cx.v3.VersionOrBuilder getVersionsOrBuilder(i
}
public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2;
- private volatile java.lang.Object nextPageToken_;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object nextPageToken_ = "";
/**
*
*
@@ -373,7 +378,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
*
*
*
- * The response message for [Versions.ListVersions][google.cloud.dialogflow.cx.v3.Versions.ListVersions].
+ * The response message for
+ * [Versions.ListVersions][google.cloud.dialogflow.cx.v3.Versions.ListVersions].
*
*
* Protobuf type {@code google.cloud.dialogflow.cx.v3.ListVersionsResponse}
@@ -407,6 +413,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
@java.lang.Override
public Builder clear() {
super.clear();
+ bitField0_ = 0;
if (versionsBuilder_ == null) {
versions_ = java.util.Collections.emptyList();
} else {
@@ -415,7 +422,6 @@ public Builder clear() {
}
bitField0_ = (bitField0_ & ~0x00000001);
nextPageToken_ = "";
-
return this;
}
@@ -443,7 +449,16 @@ public com.google.cloud.dialogflow.cx.v3.ListVersionsResponse build() {
public com.google.cloud.dialogflow.cx.v3.ListVersionsResponse buildPartial() {
com.google.cloud.dialogflow.cx.v3.ListVersionsResponse result =
new com.google.cloud.dialogflow.cx.v3.ListVersionsResponse(this);
- int from_bitField0_ = bitField0_;
+ buildPartialRepeatedFields(result);
+ if (bitField0_ != 0) {
+ buildPartial0(result);
+ }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartialRepeatedFields(
+ com.google.cloud.dialogflow.cx.v3.ListVersionsResponse result) {
if (versionsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
versions_ = java.util.Collections.unmodifiableList(versions_);
@@ -453,9 +468,13 @@ public com.google.cloud.dialogflow.cx.v3.ListVersionsResponse buildPartial() {
} else {
result.versions_ = versionsBuilder_.build();
}
- result.nextPageToken_ = nextPageToken_;
- onBuilt();
- return result;
+ }
+
+ private void buildPartial0(com.google.cloud.dialogflow.cx.v3.ListVersionsResponse result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.nextPageToken_ = nextPageToken_;
+ }
}
@java.lang.Override
@@ -533,6 +552,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.ListVersionsResponse
}
if (!other.getNextPageToken().isEmpty()) {
nextPageToken_ = other.nextPageToken_;
+ bitField0_ |= 0x00000002;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
@@ -577,7 +597,7 @@ public Builder mergeFrom(
case 18:
{
nextPageToken_ = input.readStringRequireUtf8();
-
+ bitField0_ |= 0x00000002;
break;
} // case 18
default:
@@ -1048,8 +1068,8 @@ public Builder setNextPageToken(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
-
nextPageToken_ = value;
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -1066,8 +1086,8 @@ public Builder setNextPageToken(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearNextPageToken() {
-
nextPageToken_ = getDefaultInstance().getNextPageToken();
+ bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
@@ -1089,8 +1109,8 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
-
nextPageToken_ = value;
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListWebhooksRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListWebhooksRequest.java
index c4b614282b4b..d2b469389d2b 100644
--- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListWebhooksRequest.java
+++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListWebhooksRequest.java
@@ -22,7 +22,8 @@
*
*
*
- * The request message for [Webhooks.ListWebhooks][google.cloud.dialogflow.cx.v3.Webhooks.ListWebhooks].
+ * The request message for
+ * [Webhooks.ListWebhooks][google.cloud.dialogflow.cx.v3.Webhooks.ListWebhooks].
*
*
* Protobuf type {@code google.cloud.dialogflow.cx.v3.ListWebhooksRequest}
@@ -69,7 +70,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
public static final int PARENT_FIELD_NUMBER = 1;
- private volatile java.lang.Object parent_;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object parent_ = "";
/**
*
*
@@ -124,7 +127,7 @@ public com.google.protobuf.ByteString getParentBytes() {
}
public static final int PAGE_SIZE_FIELD_NUMBER = 2;
- private int pageSize_;
+ private int pageSize_ = 0;
/**
*
*
@@ -143,7 +146,9 @@ public int getPageSize() {
}
public static final int PAGE_TOKEN_FIELD_NUMBER = 3;
- private volatile java.lang.Object pageToken_;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object pageToken_ = "";
/**
*
*
@@ -373,7 +378,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
*
*
*
- * The request message for [Webhooks.ListWebhooks][google.cloud.dialogflow.cx.v3.Webhooks.ListWebhooks].
+ * The request message for
+ * [Webhooks.ListWebhooks][google.cloud.dialogflow.cx.v3.Webhooks.ListWebhooks].
*
*
* Protobuf type {@code google.cloud.dialogflow.cx.v3.ListWebhooksRequest}
@@ -407,12 +413,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
@java.lang.Override
public Builder clear() {
super.clear();
+ bitField0_ = 0;
parent_ = "";
-
pageSize_ = 0;
-
pageToken_ = "";
-
return this;
}
@@ -440,13 +444,26 @@ public com.google.cloud.dialogflow.cx.v3.ListWebhooksRequest build() {
public com.google.cloud.dialogflow.cx.v3.ListWebhooksRequest buildPartial() {
com.google.cloud.dialogflow.cx.v3.ListWebhooksRequest result =
new com.google.cloud.dialogflow.cx.v3.ListWebhooksRequest(this);
- result.parent_ = parent_;
- result.pageSize_ = pageSize_;
- result.pageToken_ = pageToken_;
+ if (bitField0_ != 0) {
+ buildPartial0(result);
+ }
onBuilt();
return result;
}
+ private void buildPartial0(com.google.cloud.dialogflow.cx.v3.ListWebhooksRequest result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.parent_ = parent_;
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.pageSize_ = pageSize_;
+ }
+ if (((from_bitField0_ & 0x00000004) != 0)) {
+ result.pageToken_ = pageToken_;
+ }
+ }
+
@java.lang.Override
public Builder clone() {
return super.clone();
@@ -495,6 +512,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.ListWebhooksRequest o
return this;
if (!other.getParent().isEmpty()) {
parent_ = other.parent_;
+ bitField0_ |= 0x00000001;
onChanged();
}
if (other.getPageSize() != 0) {
@@ -502,6 +520,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.ListWebhooksRequest o
}
if (!other.getPageToken().isEmpty()) {
pageToken_ = other.pageToken_;
+ bitField0_ |= 0x00000004;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
@@ -533,19 +552,19 @@ public Builder mergeFrom(
case 10:
{
parent_ = input.readStringRequireUtf8();
-
+ bitField0_ |= 0x00000001;
break;
} // case 10
case 16:
{
pageSize_ = input.readInt32();
-
+ bitField0_ |= 0x00000002;
break;
} // case 16
case 26:
{
pageToken_ = input.readStringRequireUtf8();
-
+ bitField0_ |= 0x00000004;
break;
} // case 26
default:
@@ -565,6 +584,8 @@ public Builder mergeFrom(
return this;
}
+ private int bitField0_;
+
private java.lang.Object parent_ = "";
/**
*
@@ -635,8 +656,8 @@ public Builder setParent(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
-
parent_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -655,8 +676,8 @@ public Builder setParent(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearParent() {
-
parent_ = getDefaultInstance().getParent();
+ bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
@@ -680,8 +701,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
-
parent_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -719,6 +740,7 @@ public int getPageSize() {
public Builder setPageSize(int value) {
pageSize_ = value;
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -735,7 +757,7 @@ public Builder setPageSize(int value) {
* @return This builder for chaining.
*/
public Builder clearPageSize() {
-
+ bitField0_ = (bitField0_ & ~0x00000002);
pageSize_ = 0;
onChanged();
return this;
@@ -802,8 +824,8 @@ public Builder setPageToken(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
-
pageToken_ = value;
+ bitField0_ |= 0x00000004;
onChanged();
return this;
}
@@ -819,8 +841,8 @@ public Builder setPageToken(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearPageToken() {
-
pageToken_ = getDefaultInstance().getPageToken();
+ bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
@@ -841,8 +863,8 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
-
pageToken_ = value;
+ bitField0_ |= 0x00000004;
onChanged();
return this;
}
diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListWebhooksResponse.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListWebhooksResponse.java
index ddf1d3364b4f..66348d77780d 100644
--- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListWebhooksResponse.java
+++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListWebhooksResponse.java
@@ -22,7 +22,8 @@
*
*
*
- * The response message for [Webhooks.ListWebhooks][google.cloud.dialogflow.cx.v3.Webhooks.ListWebhooks].
+ * The response message for
+ * [Webhooks.ListWebhooks][google.cloud.dialogflow.cx.v3.Webhooks.ListWebhooks].
*
*
* Protobuf type {@code google.cloud.dialogflow.cx.v3.ListWebhooksResponse}
@@ -69,6 +70,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
public static final int WEBHOOKS_FIELD_NUMBER = 1;
+
+ @SuppressWarnings("serial")
private java.util.List webhooks_;
/**
*
@@ -143,7 +146,9 @@ public com.google.cloud.dialogflow.cx.v3.WebhookOrBuilder getWebhooksOrBuilder(i
}
public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2;
- private volatile java.lang.Object nextPageToken_;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object nextPageToken_ = "";
/**
*
*
@@ -368,7 +373,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
*
*
*
- * The response message for [Webhooks.ListWebhooks][google.cloud.dialogflow.cx.v3.Webhooks.ListWebhooks].
+ * The response message for
+ * [Webhooks.ListWebhooks][google.cloud.dialogflow.cx.v3.Webhooks.ListWebhooks].
*
*
* Protobuf type {@code google.cloud.dialogflow.cx.v3.ListWebhooksResponse}
@@ -402,6 +408,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
@java.lang.Override
public Builder clear() {
super.clear();
+ bitField0_ = 0;
if (webhooksBuilder_ == null) {
webhooks_ = java.util.Collections.emptyList();
} else {
@@ -410,7 +417,6 @@ public Builder clear() {
}
bitField0_ = (bitField0_ & ~0x00000001);
nextPageToken_ = "";
-
return this;
}
@@ -438,7 +444,16 @@ public com.google.cloud.dialogflow.cx.v3.ListWebhooksResponse build() {
public com.google.cloud.dialogflow.cx.v3.ListWebhooksResponse buildPartial() {
com.google.cloud.dialogflow.cx.v3.ListWebhooksResponse result =
new com.google.cloud.dialogflow.cx.v3.ListWebhooksResponse(this);
- int from_bitField0_ = bitField0_;
+ buildPartialRepeatedFields(result);
+ if (bitField0_ != 0) {
+ buildPartial0(result);
+ }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartialRepeatedFields(
+ com.google.cloud.dialogflow.cx.v3.ListWebhooksResponse result) {
if (webhooksBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
webhooks_ = java.util.Collections.unmodifiableList(webhooks_);
@@ -448,9 +463,13 @@ public com.google.cloud.dialogflow.cx.v3.ListWebhooksResponse buildPartial() {
} else {
result.webhooks_ = webhooksBuilder_.build();
}
- result.nextPageToken_ = nextPageToken_;
- onBuilt();
- return result;
+ }
+
+ private void buildPartial0(com.google.cloud.dialogflow.cx.v3.ListWebhooksResponse result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.nextPageToken_ = nextPageToken_;
+ }
}
@java.lang.Override
@@ -528,6 +547,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.ListWebhooksResponse
}
if (!other.getNextPageToken().isEmpty()) {
nextPageToken_ = other.nextPageToken_;
+ bitField0_ |= 0x00000002;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
@@ -572,7 +592,7 @@ public Builder mergeFrom(
case 18:
{
nextPageToken_ = input.readStringRequireUtf8();
-
+ bitField0_ |= 0x00000002;
break;
} // case 18
default:
@@ -1025,8 +1045,8 @@ public Builder setNextPageToken(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
-
nextPageToken_ = value;
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -1043,8 +1063,8 @@ public Builder setNextPageToken(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearNextPageToken() {
-
nextPageToken_ = getDefaultInstance().getNextPageToken();
+ bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
@@ -1066,8 +1086,8 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
-
nextPageToken_ = value;
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/LoadVersionRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/LoadVersionRequest.java
index 358de76f8a05..326c7e7ef7c5 100644
--- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/LoadVersionRequest.java
+++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/LoadVersionRequest.java
@@ -22,7 +22,8 @@
*
*
*
- * The request message for [Versions.LoadVersion][google.cloud.dialogflow.cx.v3.Versions.LoadVersion].
+ * The request message for
+ * [Versions.LoadVersion][google.cloud.dialogflow.cx.v3.Versions.LoadVersion].
*
*
* Protobuf type {@code google.cloud.dialogflow.cx.v3.LoadVersionRequest}
@@ -68,14 +69,16 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
public static final int NAME_FIELD_NUMBER = 1;
- private volatile java.lang.Object name_;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object name_ = "";
/**
*
*
*
- * Required. The [Version][google.cloud.dialogflow.cx.v3.Version] to be loaded to draft flow.
- * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
- * ID>/flows/<Flow ID>/versions/<Version ID>`.
+ * Required. The [Version][google.cloud.dialogflow.cx.v3.Version] to be loaded
+ * to draft flow. Format: `projects/<Project ID>/locations/<Location
+ * ID>/agents/<Agent ID>/flows/<Flow ID>/versions/<Version ID>`.
*
*
*
@@ -100,9 +103,9 @@ public java.lang.String getName() {
*
*
*
- * Required. The [Version][google.cloud.dialogflow.cx.v3.Version] to be loaded to draft flow.
- * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
- * ID>/flows/<Flow ID>/versions/<Version ID>`.
+ * Required. The [Version][google.cloud.dialogflow.cx.v3.Version] to be loaded
+ * to draft flow. Format: `projects/<Project ID>/locations/<Location
+ * ID>/agents/<Agent ID>/flows/<Flow ID>/versions/<Version ID>`.
*
*
*
@@ -125,7 +128,7 @@ public com.google.protobuf.ByteString getNameBytes() {
}
public static final int ALLOW_OVERRIDE_AGENT_RESOURCES_FIELD_NUMBER = 2;
- private boolean allowOverrideAgentResources_;
+ private boolean allowOverrideAgentResources_ = false;
/**
*
*
@@ -318,7 +321,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
*
*
*
- * The request message for [Versions.LoadVersion][google.cloud.dialogflow.cx.v3.Versions.LoadVersion].
+ * The request message for
+ * [Versions.LoadVersion][google.cloud.dialogflow.cx.v3.Versions.LoadVersion].
*
*
* Protobuf type {@code google.cloud.dialogflow.cx.v3.LoadVersionRequest}
@@ -352,10 +356,9 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
@java.lang.Override
public Builder clear() {
super.clear();
+ bitField0_ = 0;
name_ = "";
-
allowOverrideAgentResources_ = false;
-
return this;
}
@@ -383,12 +386,23 @@ public com.google.cloud.dialogflow.cx.v3.LoadVersionRequest build() {
public com.google.cloud.dialogflow.cx.v3.LoadVersionRequest buildPartial() {
com.google.cloud.dialogflow.cx.v3.LoadVersionRequest result =
new com.google.cloud.dialogflow.cx.v3.LoadVersionRequest(this);
- result.name_ = name_;
- result.allowOverrideAgentResources_ = allowOverrideAgentResources_;
+ if (bitField0_ != 0) {
+ buildPartial0(result);
+ }
onBuilt();
return result;
}
+ private void buildPartial0(com.google.cloud.dialogflow.cx.v3.LoadVersionRequest result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.name_ = name_;
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.allowOverrideAgentResources_ = allowOverrideAgentResources_;
+ }
+ }
+
@java.lang.Override
public Builder clone() {
return super.clone();
@@ -437,6 +451,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.LoadVersionRequest ot
return this;
if (!other.getName().isEmpty()) {
name_ = other.name_;
+ bitField0_ |= 0x00000001;
onChanged();
}
if (other.getAllowOverrideAgentResources() != false) {
@@ -471,13 +486,13 @@ public Builder mergeFrom(
case 10:
{
name_ = input.readStringRequireUtf8();
-
+ bitField0_ |= 0x00000001;
break;
} // case 10
case 16:
{
allowOverrideAgentResources_ = input.readBool();
-
+ bitField0_ |= 0x00000002;
break;
} // case 16
default:
@@ -497,14 +512,16 @@ public Builder mergeFrom(
return this;
}
+ private int bitField0_;
+
private java.lang.Object name_ = "";
/**
*
*
*
- * Required. The [Version][google.cloud.dialogflow.cx.v3.Version] to be loaded to draft flow.
- * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
- * ID>/flows/<Flow ID>/versions/<Version ID>`.
+ * Required. The [Version][google.cloud.dialogflow.cx.v3.Version] to be loaded
+ * to draft flow. Format: `projects/<Project ID>/locations/<Location
+ * ID>/agents/<Agent ID>/flows/<Flow ID>/versions/<Version ID>`.
*
*
*
@@ -528,9 +545,9 @@ public java.lang.String getName() {
*
*
*
- * Required. The [Version][google.cloud.dialogflow.cx.v3.Version] to be loaded to draft flow.
- * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
- * ID>/flows/<Flow ID>/versions/<Version ID>`.
+ * Required. The [Version][google.cloud.dialogflow.cx.v3.Version] to be loaded
+ * to draft flow. Format: `projects/<Project ID>/locations/<Location
+ * ID>/agents/<Agent ID>/flows/<Flow ID>/versions/<Version ID>`.
*
*
*
@@ -554,9 +571,9 @@ public com.google.protobuf.ByteString getNameBytes() {
*
*
*
- * Required. The [Version][google.cloud.dialogflow.cx.v3.Version] to be loaded to draft flow.
- * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
- * ID>/flows/<Flow ID>/versions/<Version ID>`.
+ * Required. The [Version][google.cloud.dialogflow.cx.v3.Version] to be loaded
+ * to draft flow. Format: `projects/<Project ID>/locations/<Location
+ * ID>/agents/<Agent ID>/flows/<Flow ID>/versions/<Version ID>`.
*
*
*
@@ -570,8 +587,8 @@ public Builder setName(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
-
name_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -579,9 +596,9 @@ public Builder setName(java.lang.String value) {
*
*
*
- * Required. The [Version][google.cloud.dialogflow.cx.v3.Version] to be loaded to draft flow.
- * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
- * ID>/flows/<Flow ID>/versions/<Version ID>`.
+ * Required. The [Version][google.cloud.dialogflow.cx.v3.Version] to be loaded
+ * to draft flow. Format: `projects/<Project ID>/locations/<Location
+ * ID>/agents/<Agent ID>/flows/<Flow ID>/versions/<Version ID>`.
*
*
*
@@ -591,8 +608,8 @@ public Builder setName(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearName() {
-
name_ = getDefaultInstance().getName();
+ bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
@@ -600,9 +617,9 @@ public Builder clearName() {
*
*
*
- * Required. The [Version][google.cloud.dialogflow.cx.v3.Version] to be loaded to draft flow.
- * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
- * ID>/flows/<Flow ID>/versions/<Version ID>`.
+ * Required. The [Version][google.cloud.dialogflow.cx.v3.Version] to be loaded
+ * to draft flow. Format: `projects/<Project ID>/locations/<Location
+ * ID>/agents/<Agent ID>/flows/<Flow ID>/versions/<Version ID>`.
*
*
*
@@ -617,8 +634,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
-
name_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -660,6 +677,7 @@ public boolean getAllowOverrideAgentResources() {
public Builder setAllowOverrideAgentResources(boolean value) {
allowOverrideAgentResources_ = value;
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -678,7 +696,7 @@ public Builder setAllowOverrideAgentResources(boolean value) {
* @return This builder for chaining.
*/
public Builder clearAllowOverrideAgentResources() {
-
+ bitField0_ = (bitField0_ & ~0x00000002);
allowOverrideAgentResources_ = false;
onChanged();
return this;
diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/LoadVersionRequestOrBuilder.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/LoadVersionRequestOrBuilder.java
index c49090cfc27f..40b64d811866 100644
--- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/LoadVersionRequestOrBuilder.java
+++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/LoadVersionRequestOrBuilder.java
@@ -27,9 +27,9 @@ public interface LoadVersionRequestOrBuilder
*
*
*
- * Required. The [Version][google.cloud.dialogflow.cx.v3.Version] to be loaded to draft flow.
- * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
- * ID>/flows/<Flow ID>/versions/<Version ID>`.
+ * Required. The [Version][google.cloud.dialogflow.cx.v3.Version] to be loaded
+ * to draft flow. Format: `projects/<Project ID>/locations/<Location
+ * ID>/agents/<Agent ID>/flows/<Flow ID>/versions/<Version ID>`.
*
*
*
@@ -43,9 +43,9 @@ public interface LoadVersionRequestOrBuilder
*
*
*
- * Required. The [Version][google.cloud.dialogflow.cx.v3.Version] to be loaded to draft flow.
- * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
- * ID>/flows/<Flow ID>/versions/<Version ID>`.
+ * Required. The [Version][google.cloud.dialogflow.cx.v3.Version] to be loaded
+ * to draft flow. Format: `projects/<Project ID>/locations/<Location
+ * ID>/agents/<Agent ID>/flows/<Flow ID>/versions/<Version ID>`.
*
*
*
diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/LookupEnvironmentHistoryRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/LookupEnvironmentHistoryRequest.java
index f3c4492724fe..a1d716e6add2 100644
--- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/LookupEnvironmentHistoryRequest.java
+++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/LookupEnvironmentHistoryRequest.java
@@ -22,7 +22,8 @@
*
*
*
- * The request message for [Environments.LookupEnvironmentHistory][google.cloud.dialogflow.cx.v3.Environments.LookupEnvironmentHistory].
+ * The request message for
+ * [Environments.LookupEnvironmentHistory][google.cloud.dialogflow.cx.v3.Environments.LookupEnvironmentHistory].
*
*
* Protobuf type {@code google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryRequest}
@@ -70,7 +71,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
public static final int NAME_FIELD_NUMBER = 1;
- private volatile java.lang.Object name_;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object name_ = "";
/**
*
*
@@ -127,7 +130,7 @@ public com.google.protobuf.ByteString getNameBytes() {
}
public static final int PAGE_SIZE_FIELD_NUMBER = 2;
- private int pageSize_;
+ private int pageSize_ = 0;
/**
*
*
@@ -146,7 +149,9 @@ public int getPageSize() {
}
public static final int PAGE_TOKEN_FIELD_NUMBER = 3;
- private volatile java.lang.Object pageToken_;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object pageToken_ = "";
/**
*
*
@@ -377,7 +382,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
*
*
*
- * The request message for [Environments.LookupEnvironmentHistory][google.cloud.dialogflow.cx.v3.Environments.LookupEnvironmentHistory].
+ * The request message for
+ * [Environments.LookupEnvironmentHistory][google.cloud.dialogflow.cx.v3.Environments.LookupEnvironmentHistory].
*
*
* Protobuf type {@code google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryRequest}
@@ -412,12 +418,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
@java.lang.Override
public Builder clear() {
super.clear();
+ bitField0_ = 0;
name_ = "";
-
pageSize_ = 0;
-
pageToken_ = "";
-
return this;
}
@@ -446,13 +450,27 @@ public com.google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryRequest build()
public com.google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryRequest buildPartial() {
com.google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryRequest result =
new com.google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryRequest(this);
- result.name_ = name_;
- result.pageSize_ = pageSize_;
- result.pageToken_ = pageToken_;
+ if (bitField0_ != 0) {
+ buildPartial0(result);
+ }
onBuilt();
return result;
}
+ private void buildPartial0(
+ com.google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryRequest result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.name_ = name_;
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.pageSize_ = pageSize_;
+ }
+ if (((from_bitField0_ & 0x00000004) != 0)) {
+ result.pageToken_ = pageToken_;
+ }
+ }
+
@java.lang.Override
public Builder clone() {
return super.clone();
@@ -503,6 +521,7 @@ public Builder mergeFrom(
return this;
if (!other.getName().isEmpty()) {
name_ = other.name_;
+ bitField0_ |= 0x00000001;
onChanged();
}
if (other.getPageSize() != 0) {
@@ -510,6 +529,7 @@ public Builder mergeFrom(
}
if (!other.getPageToken().isEmpty()) {
pageToken_ = other.pageToken_;
+ bitField0_ |= 0x00000004;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
@@ -541,19 +561,19 @@ public Builder mergeFrom(
case 10:
{
name_ = input.readStringRequireUtf8();
-
+ bitField0_ |= 0x00000001;
break;
} // case 10
case 16:
{
pageSize_ = input.readInt32();
-
+ bitField0_ |= 0x00000002;
break;
} // case 16
case 26:
{
pageToken_ = input.readStringRequireUtf8();
-
+ bitField0_ |= 0x00000004;
break;
} // case 26
default:
@@ -573,6 +593,8 @@ public Builder mergeFrom(
return this;
}
+ private int bitField0_;
+
private java.lang.Object name_ = "";
/**
*
@@ -646,8 +668,8 @@ public Builder setName(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
-
name_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -667,8 +689,8 @@ public Builder setName(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearName() {
-
name_ = getDefaultInstance().getName();
+ bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
@@ -693,8 +715,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
-
name_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -732,6 +754,7 @@ public int getPageSize() {
public Builder setPageSize(int value) {
pageSize_ = value;
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -748,7 +771,7 @@ public Builder setPageSize(int value) {
* @return This builder for chaining.
*/
public Builder clearPageSize() {
-
+ bitField0_ = (bitField0_ & ~0x00000002);
pageSize_ = 0;
onChanged();
return this;
@@ -815,8 +838,8 @@ public Builder setPageToken(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
-
pageToken_ = value;
+ bitField0_ |= 0x00000004;
onChanged();
return this;
}
@@ -832,8 +855,8 @@ public Builder setPageToken(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearPageToken() {
-
pageToken_ = getDefaultInstance().getPageToken();
+ bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
@@ -854,8 +877,8 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
-
pageToken_ = value;
+ bitField0_ |= 0x00000004;
onChanged();
return this;
}
diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/LookupEnvironmentHistoryResponse.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/LookupEnvironmentHistoryResponse.java
index e9b511bf75ce..64e75e85a61d 100644
--- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/LookupEnvironmentHistoryResponse.java
+++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/LookupEnvironmentHistoryResponse.java
@@ -22,7 +22,8 @@
*
*
*
- * The response message for [Environments.LookupEnvironmentHistory][google.cloud.dialogflow.cx.v3.Environments.LookupEnvironmentHistory].
+ * The response message for
+ * [Environments.LookupEnvironmentHistory][google.cloud.dialogflow.cx.v3.Environments.LookupEnvironmentHistory].
*
*
* Protobuf type {@code google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryResponse}
@@ -70,13 +71,16 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
public static final int ENVIRONMENTS_FIELD_NUMBER = 1;
+
+ @SuppressWarnings("serial")
private java.util.List environments_;
/**
*
*
*
* Represents a list of snapshots for an environment. Time of the snapshots is
- * stored in [`update_time`][google.cloud.dialogflow.cx.v3.Environment.update_time].
+ * stored in
+ * [`update_time`][google.cloud.dialogflow.cx.v3.Environment.update_time].
*
*
* repeated .google.cloud.dialogflow.cx.v3.Environment environments = 1;
@@ -90,7 +94,8 @@ public java.util.List getEnvironm
*
*
* Represents a list of snapshots for an environment. Time of the snapshots is
- * stored in [`update_time`][google.cloud.dialogflow.cx.v3.Environment.update_time].
+ * stored in
+ * [`update_time`][google.cloud.dialogflow.cx.v3.Environment.update_time].
*
*
* repeated .google.cloud.dialogflow.cx.v3.Environment environments = 1;
@@ -105,7 +110,8 @@ public java.util.List getEnvironm
*
*
* Represents a list of snapshots for an environment. Time of the snapshots is
- * stored in [`update_time`][google.cloud.dialogflow.cx.v3.Environment.update_time].
+ * stored in
+ * [`update_time`][google.cloud.dialogflow.cx.v3.Environment.update_time].
*
*
* repeated .google.cloud.dialogflow.cx.v3.Environment environments = 1;
@@ -119,7 +125,8 @@ public int getEnvironmentsCount() {
*
*
* Represents a list of snapshots for an environment. Time of the snapshots is
- * stored in [`update_time`][google.cloud.dialogflow.cx.v3.Environment.update_time].
+ * stored in
+ * [`update_time`][google.cloud.dialogflow.cx.v3.Environment.update_time].
*
*
* repeated .google.cloud.dialogflow.cx.v3.Environment environments = 1;
@@ -133,7 +140,8 @@ public com.google.cloud.dialogflow.cx.v3.Environment getEnvironments(int index)
*
*
* Represents a list of snapshots for an environment. Time of the snapshots is
- * stored in [`update_time`][google.cloud.dialogflow.cx.v3.Environment.update_time].
+ * stored in
+ * [`update_time`][google.cloud.dialogflow.cx.v3.Environment.update_time].
*
*
* repeated .google.cloud.dialogflow.cx.v3.Environment environments = 1;
@@ -145,7 +153,9 @@ public com.google.cloud.dialogflow.cx.v3.EnvironmentOrBuilder getEnvironmentsOrB
}
public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2;
- private volatile java.lang.Object nextPageToken_;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object nextPageToken_ = "";
/**
*
*
@@ -371,7 +381,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
*
*
*
- * The response message for [Environments.LookupEnvironmentHistory][google.cloud.dialogflow.cx.v3.Environments.LookupEnvironmentHistory].
+ * The response message for
+ * [Environments.LookupEnvironmentHistory][google.cloud.dialogflow.cx.v3.Environments.LookupEnvironmentHistory].
*
*
* Protobuf type {@code google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryResponse}
@@ -406,6 +417,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
@java.lang.Override
public Builder clear() {
super.clear();
+ bitField0_ = 0;
if (environmentsBuilder_ == null) {
environments_ = java.util.Collections.emptyList();
} else {
@@ -414,7 +426,6 @@ public Builder clear() {
}
bitField0_ = (bitField0_ & ~0x00000001);
nextPageToken_ = "";
-
return this;
}
@@ -444,7 +455,16 @@ public com.google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryResponse build(
public com.google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryResponse buildPartial() {
com.google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryResponse result =
new com.google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryResponse(this);
- int from_bitField0_ = bitField0_;
+ buildPartialRepeatedFields(result);
+ if (bitField0_ != 0) {
+ buildPartial0(result);
+ }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartialRepeatedFields(
+ com.google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryResponse result) {
if (environmentsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
environments_ = java.util.Collections.unmodifiableList(environments_);
@@ -454,9 +474,14 @@ public com.google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryResponse buildP
} else {
result.environments_ = environmentsBuilder_.build();
}
- result.nextPageToken_ = nextPageToken_;
- onBuilt();
- return result;
+ }
+
+ private void buildPartial0(
+ com.google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryResponse result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.nextPageToken_ = nextPageToken_;
+ }
}
@java.lang.Override
@@ -537,6 +562,7 @@ public Builder mergeFrom(
}
if (!other.getNextPageToken().isEmpty()) {
nextPageToken_ = other.nextPageToken_;
+ bitField0_ |= 0x00000002;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
@@ -581,7 +607,7 @@ public Builder mergeFrom(
case 18:
{
nextPageToken_ = input.readStringRequireUtf8();
-
+ bitField0_ |= 0x00000002;
break;
} // case 18
default:
@@ -625,7 +651,8 @@ private void ensureEnvironmentsIsMutable() {
*
*
* Represents a list of snapshots for an environment. Time of the snapshots is
- * stored in [`update_time`][google.cloud.dialogflow.cx.v3.Environment.update_time].
+ * stored in
+ * [`update_time`][google.cloud.dialogflow.cx.v3.Environment.update_time].
*
*
* repeated .google.cloud.dialogflow.cx.v3.Environment environments = 1;
@@ -642,7 +669,8 @@ public java.util.List getEnvironm
*
*
* Represents a list of snapshots for an environment. Time of the snapshots is
- * stored in [`update_time`][google.cloud.dialogflow.cx.v3.Environment.update_time].
+ * stored in
+ * [`update_time`][google.cloud.dialogflow.cx.v3.Environment.update_time].
*
*
* repeated .google.cloud.dialogflow.cx.v3.Environment environments = 1;
@@ -659,7 +687,8 @@ public int getEnvironmentsCount() {
*
*
* Represents a list of snapshots for an environment. Time of the snapshots is
- * stored in [`update_time`][google.cloud.dialogflow.cx.v3.Environment.update_time].
+ * stored in
+ * [`update_time`][google.cloud.dialogflow.cx.v3.Environment.update_time].
*
*
* repeated .google.cloud.dialogflow.cx.v3.Environment environments = 1;
@@ -676,7 +705,8 @@ public com.google.cloud.dialogflow.cx.v3.Environment getEnvironments(int index)
*
*
* Represents a list of snapshots for an environment. Time of the snapshots is
- * stored in [`update_time`][google.cloud.dialogflow.cx.v3.Environment.update_time].
+ * stored in
+ * [`update_time`][google.cloud.dialogflow.cx.v3.Environment.update_time].
*
*
* repeated .google.cloud.dialogflow.cx.v3.Environment environments = 1;
@@ -699,7 +729,8 @@ public Builder setEnvironments(int index, com.google.cloud.dialogflow.cx.v3.Envi
*
*
* Represents a list of snapshots for an environment. Time of the snapshots is
- * stored in [`update_time`][google.cloud.dialogflow.cx.v3.Environment.update_time].
+ * stored in
+ * [`update_time`][google.cloud.dialogflow.cx.v3.Environment.update_time].
*
*
* repeated .google.cloud.dialogflow.cx.v3.Environment environments = 1;
@@ -720,7 +751,8 @@ public Builder setEnvironments(
*
*
* Represents a list of snapshots for an environment. Time of the snapshots is
- * stored in [`update_time`][google.cloud.dialogflow.cx.v3.Environment.update_time].
+ * stored in
+ * [`update_time`][google.cloud.dialogflow.cx.v3.Environment.update_time].
*
*
* repeated .google.cloud.dialogflow.cx.v3.Environment environments = 1;
@@ -743,7 +775,8 @@ public Builder addEnvironments(com.google.cloud.dialogflow.cx.v3.Environment val
*
*
* Represents a list of snapshots for an environment. Time of the snapshots is
- * stored in [`update_time`][google.cloud.dialogflow.cx.v3.Environment.update_time].
+ * stored in
+ * [`update_time`][google.cloud.dialogflow.cx.v3.Environment.update_time].
*
*
* repeated .google.cloud.dialogflow.cx.v3.Environment environments = 1;
@@ -766,7 +799,8 @@ public Builder addEnvironments(int index, com.google.cloud.dialogflow.cx.v3.Envi
*
*
* Represents a list of snapshots for an environment. Time of the snapshots is
- * stored in [`update_time`][google.cloud.dialogflow.cx.v3.Environment.update_time].
+ * stored in
+ * [`update_time`][google.cloud.dialogflow.cx.v3.Environment.update_time].
*
*
* repeated .google.cloud.dialogflow.cx.v3.Environment environments = 1;
@@ -787,7 +821,8 @@ public Builder addEnvironments(
*
*
* Represents a list of snapshots for an environment. Time of the snapshots is
- * stored in [`update_time`][google.cloud.dialogflow.cx.v3.Environment.update_time].
+ * stored in
+ * [`update_time`][google.cloud.dialogflow.cx.v3.Environment.update_time].
*
*
* repeated .google.cloud.dialogflow.cx.v3.Environment environments = 1;
@@ -808,7 +843,8 @@ public Builder addEnvironments(
*
*
* Represents a list of snapshots for an environment. Time of the snapshots is
- * stored in [`update_time`][google.cloud.dialogflow.cx.v3.Environment.update_time].
+ * stored in
+ * [`update_time`][google.cloud.dialogflow.cx.v3.Environment.update_time].
*
*
* repeated .google.cloud.dialogflow.cx.v3.Environment environments = 1;
@@ -829,7 +865,8 @@ public Builder addAllEnvironments(
*
*
* Represents a list of snapshots for an environment. Time of the snapshots is
- * stored in [`update_time`][google.cloud.dialogflow.cx.v3.Environment.update_time].
+ * stored in
+ * [`update_time`][google.cloud.dialogflow.cx.v3.Environment.update_time].
*
*
* repeated .google.cloud.dialogflow.cx.v3.Environment environments = 1;
@@ -849,7 +886,8 @@ public Builder clearEnvironments() {
*
*
* Represents a list of snapshots for an environment. Time of the snapshots is
- * stored in [`update_time`][google.cloud.dialogflow.cx.v3.Environment.update_time].
+ * stored in
+ * [`update_time`][google.cloud.dialogflow.cx.v3.Environment.update_time].
*
*
* repeated .google.cloud.dialogflow.cx.v3.Environment environments = 1;
@@ -869,7 +907,8 @@ public Builder removeEnvironments(int index) {
*
*
* Represents a list of snapshots for an environment. Time of the snapshots is
- * stored in [`update_time`][google.cloud.dialogflow.cx.v3.Environment.update_time].
+ * stored in
+ * [`update_time`][google.cloud.dialogflow.cx.v3.Environment.update_time].
*
*
* repeated .google.cloud.dialogflow.cx.v3.Environment environments = 1;
@@ -882,7 +921,8 @@ public com.google.cloud.dialogflow.cx.v3.Environment.Builder getEnvironmentsBuil
*
*
* Represents a list of snapshots for an environment. Time of the snapshots is
- * stored in [`update_time`][google.cloud.dialogflow.cx.v3.Environment.update_time].
+ * stored in
+ * [`update_time`][google.cloud.dialogflow.cx.v3.Environment.update_time].
*
*
* repeated .google.cloud.dialogflow.cx.v3.Environment environments = 1;
@@ -900,7 +940,8 @@ public com.google.cloud.dialogflow.cx.v3.EnvironmentOrBuilder getEnvironmentsOrB
*
*
* Represents a list of snapshots for an environment. Time of the snapshots is
- * stored in [`update_time`][google.cloud.dialogflow.cx.v3.Environment.update_time].
+ * stored in
+ * [`update_time`][google.cloud.dialogflow.cx.v3.Environment.update_time].
*
*
* repeated .google.cloud.dialogflow.cx.v3.Environment environments = 1;
@@ -918,7 +959,8 @@ public com.google.cloud.dialogflow.cx.v3.EnvironmentOrBuilder getEnvironmentsOrB
*
*
* Represents a list of snapshots for an environment. Time of the snapshots is
- * stored in [`update_time`][google.cloud.dialogflow.cx.v3.Environment.update_time].
+ * stored in
+ * [`update_time`][google.cloud.dialogflow.cx.v3.Environment.update_time].
*
*
* repeated .google.cloud.dialogflow.cx.v3.Environment environments = 1;
@@ -932,7 +974,8 @@ public com.google.cloud.dialogflow.cx.v3.Environment.Builder addEnvironmentsBuil
*
*
* Represents a list of snapshots for an environment. Time of the snapshots is
- * stored in [`update_time`][google.cloud.dialogflow.cx.v3.Environment.update_time].
+ * stored in
+ * [`update_time`][google.cloud.dialogflow.cx.v3.Environment.update_time].
*
*
* repeated .google.cloud.dialogflow.cx.v3.Environment environments = 1;
@@ -946,7 +989,8 @@ public com.google.cloud.dialogflow.cx.v3.Environment.Builder addEnvironmentsBuil
*
*
* Represents a list of snapshots for an environment. Time of the snapshots is
- * stored in [`update_time`][google.cloud.dialogflow.cx.v3.Environment.update_time].
+ * stored in
+ * [`update_time`][google.cloud.dialogflow.cx.v3.Environment.update_time].
*
*
* repeated .google.cloud.dialogflow.cx.v3.Environment environments = 1;
@@ -1037,8 +1081,8 @@ public Builder setNextPageToken(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
-
nextPageToken_ = value;
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -1055,8 +1099,8 @@ public Builder setNextPageToken(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearNextPageToken() {
-
nextPageToken_ = getDefaultInstance().getNextPageToken();
+ bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
@@ -1078,8 +1122,8 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
-
nextPageToken_ = value;
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/LookupEnvironmentHistoryResponseOrBuilder.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/LookupEnvironmentHistoryResponseOrBuilder.java
index c0b84945df19..540a493e9903 100644
--- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/LookupEnvironmentHistoryResponseOrBuilder.java
+++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/LookupEnvironmentHistoryResponseOrBuilder.java
@@ -28,7 +28,8 @@ public interface LookupEnvironmentHistoryResponseOrBuilder
*
*
* Represents a list of snapshots for an environment. Time of the snapshots is
- * stored in [`update_time`][google.cloud.dialogflow.cx.v3.Environment.update_time].
+ * stored in
+ * [`update_time`][google.cloud.dialogflow.cx.v3.Environment.update_time].
*
*
* repeated .google.cloud.dialogflow.cx.v3.Environment environments = 1;
@@ -39,7 +40,8 @@ public interface LookupEnvironmentHistoryResponseOrBuilder
*
*
* Represents a list of snapshots for an environment. Time of the snapshots is
- * stored in [`update_time`][google.cloud.dialogflow.cx.v3.Environment.update_time].
+ * stored in
+ * [`update_time`][google.cloud.dialogflow.cx.v3.Environment.update_time].
*
*
* repeated .google.cloud.dialogflow.cx.v3.Environment environments = 1;
@@ -50,7 +52,8 @@ public interface LookupEnvironmentHistoryResponseOrBuilder
*
*
* Represents a list of snapshots for an environment. Time of the snapshots is
- * stored in [`update_time`][google.cloud.dialogflow.cx.v3.Environment.update_time].
+ * stored in
+ * [`update_time`][google.cloud.dialogflow.cx.v3.Environment.update_time].
*
*
* repeated .google.cloud.dialogflow.cx.v3.Environment environments = 1;
@@ -61,7 +64,8 @@ public interface LookupEnvironmentHistoryResponseOrBuilder
*
*
* Represents a list of snapshots for an environment. Time of the snapshots is
- * stored in [`update_time`][google.cloud.dialogflow.cx.v3.Environment.update_time].
+ * stored in
+ * [`update_time`][google.cloud.dialogflow.cx.v3.Environment.update_time].
*
*
* repeated .google.cloud.dialogflow.cx.v3.Environment environments = 1;
@@ -73,7 +77,8 @@ public interface LookupEnvironmentHistoryResponseOrBuilder
*
*
* Represents a list of snapshots for an environment. Time of the snapshots is
- * stored in [`update_time`][google.cloud.dialogflow.cx.v3.Environment.update_time].
+ * stored in
+ * [`update_time`][google.cloud.dialogflow.cx.v3.Environment.update_time].
*
*
* repeated .google.cloud.dialogflow.cx.v3.Environment environments = 1;
diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/Match.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/Match.java
index ae5c964e7b02..c913ac889864 100644
--- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/Match.java
+++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/Match.java
@@ -320,9 +320,10 @@ private MatchType(int value) {
*
*
*
- * The [Intent][google.cloud.dialogflow.cx.v3.Intent] that matched the query. Some, not all fields are filled in
- * this message, including but not limited to: `name` and `display_name`. Only
- * filled for [`INTENT`][google.cloud.dialogflow.cx.v3.Match.MatchType] match type.
+ * The [Intent][google.cloud.dialogflow.cx.v3.Intent] that matched the query.
+ * Some, not all fields are filled in this message, including but not limited
+ * to: `name` and `display_name`. Only filled for
+ * [`INTENT`][google.cloud.dialogflow.cx.v3.Match.MatchType] match type.
*
*
* .google.cloud.dialogflow.cx.v3.Intent intent = 1;
@@ -337,9 +338,10 @@ public boolean hasIntent() {
*
*
*
- * The [Intent][google.cloud.dialogflow.cx.v3.Intent] that matched the query. Some, not all fields are filled in
- * this message, including but not limited to: `name` and `display_name`. Only
- * filled for [`INTENT`][google.cloud.dialogflow.cx.v3.Match.MatchType] match type.
+ * The [Intent][google.cloud.dialogflow.cx.v3.Intent] that matched the query.
+ * Some, not all fields are filled in this message, including but not limited
+ * to: `name` and `display_name`. Only filled for
+ * [`INTENT`][google.cloud.dialogflow.cx.v3.Match.MatchType] match type.
*
*
* .google.cloud.dialogflow.cx.v3.Intent intent = 1;
@@ -356,26 +358,32 @@ public com.google.cloud.dialogflow.cx.v3.Intent getIntent() {
*
*
*
- * The [Intent][google.cloud.dialogflow.cx.v3.Intent] that matched the query. Some, not all fields are filled in
- * this message, including but not limited to: `name` and `display_name`. Only
- * filled for [`INTENT`][google.cloud.dialogflow.cx.v3.Match.MatchType] match type.
+ * The [Intent][google.cloud.dialogflow.cx.v3.Intent] that matched the query.
+ * Some, not all fields are filled in this message, including but not limited
+ * to: `name` and `display_name`. Only filled for
+ * [`INTENT`][google.cloud.dialogflow.cx.v3.Match.MatchType] match type.
*
*
* .google.cloud.dialogflow.cx.v3.Intent intent = 1;
*/
@java.lang.Override
public com.google.cloud.dialogflow.cx.v3.IntentOrBuilder getIntentOrBuilder() {
- return getIntent();
+ return intent_ == null
+ ? com.google.cloud.dialogflow.cx.v3.Intent.getDefaultInstance()
+ : intent_;
}
public static final int EVENT_FIELD_NUMBER = 6;
- private volatile java.lang.Object event_;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object event_ = "";
/**
*
*
*
* The event that matched the query. Filled for
- * [`EVENT`][google.cloud.dialogflow.cx.v3.Match.MatchType], [`NO_MATCH`][google.cloud.dialogflow.cx.v3.Match.MatchType] and
+ * [`EVENT`][google.cloud.dialogflow.cx.v3.Match.MatchType],
+ * [`NO_MATCH`][google.cloud.dialogflow.cx.v3.Match.MatchType] and
* [`NO_INPUT`][google.cloud.dialogflow.cx.v3.Match.MatchType] match types.
*
*
@@ -400,7 +408,8 @@ public java.lang.String getEvent() {
*
*
* The event that matched the query. Filled for
- * [`EVENT`][google.cloud.dialogflow.cx.v3.Match.MatchType], [`NO_MATCH`][google.cloud.dialogflow.cx.v3.Match.MatchType] and
+ * [`EVENT`][google.cloud.dialogflow.cx.v3.Match.MatchType],
+ * [`NO_MATCH`][google.cloud.dialogflow.cx.v3.Match.MatchType] and
* [`NO_INPUT`][google.cloud.dialogflow.cx.v3.Match.MatchType] match types.
*
*
@@ -497,11 +506,13 @@ public com.google.protobuf.Struct getParameters() {
*/
@java.lang.Override
public com.google.protobuf.StructOrBuilder getParametersOrBuilder() {
- return getParameters();
+ return parameters_ == null ? com.google.protobuf.Struct.getDefaultInstance() : parameters_;
}
public static final int RESOLVED_INPUT_FIELD_NUMBER = 3;
- private volatile java.lang.Object resolvedInput_;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object resolvedInput_ = "";
/**
*
*
@@ -554,7 +565,7 @@ public com.google.protobuf.ByteString getResolvedInputBytes() {
}
public static final int MATCH_TYPE_FIELD_NUMBER = 4;
- private int matchType_;
+ private int matchType_ = 0;
/**
*
*
@@ -583,14 +594,13 @@ public int getMatchTypeValue() {
*/
@java.lang.Override
public com.google.cloud.dialogflow.cx.v3.Match.MatchType getMatchType() {
- @SuppressWarnings("deprecation")
com.google.cloud.dialogflow.cx.v3.Match.MatchType result =
- com.google.cloud.dialogflow.cx.v3.Match.MatchType.valueOf(matchType_);
+ com.google.cloud.dialogflow.cx.v3.Match.MatchType.forNumber(matchType_);
return result == null ? com.google.cloud.dialogflow.cx.v3.Match.MatchType.UNRECOGNIZED : result;
}
public static final int CONFIDENCE_FIELD_NUMBER = 5;
- private float confidence_;
+ private float confidence_ = 0F;
/**
*
*
@@ -866,26 +876,21 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
@java.lang.Override
public Builder clear() {
super.clear();
- if (intentBuilder_ == null) {
- intent_ = null;
- } else {
- intent_ = null;
+ bitField0_ = 0;
+ intent_ = null;
+ if (intentBuilder_ != null) {
+ intentBuilder_.dispose();
intentBuilder_ = null;
}
event_ = "";
-
- if (parametersBuilder_ == null) {
- parameters_ = null;
- } else {
- parameters_ = null;
+ parameters_ = null;
+ if (parametersBuilder_ != null) {
+ parametersBuilder_.dispose();
parametersBuilder_ = null;
}
resolvedInput_ = "";
-
matchType_ = 0;
-
confidence_ = 0F;
-
return this;
}
@@ -913,24 +918,35 @@ public com.google.cloud.dialogflow.cx.v3.Match build() {
public com.google.cloud.dialogflow.cx.v3.Match buildPartial() {
com.google.cloud.dialogflow.cx.v3.Match result =
new com.google.cloud.dialogflow.cx.v3.Match(this);
- if (intentBuilder_ == null) {
- result.intent_ = intent_;
- } else {
- result.intent_ = intentBuilder_.build();
+ if (bitField0_ != 0) {
+ buildPartial0(result);
}
- result.event_ = event_;
- if (parametersBuilder_ == null) {
- result.parameters_ = parameters_;
- } else {
- result.parameters_ = parametersBuilder_.build();
- }
- result.resolvedInput_ = resolvedInput_;
- result.matchType_ = matchType_;
- result.confidence_ = confidence_;
onBuilt();
return result;
}
+ private void buildPartial0(com.google.cloud.dialogflow.cx.v3.Match result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.intent_ = intentBuilder_ == null ? intent_ : intentBuilder_.build();
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.event_ = event_;
+ }
+ if (((from_bitField0_ & 0x00000004) != 0)) {
+ result.parameters_ = parametersBuilder_ == null ? parameters_ : parametersBuilder_.build();
+ }
+ if (((from_bitField0_ & 0x00000008) != 0)) {
+ result.resolvedInput_ = resolvedInput_;
+ }
+ if (((from_bitField0_ & 0x00000010) != 0)) {
+ result.matchType_ = matchType_;
+ }
+ if (((from_bitField0_ & 0x00000020) != 0)) {
+ result.confidence_ = confidence_;
+ }
+ }
+
@java.lang.Override
public Builder clone() {
return super.clone();
@@ -981,6 +997,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.Match other) {
}
if (!other.getEvent().isEmpty()) {
event_ = other.event_;
+ bitField0_ |= 0x00000002;
onChanged();
}
if (other.hasParameters()) {
@@ -988,6 +1005,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.Match other) {
}
if (!other.getResolvedInput().isEmpty()) {
resolvedInput_ = other.resolvedInput_;
+ bitField0_ |= 0x00000008;
onChanged();
}
if (other.matchType_ != 0) {
@@ -1025,37 +1043,37 @@ public Builder mergeFrom(
case 10:
{
input.readMessage(getIntentFieldBuilder().getBuilder(), extensionRegistry);
-
+ bitField0_ |= 0x00000001;
break;
} // case 10
case 18:
{
input.readMessage(getParametersFieldBuilder().getBuilder(), extensionRegistry);
-
+ bitField0_ |= 0x00000004;
break;
} // case 18
case 26:
{
resolvedInput_ = input.readStringRequireUtf8();
-
+ bitField0_ |= 0x00000008;
break;
} // case 26
case 32:
{
matchType_ = input.readEnum();
-
+ bitField0_ |= 0x00000010;
break;
} // case 32
case 45:
{
confidence_ = input.readFloat();
-
+ bitField0_ |= 0x00000020;
break;
} // case 45
case 50:
{
event_ = input.readStringRequireUtf8();
-
+ bitField0_ |= 0x00000002;
break;
} // case 50
default:
@@ -1075,6 +1093,8 @@ public Builder mergeFrom(
return this;
}
+ private int bitField0_;
+
private com.google.cloud.dialogflow.cx.v3.Intent intent_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.dialogflow.cx.v3.Intent,
@@ -1085,9 +1105,10 @@ public Builder mergeFrom(
*
*
*
- * The [Intent][google.cloud.dialogflow.cx.v3.Intent] that matched the query. Some, not all fields are filled in
- * this message, including but not limited to: `name` and `display_name`. Only
- * filled for [`INTENT`][google.cloud.dialogflow.cx.v3.Match.MatchType] match type.
+ * The [Intent][google.cloud.dialogflow.cx.v3.Intent] that matched the query.
+ * Some, not all fields are filled in this message, including but not limited
+ * to: `name` and `display_name`. Only filled for
+ * [`INTENT`][google.cloud.dialogflow.cx.v3.Match.MatchType] match type.
*
*
* .google.cloud.dialogflow.cx.v3.Intent intent = 1;
@@ -1095,15 +1116,16 @@ public Builder mergeFrom(
* @return Whether the intent field is set.
*/
public boolean hasIntent() {
- return intentBuilder_ != null || intent_ != null;
+ return ((bitField0_ & 0x00000001) != 0);
}
/**
*
*
*
- * The [Intent][google.cloud.dialogflow.cx.v3.Intent] that matched the query. Some, not all fields are filled in
- * this message, including but not limited to: `name` and `display_name`. Only
- * filled for [`INTENT`][google.cloud.dialogflow.cx.v3.Match.MatchType] match type.
+ * The [Intent][google.cloud.dialogflow.cx.v3.Intent] that matched the query.
+ * Some, not all fields are filled in this message, including but not limited
+ * to: `name` and `display_name`. Only filled for
+ * [`INTENT`][google.cloud.dialogflow.cx.v3.Match.MatchType] match type.
*
*
* .google.cloud.dialogflow.cx.v3.Intent intent = 1;
@@ -1123,9 +1145,10 @@ public com.google.cloud.dialogflow.cx.v3.Intent getIntent() {
*
*
*
- * The [Intent][google.cloud.dialogflow.cx.v3.Intent] that matched the query. Some, not all fields are filled in
- * this message, including but not limited to: `name` and `display_name`. Only
- * filled for [`INTENT`][google.cloud.dialogflow.cx.v3.Match.MatchType] match type.
+ * The [Intent][google.cloud.dialogflow.cx.v3.Intent] that matched the query.
+ * Some, not all fields are filled in this message, including but not limited
+ * to: `name` and `display_name`. Only filled for
+ * [`INTENT`][google.cloud.dialogflow.cx.v3.Match.MatchType] match type.
*
*
* .google.cloud.dialogflow.cx.v3.Intent intent = 1;
@@ -1136,20 +1159,21 @@ public Builder setIntent(com.google.cloud.dialogflow.cx.v3.Intent value) {
throw new NullPointerException();
}
intent_ = value;
- onChanged();
} else {
intentBuilder_.setMessage(value);
}
-
+ bitField0_ |= 0x00000001;
+ onChanged();
return this;
}
/**
*
*
*
- * The [Intent][google.cloud.dialogflow.cx.v3.Intent] that matched the query. Some, not all fields are filled in
- * this message, including but not limited to: `name` and `display_name`. Only
- * filled for [`INTENT`][google.cloud.dialogflow.cx.v3.Match.MatchType] match type.
+ * The [Intent][google.cloud.dialogflow.cx.v3.Intent] that matched the query.
+ * Some, not all fields are filled in this message, including but not limited
+ * to: `name` and `display_name`. Only filled for
+ * [`INTENT`][google.cloud.dialogflow.cx.v3.Match.MatchType] match type.
*
*
* .google.cloud.dialogflow.cx.v3.Intent intent = 1;
@@ -1157,76 +1181,77 @@ public Builder setIntent(com.google.cloud.dialogflow.cx.v3.Intent value) {
public Builder setIntent(com.google.cloud.dialogflow.cx.v3.Intent.Builder builderForValue) {
if (intentBuilder_ == null) {
intent_ = builderForValue.build();
- onChanged();
} else {
intentBuilder_.setMessage(builderForValue.build());
}
-
+ bitField0_ |= 0x00000001;
+ onChanged();
return this;
}
/**
*
*
*
- * The [Intent][google.cloud.dialogflow.cx.v3.Intent] that matched the query. Some, not all fields are filled in
- * this message, including but not limited to: `name` and `display_name`. Only
- * filled for [`INTENT`][google.cloud.dialogflow.cx.v3.Match.MatchType] match type.
+ * The [Intent][google.cloud.dialogflow.cx.v3.Intent] that matched the query.
+ * Some, not all fields are filled in this message, including but not limited
+ * to: `name` and `display_name`. Only filled for
+ * [`INTENT`][google.cloud.dialogflow.cx.v3.Match.MatchType] match type.
*
*
* .google.cloud.dialogflow.cx.v3.Intent intent = 1;
*/
public Builder mergeIntent(com.google.cloud.dialogflow.cx.v3.Intent value) {
if (intentBuilder_ == null) {
- if (intent_ != null) {
- intent_ =
- com.google.cloud.dialogflow.cx.v3.Intent.newBuilder(intent_)
- .mergeFrom(value)
- .buildPartial();
+ if (((bitField0_ & 0x00000001) != 0)
+ && intent_ != null
+ && intent_ != com.google.cloud.dialogflow.cx.v3.Intent.getDefaultInstance()) {
+ getIntentBuilder().mergeFrom(value);
} else {
intent_ = value;
}
- onChanged();
} else {
intentBuilder_.mergeFrom(value);
}
-
+ bitField0_ |= 0x00000001;
+ onChanged();
return this;
}
/**
*
*
*
- * The [Intent][google.cloud.dialogflow.cx.v3.Intent] that matched the query. Some, not all fields are filled in
- * this message, including but not limited to: `name` and `display_name`. Only
- * filled for [`INTENT`][google.cloud.dialogflow.cx.v3.Match.MatchType] match type.
+ * The [Intent][google.cloud.dialogflow.cx.v3.Intent] that matched the query.
+ * Some, not all fields are filled in this message, including but not limited
+ * to: `name` and `display_name`. Only filled for
+ * [`INTENT`][google.cloud.dialogflow.cx.v3.Match.MatchType] match type.
*
*
* .google.cloud.dialogflow.cx.v3.Intent intent = 1;
*/
public Builder clearIntent() {
- if (intentBuilder_ == null) {
- intent_ = null;
- onChanged();
- } else {
- intent_ = null;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ intent_ = null;
+ if (intentBuilder_ != null) {
+ intentBuilder_.dispose();
intentBuilder_ = null;
}
-
+ onChanged();
return this;
}
/**
*
*
*
- * The [Intent][google.cloud.dialogflow.cx.v3.Intent] that matched the query. Some, not all fields are filled in
- * this message, including but not limited to: `name` and `display_name`. Only
- * filled for [`INTENT`][google.cloud.dialogflow.cx.v3.Match.MatchType] match type.
+ * The [Intent][google.cloud.dialogflow.cx.v3.Intent] that matched the query.
+ * Some, not all fields are filled in this message, including but not limited
+ * to: `name` and `display_name`. Only filled for
+ * [`INTENT`][google.cloud.dialogflow.cx.v3.Match.MatchType] match type.
*
*
* .google.cloud.dialogflow.cx.v3.Intent intent = 1;
*/
public com.google.cloud.dialogflow.cx.v3.Intent.Builder getIntentBuilder() {
-
+ bitField0_ |= 0x00000001;
onChanged();
return getIntentFieldBuilder().getBuilder();
}
@@ -1234,9 +1259,10 @@ public com.google.cloud.dialogflow.cx.v3.Intent.Builder getIntentBuilder() {
*
*
*
- * The [Intent][google.cloud.dialogflow.cx.v3.Intent] that matched the query. Some, not all fields are filled in
- * this message, including but not limited to: `name` and `display_name`. Only
- * filled for [`INTENT`][google.cloud.dialogflow.cx.v3.Match.MatchType] match type.
+ * The [Intent][google.cloud.dialogflow.cx.v3.Intent] that matched the query.
+ * Some, not all fields are filled in this message, including but not limited
+ * to: `name` and `display_name`. Only filled for
+ * [`INTENT`][google.cloud.dialogflow.cx.v3.Match.MatchType] match type.
*
*
* .google.cloud.dialogflow.cx.v3.Intent intent = 1;
@@ -1254,9 +1280,10 @@ public com.google.cloud.dialogflow.cx.v3.IntentOrBuilder getIntentOrBuilder() {
*
*
*
- * The [Intent][google.cloud.dialogflow.cx.v3.Intent] that matched the query. Some, not all fields are filled in
- * this message, including but not limited to: `name` and `display_name`. Only
- * filled for [`INTENT`][google.cloud.dialogflow.cx.v3.Match.MatchType] match type.
+ * The [Intent][google.cloud.dialogflow.cx.v3.Intent] that matched the query.
+ * Some, not all fields are filled in this message, including but not limited
+ * to: `name` and `display_name`. Only filled for
+ * [`INTENT`][google.cloud.dialogflow.cx.v3.Match.MatchType] match type.
*
*
* .google.cloud.dialogflow.cx.v3.Intent intent = 1;
@@ -1284,7 +1311,8 @@ public com.google.cloud.dialogflow.cx.v3.IntentOrBuilder getIntentOrBuilder() {
*
*
* The event that matched the query. Filled for
- * [`EVENT`][google.cloud.dialogflow.cx.v3.Match.MatchType], [`NO_MATCH`][google.cloud.dialogflow.cx.v3.Match.MatchType] and
+ * [`EVENT`][google.cloud.dialogflow.cx.v3.Match.MatchType],
+ * [`NO_MATCH`][google.cloud.dialogflow.cx.v3.Match.MatchType] and
* [`NO_INPUT`][google.cloud.dialogflow.cx.v3.Match.MatchType] match types.
*
*
@@ -1308,7 +1336,8 @@ public java.lang.String getEvent() {
*
*
* The event that matched the query. Filled for
- * [`EVENT`][google.cloud.dialogflow.cx.v3.Match.MatchType], [`NO_MATCH`][google.cloud.dialogflow.cx.v3.Match.MatchType] and
+ * [`EVENT`][google.cloud.dialogflow.cx.v3.Match.MatchType],
+ * [`NO_MATCH`][google.cloud.dialogflow.cx.v3.Match.MatchType] and
* [`NO_INPUT`][google.cloud.dialogflow.cx.v3.Match.MatchType] match types.
*
*
@@ -1332,7 +1361,8 @@ public com.google.protobuf.ByteString getEventBytes() {
*
*
* The event that matched the query. Filled for
- * [`EVENT`][google.cloud.dialogflow.cx.v3.Match.MatchType], [`NO_MATCH`][google.cloud.dialogflow.cx.v3.Match.MatchType] and
+ * [`EVENT`][google.cloud.dialogflow.cx.v3.Match.MatchType],
+ * [`NO_MATCH`][google.cloud.dialogflow.cx.v3.Match.MatchType] and
* [`NO_INPUT`][google.cloud.dialogflow.cx.v3.Match.MatchType] match types.
*
*
@@ -1345,8 +1375,8 @@ public Builder setEvent(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
-
event_ = value;
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -1355,7 +1385,8 @@ public Builder setEvent(java.lang.String value) {
*
*
* The event that matched the query. Filled for
- * [`EVENT`][google.cloud.dialogflow.cx.v3.Match.MatchType], [`NO_MATCH`][google.cloud.dialogflow.cx.v3.Match.MatchType] and
+ * [`EVENT`][google.cloud.dialogflow.cx.v3.Match.MatchType],
+ * [`NO_MATCH`][google.cloud.dialogflow.cx.v3.Match.MatchType] and
* [`NO_INPUT`][google.cloud.dialogflow.cx.v3.Match.MatchType] match types.
*
*
@@ -1364,8 +1395,8 @@ public Builder setEvent(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearEvent() {
-
event_ = getDefaultInstance().getEvent();
+ bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
@@ -1374,7 +1405,8 @@ public Builder clearEvent() {
*
*
* The event that matched the query. Filled for
- * [`EVENT`][google.cloud.dialogflow.cx.v3.Match.MatchType], [`NO_MATCH`][google.cloud.dialogflow.cx.v3.Match.MatchType] and
+ * [`EVENT`][google.cloud.dialogflow.cx.v3.Match.MatchType],
+ * [`NO_MATCH`][google.cloud.dialogflow.cx.v3.Match.MatchType] and
* [`NO_INPUT`][google.cloud.dialogflow.cx.v3.Match.MatchType] match types.
*
*
@@ -1388,8 +1420,8 @@ public Builder setEventBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
-
event_ = value;
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -1423,7 +1455,7 @@ public Builder setEventBytes(com.google.protobuf.ByteString value) {
* @return Whether the parameters field is set.
*/
public boolean hasParameters() {
- return parametersBuilder_ != null || parameters_ != null;
+ return ((bitField0_ & 0x00000004) != 0);
}
/**
*
@@ -1480,11 +1512,11 @@ public Builder setParameters(com.google.protobuf.Struct value) {
throw new NullPointerException();
}
parameters_ = value;
- onChanged();
} else {
parametersBuilder_.setMessage(value);
}
-
+ bitField0_ |= 0x00000004;
+ onChanged();
return this;
}
/**
@@ -1510,11 +1542,11 @@ public Builder setParameters(com.google.protobuf.Struct value) {
public Builder setParameters(com.google.protobuf.Struct.Builder builderForValue) {
if (parametersBuilder_ == null) {
parameters_ = builderForValue.build();
- onChanged();
} else {
parametersBuilder_.setMessage(builderForValue.build());
}
-
+ bitField0_ |= 0x00000004;
+ onChanged();
return this;
}
/**
@@ -1539,17 +1571,18 @@ public Builder setParameters(com.google.protobuf.Struct.Builder builderForValue)
*/
public Builder mergeParameters(com.google.protobuf.Struct value) {
if (parametersBuilder_ == null) {
- if (parameters_ != null) {
- parameters_ =
- com.google.protobuf.Struct.newBuilder(parameters_).mergeFrom(value).buildPartial();
+ if (((bitField0_ & 0x00000004) != 0)
+ && parameters_ != null
+ && parameters_ != com.google.protobuf.Struct.getDefaultInstance()) {
+ getParametersBuilder().mergeFrom(value);
} else {
parameters_ = value;
}
- onChanged();
} else {
parametersBuilder_.mergeFrom(value);
}
-
+ bitField0_ |= 0x00000004;
+ onChanged();
return this;
}
/**
@@ -1573,14 +1606,13 @@ public Builder mergeParameters(com.google.protobuf.Struct value) {
* .google.protobuf.Struct parameters = 2;
*/
public Builder clearParameters() {
- if (parametersBuilder_ == null) {
- parameters_ = null;
- onChanged();
- } else {
- parameters_ = null;
+ bitField0_ = (bitField0_ & ~0x00000004);
+ parameters_ = null;
+ if (parametersBuilder_ != null) {
+ parametersBuilder_.dispose();
parametersBuilder_ = null;
}
-
+ onChanged();
return this;
}
/**
@@ -1604,7 +1636,7 @@ public Builder clearParameters() {
* .google.protobuf.Struct parameters = 2;
*/
public com.google.protobuf.Struct.Builder getParametersBuilder() {
-
+ bitField0_ |= 0x00000004;
onChanged();
return getParametersFieldBuilder().getBuilder();
}
@@ -1739,8 +1771,8 @@ public Builder setResolvedInput(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
-
resolvedInput_ = value;
+ bitField0_ |= 0x00000008;
onChanged();
return this;
}
@@ -1758,8 +1790,8 @@ public Builder setResolvedInput(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearResolvedInput() {
-
resolvedInput_ = getDefaultInstance().getResolvedInput();
+ bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
return this;
}
@@ -1782,8 +1814,8 @@ public Builder setResolvedInputBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
-
resolvedInput_ = value;
+ bitField0_ |= 0x00000008;
onChanged();
return this;
}
@@ -1817,8 +1849,8 @@ public int getMatchTypeValue() {
* @return This builder for chaining.
*/
public Builder setMatchTypeValue(int value) {
-
matchType_ = value;
+ bitField0_ |= 0x00000010;
onChanged();
return this;
}
@@ -1835,9 +1867,8 @@ public Builder setMatchTypeValue(int value) {
*/
@java.lang.Override
public com.google.cloud.dialogflow.cx.v3.Match.MatchType getMatchType() {
- @SuppressWarnings("deprecation")
com.google.cloud.dialogflow.cx.v3.Match.MatchType result =
- com.google.cloud.dialogflow.cx.v3.Match.MatchType.valueOf(matchType_);
+ com.google.cloud.dialogflow.cx.v3.Match.MatchType.forNumber(matchType_);
return result == null
? com.google.cloud.dialogflow.cx.v3.Match.MatchType.UNRECOGNIZED
: result;
@@ -1858,7 +1889,7 @@ public Builder setMatchType(com.google.cloud.dialogflow.cx.v3.Match.MatchType va
if (value == null) {
throw new NullPointerException();
}
-
+ bitField0_ |= 0x00000010;
matchType_ = value.getNumber();
onChanged();
return this;
@@ -1875,7 +1906,7 @@ public Builder setMatchType(com.google.cloud.dialogflow.cx.v3.Match.MatchType va
* @return This builder for chaining.
*/
public Builder clearMatchType() {
-
+ bitField0_ = (bitField0_ & ~0x00000010);
matchType_ = 0;
onChanged();
return this;
@@ -1922,6 +1953,7 @@ public float getConfidence() {
public Builder setConfidence(float value) {
confidence_ = value;
+ bitField0_ |= 0x00000020;
onChanged();
return this;
}
@@ -1942,7 +1974,7 @@ public Builder setConfidence(float value) {
* @return This builder for chaining.
*/
public Builder clearConfidence() {
-
+ bitField0_ = (bitField0_ & ~0x00000020);
confidence_ = 0F;
onChanged();
return this;
diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/MatchIntentRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/MatchIntentRequest.java
index 3e8fbeac918d..26a1edebb929 100644
--- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/MatchIntentRequest.java
+++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/MatchIntentRequest.java
@@ -68,7 +68,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
public static final int SESSION_FIELD_NUMBER = 1;
- private volatile java.lang.Object session_;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object session_ = "";
/**
*
*
@@ -185,7 +187,9 @@ public com.google.cloud.dialogflow.cx.v3.QueryParameters getQueryParams() {
*/
@java.lang.Override
public com.google.cloud.dialogflow.cx.v3.QueryParametersOrBuilder getQueryParamsOrBuilder() {
- return getQueryParams();
+ return queryParams_ == null
+ ? com.google.cloud.dialogflow.cx.v3.QueryParameters.getDefaultInstance()
+ : queryParams_;
}
public static final int QUERY_INPUT_FIELD_NUMBER = 3;
@@ -239,7 +243,9 @@ public com.google.cloud.dialogflow.cx.v3.QueryInput getQueryInput() {
*/
@java.lang.Override
public com.google.cloud.dialogflow.cx.v3.QueryInputOrBuilder getQueryInputOrBuilder() {
- return getQueryInput();
+ return queryInput_ == null
+ ? com.google.cloud.dialogflow.cx.v3.QueryInput.getDefaultInstance()
+ : queryInput_;
}
private byte memoizedIsInitialized = -1;
@@ -467,18 +473,16 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
@java.lang.Override
public Builder clear() {
super.clear();
+ bitField0_ = 0;
session_ = "";
-
- if (queryParamsBuilder_ == null) {
- queryParams_ = null;
- } else {
- queryParams_ = null;
+ queryParams_ = null;
+ if (queryParamsBuilder_ != null) {
+ queryParamsBuilder_.dispose();
queryParamsBuilder_ = null;
}
- if (queryInputBuilder_ == null) {
- queryInput_ = null;
- } else {
- queryInput_ = null;
+ queryInput_ = null;
+ if (queryInputBuilder_ != null) {
+ queryInputBuilder_.dispose();
queryInputBuilder_ = null;
}
return this;
@@ -508,21 +512,27 @@ public com.google.cloud.dialogflow.cx.v3.MatchIntentRequest build() {
public com.google.cloud.dialogflow.cx.v3.MatchIntentRequest buildPartial() {
com.google.cloud.dialogflow.cx.v3.MatchIntentRequest result =
new com.google.cloud.dialogflow.cx.v3.MatchIntentRequest(this);
- result.session_ = session_;
- if (queryParamsBuilder_ == null) {
- result.queryParams_ = queryParams_;
- } else {
- result.queryParams_ = queryParamsBuilder_.build();
- }
- if (queryInputBuilder_ == null) {
- result.queryInput_ = queryInput_;
- } else {
- result.queryInput_ = queryInputBuilder_.build();
+ if (bitField0_ != 0) {
+ buildPartial0(result);
}
onBuilt();
return result;
}
+ private void buildPartial0(com.google.cloud.dialogflow.cx.v3.MatchIntentRequest result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.session_ = session_;
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.queryParams_ =
+ queryParamsBuilder_ == null ? queryParams_ : queryParamsBuilder_.build();
+ }
+ if (((from_bitField0_ & 0x00000004) != 0)) {
+ result.queryInput_ = queryInputBuilder_ == null ? queryInput_ : queryInputBuilder_.build();
+ }
+ }
+
@java.lang.Override
public Builder clone() {
return super.clone();
@@ -571,6 +581,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.MatchIntentRequest ot
return this;
if (!other.getSession().isEmpty()) {
session_ = other.session_;
+ bitField0_ |= 0x00000001;
onChanged();
}
if (other.hasQueryParams()) {
@@ -608,19 +619,19 @@ public Builder mergeFrom(
case 10:
{
session_ = input.readStringRequireUtf8();
-
+ bitField0_ |= 0x00000001;
break;
} // case 10
case 18:
{
input.readMessage(getQueryParamsFieldBuilder().getBuilder(), extensionRegistry);
-
+ bitField0_ |= 0x00000002;
break;
} // case 18
case 26:
{
input.readMessage(getQueryInputFieldBuilder().getBuilder(), extensionRegistry);
-
+ bitField0_ |= 0x00000004;
break;
} // case 26
default:
@@ -640,6 +651,8 @@ public Builder mergeFrom(
return this;
}
+ private int bitField0_;
+
private java.lang.Object session_ = "";
/**
*
@@ -737,8 +750,8 @@ public Builder setSession(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
-
session_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -766,8 +779,8 @@ public Builder setSession(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearSession() {
-
session_ = getDefaultInstance().getSession();
+ bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
@@ -800,8 +813,8 @@ public Builder setSessionBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
-
session_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -824,7 +837,7 @@ public Builder setSessionBytes(com.google.protobuf.ByteString value) {
* @return Whether the queryParams field is set.
*/
public boolean hasQueryParams() {
- return queryParamsBuilder_ != null || queryParams_ != null;
+ return ((bitField0_ & 0x00000002) != 0);
}
/**
*
@@ -861,11 +874,11 @@ public Builder setQueryParams(com.google.cloud.dialogflow.cx.v3.QueryParameters
throw new NullPointerException();
}
queryParams_ = value;
- onChanged();
} else {
queryParamsBuilder_.setMessage(value);
}
-
+ bitField0_ |= 0x00000002;
+ onChanged();
return this;
}
/**
@@ -881,11 +894,11 @@ public Builder setQueryParams(
com.google.cloud.dialogflow.cx.v3.QueryParameters.Builder builderForValue) {
if (queryParamsBuilder_ == null) {
queryParams_ = builderForValue.build();
- onChanged();
} else {
queryParamsBuilder_.setMessage(builderForValue.build());
}
-
+ bitField0_ |= 0x00000002;
+ onChanged();
return this;
}
/**
@@ -899,19 +912,19 @@ public Builder setQueryParams(
*/
public Builder mergeQueryParams(com.google.cloud.dialogflow.cx.v3.QueryParameters value) {
if (queryParamsBuilder_ == null) {
- if (queryParams_ != null) {
- queryParams_ =
- com.google.cloud.dialogflow.cx.v3.QueryParameters.newBuilder(queryParams_)
- .mergeFrom(value)
- .buildPartial();
+ if (((bitField0_ & 0x00000002) != 0)
+ && queryParams_ != null
+ && queryParams_
+ != com.google.cloud.dialogflow.cx.v3.QueryParameters.getDefaultInstance()) {
+ getQueryParamsBuilder().mergeFrom(value);
} else {
queryParams_ = value;
}
- onChanged();
} else {
queryParamsBuilder_.mergeFrom(value);
}
-
+ bitField0_ |= 0x00000002;
+ onChanged();
return this;
}
/**
@@ -924,14 +937,13 @@ public Builder mergeQueryParams(com.google.cloud.dialogflow.cx.v3.QueryParameter
* .google.cloud.dialogflow.cx.v3.QueryParameters query_params = 2;
*/
public Builder clearQueryParams() {
- if (queryParamsBuilder_ == null) {
- queryParams_ = null;
- onChanged();
- } else {
- queryParams_ = null;
+ bitField0_ = (bitField0_ & ~0x00000002);
+ queryParams_ = null;
+ if (queryParamsBuilder_ != null) {
+ queryParamsBuilder_.dispose();
queryParamsBuilder_ = null;
}
-
+ onChanged();
return this;
}
/**
@@ -944,7 +956,7 @@ public Builder clearQueryParams() {
* .google.cloud.dialogflow.cx.v3.QueryParameters query_params = 2;
*/
public com.google.cloud.dialogflow.cx.v3.QueryParameters.Builder getQueryParamsBuilder() {
-
+ bitField0_ |= 0x00000002;
onChanged();
return getQueryParamsFieldBuilder().getBuilder();
}
@@ -1012,7 +1024,7 @@ public com.google.cloud.dialogflow.cx.v3.QueryParametersOrBuilder getQueryParams
* @return Whether the queryInput field is set.
*/
public boolean hasQueryInput() {
- return queryInputBuilder_ != null || queryInput_ != null;
+ return ((bitField0_ & 0x00000004) != 0);
}
/**
*
@@ -1053,11 +1065,11 @@ public Builder setQueryInput(com.google.cloud.dialogflow.cx.v3.QueryInput value)
throw new NullPointerException();
}
queryInput_ = value;
- onChanged();
} else {
queryInputBuilder_.setMessage(value);
}
-
+ bitField0_ |= 0x00000004;
+ onChanged();
return this;
}
/**
@@ -1075,11 +1087,11 @@ public Builder setQueryInput(
com.google.cloud.dialogflow.cx.v3.QueryInput.Builder builderForValue) {
if (queryInputBuilder_ == null) {
queryInput_ = builderForValue.build();
- onChanged();
} else {
queryInputBuilder_.setMessage(builderForValue.build());
}
-
+ bitField0_ |= 0x00000004;
+ onChanged();
return this;
}
/**
@@ -1095,19 +1107,18 @@ public Builder setQueryInput(
*/
public Builder mergeQueryInput(com.google.cloud.dialogflow.cx.v3.QueryInput value) {
if (queryInputBuilder_ == null) {
- if (queryInput_ != null) {
- queryInput_ =
- com.google.cloud.dialogflow.cx.v3.QueryInput.newBuilder(queryInput_)
- .mergeFrom(value)
- .buildPartial();
+ if (((bitField0_ & 0x00000004) != 0)
+ && queryInput_ != null
+ && queryInput_ != com.google.cloud.dialogflow.cx.v3.QueryInput.getDefaultInstance()) {
+ getQueryInputBuilder().mergeFrom(value);
} else {
queryInput_ = value;
}
- onChanged();
} else {
queryInputBuilder_.mergeFrom(value);
}
-
+ bitField0_ |= 0x00000004;
+ onChanged();
return this;
}
/**
@@ -1122,14 +1133,13 @@ public Builder mergeQueryInput(com.google.cloud.dialogflow.cx.v3.QueryInput valu
*
*/
public Builder clearQueryInput() {
- if (queryInputBuilder_ == null) {
- queryInput_ = null;
- onChanged();
- } else {
- queryInput_ = null;
+ bitField0_ = (bitField0_ & ~0x00000004);
+ queryInput_ = null;
+ if (queryInputBuilder_ != null) {
+ queryInputBuilder_.dispose();
queryInputBuilder_ = null;
}
-
+ onChanged();
return this;
}
/**
@@ -1144,7 +1154,7 @@ public Builder clearQueryInput() {
*
*/
public com.google.cloud.dialogflow.cx.v3.QueryInput.Builder getQueryInputBuilder() {
-
+ bitField0_ |= 0x00000004;
onChanged();
return getQueryInputFieldBuilder().getBuilder();
}
diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/MatchIntentResponse.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/MatchIntentResponse.java
index 042e35005211..5332d5c71253 100644
--- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/MatchIntentResponse.java
+++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/MatchIntentResponse.java
@@ -125,8 +125,8 @@ public QueryCase getQueryCase() {
*
*
*
- * If [natural language text][google.cloud.dialogflow.cx.v3.TextInput] was provided as input, this field
- * will contain a copy of the text.
+ * If [natural language text][google.cloud.dialogflow.cx.v3.TextInput] was
+ * provided as input, this field will contain a copy of the text.
*
*
* string text = 1;
@@ -140,8 +140,8 @@ public boolean hasText() {
*
*
*
- * If [natural language text][google.cloud.dialogflow.cx.v3.TextInput] was provided as input, this field
- * will contain a copy of the text.
+ * If [natural language text][google.cloud.dialogflow.cx.v3.TextInput] was
+ * provided as input, this field will contain a copy of the text.
*
*
* string text = 1;
@@ -168,8 +168,8 @@ public java.lang.String getText() {
*
*
*
- * If [natural language text][google.cloud.dialogflow.cx.v3.TextInput] was provided as input, this field
- * will contain a copy of the text.
+ * If [natural language text][google.cloud.dialogflow.cx.v3.TextInput] was
+ * provided as input, this field will contain a copy of the text.
*
*
* string text = 1;
@@ -198,9 +198,9 @@ public com.google.protobuf.ByteString getTextBytes() {
*
*
*
- * If an [intent][google.cloud.dialogflow.cx.v3.IntentInput] was provided as input, this field will
- * contain a copy of the intent identifier.
- * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+ * If an [intent][google.cloud.dialogflow.cx.v3.IntentInput] was provided as
+ * input, this field will contain a copy of the intent identifier. Format:
+ * `projects/<Project ID>/locations/<Location ID>/agents/<Agent
* ID>/intents/<Intent ID>`.
*
*
@@ -215,9 +215,9 @@ public boolean hasTriggerIntent() {
*
*
*
- * If an [intent][google.cloud.dialogflow.cx.v3.IntentInput] was provided as input, this field will
- * contain a copy of the intent identifier.
- * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+ * If an [intent][google.cloud.dialogflow.cx.v3.IntentInput] was provided as
+ * input, this field will contain a copy of the intent identifier. Format:
+ * `projects/<Project ID>/locations/<Location ID>/agents/<Agent
* ID>/intents/<Intent ID>`.
*
*
@@ -245,9 +245,9 @@ public java.lang.String getTriggerIntent() {
*
*
*
- * If an [intent][google.cloud.dialogflow.cx.v3.IntentInput] was provided as input, this field will
- * contain a copy of the intent identifier.
- * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+ * If an [intent][google.cloud.dialogflow.cx.v3.IntentInput] was provided as
+ * input, this field will contain a copy of the intent identifier. Format:
+ * `projects/<Project ID>/locations/<Location ID>/agents/<Agent
* ID>/intents/<Intent ID>`.
*
*
@@ -277,7 +277,8 @@ public com.google.protobuf.ByteString getTriggerIntentBytes() {
*
*
*
- * If [natural language speech audio][google.cloud.dialogflow.cx.v3.AudioInput] was provided as input,
+ * If [natural language speech
+ * audio][google.cloud.dialogflow.cx.v3.AudioInput] was provided as input,
* this field will contain the transcript for the audio.
*
*
@@ -292,7 +293,8 @@ public boolean hasTranscript() {
*
*
*
- * If [natural language speech audio][google.cloud.dialogflow.cx.v3.AudioInput] was provided as input,
+ * If [natural language speech
+ * audio][google.cloud.dialogflow.cx.v3.AudioInput] was provided as input,
* this field will contain the transcript for the audio.
*
*
@@ -320,7 +322,8 @@ public java.lang.String getTranscript() {
*
*
*
- * If [natural language speech audio][google.cloud.dialogflow.cx.v3.AudioInput] was provided as input,
+ * If [natural language speech
+ * audio][google.cloud.dialogflow.cx.v3.AudioInput] was provided as input,
* this field will contain the transcript for the audio.
*
*
@@ -350,8 +353,8 @@ public com.google.protobuf.ByteString getTranscriptBytes() {
*
*
*
- * If an [event][google.cloud.dialogflow.cx.v3.EventInput] was provided as input, this field will
- * contain a copy of the event name.
+ * If an [event][google.cloud.dialogflow.cx.v3.EventInput] was provided as
+ * input, this field will contain a copy of the event name.
*
*
* string trigger_event = 6;
@@ -365,8 +368,8 @@ public boolean hasTriggerEvent() {
*
*
*
- * If an [event][google.cloud.dialogflow.cx.v3.EventInput] was provided as input, this field will
- * contain a copy of the event name.
+ * If an [event][google.cloud.dialogflow.cx.v3.EventInput] was provided as
+ * input, this field will contain a copy of the event name.
*
*
* string trigger_event = 6;
@@ -393,8 +396,8 @@ public java.lang.String getTriggerEvent() {
*
*
*
- * If an [event][google.cloud.dialogflow.cx.v3.EventInput] was provided as input, this field will
- * contain a copy of the event name.
+ * If an [event][google.cloud.dialogflow.cx.v3.EventInput] was provided as
+ * input, this field will contain a copy of the event name.
*
*
* string trigger_event = 6;
@@ -419,6 +422,8 @@ public com.google.protobuf.ByteString getTriggerEventBytes() {
}
public static final int MATCHES_FIELD_NUMBER = 4;
+
+ @SuppressWarnings("serial")
private java.util.List matches_;
/**
*
@@ -498,8 +503,9 @@ public com.google.cloud.dialogflow.cx.v3.MatchOrBuilder getMatchesOrBuilder(int
*
*
*
- * The current [Page][google.cloud.dialogflow.cx.v3.Page]. Some, not all fields are filled in this message,
- * including but not limited to `name` and `display_name`.
+ * The current [Page][google.cloud.dialogflow.cx.v3.Page]. Some, not all
+ * fields are filled in this message, including but not limited to `name` and
+ * `display_name`.
*
*
* .google.cloud.dialogflow.cx.v3.Page current_page = 5;
@@ -514,8 +520,9 @@ public boolean hasCurrentPage() {
*
*
*
- * The current [Page][google.cloud.dialogflow.cx.v3.Page]. Some, not all fields are filled in this message,
- * including but not limited to `name` and `display_name`.
+ * The current [Page][google.cloud.dialogflow.cx.v3.Page]. Some, not all
+ * fields are filled in this message, including but not limited to `name` and
+ * `display_name`.
*
*
* .google.cloud.dialogflow.cx.v3.Page current_page = 5;
@@ -532,15 +539,18 @@ public com.google.cloud.dialogflow.cx.v3.Page getCurrentPage() {
*
*
*
- * The current [Page][google.cloud.dialogflow.cx.v3.Page]. Some, not all fields are filled in this message,
- * including but not limited to `name` and `display_name`.
+ * The current [Page][google.cloud.dialogflow.cx.v3.Page]. Some, not all
+ * fields are filled in this message, including but not limited to `name` and
+ * `display_name`.
*
*
* .google.cloud.dialogflow.cx.v3.Page current_page = 5;
*/
@java.lang.Override
public com.google.cloud.dialogflow.cx.v3.PageOrBuilder getCurrentPageOrBuilder() {
- return getCurrentPage();
+ return currentPage_ == null
+ ? com.google.cloud.dialogflow.cx.v3.Page.getDefaultInstance()
+ : currentPage_;
}
private byte memoizedIsInitialized = -1;
@@ -818,17 +828,17 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
@java.lang.Override
public Builder clear() {
super.clear();
+ bitField0_ = 0;
if (matchesBuilder_ == null) {
matches_ = java.util.Collections.emptyList();
} else {
matches_ = null;
matchesBuilder_.clear();
}
- bitField0_ = (bitField0_ & ~0x00000001);
- if (currentPageBuilder_ == null) {
- currentPage_ = null;
- } else {
- currentPage_ = null;
+ bitField0_ = (bitField0_ & ~0x00000010);
+ currentPage_ = null;
+ if (currentPageBuilder_ != null) {
+ currentPageBuilder_.dispose();
currentPageBuilder_ = null;
}
queryCase_ = 0;
@@ -860,36 +870,39 @@ public com.google.cloud.dialogflow.cx.v3.MatchIntentResponse build() {
public com.google.cloud.dialogflow.cx.v3.MatchIntentResponse buildPartial() {
com.google.cloud.dialogflow.cx.v3.MatchIntentResponse result =
new com.google.cloud.dialogflow.cx.v3.MatchIntentResponse(this);
- int from_bitField0_ = bitField0_;
- if (queryCase_ == 1) {
- result.query_ = query_;
- }
- if (queryCase_ == 2) {
- result.query_ = query_;
- }
- if (queryCase_ == 3) {
- result.query_ = query_;
- }
- if (queryCase_ == 6) {
- result.query_ = query_;
+ buildPartialRepeatedFields(result);
+ if (bitField0_ != 0) {
+ buildPartial0(result);
}
+ buildPartialOneofs(result);
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartialRepeatedFields(
+ com.google.cloud.dialogflow.cx.v3.MatchIntentResponse result) {
if (matchesBuilder_ == null) {
- if (((bitField0_ & 0x00000001) != 0)) {
+ if (((bitField0_ & 0x00000010) != 0)) {
matches_ = java.util.Collections.unmodifiableList(matches_);
- bitField0_ = (bitField0_ & ~0x00000001);
+ bitField0_ = (bitField0_ & ~0x00000010);
}
result.matches_ = matches_;
} else {
result.matches_ = matchesBuilder_.build();
}
- if (currentPageBuilder_ == null) {
- result.currentPage_ = currentPage_;
- } else {
- result.currentPage_ = currentPageBuilder_.build();
+ }
+
+ private void buildPartial0(com.google.cloud.dialogflow.cx.v3.MatchIntentResponse result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000020) != 0)) {
+ result.currentPage_ =
+ currentPageBuilder_ == null ? currentPage_ : currentPageBuilder_.build();
}
+ }
+
+ private void buildPartialOneofs(com.google.cloud.dialogflow.cx.v3.MatchIntentResponse result) {
result.queryCase_ = queryCase_;
- onBuilt();
- return result;
+ result.query_ = this.query_;
}
@java.lang.Override
@@ -942,7 +955,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.MatchIntentResponse o
if (!other.matches_.isEmpty()) {
if (matches_.isEmpty()) {
matches_ = other.matches_;
- bitField0_ = (bitField0_ & ~0x00000001);
+ bitField0_ = (bitField0_ & ~0x00000010);
} else {
ensureMatchesIsMutable();
matches_.addAll(other.matches_);
@@ -955,7 +968,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.MatchIntentResponse o
matchesBuilder_.dispose();
matchesBuilder_ = null;
matches_ = other.matches_;
- bitField0_ = (bitField0_ & ~0x00000001);
+ bitField0_ = (bitField0_ & ~0x00000010);
matchesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
? getMatchesFieldBuilder()
@@ -1065,7 +1078,7 @@ public Builder mergeFrom(
case 42:
{
input.readMessage(getCurrentPageFieldBuilder().getBuilder(), extensionRegistry);
-
+ bitField0_ |= 0x00000020;
break;
} // case 42
case 50:
@@ -1112,8 +1125,8 @@ public Builder clearQuery() {
*
*
*
- * If [natural language text][google.cloud.dialogflow.cx.v3.TextInput] was provided as input, this field
- * will contain a copy of the text.
+ * If [natural language text][google.cloud.dialogflow.cx.v3.TextInput] was
+ * provided as input, this field will contain a copy of the text.
*
*
* string text = 1;
@@ -1128,8 +1141,8 @@ public boolean hasText() {
*
*
*
- * If [natural language text][google.cloud.dialogflow.cx.v3.TextInput] was provided as input, this field
- * will contain a copy of the text.
+ * If [natural language text][google.cloud.dialogflow.cx.v3.TextInput] was
+ * provided as input, this field will contain a copy of the text.
*
*
* string text = 1;
@@ -1157,8 +1170,8 @@ public java.lang.String getText() {
*
*
*
- * If [natural language text][google.cloud.dialogflow.cx.v3.TextInput] was provided as input, this field
- * will contain a copy of the text.
+ * If [natural language text][google.cloud.dialogflow.cx.v3.TextInput] was
+ * provided as input, this field will contain a copy of the text.
*
*
* string text = 1;
@@ -1186,8 +1199,8 @@ public com.google.protobuf.ByteString getTextBytes() {
*
*
*
- * If [natural language text][google.cloud.dialogflow.cx.v3.TextInput] was provided as input, this field
- * will contain a copy of the text.
+ * If [natural language text][google.cloud.dialogflow.cx.v3.TextInput] was
+ * provided as input, this field will contain a copy of the text.
*
*
* string text = 1;
@@ -1208,8 +1221,8 @@ public Builder setText(java.lang.String value) {
*
*
*
- * If [natural language text][google.cloud.dialogflow.cx.v3.TextInput] was provided as input, this field
- * will contain a copy of the text.
+ * If [natural language text][google.cloud.dialogflow.cx.v3.TextInput] was
+ * provided as input, this field will contain a copy of the text.
*
*
* string text = 1;
@@ -1228,8 +1241,8 @@ public Builder clearText() {
*
*
*
- * If [natural language text][google.cloud.dialogflow.cx.v3.TextInput] was provided as input, this field
- * will contain a copy of the text.
+ * If [natural language text][google.cloud.dialogflow.cx.v3.TextInput] was
+ * provided as input, this field will contain a copy of the text.
*
*
* string text = 1;
@@ -1252,9 +1265,9 @@ public Builder setTextBytes(com.google.protobuf.ByteString value) {
*
*
*
- * If an [intent][google.cloud.dialogflow.cx.v3.IntentInput] was provided as input, this field will
- * contain a copy of the intent identifier.
- * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+ * If an [intent][google.cloud.dialogflow.cx.v3.IntentInput] was provided as
+ * input, this field will contain a copy of the intent identifier. Format:
+ * `projects/<Project ID>/locations/<Location ID>/agents/<Agent
* ID>/intents/<Intent ID>`.
*
*
@@ -1270,9 +1283,9 @@ public boolean hasTriggerIntent() {
*
*
*
- * If an [intent][google.cloud.dialogflow.cx.v3.IntentInput] was provided as input, this field will
- * contain a copy of the intent identifier.
- * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+ * If an [intent][google.cloud.dialogflow.cx.v3.IntentInput] was provided as
+ * input, this field will contain a copy of the intent identifier. Format:
+ * `projects/<Project ID>/locations/<Location ID>/agents/<Agent
* ID>/intents/<Intent ID>`.
*
*
@@ -1301,9 +1314,9 @@ public java.lang.String getTriggerIntent() {
*
*
*
- * If an [intent][google.cloud.dialogflow.cx.v3.IntentInput] was provided as input, this field will
- * contain a copy of the intent identifier.
- * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+ * If an [intent][google.cloud.dialogflow.cx.v3.IntentInput] was provided as
+ * input, this field will contain a copy of the intent identifier. Format:
+ * `projects/<Project ID>/locations/<Location ID>/agents/<Agent
* ID>/intents/<Intent ID>`.
*
*
@@ -1332,9 +1345,9 @@ public com.google.protobuf.ByteString getTriggerIntentBytes() {
*
*
*
- * If an [intent][google.cloud.dialogflow.cx.v3.IntentInput] was provided as input, this field will
- * contain a copy of the intent identifier.
- * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+ * If an [intent][google.cloud.dialogflow.cx.v3.IntentInput] was provided as
+ * input, this field will contain a copy of the intent identifier. Format:
+ * `projects/<Project ID>/locations/<Location ID>/agents/<Agent
* ID>/intents/<Intent ID>`.
*
*
@@ -1356,9 +1369,9 @@ public Builder setTriggerIntent(java.lang.String value) {
*
*
*
- * If an [intent][google.cloud.dialogflow.cx.v3.IntentInput] was provided as input, this field will
- * contain a copy of the intent identifier.
- * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+ * If an [intent][google.cloud.dialogflow.cx.v3.IntentInput] was provided as
+ * input, this field will contain a copy of the intent identifier. Format:
+ * `projects/<Project ID>/locations/<Location ID>/agents/<Agent
* ID>/intents/<Intent ID>`.
*
*
@@ -1378,9 +1391,9 @@ public Builder clearTriggerIntent() {
*
*
*
- * If an [intent][google.cloud.dialogflow.cx.v3.IntentInput] was provided as input, this field will
- * contain a copy of the intent identifier.
- * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+ * If an [intent][google.cloud.dialogflow.cx.v3.IntentInput] was provided as
+ * input, this field will contain a copy of the intent identifier. Format:
+ * `projects/<Project ID>/locations/<Location ID>/agents/<Agent
* ID>/intents/<Intent ID>`.
*
*
@@ -1404,7 +1417,8 @@ public Builder setTriggerIntentBytes(com.google.protobuf.ByteString value) {
*
*
*
- * If [natural language speech audio][google.cloud.dialogflow.cx.v3.AudioInput] was provided as input,
+ * If [natural language speech
+ * audio][google.cloud.dialogflow.cx.v3.AudioInput] was provided as input,
* this field will contain the transcript for the audio.
*
*
@@ -1420,7 +1434,8 @@ public boolean hasTranscript() {
*
*
*
- * If [natural language speech audio][google.cloud.dialogflow.cx.v3.AudioInput] was provided as input,
+ * If [natural language speech
+ * audio][google.cloud.dialogflow.cx.v3.AudioInput] was provided as input,
* this field will contain the transcript for the audio.
*
*
@@ -1449,7 +1464,8 @@ public java.lang.String getTranscript() {
*
*
*
- * If [natural language speech audio][google.cloud.dialogflow.cx.v3.AudioInput] was provided as input,
+ * If [natural language speech
+ * audio][google.cloud.dialogflow.cx.v3.AudioInput] was provided as input,
* this field will contain the transcript for the audio.
*
*
@@ -1478,7 +1494,8 @@ public com.google.protobuf.ByteString getTranscriptBytes() {
*
*
*
- * If [natural language speech audio][google.cloud.dialogflow.cx.v3.AudioInput] was provided as input,
+ * If [natural language speech
+ * audio][google.cloud.dialogflow.cx.v3.AudioInput] was provided as input,
* this field will contain the transcript for the audio.
*
*
@@ -1500,7 +1517,8 @@ public Builder setTranscript(java.lang.String value) {
*
*
*
- * If [natural language speech audio][google.cloud.dialogflow.cx.v3.AudioInput] was provided as input,
+ * If [natural language speech
+ * audio][google.cloud.dialogflow.cx.v3.AudioInput] was provided as input,
* this field will contain the transcript for the audio.
*
*
@@ -1520,7 +1538,8 @@ public Builder clearTranscript() {
*
*
*
- * If [natural language speech audio][google.cloud.dialogflow.cx.v3.AudioInput] was provided as input,
+ * If [natural language speech
+ * audio][google.cloud.dialogflow.cx.v3.AudioInput] was provided as input,
* this field will contain the transcript for the audio.
*
*
@@ -1544,8 +1563,8 @@ public Builder setTranscriptBytes(com.google.protobuf.ByteString value) {
*
*
*
- * If an [event][google.cloud.dialogflow.cx.v3.EventInput] was provided as input, this field will
- * contain a copy of the event name.
+ * If an [event][google.cloud.dialogflow.cx.v3.EventInput] was provided as
+ * input, this field will contain a copy of the event name.
*
*
* string trigger_event = 6;
@@ -1560,8 +1579,8 @@ public boolean hasTriggerEvent() {
*
*
*
- * If an [event][google.cloud.dialogflow.cx.v3.EventInput] was provided as input, this field will
- * contain a copy of the event name.
+ * If an [event][google.cloud.dialogflow.cx.v3.EventInput] was provided as
+ * input, this field will contain a copy of the event name.
*
*
* string trigger_event = 6;
@@ -1589,8 +1608,8 @@ public java.lang.String getTriggerEvent() {
*
*
*
- * If an [event][google.cloud.dialogflow.cx.v3.EventInput] was provided as input, this field will
- * contain a copy of the event name.
+ * If an [event][google.cloud.dialogflow.cx.v3.EventInput] was provided as
+ * input, this field will contain a copy of the event name.
*
*
* string trigger_event = 6;
@@ -1618,8 +1637,8 @@ public com.google.protobuf.ByteString getTriggerEventBytes() {
*
*
*
- * If an [event][google.cloud.dialogflow.cx.v3.EventInput] was provided as input, this field will
- * contain a copy of the event name.
+ * If an [event][google.cloud.dialogflow.cx.v3.EventInput] was provided as
+ * input, this field will contain a copy of the event name.
*
*
* string trigger_event = 6;
@@ -1640,8 +1659,8 @@ public Builder setTriggerEvent(java.lang.String value) {
*
*
*
- * If an [event][google.cloud.dialogflow.cx.v3.EventInput] was provided as input, this field will
- * contain a copy of the event name.
+ * If an [event][google.cloud.dialogflow.cx.v3.EventInput] was provided as
+ * input, this field will contain a copy of the event name.
*
*
* string trigger_event = 6;
@@ -1660,8 +1679,8 @@ public Builder clearTriggerEvent() {
*
*
*
- * If an [event][google.cloud.dialogflow.cx.v3.EventInput] was provided as input, this field will
- * contain a copy of the event name.
+ * If an [event][google.cloud.dialogflow.cx.v3.EventInput] was provided as
+ * input, this field will contain a copy of the event name.
*
*
* string trigger_event = 6;
@@ -1684,9 +1703,9 @@ public Builder setTriggerEventBytes(com.google.protobuf.ByteString value) {
java.util.Collections.emptyList();
private void ensureMatchesIsMutable() {
- if (!((bitField0_ & 0x00000001) != 0)) {
+ if (!((bitField0_ & 0x00000010) != 0)) {
matches_ = new java.util.ArrayList(matches_);
- bitField0_ |= 0x00000001;
+ bitField0_ |= 0x00000010;
}
}
@@ -1912,7 +1931,7 @@ public Builder addAllMatches(
public Builder clearMatches() {
if (matchesBuilder_ == null) {
matches_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000001);
+ bitField0_ = (bitField0_ & ~0x00000010);
onChanged();
} else {
matchesBuilder_.clear();
@@ -2040,7 +2059,7 @@ public java.util.List getMatche
com.google.cloud.dialogflow.cx.v3.Match,
com.google.cloud.dialogflow.cx.v3.Match.Builder,
com.google.cloud.dialogflow.cx.v3.MatchOrBuilder>(
- matches_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
+ matches_, ((bitField0_ & 0x00000010) != 0), getParentForChildren(), isClean());
matches_ = null;
}
return matchesBuilder_;
@@ -2056,8 +2075,9 @@ public java.util.List getMatche
*
*
*
- * The current [Page][google.cloud.dialogflow.cx.v3.Page]. Some, not all fields are filled in this message,
- * including but not limited to `name` and `display_name`.
+ * The current [Page][google.cloud.dialogflow.cx.v3.Page]. Some, not all
+ * fields are filled in this message, including but not limited to `name` and
+ * `display_name`.
*
*
* .google.cloud.dialogflow.cx.v3.Page current_page = 5;
@@ -2065,14 +2085,15 @@ public java.util.List getMatche
* @return Whether the currentPage field is set.
*/
public boolean hasCurrentPage() {
- return currentPageBuilder_ != null || currentPage_ != null;
+ return ((bitField0_ & 0x00000020) != 0);
}
/**
*
*
*
- * The current [Page][google.cloud.dialogflow.cx.v3.Page]. Some, not all fields are filled in this message,
- * including but not limited to `name` and `display_name`.
+ * The current [Page][google.cloud.dialogflow.cx.v3.Page]. Some, not all
+ * fields are filled in this message, including but not limited to `name` and
+ * `display_name`.
*
*
* .google.cloud.dialogflow.cx.v3.Page current_page = 5;
@@ -2092,8 +2113,9 @@ public com.google.cloud.dialogflow.cx.v3.Page getCurrentPage() {
*
*
*
- * The current [Page][google.cloud.dialogflow.cx.v3.Page]. Some, not all fields are filled in this message,
- * including but not limited to `name` and `display_name`.
+ * The current [Page][google.cloud.dialogflow.cx.v3.Page]. Some, not all
+ * fields are filled in this message, including but not limited to `name` and
+ * `display_name`.
*
*
* .google.cloud.dialogflow.cx.v3.Page current_page = 5;
@@ -2104,19 +2126,20 @@ public Builder setCurrentPage(com.google.cloud.dialogflow.cx.v3.Page value) {
throw new NullPointerException();
}
currentPage_ = value;
- onChanged();
} else {
currentPageBuilder_.setMessage(value);
}
-
+ bitField0_ |= 0x00000020;
+ onChanged();
return this;
}
/**
*
*
*
- * The current [Page][google.cloud.dialogflow.cx.v3.Page]. Some, not all fields are filled in this message,
- * including but not limited to `name` and `display_name`.
+ * The current [Page][google.cloud.dialogflow.cx.v3.Page]. Some, not all
+ * fields are filled in this message, including but not limited to `name` and
+ * `display_name`.
*
*
* .google.cloud.dialogflow.cx.v3.Page current_page = 5;
@@ -2124,73 +2147,74 @@ public Builder setCurrentPage(com.google.cloud.dialogflow.cx.v3.Page value) {
public Builder setCurrentPage(com.google.cloud.dialogflow.cx.v3.Page.Builder builderForValue) {
if (currentPageBuilder_ == null) {
currentPage_ = builderForValue.build();
- onChanged();
} else {
currentPageBuilder_.setMessage(builderForValue.build());
}
-
+ bitField0_ |= 0x00000020;
+ onChanged();
return this;
}
/**
*
*
*
- * The current [Page][google.cloud.dialogflow.cx.v3.Page]. Some, not all fields are filled in this message,
- * including but not limited to `name` and `display_name`.
+ * The current [Page][google.cloud.dialogflow.cx.v3.Page]. Some, not all
+ * fields are filled in this message, including but not limited to `name` and
+ * `display_name`.
*
*
* .google.cloud.dialogflow.cx.v3.Page current_page = 5;
*/
public Builder mergeCurrentPage(com.google.cloud.dialogflow.cx.v3.Page value) {
if (currentPageBuilder_ == null) {
- if (currentPage_ != null) {
- currentPage_ =
- com.google.cloud.dialogflow.cx.v3.Page.newBuilder(currentPage_)
- .mergeFrom(value)
- .buildPartial();
+ if (((bitField0_ & 0x00000020) != 0)
+ && currentPage_ != null
+ && currentPage_ != com.google.cloud.dialogflow.cx.v3.Page.getDefaultInstance()) {
+ getCurrentPageBuilder().mergeFrom(value);
} else {
currentPage_ = value;
}
- onChanged();
} else {
currentPageBuilder_.mergeFrom(value);
}
-
+ bitField0_ |= 0x00000020;
+ onChanged();
return this;
}
/**
*
*
*
- * The current [Page][google.cloud.dialogflow.cx.v3.Page]. Some, not all fields are filled in this message,
- * including but not limited to `name` and `display_name`.
+ * The current [Page][google.cloud.dialogflow.cx.v3.Page]. Some, not all
+ * fields are filled in this message, including but not limited to `name` and
+ * `display_name`.
*
*
* .google.cloud.dialogflow.cx.v3.Page current_page = 5;
*/
public Builder clearCurrentPage() {
- if (currentPageBuilder_ == null) {
- currentPage_ = null;
- onChanged();
- } else {
- currentPage_ = null;
+ bitField0_ = (bitField0_ & ~0x00000020);
+ currentPage_ = null;
+ if (currentPageBuilder_ != null) {
+ currentPageBuilder_.dispose();
currentPageBuilder_ = null;
}
-
+ onChanged();
return this;
}
/**
*
*
*
- * The current [Page][google.cloud.dialogflow.cx.v3.Page]. Some, not all fields are filled in this message,
- * including but not limited to `name` and `display_name`.
+ * The current [Page][google.cloud.dialogflow.cx.v3.Page]. Some, not all
+ * fields are filled in this message, including but not limited to `name` and
+ * `display_name`.
*
*
* .google.cloud.dialogflow.cx.v3.Page current_page = 5;
*/
public com.google.cloud.dialogflow.cx.v3.Page.Builder getCurrentPageBuilder() {
-
+ bitField0_ |= 0x00000020;
onChanged();
return getCurrentPageFieldBuilder().getBuilder();
}
@@ -2198,8 +2222,9 @@ public com.google.cloud.dialogflow.cx.v3.Page.Builder getCurrentPageBuilder() {
*
*
*
- * The current [Page][google.cloud.dialogflow.cx.v3.Page]. Some, not all fields are filled in this message,
- * including but not limited to `name` and `display_name`.
+ * The current [Page][google.cloud.dialogflow.cx.v3.Page]. Some, not all
+ * fields are filled in this message, including but not limited to `name` and
+ * `display_name`.
*
*
* .google.cloud.dialogflow.cx.v3.Page current_page = 5;
@@ -2217,8 +2242,9 @@ public com.google.cloud.dialogflow.cx.v3.PageOrBuilder getCurrentPageOrBuilder()
*
*
*
- * The current [Page][google.cloud.dialogflow.cx.v3.Page]. Some, not all fields are filled in this message,
- * including but not limited to `name` and `display_name`.
+ * The current [Page][google.cloud.dialogflow.cx.v3.Page]. Some, not all
+ * fields are filled in this message, including but not limited to `name` and
+ * `display_name`.
*
*
* .google.cloud.dialogflow.cx.v3.Page current_page = 5;
diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/MatchIntentResponseOrBuilder.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/MatchIntentResponseOrBuilder.java
index 22a27edb42a3..2b887e8f435f 100644
--- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/MatchIntentResponseOrBuilder.java
+++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/MatchIntentResponseOrBuilder.java
@@ -27,8 +27,8 @@ public interface MatchIntentResponseOrBuilder
*
*
*
- * If [natural language text][google.cloud.dialogflow.cx.v3.TextInput] was provided as input, this field
- * will contain a copy of the text.
+ * If [natural language text][google.cloud.dialogflow.cx.v3.TextInput] was
+ * provided as input, this field will contain a copy of the text.
*
*
* string text = 1;
@@ -40,8 +40,8 @@ public interface MatchIntentResponseOrBuilder
*
*
*
- * If [natural language text][google.cloud.dialogflow.cx.v3.TextInput] was provided as input, this field
- * will contain a copy of the text.
+ * If [natural language text][google.cloud.dialogflow.cx.v3.TextInput] was
+ * provided as input, this field will contain a copy of the text.
*
*
* string text = 1;
@@ -53,8 +53,8 @@ public interface MatchIntentResponseOrBuilder
*
*
*
- * If [natural language text][google.cloud.dialogflow.cx.v3.TextInput] was provided as input, this field
- * will contain a copy of the text.
+ * If [natural language text][google.cloud.dialogflow.cx.v3.TextInput] was
+ * provided as input, this field will contain a copy of the text.
*
*
* string text = 1;
@@ -67,9 +67,9 @@ public interface MatchIntentResponseOrBuilder
*
*
*
- * If an [intent][google.cloud.dialogflow.cx.v3.IntentInput] was provided as input, this field will
- * contain a copy of the intent identifier.
- * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+ * If an [intent][google.cloud.dialogflow.cx.v3.IntentInput] was provided as
+ * input, this field will contain a copy of the intent identifier. Format:
+ * `projects/<Project ID>/locations/<Location ID>/agents/<Agent
* ID>/intents/<Intent ID>`.
*
*
@@ -82,9 +82,9 @@ public interface MatchIntentResponseOrBuilder
*
*
*
- * If an [intent][google.cloud.dialogflow.cx.v3.IntentInput] was provided as input, this field will
- * contain a copy of the intent identifier.
- * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+ * If an [intent][google.cloud.dialogflow.cx.v3.IntentInput] was provided as
+ * input, this field will contain a copy of the intent identifier. Format:
+ * `projects/<Project ID>/locations/<Location ID>/agents/<Agent
* ID>/intents/<Intent ID>`.
*
*
@@ -97,9 +97,9 @@ public interface MatchIntentResponseOrBuilder
*
*
*
- * If an [intent][google.cloud.dialogflow.cx.v3.IntentInput] was provided as input, this field will
- * contain a copy of the intent identifier.
- * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+ * If an [intent][google.cloud.dialogflow.cx.v3.IntentInput] was provided as
+ * input, this field will contain a copy of the intent identifier. Format:
+ * `projects/<Project ID>/locations/<Location ID>/agents/<Agent
* ID>/intents/<Intent ID>`.
*
*
@@ -113,7 +113,8 @@ public interface MatchIntentResponseOrBuilder
*
*
*
- * If [natural language speech audio][google.cloud.dialogflow.cx.v3.AudioInput] was provided as input,
+ * If [natural language speech
+ * audio][google.cloud.dialogflow.cx.v3.AudioInput] was provided as input,
* this field will contain the transcript for the audio.
*
*
@@ -126,7 +127,8 @@ public interface MatchIntentResponseOrBuilder
*
*
*
- * If [natural language speech audio][google.cloud.dialogflow.cx.v3.AudioInput] was provided as input,
+ * If [natural language speech
+ * audio][google.cloud.dialogflow.cx.v3.AudioInput] was provided as input,
* this field will contain the transcript for the audio.
*
*
@@ -139,7 +141,8 @@ public interface MatchIntentResponseOrBuilder
*
*
*
- * If [natural language speech audio][google.cloud.dialogflow.cx.v3.AudioInput] was provided as input,
+ * If [natural language speech
+ * audio][google.cloud.dialogflow.cx.v3.AudioInput] was provided as input,
* this field will contain the transcript for the audio.
*
*
@@ -153,8 +156,8 @@ public interface MatchIntentResponseOrBuilder
*
*
*
- * If an [event][google.cloud.dialogflow.cx.v3.EventInput] was provided as input, this field will
- * contain a copy of the event name.
+ * If an [event][google.cloud.dialogflow.cx.v3.EventInput] was provided as
+ * input, this field will contain a copy of the event name.
*
*
* string trigger_event = 6;
@@ -166,8 +169,8 @@ public interface MatchIntentResponseOrBuilder
*
*
*
- * If an [event][google.cloud.dialogflow.cx.v3.EventInput] was provided as input, this field will
- * contain a copy of the event name.
+ * If an [event][google.cloud.dialogflow.cx.v3.EventInput] was provided as
+ * input, this field will contain a copy of the event name.
*
*
* string trigger_event = 6;
@@ -179,8 +182,8 @@ public interface MatchIntentResponseOrBuilder
*
*
*
- * If an [event][google.cloud.dialogflow.cx.v3.EventInput] was provided as input, this field will
- * contain a copy of the event name.
+ * If an [event][google.cloud.dialogflow.cx.v3.EventInput] was provided as
+ * input, this field will contain a copy of the event name.
*
*
* string trigger_event = 6;
@@ -250,8 +253,9 @@ public interface MatchIntentResponseOrBuilder
*
*
*
- * The current [Page][google.cloud.dialogflow.cx.v3.Page]. Some, not all fields are filled in this message,
- * including but not limited to `name` and `display_name`.
+ * The current [Page][google.cloud.dialogflow.cx.v3.Page]. Some, not all
+ * fields are filled in this message, including but not limited to `name` and
+ * `display_name`.
*
*
* .google.cloud.dialogflow.cx.v3.Page current_page = 5;
@@ -263,8 +267,9 @@ public interface MatchIntentResponseOrBuilder
*
*
*
- * The current [Page][google.cloud.dialogflow.cx.v3.Page]. Some, not all fields are filled in this message,
- * including but not limited to `name` and `display_name`.
+ * The current [Page][google.cloud.dialogflow.cx.v3.Page]. Some, not all
+ * fields are filled in this message, including but not limited to `name` and
+ * `display_name`.
*
*
* .google.cloud.dialogflow.cx.v3.Page current_page = 5;
@@ -276,8 +281,9 @@ public interface MatchIntentResponseOrBuilder
*
*
*
- * The current [Page][google.cloud.dialogflow.cx.v3.Page]. Some, not all fields are filled in this message,
- * including but not limited to `name` and `display_name`.
+ * The current [Page][google.cloud.dialogflow.cx.v3.Page]. Some, not all
+ * fields are filled in this message, including but not limited to `name` and
+ * `display_name`.
*
*
* .google.cloud.dialogflow.cx.v3.Page current_page = 5;
diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/MatchOrBuilder.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/MatchOrBuilder.java
index bcc65b23535d..687e7b6bba38 100644
--- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/MatchOrBuilder.java
+++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/MatchOrBuilder.java
@@ -27,9 +27,10 @@ public interface MatchOrBuilder
*
*
*
- * The [Intent][google.cloud.dialogflow.cx.v3.Intent] that matched the query. Some, not all fields are filled in
- * this message, including but not limited to: `name` and `display_name`. Only
- * filled for [`INTENT`][google.cloud.dialogflow.cx.v3.Match.MatchType] match type.
+ * The [Intent][google.cloud.dialogflow.cx.v3.Intent] that matched the query.
+ * Some, not all fields are filled in this message, including but not limited
+ * to: `name` and `display_name`. Only filled for
+ * [`INTENT`][google.cloud.dialogflow.cx.v3.Match.MatchType] match type.
*
*
* .google.cloud.dialogflow.cx.v3.Intent intent = 1;
@@ -41,9 +42,10 @@ public interface MatchOrBuilder
*
*
*
- * The [Intent][google.cloud.dialogflow.cx.v3.Intent] that matched the query. Some, not all fields are filled in
- * this message, including but not limited to: `name` and `display_name`. Only
- * filled for [`INTENT`][google.cloud.dialogflow.cx.v3.Match.MatchType] match type.
+ * The [Intent][google.cloud.dialogflow.cx.v3.Intent] that matched the query.
+ * Some, not all fields are filled in this message, including but not limited
+ * to: `name` and `display_name`. Only filled for
+ * [`INTENT`][google.cloud.dialogflow.cx.v3.Match.MatchType] match type.
*
*
* .google.cloud.dialogflow.cx.v3.Intent intent = 1;
@@ -55,9 +57,10 @@ public interface MatchOrBuilder
*
*
*
- * The [Intent][google.cloud.dialogflow.cx.v3.Intent] that matched the query. Some, not all fields are filled in
- * this message, including but not limited to: `name` and `display_name`. Only
- * filled for [`INTENT`][google.cloud.dialogflow.cx.v3.Match.MatchType] match type.
+ * The [Intent][google.cloud.dialogflow.cx.v3.Intent] that matched the query.
+ * Some, not all fields are filled in this message, including but not limited
+ * to: `name` and `display_name`. Only filled for
+ * [`INTENT`][google.cloud.dialogflow.cx.v3.Match.MatchType] match type.
*
*
* .google.cloud.dialogflow.cx.v3.Intent intent = 1;
@@ -69,7 +72,8 @@ public interface MatchOrBuilder
*
*
* The event that matched the query. Filled for
- * [`EVENT`][google.cloud.dialogflow.cx.v3.Match.MatchType], [`NO_MATCH`][google.cloud.dialogflow.cx.v3.Match.MatchType] and
+ * [`EVENT`][google.cloud.dialogflow.cx.v3.Match.MatchType],
+ * [`NO_MATCH`][google.cloud.dialogflow.cx.v3.Match.MatchType] and
* [`NO_INPUT`][google.cloud.dialogflow.cx.v3.Match.MatchType] match types.
*
*
@@ -83,7 +87,8 @@ public interface MatchOrBuilder
*
*
* The event that matched the query. Filled for
- * [`EVENT`][google.cloud.dialogflow.cx.v3.Match.MatchType], [`NO_MATCH`][google.cloud.dialogflow.cx.v3.Match.MatchType] and
+ * [`EVENT`][google.cloud.dialogflow.cx.v3.Match.MatchType],
+ * [`NO_MATCH`][google.cloud.dialogflow.cx.v3.Match.MatchType] and
* [`NO_INPUT`][google.cloud.dialogflow.cx.v3.Match.MatchType] match types.
*
*
diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/NluSettings.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/NluSettings.java
index 58706f7ebc93..4e281a558c3b 100644
--- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/NluSettings.java
+++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/NluSettings.java
@@ -390,7 +390,7 @@ private ModelTrainingMode(int value) {
}
public static final int MODEL_TYPE_FIELD_NUMBER = 1;
- private int modelType_;
+ private int modelType_ = 0;
/**
*
*
@@ -419,16 +419,15 @@ public int getModelTypeValue() {
*/
@java.lang.Override
public com.google.cloud.dialogflow.cx.v3.NluSettings.ModelType getModelType() {
- @SuppressWarnings("deprecation")
com.google.cloud.dialogflow.cx.v3.NluSettings.ModelType result =
- com.google.cloud.dialogflow.cx.v3.NluSettings.ModelType.valueOf(modelType_);
+ com.google.cloud.dialogflow.cx.v3.NluSettings.ModelType.forNumber(modelType_);
return result == null
? com.google.cloud.dialogflow.cx.v3.NluSettings.ModelType.UNRECOGNIZED
: result;
}
public static final int CLASSIFICATION_THRESHOLD_FIELD_NUMBER = 3;
- private float classificationThreshold_;
+ private float classificationThreshold_ = 0F;
/**
*
*
@@ -451,7 +450,7 @@ public float getClassificationThreshold() {
}
public static final int MODEL_TRAINING_MODE_FIELD_NUMBER = 4;
- private int modelTrainingMode_;
+ private int modelTrainingMode_ = 0;
/**
*
*
@@ -482,9 +481,9 @@ public int getModelTrainingModeValue() {
*/
@java.lang.Override
public com.google.cloud.dialogflow.cx.v3.NluSettings.ModelTrainingMode getModelTrainingMode() {
- @SuppressWarnings("deprecation")
com.google.cloud.dialogflow.cx.v3.NluSettings.ModelTrainingMode result =
- com.google.cloud.dialogflow.cx.v3.NluSettings.ModelTrainingMode.valueOf(modelTrainingMode_);
+ com.google.cloud.dialogflow.cx.v3.NluSettings.ModelTrainingMode.forNumber(
+ modelTrainingMode_);
return result == null
? com.google.cloud.dialogflow.cx.v3.NluSettings.ModelTrainingMode.UNRECOGNIZED
: result;
@@ -716,12 +715,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
@java.lang.Override
public Builder clear() {
super.clear();
+ bitField0_ = 0;
modelType_ = 0;
-
classificationThreshold_ = 0F;
-
modelTrainingMode_ = 0;
-
return this;
}
@@ -749,13 +746,26 @@ public com.google.cloud.dialogflow.cx.v3.NluSettings build() {
public com.google.cloud.dialogflow.cx.v3.NluSettings buildPartial() {
com.google.cloud.dialogflow.cx.v3.NluSettings result =
new com.google.cloud.dialogflow.cx.v3.NluSettings(this);
- result.modelType_ = modelType_;
- result.classificationThreshold_ = classificationThreshold_;
- result.modelTrainingMode_ = modelTrainingMode_;
+ if (bitField0_ != 0) {
+ buildPartial0(result);
+ }
onBuilt();
return result;
}
+ private void buildPartial0(com.google.cloud.dialogflow.cx.v3.NluSettings result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.modelType_ = modelType_;
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.classificationThreshold_ = classificationThreshold_;
+ }
+ if (((from_bitField0_ & 0x00000004) != 0)) {
+ result.modelTrainingMode_ = modelTrainingMode_;
+ }
+ }
+
@java.lang.Override
public Builder clone() {
return super.clone();
@@ -839,19 +849,19 @@ public Builder mergeFrom(
case 8:
{
modelType_ = input.readEnum();
-
+ bitField0_ |= 0x00000001;
break;
} // case 8
case 29:
{
classificationThreshold_ = input.readFloat();
-
+ bitField0_ |= 0x00000002;
break;
} // case 29
case 32:
{
modelTrainingMode_ = input.readEnum();
-
+ bitField0_ |= 0x00000004;
break;
} // case 32
default:
@@ -871,6 +881,8 @@ public Builder mergeFrom(
return this;
}
+ private int bitField0_;
+
private int modelType_ = 0;
/**
*
@@ -900,8 +912,8 @@ public int getModelTypeValue() {
* @return This builder for chaining.
*/
public Builder setModelTypeValue(int value) {
-
modelType_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -918,9 +930,8 @@ public Builder setModelTypeValue(int value) {
*/
@java.lang.Override
public com.google.cloud.dialogflow.cx.v3.NluSettings.ModelType getModelType() {
- @SuppressWarnings("deprecation")
com.google.cloud.dialogflow.cx.v3.NluSettings.ModelType result =
- com.google.cloud.dialogflow.cx.v3.NluSettings.ModelType.valueOf(modelType_);
+ com.google.cloud.dialogflow.cx.v3.NluSettings.ModelType.forNumber(modelType_);
return result == null
? com.google.cloud.dialogflow.cx.v3.NluSettings.ModelType.UNRECOGNIZED
: result;
@@ -941,7 +952,7 @@ public Builder setModelType(com.google.cloud.dialogflow.cx.v3.NluSettings.ModelT
if (value == null) {
throw new NullPointerException();
}
-
+ bitField0_ |= 0x00000001;
modelType_ = value.getNumber();
onChanged();
return this;
@@ -958,7 +969,7 @@ public Builder setModelType(com.google.cloud.dialogflow.cx.v3.NluSettings.ModelT
* @return This builder for chaining.
*/
public Builder clearModelType() {
-
+ bitField0_ = (bitField0_ & ~0x00000001);
modelType_ = 0;
onChanged();
return this;
@@ -1005,6 +1016,7 @@ public float getClassificationThreshold() {
public Builder setClassificationThreshold(float value) {
classificationThreshold_ = value;
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -1025,7 +1037,7 @@ public Builder setClassificationThreshold(float value) {
* @return This builder for chaining.
*/
public Builder clearClassificationThreshold() {
-
+ bitField0_ = (bitField0_ & ~0x00000002);
classificationThreshold_ = 0F;
onChanged();
return this;
@@ -1062,8 +1074,8 @@ public int getModelTrainingModeValue() {
* @return This builder for chaining.
*/
public Builder setModelTrainingModeValue(int value) {
-
modelTrainingMode_ = value;
+ bitField0_ |= 0x00000004;
onChanged();
return this;
}
@@ -1081,9 +1093,8 @@ public Builder setModelTrainingModeValue(int value) {
*/
@java.lang.Override
public com.google.cloud.dialogflow.cx.v3.NluSettings.ModelTrainingMode getModelTrainingMode() {
- @SuppressWarnings("deprecation")
com.google.cloud.dialogflow.cx.v3.NluSettings.ModelTrainingMode result =
- com.google.cloud.dialogflow.cx.v3.NluSettings.ModelTrainingMode.valueOf(
+ com.google.cloud.dialogflow.cx.v3.NluSettings.ModelTrainingMode.forNumber(
modelTrainingMode_);
return result == null
? com.google.cloud.dialogflow.cx.v3.NluSettings.ModelTrainingMode.UNRECOGNIZED
@@ -1107,7 +1118,7 @@ public Builder setModelTrainingMode(
if (value == null) {
throw new NullPointerException();
}
-
+ bitField0_ |= 0x00000004;
modelTrainingMode_ = value.getNumber();
onChanged();
return this;
@@ -1125,7 +1136,7 @@ public Builder setModelTrainingMode(
* @return This builder for chaining.
*/
public Builder clearModelTrainingMode() {
-
+ bitField0_ = (bitField0_ & ~0x00000004);
modelTrainingMode_ = 0;
onChanged();
return this;
diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/OutputAudioConfig.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/OutputAudioConfig.java
index b490d9c0faf8..3657a7daf30b 100644
--- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/OutputAudioConfig.java
+++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/OutputAudioConfig.java
@@ -68,7 +68,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
public static final int AUDIO_ENCODING_FIELD_NUMBER = 1;
- private int audioEncoding_;
+ private int audioEncoding_ = 0;
/**
*
*
@@ -101,16 +101,15 @@ public int getAudioEncodingValue() {
*/
@java.lang.Override
public com.google.cloud.dialogflow.cx.v3.OutputAudioEncoding getAudioEncoding() {
- @SuppressWarnings("deprecation")
com.google.cloud.dialogflow.cx.v3.OutputAudioEncoding result =
- com.google.cloud.dialogflow.cx.v3.OutputAudioEncoding.valueOf(audioEncoding_);
+ com.google.cloud.dialogflow.cx.v3.OutputAudioEncoding.forNumber(audioEncoding_);
return result == null
? com.google.cloud.dialogflow.cx.v3.OutputAudioEncoding.UNRECOGNIZED
: result;
}
public static final int SAMPLE_RATE_HERTZ_FIELD_NUMBER = 2;
- private int sampleRateHertz_;
+ private int sampleRateHertz_ = 0;
/**
*
*
@@ -180,7 +179,9 @@ public com.google.cloud.dialogflow.cx.v3.SynthesizeSpeechConfig getSynthesizeSpe
@java.lang.Override
public com.google.cloud.dialogflow.cx.v3.SynthesizeSpeechConfigOrBuilder
getSynthesizeSpeechConfigOrBuilder() {
- return getSynthesizeSpeechConfig();
+ return synthesizeSpeechConfig_ == null
+ ? com.google.cloud.dialogflow.cx.v3.SynthesizeSpeechConfig.getDefaultInstance()
+ : synthesizeSpeechConfig_;
}
private byte memoizedIsInitialized = -1;
@@ -408,14 +409,12 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
@java.lang.Override
public Builder clear() {
super.clear();
+ bitField0_ = 0;
audioEncoding_ = 0;
-
sampleRateHertz_ = 0;
-
- if (synthesizeSpeechConfigBuilder_ == null) {
- synthesizeSpeechConfig_ = null;
- } else {
- synthesizeSpeechConfig_ = null;
+ synthesizeSpeechConfig_ = null;
+ if (synthesizeSpeechConfigBuilder_ != null) {
+ synthesizeSpeechConfigBuilder_.dispose();
synthesizeSpeechConfigBuilder_ = null;
}
return this;
@@ -445,17 +444,29 @@ public com.google.cloud.dialogflow.cx.v3.OutputAudioConfig build() {
public com.google.cloud.dialogflow.cx.v3.OutputAudioConfig buildPartial() {
com.google.cloud.dialogflow.cx.v3.OutputAudioConfig result =
new com.google.cloud.dialogflow.cx.v3.OutputAudioConfig(this);
- result.audioEncoding_ = audioEncoding_;
- result.sampleRateHertz_ = sampleRateHertz_;
- if (synthesizeSpeechConfigBuilder_ == null) {
- result.synthesizeSpeechConfig_ = synthesizeSpeechConfig_;
- } else {
- result.synthesizeSpeechConfig_ = synthesizeSpeechConfigBuilder_.build();
+ if (bitField0_ != 0) {
+ buildPartial0(result);
}
onBuilt();
return result;
}
+ private void buildPartial0(com.google.cloud.dialogflow.cx.v3.OutputAudioConfig result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.audioEncoding_ = audioEncoding_;
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.sampleRateHertz_ = sampleRateHertz_;
+ }
+ if (((from_bitField0_ & 0x00000004) != 0)) {
+ result.synthesizeSpeechConfig_ =
+ synthesizeSpeechConfigBuilder_ == null
+ ? synthesizeSpeechConfig_
+ : synthesizeSpeechConfigBuilder_.build();
+ }
+ }
+
@java.lang.Override
public Builder clone() {
return super.clone();
@@ -540,20 +551,20 @@ public Builder mergeFrom(
case 8:
{
audioEncoding_ = input.readEnum();
-
+ bitField0_ |= 0x00000001;
break;
} // case 8
case 16:
{
sampleRateHertz_ = input.readInt32();
-
+ bitField0_ |= 0x00000002;
break;
} // case 16
case 26:
{
input.readMessage(
getSynthesizeSpeechConfigFieldBuilder().getBuilder(), extensionRegistry);
-
+ bitField0_ |= 0x00000004;
break;
} // case 26
default:
@@ -573,6 +584,8 @@ public Builder mergeFrom(
return this;
}
+ private int bitField0_;
+
private int audioEncoding_ = 0;
/**
*
@@ -606,8 +619,8 @@ public int getAudioEncodingValue() {
* @return This builder for chaining.
*/
public Builder setAudioEncodingValue(int value) {
-
audioEncoding_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -626,9 +639,8 @@ public Builder setAudioEncodingValue(int value) {
*/
@java.lang.Override
public com.google.cloud.dialogflow.cx.v3.OutputAudioEncoding getAudioEncoding() {
- @SuppressWarnings("deprecation")
com.google.cloud.dialogflow.cx.v3.OutputAudioEncoding result =
- com.google.cloud.dialogflow.cx.v3.OutputAudioEncoding.valueOf(audioEncoding_);
+ com.google.cloud.dialogflow.cx.v3.OutputAudioEncoding.forNumber(audioEncoding_);
return result == null
? com.google.cloud.dialogflow.cx.v3.OutputAudioEncoding.UNRECOGNIZED
: result;
@@ -651,7 +663,7 @@ public Builder setAudioEncoding(com.google.cloud.dialogflow.cx.v3.OutputAudioEnc
if (value == null) {
throw new NullPointerException();
}
-
+ bitField0_ |= 0x00000001;
audioEncoding_ = value.getNumber();
onChanged();
return this;
@@ -670,7 +682,7 @@ public Builder setAudioEncoding(com.google.cloud.dialogflow.cx.v3.OutputAudioEnc
* @return This builder for chaining.
*/
public Builder clearAudioEncoding() {
-
+ bitField0_ = (bitField0_ & ~0x00000001);
audioEncoding_ = 0;
onChanged();
return this;
@@ -715,6 +727,7 @@ public int getSampleRateHertz() {
public Builder setSampleRateHertz(int value) {
sampleRateHertz_ = value;
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -734,7 +747,7 @@ public Builder setSampleRateHertz(int value) {
* @return This builder for chaining.
*/
public Builder clearSampleRateHertz() {
-
+ bitField0_ = (bitField0_ & ~0x00000002);
sampleRateHertz_ = 0;
onChanged();
return this;
@@ -759,7 +772,7 @@ public Builder clearSampleRateHertz() {
* @return Whether the synthesizeSpeechConfig field is set.
*/
public boolean hasSynthesizeSpeechConfig() {
- return synthesizeSpeechConfigBuilder_ != null || synthesizeSpeechConfig_ != null;
+ return ((bitField0_ & 0x00000004) != 0);
}
/**
*
@@ -799,11 +812,11 @@ public Builder setSynthesizeSpeechConfig(
throw new NullPointerException();
}
synthesizeSpeechConfig_ = value;
- onChanged();
} else {
synthesizeSpeechConfigBuilder_.setMessage(value);
}
-
+ bitField0_ |= 0x00000004;
+ onChanged();
return this;
}
/**
@@ -820,11 +833,11 @@ public Builder setSynthesizeSpeechConfig(
com.google.cloud.dialogflow.cx.v3.SynthesizeSpeechConfig.Builder builderForValue) {
if (synthesizeSpeechConfigBuilder_ == null) {
synthesizeSpeechConfig_ = builderForValue.build();
- onChanged();
} else {
synthesizeSpeechConfigBuilder_.setMessage(builderForValue.build());
}
-
+ bitField0_ |= 0x00000004;
+ onChanged();
return this;
}
/**
@@ -840,20 +853,19 @@ public Builder setSynthesizeSpeechConfig(
public Builder mergeSynthesizeSpeechConfig(
com.google.cloud.dialogflow.cx.v3.SynthesizeSpeechConfig value) {
if (synthesizeSpeechConfigBuilder_ == null) {
- if (synthesizeSpeechConfig_ != null) {
- synthesizeSpeechConfig_ =
- com.google.cloud.dialogflow.cx.v3.SynthesizeSpeechConfig.newBuilder(
- synthesizeSpeechConfig_)
- .mergeFrom(value)
- .buildPartial();
+ if (((bitField0_ & 0x00000004) != 0)
+ && synthesizeSpeechConfig_ != null
+ && synthesizeSpeechConfig_
+ != com.google.cloud.dialogflow.cx.v3.SynthesizeSpeechConfig.getDefaultInstance()) {
+ getSynthesizeSpeechConfigBuilder().mergeFrom(value);
} else {
synthesizeSpeechConfig_ = value;
}
- onChanged();
} else {
synthesizeSpeechConfigBuilder_.mergeFrom(value);
}
-
+ bitField0_ |= 0x00000004;
+ onChanged();
return this;
}
/**
@@ -867,14 +879,13 @@ public Builder mergeSynthesizeSpeechConfig(
*
*/
public Builder clearSynthesizeSpeechConfig() {
- if (synthesizeSpeechConfigBuilder_ == null) {
- synthesizeSpeechConfig_ = null;
- onChanged();
- } else {
- synthesizeSpeechConfig_ = null;
+ bitField0_ = (bitField0_ & ~0x00000004);
+ synthesizeSpeechConfig_ = null;
+ if (synthesizeSpeechConfigBuilder_ != null) {
+ synthesizeSpeechConfigBuilder_.dispose();
synthesizeSpeechConfigBuilder_ = null;
}
-
+ onChanged();
return this;
}
/**
@@ -889,7 +900,7 @@ public Builder clearSynthesizeSpeechConfig() {
*/
public com.google.cloud.dialogflow.cx.v3.SynthesizeSpeechConfig.Builder
getSynthesizeSpeechConfigBuilder() {
-
+ bitField0_ |= 0x00000004;
onChanged();
return getSynthesizeSpeechConfigFieldBuilder().getBuilder();
}
diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/Page.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/Page.java
index be5576c3fbe6..60101e9505c5 100644
--- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/Page.java
+++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/Page.java
@@ -84,13 +84,17 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
public static final int NAME_FIELD_NUMBER = 1;
- private volatile java.lang.Object name_;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object name_ = "";
/**
*
*
*
* The unique identifier of the page.
- * Required for the [Pages.UpdatePage][google.cloud.dialogflow.cx.v3.Pages.UpdatePage] method. [Pages.CreatePage][google.cloud.dialogflow.cx.v3.Pages.CreatePage]
+ * Required for the
+ * [Pages.UpdatePage][google.cloud.dialogflow.cx.v3.Pages.UpdatePage] method.
+ * [Pages.CreatePage][google.cloud.dialogflow.cx.v3.Pages.CreatePage]
* populates the name automatically.
* Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
* ID>/flows/<Flow ID>/pages/<Page ID>`.
@@ -117,7 +121,9 @@ public java.lang.String getName() {
*
*
* The unique identifier of the page.
- * Required for the [Pages.UpdatePage][google.cloud.dialogflow.cx.v3.Pages.UpdatePage] method. [Pages.CreatePage][google.cloud.dialogflow.cx.v3.Pages.CreatePage]
+ * Required for the
+ * [Pages.UpdatePage][google.cloud.dialogflow.cx.v3.Pages.UpdatePage] method.
+ * [Pages.CreatePage][google.cloud.dialogflow.cx.v3.Pages.CreatePage]
* populates the name automatically.
* Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
* ID>/flows/<Flow ID>/pages/<Page ID>`.
@@ -141,7 +147,9 @@ public com.google.protobuf.ByteString getNameBytes() {
}
public static final int DISPLAY_NAME_FIELD_NUMBER = 2;
- private volatile java.lang.Object displayName_;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object displayName_ = "";
/**
*
*
@@ -234,7 +242,9 @@ public com.google.cloud.dialogflow.cx.v3.Fulfillment getEntryFulfillment() {
*/
@java.lang.Override
public com.google.cloud.dialogflow.cx.v3.FulfillmentOrBuilder getEntryFulfillmentOrBuilder() {
- return getEntryFulfillment();
+ return entryFulfillment_ == null
+ ? com.google.cloud.dialogflow.cx.v3.Fulfillment.getDefaultInstance()
+ : entryFulfillment_;
}
public static final int FORM_FIELD_NUMBER = 4;
@@ -283,17 +293,21 @@ public com.google.cloud.dialogflow.cx.v3.Form getForm() {
*/
@java.lang.Override
public com.google.cloud.dialogflow.cx.v3.FormOrBuilder getFormOrBuilder() {
- return getForm();
+ return form_ == null ? com.google.cloud.dialogflow.cx.v3.Form.getDefaultInstance() : form_;
}
public static final int TRANSITION_ROUTE_GROUPS_FIELD_NUMBER = 11;
+
+ @SuppressWarnings("serial")
private com.google.protobuf.LazyStringList transitionRouteGroups_;
/**
*
*
*
- * Ordered list of [`TransitionRouteGroups`][google.cloud.dialogflow.cx.v3.TransitionRouteGroup] associated
- * with the page. Transition route groups must be unique within a page.
+ * Ordered list of
+ * [`TransitionRouteGroups`][google.cloud.dialogflow.cx.v3.TransitionRouteGroup]
+ * associated with the page. Transition route groups must be unique within a
+ * page.
* * If multiple transition routes within a page scope refer to the same
* intent, then the precedence order is: page's transition route -> page's
* transition route group -> flow's transition routes.
@@ -315,8 +329,10 @@ public com.google.protobuf.ProtocolStringList getTransitionRouteGroupsList() {
*
*
*
- * Ordered list of [`TransitionRouteGroups`][google.cloud.dialogflow.cx.v3.TransitionRouteGroup] associated
- * with the page. Transition route groups must be unique within a page.
+ * Ordered list of
+ * [`TransitionRouteGroups`][google.cloud.dialogflow.cx.v3.TransitionRouteGroup]
+ * associated with the page. Transition route groups must be unique within a
+ * page.
* * If multiple transition routes within a page scope refer to the same
* intent, then the precedence order is: page's transition route -> page's
* transition route group -> flow's transition routes.
@@ -338,8 +354,10 @@ public int getTransitionRouteGroupsCount() {
*
*
*
- * Ordered list of [`TransitionRouteGroups`][google.cloud.dialogflow.cx.v3.TransitionRouteGroup] associated
- * with the page. Transition route groups must be unique within a page.
+ * Ordered list of
+ * [`TransitionRouteGroups`][google.cloud.dialogflow.cx.v3.TransitionRouteGroup]
+ * associated with the page. Transition route groups must be unique within a
+ * page.
* * If multiple transition routes within a page scope refer to the same
* intent, then the precedence order is: page's transition route -> page's
* transition route group -> flow's transition routes.
@@ -362,8 +380,10 @@ public java.lang.String getTransitionRouteGroups(int index) {
*
*
*
- * Ordered list of [`TransitionRouteGroups`][google.cloud.dialogflow.cx.v3.TransitionRouteGroup] associated
- * with the page. Transition route groups must be unique within a page.
+ * Ordered list of
+ * [`TransitionRouteGroups`][google.cloud.dialogflow.cx.v3.TransitionRouteGroup]
+ * associated with the page. Transition route groups must be unique within a
+ * page.
* * If multiple transition routes within a page scope refer to the same
* intent, then the precedence order is: page's transition route -> page's
* transition route group -> flow's transition routes.
@@ -384,6 +404,8 @@ public com.google.protobuf.ByteString getTransitionRouteGroupsBytes(int index) {
}
public static final int TRANSITION_ROUTES_FIELD_NUMBER = 9;
+
+ @SuppressWarnings("serial")
private java.util.List transitionRoutes_;
/**
*
@@ -396,16 +418,19 @@ public com.google.protobuf.ByteString getTransitionRouteGroupsBytes(int index) {
* following order:
* * TransitionRoutes defined in the page with intent specified.
* * TransitionRoutes defined in the
- * [transition route groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups] with intent
- * specified.
+ * [transition route
+ * groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups]
+ * with intent specified.
* * TransitionRoutes defined in flow with intent specified.
* * TransitionRoutes defined in the
- * [transition route groups][google.cloud.dialogflow.cx.v3.Flow.transition_route_groups] with intent
- * specified.
+ * [transition route
+ * groups][google.cloud.dialogflow.cx.v3.Flow.transition_route_groups]
+ * with intent specified.
* * TransitionRoutes defined in the page with only condition specified.
* * TransitionRoutes defined in the
- * [transition route groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups] with only
- * condition specified.
+ * [transition route
+ * groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups]
+ * with only condition specified.
*
*
* repeated .google.cloud.dialogflow.cx.v3.TransitionRoute transition_routes = 9;
@@ -426,16 +451,19 @@ public com.google.protobuf.ByteString getTransitionRouteGroupsBytes(int index) {
* following order:
* * TransitionRoutes defined in the page with intent specified.
* * TransitionRoutes defined in the
- * [transition route groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups] with intent
- * specified.
+ * [transition route
+ * groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups]
+ * with intent specified.
* * TransitionRoutes defined in flow with intent specified.
* * TransitionRoutes defined in the
- * [transition route groups][google.cloud.dialogflow.cx.v3.Flow.transition_route_groups] with intent
- * specified.
+ * [transition route
+ * groups][google.cloud.dialogflow.cx.v3.Flow.transition_route_groups]
+ * with intent specified.
* * TransitionRoutes defined in the page with only condition specified.
* * TransitionRoutes defined in the
- * [transition route groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups] with only
- * condition specified.
+ * [transition route
+ * groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups]
+ * with only condition specified.
*
*
* repeated .google.cloud.dialogflow.cx.v3.TransitionRoute transition_routes = 9;
@@ -456,16 +484,19 @@ public com.google.protobuf.ByteString getTransitionRouteGroupsBytes(int index) {
* following order:
* * TransitionRoutes defined in the page with intent specified.
* * TransitionRoutes defined in the
- * [transition route groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups] with intent
- * specified.
+ * [transition route
+ * groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups]
+ * with intent specified.
* * TransitionRoutes defined in flow with intent specified.
* * TransitionRoutes defined in the
- * [transition route groups][google.cloud.dialogflow.cx.v3.Flow.transition_route_groups] with intent
- * specified.
+ * [transition route
+ * groups][google.cloud.dialogflow.cx.v3.Flow.transition_route_groups]
+ * with intent specified.
* * TransitionRoutes defined in the page with only condition specified.
* * TransitionRoutes defined in the
- * [transition route groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups] with only
- * condition specified.
+ * [transition route
+ * groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups]
+ * with only condition specified.
*
*
* repeated .google.cloud.dialogflow.cx.v3.TransitionRoute transition_routes = 9;
@@ -485,16 +516,19 @@ public int getTransitionRoutesCount() {
* following order:
* * TransitionRoutes defined in the page with intent specified.
* * TransitionRoutes defined in the
- * [transition route groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups] with intent
- * specified.
+ * [transition route
+ * groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups]
+ * with intent specified.
* * TransitionRoutes defined in flow with intent specified.
* * TransitionRoutes defined in the
- * [transition route groups][google.cloud.dialogflow.cx.v3.Flow.transition_route_groups] with intent
- * specified.
+ * [transition route
+ * groups][google.cloud.dialogflow.cx.v3.Flow.transition_route_groups]
+ * with intent specified.
* * TransitionRoutes defined in the page with only condition specified.
* * TransitionRoutes defined in the
- * [transition route groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups] with only
- * condition specified.
+ * [transition route
+ * groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups]
+ * with only condition specified.
*
*
* repeated .google.cloud.dialogflow.cx.v3.TransitionRoute transition_routes = 9;
@@ -514,16 +548,19 @@ public com.google.cloud.dialogflow.cx.v3.TransitionRoute getTransitionRoutes(int
* following order:
* * TransitionRoutes defined in the page with intent specified.
* * TransitionRoutes defined in the
- * [transition route groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups] with intent
- * specified.
+ * [transition route
+ * groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups]
+ * with intent specified.
* * TransitionRoutes defined in flow with intent specified.
* * TransitionRoutes defined in the
- * [transition route groups][google.cloud.dialogflow.cx.v3.Flow.transition_route_groups] with intent
- * specified.
+ * [transition route
+ * groups][google.cloud.dialogflow.cx.v3.Flow.transition_route_groups]
+ * with intent specified.
* * TransitionRoutes defined in the page with only condition specified.
* * TransitionRoutes defined in the
- * [transition route groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups] with only
- * condition specified.
+ * [transition route
+ * groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups]
+ * with only condition specified.
*
*
* repeated .google.cloud.dialogflow.cx.v3.TransitionRoute transition_routes = 9;
@@ -535,6 +572,8 @@ public com.google.cloud.dialogflow.cx.v3.TransitionRouteOrBuilder getTransitionR
}
public static final int EVENT_HANDLERS_FIELD_NUMBER = 10;
+
+ @SuppressWarnings("serial")
private java.util.List eventHandlers_;
/**
*
@@ -893,38 +932,35 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
@java.lang.Override
public Builder clear() {
super.clear();
+ bitField0_ = 0;
name_ = "";
-
displayName_ = "";
-
- if (entryFulfillmentBuilder_ == null) {
- entryFulfillment_ = null;
- } else {
- entryFulfillment_ = null;
+ entryFulfillment_ = null;
+ if (entryFulfillmentBuilder_ != null) {
+ entryFulfillmentBuilder_.dispose();
entryFulfillmentBuilder_ = null;
}
- if (formBuilder_ == null) {
- form_ = null;
- } else {
- form_ = null;
+ form_ = null;
+ if (formBuilder_ != null) {
+ formBuilder_.dispose();
formBuilder_ = null;
}
transitionRouteGroups_ = com.google.protobuf.LazyStringArrayList.EMPTY;
- bitField0_ = (bitField0_ & ~0x00000001);
+ bitField0_ = (bitField0_ & ~0x00000010);
if (transitionRoutesBuilder_ == null) {
transitionRoutes_ = java.util.Collections.emptyList();
} else {
transitionRoutes_ = null;
transitionRoutesBuilder_.clear();
}
- bitField0_ = (bitField0_ & ~0x00000002);
+ bitField0_ = (bitField0_ & ~0x00000020);
if (eventHandlersBuilder_ == null) {
eventHandlers_ = java.util.Collections.emptyList();
} else {
eventHandlers_ = null;
eventHandlersBuilder_.clear();
}
- bitField0_ = (bitField0_ & ~0x00000004);
+ bitField0_ = (bitField0_ & ~0x00000040);
return this;
}
@@ -952,44 +988,55 @@ public com.google.cloud.dialogflow.cx.v3.Page build() {
public com.google.cloud.dialogflow.cx.v3.Page buildPartial() {
com.google.cloud.dialogflow.cx.v3.Page result =
new com.google.cloud.dialogflow.cx.v3.Page(this);
- int from_bitField0_ = bitField0_;
- result.name_ = name_;
- result.displayName_ = displayName_;
- if (entryFulfillmentBuilder_ == null) {
- result.entryFulfillment_ = entryFulfillment_;
- } else {
- result.entryFulfillment_ = entryFulfillmentBuilder_.build();
- }
- if (formBuilder_ == null) {
- result.form_ = form_;
- } else {
- result.form_ = formBuilder_.build();
+ buildPartialRepeatedFields(result);
+ if (bitField0_ != 0) {
+ buildPartial0(result);
}
- if (((bitField0_ & 0x00000001) != 0)) {
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartialRepeatedFields(com.google.cloud.dialogflow.cx.v3.Page result) {
+ if (((bitField0_ & 0x00000010) != 0)) {
transitionRouteGroups_ = transitionRouteGroups_.getUnmodifiableView();
- bitField0_ = (bitField0_ & ~0x00000001);
+ bitField0_ = (bitField0_ & ~0x00000010);
}
result.transitionRouteGroups_ = transitionRouteGroups_;
if (transitionRoutesBuilder_ == null) {
- if (((bitField0_ & 0x00000002) != 0)) {
+ if (((bitField0_ & 0x00000020) != 0)) {
transitionRoutes_ = java.util.Collections.unmodifiableList(transitionRoutes_);
- bitField0_ = (bitField0_ & ~0x00000002);
+ bitField0_ = (bitField0_ & ~0x00000020);
}
result.transitionRoutes_ = transitionRoutes_;
} else {
result.transitionRoutes_ = transitionRoutesBuilder_.build();
}
if (eventHandlersBuilder_ == null) {
- if (((bitField0_ & 0x00000004) != 0)) {
+ if (((bitField0_ & 0x00000040) != 0)) {
eventHandlers_ = java.util.Collections.unmodifiableList(eventHandlers_);
- bitField0_ = (bitField0_ & ~0x00000004);
+ bitField0_ = (bitField0_ & ~0x00000040);
}
result.eventHandlers_ = eventHandlers_;
} else {
result.eventHandlers_ = eventHandlersBuilder_.build();
}
- onBuilt();
- return result;
+ }
+
+ private void buildPartial0(com.google.cloud.dialogflow.cx.v3.Page result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.name_ = name_;
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.displayName_ = displayName_;
+ }
+ if (((from_bitField0_ & 0x00000004) != 0)) {
+ result.entryFulfillment_ =
+ entryFulfillmentBuilder_ == null ? entryFulfillment_ : entryFulfillmentBuilder_.build();
+ }
+ if (((from_bitField0_ & 0x00000008) != 0)) {
+ result.form_ = formBuilder_ == null ? form_ : formBuilder_.build();
+ }
}
@java.lang.Override
@@ -1039,10 +1086,12 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.Page other) {
if (other == com.google.cloud.dialogflow.cx.v3.Page.getDefaultInstance()) return this;
if (!other.getName().isEmpty()) {
name_ = other.name_;
+ bitField0_ |= 0x00000001;
onChanged();
}
if (!other.getDisplayName().isEmpty()) {
displayName_ = other.displayName_;
+ bitField0_ |= 0x00000002;
onChanged();
}
if (other.hasEntryFulfillment()) {
@@ -1054,7 +1103,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.Page other) {
if (!other.transitionRouteGroups_.isEmpty()) {
if (transitionRouteGroups_.isEmpty()) {
transitionRouteGroups_ = other.transitionRouteGroups_;
- bitField0_ = (bitField0_ & ~0x00000001);
+ bitField0_ = (bitField0_ & ~0x00000010);
} else {
ensureTransitionRouteGroupsIsMutable();
transitionRouteGroups_.addAll(other.transitionRouteGroups_);
@@ -1065,7 +1114,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.Page other) {
if (!other.transitionRoutes_.isEmpty()) {
if (transitionRoutes_.isEmpty()) {
transitionRoutes_ = other.transitionRoutes_;
- bitField0_ = (bitField0_ & ~0x00000002);
+ bitField0_ = (bitField0_ & ~0x00000020);
} else {
ensureTransitionRoutesIsMutable();
transitionRoutes_.addAll(other.transitionRoutes_);
@@ -1078,7 +1127,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.Page other) {
transitionRoutesBuilder_.dispose();
transitionRoutesBuilder_ = null;
transitionRoutes_ = other.transitionRoutes_;
- bitField0_ = (bitField0_ & ~0x00000002);
+ bitField0_ = (bitField0_ & ~0x00000020);
transitionRoutesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
? getTransitionRoutesFieldBuilder()
@@ -1092,7 +1141,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.Page other) {
if (!other.eventHandlers_.isEmpty()) {
if (eventHandlers_.isEmpty()) {
eventHandlers_ = other.eventHandlers_;
- bitField0_ = (bitField0_ & ~0x00000004);
+ bitField0_ = (bitField0_ & ~0x00000040);
} else {
ensureEventHandlersIsMutable();
eventHandlers_.addAll(other.eventHandlers_);
@@ -1105,7 +1154,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.Page other) {
eventHandlersBuilder_.dispose();
eventHandlersBuilder_ = null;
eventHandlers_ = other.eventHandlers_;
- bitField0_ = (bitField0_ & ~0x00000004);
+ bitField0_ = (bitField0_ & ~0x00000040);
eventHandlersBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
? getEventHandlersFieldBuilder()
@@ -1144,26 +1193,26 @@ public Builder mergeFrom(
case 10:
{
name_ = input.readStringRequireUtf8();
-
+ bitField0_ |= 0x00000001;
break;
} // case 10
case 18:
{
displayName_ = input.readStringRequireUtf8();
-
+ bitField0_ |= 0x00000002;
break;
} // case 18
case 34:
{
input.readMessage(getFormFieldBuilder().getBuilder(), extensionRegistry);
-
+ bitField0_ |= 0x00000008;
break;
} // case 34
case 58:
{
input.readMessage(
getEntryFulfillmentFieldBuilder().getBuilder(), extensionRegistry);
-
+ bitField0_ |= 0x00000004;
break;
} // case 58
case 74:
@@ -1225,7 +1274,9 @@ public Builder mergeFrom(
*
*
* The unique identifier of the page.
- * Required for the [Pages.UpdatePage][google.cloud.dialogflow.cx.v3.Pages.UpdatePage] method. [Pages.CreatePage][google.cloud.dialogflow.cx.v3.Pages.CreatePage]
+ * Required for the
+ * [Pages.UpdatePage][google.cloud.dialogflow.cx.v3.Pages.UpdatePage] method.
+ * [Pages.CreatePage][google.cloud.dialogflow.cx.v3.Pages.CreatePage]
* populates the name automatically.
* Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
* ID>/flows/<Flow ID>/pages/<Page ID>`.
@@ -1251,7 +1302,9 @@ public java.lang.String getName() {
*
*
* The unique identifier of the page.
- * Required for the [Pages.UpdatePage][google.cloud.dialogflow.cx.v3.Pages.UpdatePage] method. [Pages.CreatePage][google.cloud.dialogflow.cx.v3.Pages.CreatePage]
+ * Required for the
+ * [Pages.UpdatePage][google.cloud.dialogflow.cx.v3.Pages.UpdatePage] method.
+ * [Pages.CreatePage][google.cloud.dialogflow.cx.v3.Pages.CreatePage]
* populates the name automatically.
* Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
* ID>/flows/<Flow ID>/pages/<Page ID>`.
@@ -1277,7 +1330,9 @@ public com.google.protobuf.ByteString getNameBytes() {
*
*
* The unique identifier of the page.
- * Required for the [Pages.UpdatePage][google.cloud.dialogflow.cx.v3.Pages.UpdatePage] method. [Pages.CreatePage][google.cloud.dialogflow.cx.v3.Pages.CreatePage]
+ * Required for the
+ * [Pages.UpdatePage][google.cloud.dialogflow.cx.v3.Pages.UpdatePage] method.
+ * [Pages.CreatePage][google.cloud.dialogflow.cx.v3.Pages.CreatePage]
* populates the name automatically.
* Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
* ID>/flows/<Flow ID>/pages/<Page ID>`.
@@ -1292,8 +1347,8 @@ public Builder setName(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
-
name_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -1302,7 +1357,9 @@ public Builder setName(java.lang.String value) {
*
*
* The unique identifier of the page.
- * Required for the [Pages.UpdatePage][google.cloud.dialogflow.cx.v3.Pages.UpdatePage] method. [Pages.CreatePage][google.cloud.dialogflow.cx.v3.Pages.CreatePage]
+ * Required for the
+ * [Pages.UpdatePage][google.cloud.dialogflow.cx.v3.Pages.UpdatePage] method.
+ * [Pages.CreatePage][google.cloud.dialogflow.cx.v3.Pages.CreatePage]
* populates the name automatically.
* Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
* ID>/flows/<Flow ID>/pages/<Page ID>`.
@@ -1313,8 +1370,8 @@ public Builder setName(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearName() {
-
name_ = getDefaultInstance().getName();
+ bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
@@ -1323,7 +1380,9 @@ public Builder clearName() {
*
*
* The unique identifier of the page.
- * Required for the [Pages.UpdatePage][google.cloud.dialogflow.cx.v3.Pages.UpdatePage] method. [Pages.CreatePage][google.cloud.dialogflow.cx.v3.Pages.CreatePage]
+ * Required for the
+ * [Pages.UpdatePage][google.cloud.dialogflow.cx.v3.Pages.UpdatePage] method.
+ * [Pages.CreatePage][google.cloud.dialogflow.cx.v3.Pages.CreatePage]
* populates the name automatically.
* Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
* ID>/flows/<Flow ID>/pages/<Page ID>`.
@@ -1339,8 +1398,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
-
name_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -1406,8 +1465,8 @@ public Builder setDisplayName(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
-
displayName_ = value;
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -1423,8 +1482,8 @@ public Builder setDisplayName(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearDisplayName() {
-
displayName_ = getDefaultInstance().getDisplayName();
+ bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
@@ -1445,8 +1504,8 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
-
displayName_ = value;
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -1469,7 +1528,7 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) {
* @return Whether the entryFulfillment field is set.
*/
public boolean hasEntryFulfillment() {
- return entryFulfillmentBuilder_ != null || entryFulfillment_ != null;
+ return ((bitField0_ & 0x00000004) != 0);
}
/**
*
@@ -1506,11 +1565,11 @@ public Builder setEntryFulfillment(com.google.cloud.dialogflow.cx.v3.Fulfillment
throw new NullPointerException();
}
entryFulfillment_ = value;
- onChanged();
} else {
entryFulfillmentBuilder_.setMessage(value);
}
-
+ bitField0_ |= 0x00000004;
+ onChanged();
return this;
}
/**
@@ -1526,11 +1585,11 @@ public Builder setEntryFulfillment(
com.google.cloud.dialogflow.cx.v3.Fulfillment.Builder builderForValue) {
if (entryFulfillmentBuilder_ == null) {
entryFulfillment_ = builderForValue.build();
- onChanged();
} else {
entryFulfillmentBuilder_.setMessage(builderForValue.build());
}
-
+ bitField0_ |= 0x00000004;
+ onChanged();
return this;
}
/**
@@ -1544,19 +1603,19 @@ public Builder setEntryFulfillment(
*/
public Builder mergeEntryFulfillment(com.google.cloud.dialogflow.cx.v3.Fulfillment value) {
if (entryFulfillmentBuilder_ == null) {
- if (entryFulfillment_ != null) {
- entryFulfillment_ =
- com.google.cloud.dialogflow.cx.v3.Fulfillment.newBuilder(entryFulfillment_)
- .mergeFrom(value)
- .buildPartial();
+ if (((bitField0_ & 0x00000004) != 0)
+ && entryFulfillment_ != null
+ && entryFulfillment_
+ != com.google.cloud.dialogflow.cx.v3.Fulfillment.getDefaultInstance()) {
+ getEntryFulfillmentBuilder().mergeFrom(value);
} else {
entryFulfillment_ = value;
}
- onChanged();
} else {
entryFulfillmentBuilder_.mergeFrom(value);
}
-
+ bitField0_ |= 0x00000004;
+ onChanged();
return this;
}
/**
@@ -1569,14 +1628,13 @@ public Builder mergeEntryFulfillment(com.google.cloud.dialogflow.cx.v3.Fulfillme
* .google.cloud.dialogflow.cx.v3.Fulfillment entry_fulfillment = 7;
*/
public Builder clearEntryFulfillment() {
- if (entryFulfillmentBuilder_ == null) {
- entryFulfillment_ = null;
- onChanged();
- } else {
- entryFulfillment_ = null;
+ bitField0_ = (bitField0_ & ~0x00000004);
+ entryFulfillment_ = null;
+ if (entryFulfillmentBuilder_ != null) {
+ entryFulfillmentBuilder_.dispose();
entryFulfillmentBuilder_ = null;
}
-
+ onChanged();
return this;
}
/**
@@ -1589,7 +1647,7 @@ public Builder clearEntryFulfillment() {
* .google.cloud.dialogflow.cx.v3.Fulfillment entry_fulfillment = 7;
*/
public com.google.cloud.dialogflow.cx.v3.Fulfillment.Builder getEntryFulfillmentBuilder() {
-
+ bitField0_ |= 0x00000004;
onChanged();
return getEntryFulfillmentFieldBuilder().getBuilder();
}
@@ -1656,7 +1714,7 @@ public com.google.cloud.dialogflow.cx.v3.FulfillmentOrBuilder getEntryFulfillmen
* @return Whether the form field is set.
*/
public boolean hasForm() {
- return formBuilder_ != null || form_ != null;
+ return ((bitField0_ & 0x00000008) != 0);
}
/**
*
@@ -1693,11 +1751,11 @@ public Builder setForm(com.google.cloud.dialogflow.cx.v3.Form value) {
throw new NullPointerException();
}
form_ = value;
- onChanged();
} else {
formBuilder_.setMessage(value);
}
-
+ bitField0_ |= 0x00000008;
+ onChanged();
return this;
}
/**
@@ -1713,11 +1771,11 @@ public Builder setForm(com.google.cloud.dialogflow.cx.v3.Form value) {
public Builder setForm(com.google.cloud.dialogflow.cx.v3.Form.Builder builderForValue) {
if (formBuilder_ == null) {
form_ = builderForValue.build();
- onChanged();
} else {
formBuilder_.setMessage(builderForValue.build());
}
-
+ bitField0_ |= 0x00000008;
+ onChanged();
return this;
}
/**
@@ -1732,19 +1790,18 @@ public Builder setForm(com.google.cloud.dialogflow.cx.v3.Form.Builder builderFor
*/
public Builder mergeForm(com.google.cloud.dialogflow.cx.v3.Form value) {
if (formBuilder_ == null) {
- if (form_ != null) {
- form_ =
- com.google.cloud.dialogflow.cx.v3.Form.newBuilder(form_)
- .mergeFrom(value)
- .buildPartial();
+ if (((bitField0_ & 0x00000008) != 0)
+ && form_ != null
+ && form_ != com.google.cloud.dialogflow.cx.v3.Form.getDefaultInstance()) {
+ getFormBuilder().mergeFrom(value);
} else {
form_ = value;
}
- onChanged();
} else {
formBuilder_.mergeFrom(value);
}
-
+ bitField0_ |= 0x00000008;
+ onChanged();
return this;
}
/**
@@ -1758,14 +1815,13 @@ public Builder mergeForm(com.google.cloud.dialogflow.cx.v3.Form value) {
* .google.cloud.dialogflow.cx.v3.Form form = 4;
*/
public Builder clearForm() {
- if (formBuilder_ == null) {
- form_ = null;
- onChanged();
- } else {
- form_ = null;
+ bitField0_ = (bitField0_ & ~0x00000008);
+ form_ = null;
+ if (formBuilder_ != null) {
+ formBuilder_.dispose();
formBuilder_ = null;
}
-
+ onChanged();
return this;
}
/**
@@ -1779,7 +1835,7 @@ public Builder clearForm() {
* .google.cloud.dialogflow.cx.v3.Form form = 4;
*/
public com.google.cloud.dialogflow.cx.v3.Form.Builder getFormBuilder() {
-
+ bitField0_ |= 0x00000008;
onChanged();
return getFormFieldBuilder().getBuilder();
}
@@ -1831,18 +1887,20 @@ public com.google.cloud.dialogflow.cx.v3.FormOrBuilder getFormOrBuilder() {
com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureTransitionRouteGroupsIsMutable() {
- if (!((bitField0_ & 0x00000001) != 0)) {
+ if (!((bitField0_ & 0x00000010) != 0)) {
transitionRouteGroups_ =
new com.google.protobuf.LazyStringArrayList(transitionRouteGroups_);
- bitField0_ |= 0x00000001;
+ bitField0_ |= 0x00000010;
}
}
/**
*
*
*
- * Ordered list of [`TransitionRouteGroups`][google.cloud.dialogflow.cx.v3.TransitionRouteGroup] associated
- * with the page. Transition route groups must be unique within a page.
+ * Ordered list of
+ * [`TransitionRouteGroups`][google.cloud.dialogflow.cx.v3.TransitionRouteGroup]
+ * associated with the page. Transition route groups must be unique within a
+ * page.
* * If multiple transition routes within a page scope refer to the same
* intent, then the precedence order is: page's transition route -> page's
* transition route group -> flow's transition routes.
@@ -1865,8 +1923,10 @@ public com.google.protobuf.ProtocolStringList getTransitionRouteGroupsList() {
*
*
*
- * Ordered list of [`TransitionRouteGroups`][google.cloud.dialogflow.cx.v3.TransitionRouteGroup] associated
- * with the page. Transition route groups must be unique within a page.
+ * Ordered list of
+ * [`TransitionRouteGroups`][google.cloud.dialogflow.cx.v3.TransitionRouteGroup]
+ * associated with the page. Transition route groups must be unique within a
+ * page.
* * If multiple transition routes within a page scope refer to the same
* intent, then the precedence order is: page's transition route -> page's
* transition route group -> flow's transition routes.
@@ -1889,8 +1949,10 @@ public int getTransitionRouteGroupsCount() {
*
*
*
- * Ordered list of [`TransitionRouteGroups`][google.cloud.dialogflow.cx.v3.TransitionRouteGroup] associated
- * with the page. Transition route groups must be unique within a page.
+ * Ordered list of
+ * [`TransitionRouteGroups`][google.cloud.dialogflow.cx.v3.TransitionRouteGroup]
+ * associated with the page. Transition route groups must be unique within a
+ * page.
* * If multiple transition routes within a page scope refer to the same
* intent, then the precedence order is: page's transition route -> page's
* transition route group -> flow's transition routes.
@@ -1914,8 +1976,10 @@ public java.lang.String getTransitionRouteGroups(int index) {
*
*
*
- * Ordered list of [`TransitionRouteGroups`][google.cloud.dialogflow.cx.v3.TransitionRouteGroup] associated
- * with the page. Transition route groups must be unique within a page.
+ * Ordered list of
+ * [`TransitionRouteGroups`][google.cloud.dialogflow.cx.v3.TransitionRouteGroup]
+ * associated with the page. Transition route groups must be unique within a
+ * page.
* * If multiple transition routes within a page scope refer to the same
* intent, then the precedence order is: page's transition route -> page's
* transition route group -> flow's transition routes.
@@ -1939,8 +2003,10 @@ public com.google.protobuf.ByteString getTransitionRouteGroupsBytes(int index) {
*
*
*
- * Ordered list of [`TransitionRouteGroups`][google.cloud.dialogflow.cx.v3.TransitionRouteGroup] associated
- * with the page. Transition route groups must be unique within a page.
+ * Ordered list of
+ * [`TransitionRouteGroups`][google.cloud.dialogflow.cx.v3.TransitionRouteGroup]
+ * associated with the page. Transition route groups must be unique within a
+ * page.
* * If multiple transition routes within a page scope refer to the same
* intent, then the precedence order is: page's transition route -> page's
* transition route group -> flow's transition routes.
@@ -1971,8 +2037,10 @@ public Builder setTransitionRouteGroups(int index, java.lang.String value) {
*
*
*
- * Ordered list of [`TransitionRouteGroups`][google.cloud.dialogflow.cx.v3.TransitionRouteGroup] associated
- * with the page. Transition route groups must be unique within a page.
+ * Ordered list of
+ * [`TransitionRouteGroups`][google.cloud.dialogflow.cx.v3.TransitionRouteGroup]
+ * associated with the page. Transition route groups must be unique within a
+ * page.
* * If multiple transition routes within a page scope refer to the same
* intent, then the precedence order is: page's transition route -> page's
* transition route group -> flow's transition routes.
@@ -2002,8 +2070,10 @@ public Builder addTransitionRouteGroups(java.lang.String value) {
*
*
*
- * Ordered list of [`TransitionRouteGroups`][google.cloud.dialogflow.cx.v3.TransitionRouteGroup] associated
- * with the page. Transition route groups must be unique within a page.
+ * Ordered list of
+ * [`TransitionRouteGroups`][google.cloud.dialogflow.cx.v3.TransitionRouteGroup]
+ * associated with the page. Transition route groups must be unique within a
+ * page.
* * If multiple transition routes within a page scope refer to the same
* intent, then the precedence order is: page's transition route -> page's
* transition route group -> flow's transition routes.
@@ -2030,8 +2100,10 @@ public Builder addAllTransitionRouteGroups(java.lang.Iterable
*
*
*
- * Ordered list of [`TransitionRouteGroups`][google.cloud.dialogflow.cx.v3.TransitionRouteGroup] associated
- * with the page. Transition route groups must be unique within a page.
+ * Ordered list of
+ * [`TransitionRouteGroups`][google.cloud.dialogflow.cx.v3.TransitionRouteGroup]
+ * associated with the page. Transition route groups must be unique within a
+ * page.
* * If multiple transition routes within a page scope refer to the same
* intent, then the precedence order is: page's transition route -> page's
* transition route group -> flow's transition routes.
@@ -2049,7 +2121,7 @@ public Builder addAllTransitionRouteGroups(java.lang.Iterable
*/
public Builder clearTransitionRouteGroups() {
transitionRouteGroups_ = com.google.protobuf.LazyStringArrayList.EMPTY;
- bitField0_ = (bitField0_ & ~0x00000001);
+ bitField0_ = (bitField0_ & ~0x00000010);
onChanged();
return this;
}
@@ -2057,8 +2129,10 @@ public Builder clearTransitionRouteGroups() {
*
*
*
- * Ordered list of [`TransitionRouteGroups`][google.cloud.dialogflow.cx.v3.TransitionRouteGroup] associated
- * with the page. Transition route groups must be unique within a page.
+ * Ordered list of
+ * [`TransitionRouteGroups`][google.cloud.dialogflow.cx.v3.TransitionRouteGroup]
+ * associated with the page. Transition route groups must be unique within a
+ * page.
* * If multiple transition routes within a page scope refer to the same
* intent, then the precedence order is: page's transition route -> page's
* transition route group -> flow's transition routes.
@@ -2090,11 +2164,11 @@ public Builder addTransitionRouteGroupsBytes(com.google.protobuf.ByteString valu
java.util.Collections.emptyList();
private void ensureTransitionRoutesIsMutable() {
- if (!((bitField0_ & 0x00000002) != 0)) {
+ if (!((bitField0_ & 0x00000020) != 0)) {
transitionRoutes_ =
new java.util.ArrayList(
transitionRoutes_);
- bitField0_ |= 0x00000002;
+ bitField0_ |= 0x00000020;
}
}
@@ -2115,16 +2189,19 @@ private void ensureTransitionRoutesIsMutable() {
* following order:
* * TransitionRoutes defined in the page with intent specified.
* * TransitionRoutes defined in the
- * [transition route groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups] with intent
- * specified.
+ * [transition route
+ * groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups]
+ * with intent specified.
* * TransitionRoutes defined in flow with intent specified.
* * TransitionRoutes defined in the
- * [transition route groups][google.cloud.dialogflow.cx.v3.Flow.transition_route_groups] with intent
- * specified.
+ * [transition route
+ * groups][google.cloud.dialogflow.cx.v3.Flow.transition_route_groups]
+ * with intent specified.
* * TransitionRoutes defined in the page with only condition specified.
* * TransitionRoutes defined in the
- * [transition route groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups] with only
- * condition specified.
+ * [transition route
+ * groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups]
+ * with only condition specified.
*
*
* repeated .google.cloud.dialogflow.cx.v3.TransitionRoute transition_routes = 9;
@@ -2148,16 +2225,19 @@ private void ensureTransitionRoutesIsMutable() {
* following order:
* * TransitionRoutes defined in the page with intent specified.
* * TransitionRoutes defined in the
- * [transition route groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups] with intent
- * specified.
+ * [transition route
+ * groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups]
+ * with intent specified.
* * TransitionRoutes defined in flow with intent specified.
* * TransitionRoutes defined in the
- * [transition route groups][google.cloud.dialogflow.cx.v3.Flow.transition_route_groups] with intent
- * specified.
+ * [transition route
+ * groups][google.cloud.dialogflow.cx.v3.Flow.transition_route_groups]
+ * with intent specified.
* * TransitionRoutes defined in the page with only condition specified.
* * TransitionRoutes defined in the
- * [transition route groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups] with only
- * condition specified.
+ * [transition route
+ * groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups]
+ * with only condition specified.
*
*
* repeated .google.cloud.dialogflow.cx.v3.TransitionRoute transition_routes = 9;
@@ -2180,16 +2260,19 @@ public int getTransitionRoutesCount() {
* following order:
* * TransitionRoutes defined in the page with intent specified.
* * TransitionRoutes defined in the
- * [transition route groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups] with intent
- * specified.
+ * [transition route
+ * groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups]
+ * with intent specified.
* * TransitionRoutes defined in flow with intent specified.
* * TransitionRoutes defined in the
- * [transition route groups][google.cloud.dialogflow.cx.v3.Flow.transition_route_groups] with intent
- * specified.
+ * [transition route
+ * groups][google.cloud.dialogflow.cx.v3.Flow.transition_route_groups]
+ * with intent specified.
* * TransitionRoutes defined in the page with only condition specified.
* * TransitionRoutes defined in the
- * [transition route groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups] with only
- * condition specified.
+ * [transition route
+ * groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups]
+ * with only condition specified.
*
*
* repeated .google.cloud.dialogflow.cx.v3.TransitionRoute transition_routes = 9;
@@ -2212,16 +2295,19 @@ public com.google.cloud.dialogflow.cx.v3.TransitionRoute getTransitionRoutes(int
* following order:
* * TransitionRoutes defined in the page with intent specified.
* * TransitionRoutes defined in the
- * [transition route groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups] with intent
- * specified.
+ * [transition route
+ * groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups]
+ * with intent specified.
* * TransitionRoutes defined in flow with intent specified.
* * TransitionRoutes defined in the
- * [transition route groups][google.cloud.dialogflow.cx.v3.Flow.transition_route_groups] with intent
- * specified.
+ * [transition route
+ * groups][google.cloud.dialogflow.cx.v3.Flow.transition_route_groups]
+ * with intent specified.
* * TransitionRoutes defined in the page with only condition specified.
* * TransitionRoutes defined in the
- * [transition route groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups] with only
- * condition specified.
+ * [transition route
+ * groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups]
+ * with only condition specified.
*
*
* repeated .google.cloud.dialogflow.cx.v3.TransitionRoute transition_routes = 9;
@@ -2251,16 +2337,19 @@ public Builder setTransitionRoutes(
* following order:
* * TransitionRoutes defined in the page with intent specified.
* * TransitionRoutes defined in the
- * [transition route groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups] with intent
- * specified.
+ * [transition route
+ * groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups]
+ * with intent specified.
* * TransitionRoutes defined in flow with intent specified.
* * TransitionRoutes defined in the
- * [transition route groups][google.cloud.dialogflow.cx.v3.Flow.transition_route_groups] with intent
- * specified.
+ * [transition route
+ * groups][google.cloud.dialogflow.cx.v3.Flow.transition_route_groups]
+ * with intent specified.
* * TransitionRoutes defined in the page with only condition specified.
* * TransitionRoutes defined in the
- * [transition route groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups] with only
- * condition specified.
+ * [transition route
+ * groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups]
+ * with only condition specified.
*
*
* repeated .google.cloud.dialogflow.cx.v3.TransitionRoute transition_routes = 9;
@@ -2287,16 +2376,19 @@ public Builder setTransitionRoutes(
* following order:
* * TransitionRoutes defined in the page with intent specified.
* * TransitionRoutes defined in the
- * [transition route groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups] with intent
- * specified.
+ * [transition route
+ * groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups]
+ * with intent specified.
* * TransitionRoutes defined in flow with intent specified.
* * TransitionRoutes defined in the
- * [transition route groups][google.cloud.dialogflow.cx.v3.Flow.transition_route_groups] with intent
- * specified.
+ * [transition route
+ * groups][google.cloud.dialogflow.cx.v3.Flow.transition_route_groups]
+ * with intent specified.
* * TransitionRoutes defined in the page with only condition specified.
* * TransitionRoutes defined in the
- * [transition route groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups] with only
- * condition specified.
+ * [transition route
+ * groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups]
+ * with only condition specified.
*
*
* repeated .google.cloud.dialogflow.cx.v3.TransitionRoute transition_routes = 9;
@@ -2325,16 +2417,19 @@ public Builder addTransitionRoutes(com.google.cloud.dialogflow.cx.v3.TransitionR
* following order:
* * TransitionRoutes defined in the page with intent specified.
* * TransitionRoutes defined in the
- * [transition route groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups] with intent
- * specified.
+ * [transition route
+ * groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups]
+ * with intent specified.
* * TransitionRoutes defined in flow with intent specified.
* * TransitionRoutes defined in the
- * [transition route groups][google.cloud.dialogflow.cx.v3.Flow.transition_route_groups] with intent
- * specified.
+ * [transition route
+ * groups][google.cloud.dialogflow.cx.v3.Flow.transition_route_groups]
+ * with intent specified.
* * TransitionRoutes defined in the page with only condition specified.
* * TransitionRoutes defined in the
- * [transition route groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups] with only
- * condition specified.
+ * [transition route
+ * groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups]
+ * with only condition specified.
*
*
* repeated .google.cloud.dialogflow.cx.v3.TransitionRoute transition_routes = 9;
@@ -2364,16 +2459,19 @@ public Builder addTransitionRoutes(
* following order:
* * TransitionRoutes defined in the page with intent specified.
* * TransitionRoutes defined in the
- * [transition route groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups] with intent
- * specified.
+ * [transition route
+ * groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups]
+ * with intent specified.
* * TransitionRoutes defined in flow with intent specified.
* * TransitionRoutes defined in the
- * [transition route groups][google.cloud.dialogflow.cx.v3.Flow.transition_route_groups] with intent
- * specified.
+ * [transition route
+ * groups][google.cloud.dialogflow.cx.v3.Flow.transition_route_groups]
+ * with intent specified.
* * TransitionRoutes defined in the page with only condition specified.
* * TransitionRoutes defined in the
- * [transition route groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups] with only
- * condition specified.
+ * [transition route
+ * groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups]
+ * with only condition specified.
*
*
* repeated .google.cloud.dialogflow.cx.v3.TransitionRoute transition_routes = 9;
@@ -2400,16 +2498,19 @@ public Builder addTransitionRoutes(
* following order:
* * TransitionRoutes defined in the page with intent specified.
* * TransitionRoutes defined in the
- * [transition route groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups] with intent
- * specified.
+ * [transition route
+ * groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups]
+ * with intent specified.
* * TransitionRoutes defined in flow with intent specified.
* * TransitionRoutes defined in the
- * [transition route groups][google.cloud.dialogflow.cx.v3.Flow.transition_route_groups] with intent
- * specified.
+ * [transition route
+ * groups][google.cloud.dialogflow.cx.v3.Flow.transition_route_groups]
+ * with intent specified.
* * TransitionRoutes defined in the page with only condition specified.
* * TransitionRoutes defined in the
- * [transition route groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups] with only
- * condition specified.
+ * [transition route
+ * groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups]
+ * with only condition specified.
*
*
* repeated .google.cloud.dialogflow.cx.v3.TransitionRoute transition_routes = 9;
@@ -2436,16 +2537,19 @@ public Builder addTransitionRoutes(
* following order:
* * TransitionRoutes defined in the page with intent specified.
* * TransitionRoutes defined in the
- * [transition route groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups] with intent
- * specified.
+ * [transition route
+ * groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups]
+ * with intent specified.
* * TransitionRoutes defined in flow with intent specified.
* * TransitionRoutes defined in the
- * [transition route groups][google.cloud.dialogflow.cx.v3.Flow.transition_route_groups] with intent
- * specified.
+ * [transition route
+ * groups][google.cloud.dialogflow.cx.v3.Flow.transition_route_groups]
+ * with intent specified.
* * TransitionRoutes defined in the page with only condition specified.
* * TransitionRoutes defined in the
- * [transition route groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups] with only
- * condition specified.
+ * [transition route
+ * groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups]
+ * with only condition specified.
*
*
* repeated .google.cloud.dialogflow.cx.v3.TransitionRoute transition_routes = 9;
@@ -2472,16 +2576,19 @@ public Builder addAllTransitionRoutes(
* following order:
* * TransitionRoutes defined in the page with intent specified.
* * TransitionRoutes defined in the
- * [transition route groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups] with intent
- * specified.
+ * [transition route
+ * groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups]
+ * with intent specified.
* * TransitionRoutes defined in flow with intent specified.
* * TransitionRoutes defined in the
- * [transition route groups][google.cloud.dialogflow.cx.v3.Flow.transition_route_groups] with intent
- * specified.
+ * [transition route
+ * groups][google.cloud.dialogflow.cx.v3.Flow.transition_route_groups]
+ * with intent specified.
* * TransitionRoutes defined in the page with only condition specified.
* * TransitionRoutes defined in the
- * [transition route groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups] with only
- * condition specified.
+ * [transition route
+ * groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups]
+ * with only condition specified.
*
*
* repeated .google.cloud.dialogflow.cx.v3.TransitionRoute transition_routes = 9;
@@ -2489,7 +2596,7 @@ public Builder addAllTransitionRoutes(
public Builder clearTransitionRoutes() {
if (transitionRoutesBuilder_ == null) {
transitionRoutes_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000002);
+ bitField0_ = (bitField0_ & ~0x00000020);
onChanged();
} else {
transitionRoutesBuilder_.clear();
@@ -2507,16 +2614,19 @@ public Builder clearTransitionRoutes() {
* following order:
* * TransitionRoutes defined in the page with intent specified.
* * TransitionRoutes defined in the
- * [transition route groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups] with intent
- * specified.
+ * [transition route
+ * groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups]
+ * with intent specified.
* * TransitionRoutes defined in flow with intent specified.
* * TransitionRoutes defined in the
- * [transition route groups][google.cloud.dialogflow.cx.v3.Flow.transition_route_groups] with intent
- * specified.
+ * [transition route
+ * groups][google.cloud.dialogflow.cx.v3.Flow.transition_route_groups]
+ * with intent specified.
* * TransitionRoutes defined in the page with only condition specified.
* * TransitionRoutes defined in the
- * [transition route groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups] with only
- * condition specified.
+ * [transition route
+ * groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups]
+ * with only condition specified.
*
*
* repeated .google.cloud.dialogflow.cx.v3.TransitionRoute transition_routes = 9;
@@ -2542,16 +2652,19 @@ public Builder removeTransitionRoutes(int index) {
* following order:
* * TransitionRoutes defined in the page with intent specified.
* * TransitionRoutes defined in the
- * [transition route groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups] with intent
- * specified.
+ * [transition route
+ * groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups]
+ * with intent specified.
* * TransitionRoutes defined in flow with intent specified.
* * TransitionRoutes defined in the
- * [transition route groups][google.cloud.dialogflow.cx.v3.Flow.transition_route_groups] with intent
- * specified.
+ * [transition route
+ * groups][google.cloud.dialogflow.cx.v3.Flow.transition_route_groups]
+ * with intent specified.
* * TransitionRoutes defined in the page with only condition specified.
* * TransitionRoutes defined in the
- * [transition route groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups] with only
- * condition specified.
+ * [transition route
+ * groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups]
+ * with only condition specified.
*
*
* repeated .google.cloud.dialogflow.cx.v3.TransitionRoute transition_routes = 9;
@@ -2571,16 +2684,19 @@ public com.google.cloud.dialogflow.cx.v3.TransitionRoute.Builder getTransitionRo
* following order:
* * TransitionRoutes defined in the page with intent specified.
* * TransitionRoutes defined in the
- * [transition route groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups] with intent
- * specified.
+ * [transition route
+ * groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups]
+ * with intent specified.
* * TransitionRoutes defined in flow with intent specified.
* * TransitionRoutes defined in the
- * [transition route groups][google.cloud.dialogflow.cx.v3.Flow.transition_route_groups] with intent
- * specified.
+ * [transition route
+ * groups][google.cloud.dialogflow.cx.v3.Flow.transition_route_groups]
+ * with intent specified.
* * TransitionRoutes defined in the page with only condition specified.
* * TransitionRoutes defined in the
- * [transition route groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups] with only
- * condition specified.
+ * [transition route
+ * groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups]
+ * with only condition specified.
*
*
* repeated .google.cloud.dialogflow.cx.v3.TransitionRoute transition_routes = 9;
@@ -2604,16 +2720,19 @@ public com.google.cloud.dialogflow.cx.v3.TransitionRouteOrBuilder getTransitionR
* following order:
* * TransitionRoutes defined in the page with intent specified.
* * TransitionRoutes defined in the
- * [transition route groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups] with intent
- * specified.
+ * [transition route
+ * groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups]
+ * with intent specified.
* * TransitionRoutes defined in flow with intent specified.
* * TransitionRoutes defined in the
- * [transition route groups][google.cloud.dialogflow.cx.v3.Flow.transition_route_groups] with intent
- * specified.
+ * [transition route
+ * groups][google.cloud.dialogflow.cx.v3.Flow.transition_route_groups]
+ * with intent specified.
* * TransitionRoutes defined in the page with only condition specified.
* * TransitionRoutes defined in the
- * [transition route groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups] with only
- * condition specified.
+ * [transition route
+ * groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups]
+ * with only condition specified.
*
*
* repeated .google.cloud.dialogflow.cx.v3.TransitionRoute transition_routes = 9;
@@ -2637,16 +2756,19 @@ public com.google.cloud.dialogflow.cx.v3.TransitionRouteOrBuilder getTransitionR
* following order:
* * TransitionRoutes defined in the page with intent specified.
* * TransitionRoutes defined in the
- * [transition route groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups] with intent
- * specified.
+ * [transition route
+ * groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups]
+ * with intent specified.
* * TransitionRoutes defined in flow with intent specified.
* * TransitionRoutes defined in the
- * [transition route groups][google.cloud.dialogflow.cx.v3.Flow.transition_route_groups] with intent
- * specified.
+ * [transition route
+ * groups][google.cloud.dialogflow.cx.v3.Flow.transition_route_groups]
+ * with intent specified.
* * TransitionRoutes defined in the page with only condition specified.
* * TransitionRoutes defined in the
- * [transition route groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups] with only
- * condition specified.
+ * [transition route
+ * groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups]
+ * with only condition specified.
*
*
* repeated .google.cloud.dialogflow.cx.v3.TransitionRoute transition_routes = 9;
@@ -2666,16 +2788,19 @@ public com.google.cloud.dialogflow.cx.v3.TransitionRoute.Builder addTransitionRo
* following order:
* * TransitionRoutes defined in the page with intent specified.
* * TransitionRoutes defined in the
- * [transition route groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups] with intent
- * specified.
+ * [transition route
+ * groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups]
+ * with intent specified.
* * TransitionRoutes defined in flow with intent specified.
* * TransitionRoutes defined in the
- * [transition route groups][google.cloud.dialogflow.cx.v3.Flow.transition_route_groups] with intent
- * specified.
+ * [transition route
+ * groups][google.cloud.dialogflow.cx.v3.Flow.transition_route_groups]
+ * with intent specified.
* * TransitionRoutes defined in the page with only condition specified.
* * TransitionRoutes defined in the
- * [transition route groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups] with only
- * condition specified.
+ * [transition route
+ * groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups]
+ * with only condition specified.
*
*
* repeated .google.cloud.dialogflow.cx.v3.TransitionRoute transition_routes = 9;
@@ -2697,16 +2822,19 @@ public com.google.cloud.dialogflow.cx.v3.TransitionRoute.Builder addTransitionRo
* following order:
* * TransitionRoutes defined in the page with intent specified.
* * TransitionRoutes defined in the
- * [transition route groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups] with intent
- * specified.
+ * [transition route
+ * groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups]
+ * with intent specified.
* * TransitionRoutes defined in flow with intent specified.
* * TransitionRoutes defined in the
- * [transition route groups][google.cloud.dialogflow.cx.v3.Flow.transition_route_groups] with intent
- * specified.
+ * [transition route
+ * groups][google.cloud.dialogflow.cx.v3.Flow.transition_route_groups]
+ * with intent specified.
* * TransitionRoutes defined in the page with only condition specified.
* * TransitionRoutes defined in the
- * [transition route groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups] with only
- * condition specified.
+ * [transition route
+ * groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups]
+ * with only condition specified.
*
*
* repeated .google.cloud.dialogflow.cx.v3.TransitionRoute transition_routes = 9;
@@ -2728,7 +2856,7 @@ public com.google.cloud.dialogflow.cx.v3.TransitionRoute.Builder addTransitionRo
com.google.cloud.dialogflow.cx.v3.TransitionRoute.Builder,
com.google.cloud.dialogflow.cx.v3.TransitionRouteOrBuilder>(
transitionRoutes_,
- ((bitField0_ & 0x00000002) != 0),
+ ((bitField0_ & 0x00000020) != 0),
getParentForChildren(),
isClean());
transitionRoutes_ = null;
@@ -2740,10 +2868,10 @@ public com.google.cloud.dialogflow.cx.v3.TransitionRoute.Builder addTransitionRo
java.util.Collections.emptyList();
private void ensureEventHandlersIsMutable() {
- if (!((bitField0_ & 0x00000004) != 0)) {
+ if (!((bitField0_ & 0x00000040) != 0)) {
eventHandlers_ =
new java.util.ArrayList(eventHandlers_);
- bitField0_ |= 0x00000004;
+ bitField0_ |= 0x00000040;
}
}
@@ -2972,7 +3100,7 @@ public Builder addAllEventHandlers(
public Builder clearEventHandlers() {
if (eventHandlersBuilder_ == null) {
eventHandlers_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000004);
+ bitField0_ = (bitField0_ & ~0x00000040);
onChanged();
} else {
eventHandlersBuilder_.clear();
@@ -3105,7 +3233,7 @@ public com.google.cloud.dialogflow.cx.v3.EventHandler.Builder addEventHandlersBu
com.google.cloud.dialogflow.cx.v3.EventHandler.Builder,
com.google.cloud.dialogflow.cx.v3.EventHandlerOrBuilder>(
eventHandlers_,
- ((bitField0_ & 0x00000004) != 0),
+ ((bitField0_ & 0x00000040) != 0),
getParentForChildren(),
isClean());
eventHandlers_ = null;
diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/PageInfo.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/PageInfo.java
index 2932af51dea7..2238156609a9 100644
--- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/PageInfo.java
+++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/PageInfo.java
@@ -77,9 +77,11 @@ public interface FormInfoOrBuilder
*
*
*
- * Optional for both [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
- * The parameters contained in the form. Note that the webhook cannot add
- * or remove any form parameter.
+ * Optional for both
+ * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and
+ * [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. The
+ * parameters contained in the form. Note that the webhook cannot add or
+ * remove any form parameter.
*
*
*
@@ -92,9 +94,11 @@ public interface FormInfoOrBuilder
*
*
*
- * Optional for both [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
- * The parameters contained in the form. Note that the webhook cannot add
- * or remove any form parameter.
+ * Optional for both
+ * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and
+ * [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. The
+ * parameters contained in the form. Note that the webhook cannot add or
+ * remove any form parameter.
*
*
*
@@ -106,9 +110,11 @@ public interface FormInfoOrBuilder
*
*
*
- * Optional for both [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
- * The parameters contained in the form. Note that the webhook cannot add
- * or remove any form parameter.
+ * Optional for both
+ * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and
+ * [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. The
+ * parameters contained in the form. Note that the webhook cannot add or
+ * remove any form parameter.
*
*
*
@@ -120,9 +126,11 @@ public interface FormInfoOrBuilder
*
*
*
- * Optional for both [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
- * The parameters contained in the form. Note that the webhook cannot add
- * or remove any form parameter.
+ * Optional for both
+ * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and
+ * [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. The
+ * parameters contained in the form. Note that the webhook cannot add or
+ * remove any form parameter.
*
*
*
@@ -136,9 +144,11 @@ public interface FormInfoOrBuilder
*
*
*
- * Optional for both [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
- * The parameters contained in the form. Note that the webhook cannot add
- * or remove any form parameter.
+ * Optional for both
+ * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and
+ * [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. The
+ * parameters contained in the form. Note that the webhook cannot add or
+ * remove any form parameter.
*
*
*
@@ -206,7 +216,9 @@ public interface ParameterInfoOrBuilder
*
*
*
- * Always present for [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Required for
+ * Always present for
+ * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest].
+ * Required for
* [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
* The human-readable name of the parameter, unique within the form. This
* field cannot be modified by the webhook.
@@ -221,7 +233,9 @@ public interface ParameterInfoOrBuilder
*
*
*
- * Always present for [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Required for
+ * Always present for
+ * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest].
+ * Required for
* [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
* The human-readable name of the parameter, unique within the form. This
* field cannot be modified by the webhook.
@@ -237,7 +251,9 @@ public interface ParameterInfoOrBuilder
*
*
*
- * Optional for both [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
+ * Optional for both
+ * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and
+ * [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
* Indicates whether the parameter is required. Optional parameters will
* not trigger prompts; however, they are filled if the user specifies
* them. Required parameters must be filled before form filling concludes.
@@ -253,10 +269,13 @@ public interface ParameterInfoOrBuilder
*
*
*
- * Always present for [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Required for
- * [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. The state of the parameter. This field can be set
- * to [INVALID][google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo.ParameterState.INVALID] by
- * the webhook to invalidate the parameter; other values set by the
+ * Always present for
+ * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest].
+ * Required for
+ * [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. The
+ * state of the parameter. This field can be set to
+ * [INVALID][google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo.ParameterState.INVALID]
+ * by the webhook to invalidate the parameter; other values set by the
* webhook will be ignored.
*
*
@@ -271,10 +290,13 @@ public interface ParameterInfoOrBuilder
*
*
*
- * Always present for [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Required for
- * [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. The state of the parameter. This field can be set
- * to [INVALID][google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo.ParameterState.INVALID] by
- * the webhook to invalidate the parameter; other values set by the
+ * Always present for
+ * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest].
+ * Required for
+ * [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. The
+ * state of the parameter. This field can be set to
+ * [INVALID][google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo.ParameterState.INVALID]
+ * by the webhook to invalidate the parameter; other values set by the
* webhook will be ignored.
*
*
@@ -290,9 +312,11 @@ public interface ParameterInfoOrBuilder
*
*
*
- * Optional for both [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
- * The value of the parameter. This field can be set by the webhook to
- * change the parameter value.
+ * Optional for both
+ * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and
+ * [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. The
+ * value of the parameter. This field can be set by the webhook to change
+ * the parameter value.
*
*
* .google.protobuf.Value value = 4;
@@ -304,9 +328,11 @@ public interface ParameterInfoOrBuilder
*
*
*
- * Optional for both [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
- * The value of the parameter. This field can be set by the webhook to
- * change the parameter value.
+ * Optional for both
+ * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and
+ * [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. The
+ * value of the parameter. This field can be set by the webhook to change
+ * the parameter value.
*
*
* .google.protobuf.Value value = 4;
@@ -318,9 +344,11 @@ public interface ParameterInfoOrBuilder
*
*
*
- * Optional for both [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
- * The value of the parameter. This field can be set by the webhook to
- * change the parameter value.
+ * Optional for both
+ * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and
+ * [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. The
+ * value of the parameter. This field can be set by the webhook to change
+ * the parameter value.
*
*
* .google.protobuf.Value value = 4;
@@ -331,7 +359,9 @@ public interface ParameterInfoOrBuilder
*
*
*
- * Optional for [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Ignored for [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
+ * Optional for
+ * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Ignored
+ * for [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
* Indicates if the parameter value was just collected on the last
* conversation turn.
*
@@ -583,12 +613,16 @@ private ParameterState(int value) {
}
public static final int DISPLAY_NAME_FIELD_NUMBER = 1;
- private volatile java.lang.Object displayName_;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object displayName_ = "";
/**
*
*
*
- * Always present for [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Required for
+ * Always present for
+ * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest].
+ * Required for
* [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
* The human-readable name of the parameter, unique within the form. This
* field cannot be modified by the webhook.
@@ -614,7 +648,9 @@ public java.lang.String getDisplayName() {
*
*
*
- * Always present for [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Required for
+ * Always present for
+ * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest].
+ * Required for
* [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
* The human-readable name of the parameter, unique within the form. This
* field cannot be modified by the webhook.
@@ -638,12 +674,14 @@ public com.google.protobuf.ByteString getDisplayNameBytes() {
}
public static final int REQUIRED_FIELD_NUMBER = 2;
- private boolean required_;
+ private boolean required_ = false;
/**
*
*
*
- * Optional for both [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
+ * Optional for both
+ * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and
+ * [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
* Indicates whether the parameter is required. Optional parameters will
* not trigger prompts; however, they are filled if the user specifies
* them. Required parameters must be filled before form filling concludes.
@@ -659,15 +697,18 @@ public boolean getRequired() {
}
public static final int STATE_FIELD_NUMBER = 3;
- private int state_;
+ private int state_ = 0;
/**
*
*
*
- * Always present for [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Required for
- * [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. The state of the parameter. This field can be set
- * to [INVALID][google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo.ParameterState.INVALID] by
- * the webhook to invalidate the parameter; other values set by the
+ * Always present for
+ * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest].
+ * Required for
+ * [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. The
+ * state of the parameter. This field can be set to
+ * [INVALID][google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo.ParameterState.INVALID]
+ * by the webhook to invalidate the parameter; other values set by the
* webhook will be ignored.
*
*
@@ -685,10 +726,13 @@ public int getStateValue() {
*
*
*
- * Always present for [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Required for
- * [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. The state of the parameter. This field can be set
- * to [INVALID][google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo.ParameterState.INVALID] by
- * the webhook to invalidate the parameter; other values set by the
+ * Always present for
+ * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest].
+ * Required for
+ * [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. The
+ * state of the parameter. This field can be set to
+ * [INVALID][google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo.ParameterState.INVALID]
+ * by the webhook to invalidate the parameter; other values set by the
* webhook will be ignored.
*
*
@@ -701,10 +745,9 @@ public int getStateValue() {
@java.lang.Override
public com.google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo.ParameterState
getState() {
- @SuppressWarnings("deprecation")
com.google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo.ParameterState result =
com.google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo.ParameterState
- .valueOf(state_);
+ .forNumber(state_);
return result == null
? com.google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo.ParameterState
.UNRECOGNIZED
@@ -717,9 +760,11 @@ public int getStateValue() {
*
*
*
- * Optional for both [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
- * The value of the parameter. This field can be set by the webhook to
- * change the parameter value.
+ * Optional for both
+ * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and
+ * [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. The
+ * value of the parameter. This field can be set by the webhook to change
+ * the parameter value.
*
*
* .google.protobuf.Value value = 4;
@@ -734,9 +779,11 @@ public boolean hasValue() {
*
*
*
- * Optional for both [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
- * The value of the parameter. This field can be set by the webhook to
- * change the parameter value.
+ * Optional for both
+ * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and
+ * [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. The
+ * value of the parameter. This field can be set by the webhook to change
+ * the parameter value.
*
*
* .google.protobuf.Value value = 4;
@@ -751,25 +798,29 @@ public com.google.protobuf.Value getValue() {
*
*
*
- * Optional for both [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
- * The value of the parameter. This field can be set by the webhook to
- * change the parameter value.
+ * Optional for both
+ * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and
+ * [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. The
+ * value of the parameter. This field can be set by the webhook to change
+ * the parameter value.
*
*
* .google.protobuf.Value value = 4;
*/
@java.lang.Override
public com.google.protobuf.ValueOrBuilder getValueOrBuilder() {
- return getValue();
+ return value_ == null ? com.google.protobuf.Value.getDefaultInstance() : value_;
}
public static final int JUST_COLLECTED_FIELD_NUMBER = 5;
- private boolean justCollected_;
+ private boolean justCollected_ = false;
/**
*
*
*
- * Optional for [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Ignored for [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
+ * Optional for
+ * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Ignored
+ * for [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
* Indicates if the parameter value was just collected on the last
* conversation turn.
*
@@ -1033,20 +1084,16 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
@java.lang.Override
public Builder clear() {
super.clear();
+ bitField0_ = 0;
displayName_ = "";
-
required_ = false;
-
state_ = 0;
-
- if (valueBuilder_ == null) {
- value_ = null;
- } else {
- value_ = null;
+ value_ = null;
+ if (valueBuilder_ != null) {
+ valueBuilder_.dispose();
valueBuilder_ = null;
}
justCollected_ = false;
-
return this;
}
@@ -1076,19 +1123,33 @@ public com.google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo build()
public com.google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo buildPartial() {
com.google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo result =
new com.google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo(this);
- result.displayName_ = displayName_;
- result.required_ = required_;
- result.state_ = state_;
- if (valueBuilder_ == null) {
- result.value_ = value_;
- } else {
- result.value_ = valueBuilder_.build();
+ if (bitField0_ != 0) {
+ buildPartial0(result);
}
- result.justCollected_ = justCollected_;
onBuilt();
return result;
}
+ private void buildPartial0(
+ com.google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.displayName_ = displayName_;
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.required_ = required_;
+ }
+ if (((from_bitField0_ & 0x00000004) != 0)) {
+ result.state_ = state_;
+ }
+ if (((from_bitField0_ & 0x00000008) != 0)) {
+ result.value_ = valueBuilder_ == null ? value_ : valueBuilder_.build();
+ }
+ if (((from_bitField0_ & 0x00000010) != 0)) {
+ result.justCollected_ = justCollected_;
+ }
+ }
+
@java.lang.Override
public Builder clone() {
return super.clone();
@@ -1142,6 +1203,7 @@ public Builder mergeFrom(
.getDefaultInstance()) return this;
if (!other.getDisplayName().isEmpty()) {
displayName_ = other.displayName_;
+ bitField0_ |= 0x00000001;
onChanged();
}
if (other.getRequired() != false) {
@@ -1185,31 +1247,31 @@ public Builder mergeFrom(
case 10:
{
displayName_ = input.readStringRequireUtf8();
-
+ bitField0_ |= 0x00000001;
break;
} // case 10
case 16:
{
required_ = input.readBool();
-
+ bitField0_ |= 0x00000002;
break;
} // case 16
case 24:
{
state_ = input.readEnum();
-
+ bitField0_ |= 0x00000004;
break;
} // case 24
case 34:
{
input.readMessage(getValueFieldBuilder().getBuilder(), extensionRegistry);
-
+ bitField0_ |= 0x00000008;
break;
} // case 34
case 40:
{
justCollected_ = input.readBool();
-
+ bitField0_ |= 0x00000010;
break;
} // case 40
default:
@@ -1229,12 +1291,16 @@ public Builder mergeFrom(
return this;
}
+ private int bitField0_;
+
private java.lang.Object displayName_ = "";
/**
*
*
*
- * Always present for [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Required for
+ * Always present for
+ * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest].
+ * Required for
* [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
* The human-readable name of the parameter, unique within the form. This
* field cannot be modified by the webhook.
@@ -1259,7 +1325,9 @@ public java.lang.String getDisplayName() {
*
*
*
- * Always present for [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Required for
+ * Always present for
+ * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest].
+ * Required for
* [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
* The human-readable name of the parameter, unique within the form. This
* field cannot be modified by the webhook.
@@ -1284,7 +1352,9 @@ public com.google.protobuf.ByteString getDisplayNameBytes() {
*
*
*
- * Always present for [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Required for
+ * Always present for
+ * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest].
+ * Required for
* [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
* The human-readable name of the parameter, unique within the form. This
* field cannot be modified by the webhook.
@@ -1299,8 +1369,8 @@ public Builder setDisplayName(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
-
displayName_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -1308,7 +1378,9 @@ public Builder setDisplayName(java.lang.String value) {
*
*
*
- * Always present for [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Required for
+ * Always present for
+ * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest].
+ * Required for
* [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
* The human-readable name of the parameter, unique within the form. This
* field cannot be modified by the webhook.
@@ -1319,8 +1391,8 @@ public Builder setDisplayName(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearDisplayName() {
-
displayName_ = getDefaultInstance().getDisplayName();
+ bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
@@ -1328,7 +1400,9 @@ public Builder clearDisplayName() {
*
*
*
- * Always present for [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Required for
+ * Always present for
+ * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest].
+ * Required for
* [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
* The human-readable name of the parameter, unique within the form. This
* field cannot be modified by the webhook.
@@ -1344,8 +1418,8 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
-
displayName_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -1355,7 +1429,9 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) {
*
*
*
- * Optional for both [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
+ * Optional for both
+ * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and
+ * [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
* Indicates whether the parameter is required. Optional parameters will
* not trigger prompts; however, they are filled if the user specifies
* them. Required parameters must be filled before form filling concludes.
@@ -1373,7 +1449,9 @@ public boolean getRequired() {
*
*
*
- * Optional for both [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
+ * Optional for both
+ * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and
+ * [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
* Indicates whether the parameter is required. Optional parameters will
* not trigger prompts; however, they are filled if the user specifies
* them. Required parameters must be filled before form filling concludes.
@@ -1387,6 +1465,7 @@ public boolean getRequired() {
public Builder setRequired(boolean value) {
required_ = value;
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -1394,7 +1473,9 @@ public Builder setRequired(boolean value) {
*
*
*
- * Optional for both [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
+ * Optional for both
+ * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and
+ * [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
* Indicates whether the parameter is required. Optional parameters will
* not trigger prompts; however, they are filled if the user specifies
* them. Required parameters must be filled before form filling concludes.
@@ -1405,7 +1486,7 @@ public Builder setRequired(boolean value) {
* @return This builder for chaining.
*/
public Builder clearRequired() {
-
+ bitField0_ = (bitField0_ & ~0x00000002);
required_ = false;
onChanged();
return this;
@@ -1416,10 +1497,13 @@ public Builder clearRequired() {
*
*
*
- * Always present for [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Required for
- * [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. The state of the parameter. This field can be set
- * to [INVALID][google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo.ParameterState.INVALID] by
- * the webhook to invalidate the parameter; other values set by the
+ * Always present for
+ * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest].
+ * Required for
+ * [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. The
+ * state of the parameter. This field can be set to
+ * [INVALID][google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo.ParameterState.INVALID]
+ * by the webhook to invalidate the parameter; other values set by the
* webhook will be ignored.
*
*
@@ -1437,10 +1521,13 @@ public int getStateValue() {
*
*
*
- * Always present for [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Required for
- * [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. The state of the parameter. This field can be set
- * to [INVALID][google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo.ParameterState.INVALID] by
- * the webhook to invalidate the parameter; other values set by the
+ * Always present for
+ * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest].
+ * Required for
+ * [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. The
+ * state of the parameter. This field can be set to
+ * [INVALID][google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo.ParameterState.INVALID]
+ * by the webhook to invalidate the parameter; other values set by the
* webhook will be ignored.
*
*
@@ -1452,8 +1539,8 @@ public int getStateValue() {
* @return This builder for chaining.
*/
public Builder setStateValue(int value) {
-
state_ = value;
+ bitField0_ |= 0x00000004;
onChanged();
return this;
}
@@ -1461,10 +1548,13 @@ public Builder setStateValue(int value) {
*
*
*
- * Always present for [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Required for
- * [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. The state of the parameter. This field can be set
- * to [INVALID][google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo.ParameterState.INVALID] by
- * the webhook to invalidate the parameter; other values set by the
+ * Always present for
+ * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest].
+ * Required for
+ * [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. The
+ * state of the parameter. This field can be set to
+ * [INVALID][google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo.ParameterState.INVALID]
+ * by the webhook to invalidate the parameter; other values set by the
* webhook will be ignored.
*
*
@@ -1477,10 +1567,9 @@ public Builder setStateValue(int value) {
@java.lang.Override
public com.google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo.ParameterState
getState() {
- @SuppressWarnings("deprecation")
com.google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo.ParameterState result =
com.google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo.ParameterState
- .valueOf(state_);
+ .forNumber(state_);
return result == null
? com.google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo.ParameterState
.UNRECOGNIZED
@@ -1490,10 +1579,13 @@ public Builder setStateValue(int value) {
*
*
*
- * Always present for [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Required for
- * [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. The state of the parameter. This field can be set
- * to [INVALID][google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo.ParameterState.INVALID] by
- * the webhook to invalidate the parameter; other values set by the
+ * Always present for
+ * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest].
+ * Required for
+ * [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. The
+ * state of the parameter. This field can be set to
+ * [INVALID][google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo.ParameterState.INVALID]
+ * by the webhook to invalidate the parameter; other values set by the
* webhook will be ignored.
*
*
@@ -1510,7 +1602,7 @@ public Builder setState(
if (value == null) {
throw new NullPointerException();
}
-
+ bitField0_ |= 0x00000004;
state_ = value.getNumber();
onChanged();
return this;
@@ -1519,10 +1611,13 @@ public Builder setState(
*
*
*
- * Always present for [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Required for
- * [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. The state of the parameter. This field can be set
- * to [INVALID][google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo.ParameterState.INVALID] by
- * the webhook to invalidate the parameter; other values set by the
+ * Always present for
+ * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest].
+ * Required for
+ * [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. The
+ * state of the parameter. This field can be set to
+ * [INVALID][google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo.ParameterState.INVALID]
+ * by the webhook to invalidate the parameter; other values set by the
* webhook will be ignored.
*
*
@@ -1533,7 +1628,7 @@ public Builder setState(
* @return This builder for chaining.
*/
public Builder clearState() {
-
+ bitField0_ = (bitField0_ & ~0x00000004);
state_ = 0;
onChanged();
return this;
@@ -1549,9 +1644,11 @@ public Builder clearState() {
*
*
*
- * Optional for both [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
- * The value of the parameter. This field can be set by the webhook to
- * change the parameter value.
+ * Optional for both
+ * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and
+ * [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. The
+ * value of the parameter. This field can be set by the webhook to change
+ * the parameter value.
*
*
* .google.protobuf.Value value = 4;
@@ -1559,15 +1656,17 @@ public Builder clearState() {
* @return Whether the value field is set.
*/
public boolean hasValue() {
- return valueBuilder_ != null || value_ != null;
+ return ((bitField0_ & 0x00000008) != 0);
}
/**
*
*
*
- * Optional for both [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
- * The value of the parameter. This field can be set by the webhook to
- * change the parameter value.
+ * Optional for both
+ * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and
+ * [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. The
+ * value of the parameter. This field can be set by the webhook to change
+ * the parameter value.
*
*
* .google.protobuf.Value value = 4;
@@ -1585,9 +1684,11 @@ public com.google.protobuf.Value getValue() {
*
*
*
- * Optional for both [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
- * The value of the parameter. This field can be set by the webhook to
- * change the parameter value.
+ * Optional for both
+ * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and
+ * [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. The
+ * value of the parameter. This field can be set by the webhook to change
+ * the parameter value.
*
*
* .google.protobuf.Value value = 4;
@@ -1598,20 +1699,22 @@ public Builder setValue(com.google.protobuf.Value value) {
throw new NullPointerException();
}
value_ = value;
- onChanged();
} else {
valueBuilder_.setMessage(value);
}
-
+ bitField0_ |= 0x00000008;
+ onChanged();
return this;
}
/**
*
*
*
- * Optional for both [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
- * The value of the parameter. This field can be set by the webhook to
- * change the parameter value.
+ * Optional for both
+ * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and
+ * [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. The
+ * value of the parameter. This field can be set by the webhook to change
+ * the parameter value.
*
*
* .google.protobuf.Value value = 4;
@@ -1619,73 +1722,80 @@ public Builder setValue(com.google.protobuf.Value value) {
public Builder setValue(com.google.protobuf.Value.Builder builderForValue) {
if (valueBuilder_ == null) {
value_ = builderForValue.build();
- onChanged();
} else {
valueBuilder_.setMessage(builderForValue.build());
}
-
+ bitField0_ |= 0x00000008;
+ onChanged();
return this;
}
/**
*
*
*
- * Optional for both [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
- * The value of the parameter. This field can be set by the webhook to
- * change the parameter value.
+ * Optional for both
+ * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and
+ * [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. The
+ * value of the parameter. This field can be set by the webhook to change
+ * the parameter value.
*
*
* .google.protobuf.Value value = 4;
*/
public Builder mergeValue(com.google.protobuf.Value value) {
if (valueBuilder_ == null) {
- if (value_ != null) {
- value_ = com.google.protobuf.Value.newBuilder(value_).mergeFrom(value).buildPartial();
+ if (((bitField0_ & 0x00000008) != 0)
+ && value_ != null
+ && value_ != com.google.protobuf.Value.getDefaultInstance()) {
+ getValueBuilder().mergeFrom(value);
} else {
value_ = value;
}
- onChanged();
} else {
valueBuilder_.mergeFrom(value);
}
-
+ bitField0_ |= 0x00000008;
+ onChanged();
return this;
}
/**
*
*
*
- * Optional for both [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
- * The value of the parameter. This field can be set by the webhook to
- * change the parameter value.
+ * Optional for both
+ * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and
+ * [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. The
+ * value of the parameter. This field can be set by the webhook to change
+ * the parameter value.
*
*
* .google.protobuf.Value value = 4;
*/
public Builder clearValue() {
- if (valueBuilder_ == null) {
- value_ = null;
- onChanged();
- } else {
- value_ = null;
+ bitField0_ = (bitField0_ & ~0x00000008);
+ value_ = null;
+ if (valueBuilder_ != null) {
+ valueBuilder_.dispose();
valueBuilder_ = null;
}
-
+ onChanged();
return this;
}
/**
*
*
*
- * Optional for both [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
- * The value of the parameter. This field can be set by the webhook to
- * change the parameter value.
+ * Optional for both
+ * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and
+ * [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. The
+ * value of the parameter. This field can be set by the webhook to change
+ * the parameter value.
*
*
* .google.protobuf.Value value = 4;
*/
public com.google.protobuf.Value.Builder getValueBuilder() {
-
+ bitField0_ |= 0x00000008;
onChanged();
return getValueFieldBuilder().getBuilder();
}
@@ -1693,9 +1803,11 @@ public com.google.protobuf.Value.Builder getValueBuilder() {
*
*
*
- * Optional for both [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
- * The value of the parameter. This field can be set by the webhook to
- * change the parameter value.
+ * Optional for both
+ * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and
+ * [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. The
+ * value of the parameter. This field can be set by the webhook to change
+ * the parameter value.
*
*
* .google.protobuf.Value value = 4;
@@ -1711,9 +1823,11 @@ public com.google.protobuf.ValueOrBuilder getValueOrBuilder() {
*
*
*
- * Optional for both [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
- * The value of the parameter. This field can be set by the webhook to
- * change the parameter value.
+ * Optional for both
+ * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and
+ * [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. The
+ * value of the parameter. This field can be set by the webhook to change
+ * the parameter value.
*
*
* .google.protobuf.Value value = 4;
@@ -1740,7 +1854,9 @@ public com.google.protobuf.ValueOrBuilder getValueOrBuilder() {
*
*
*
- * Optional for [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Ignored for [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
+ * Optional for
+ * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Ignored
+ * for [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
* Indicates if the parameter value was just collected on the last
* conversation turn.
*
@@ -1757,7 +1873,9 @@ public boolean getJustCollected() {
*
*
*
- * Optional for [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Ignored for [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
+ * Optional for
+ * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Ignored
+ * for [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
* Indicates if the parameter value was just collected on the last
* conversation turn.
*
@@ -1770,6 +1888,7 @@ public boolean getJustCollected() {
public Builder setJustCollected(boolean value) {
justCollected_ = value;
+ bitField0_ |= 0x00000010;
onChanged();
return this;
}
@@ -1777,7 +1896,9 @@ public Builder setJustCollected(boolean value) {
*
*
*
- * Optional for [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Ignored for [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
+ * Optional for
+ * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Ignored
+ * for [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
* Indicates if the parameter value was just collected on the last
* conversation turn.
*
@@ -1787,7 +1908,7 @@ public Builder setJustCollected(boolean value) {
* @return This builder for chaining.
*/
public Builder clearJustCollected() {
-
+ bitField0_ = (bitField0_ & ~0x00000010);
justCollected_ = false;
onChanged();
return this;
@@ -1861,15 +1982,19 @@ public com.google.protobuf.Parser getParserForType() {
}
public static final int PARAMETER_INFO_FIELD_NUMBER = 2;
+
+ @SuppressWarnings("serial")
private java.util.List
parameterInfo_;
/**
*
*
*
- * Optional for both [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
- * The parameters contained in the form. Note that the webhook cannot add
- * or remove any form parameter.
+ * Optional for both
+ * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and
+ * [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. The
+ * parameters contained in the form. Note that the webhook cannot add or
+ * remove any form parameter.
*
*
*
@@ -1885,9 +2010,11 @@ public com.google.protobuf.Parser getParserForType() {
*
*
*
- * Optional for both [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
- * The parameters contained in the form. Note that the webhook cannot add
- * or remove any form parameter.
+ * Optional for both
+ * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and
+ * [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. The
+ * parameters contained in the form. Note that the webhook cannot add or
+ * remove any form parameter.
*
*
*
@@ -1904,9 +2031,11 @@ public com.google.protobuf.Parser getParserForType() {
*
*
*
- * Optional for both [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
- * The parameters contained in the form. Note that the webhook cannot add
- * or remove any form parameter.
+ * Optional for both
+ * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and
+ * [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. The
+ * parameters contained in the form. Note that the webhook cannot add or
+ * remove any form parameter.
*
*
*
@@ -1921,9 +2050,11 @@ public int getParameterInfoCount() {
*
*
*
- * Optional for both [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
- * The parameters contained in the form. Note that the webhook cannot add
- * or remove any form parameter.
+ * Optional for both
+ * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and
+ * [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. The
+ * parameters contained in the form. Note that the webhook cannot add or
+ * remove any form parameter.
*
*
*
@@ -1939,9 +2070,11 @@ public com.google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo getPara
*
*
*
- * Optional for both [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
- * The parameters contained in the form. Note that the webhook cannot add
- * or remove any form parameter.
+ * Optional for both
+ * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and
+ * [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. The
+ * parameters contained in the form. Note that the webhook cannot add or
+ * remove any form parameter.
*
*
*
@@ -2156,6 +2289,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
@java.lang.Override
public Builder clear() {
super.clear();
+ bitField0_ = 0;
if (parameterInfoBuilder_ == null) {
parameterInfo_ = java.util.Collections.emptyList();
} else {
@@ -2190,7 +2324,16 @@ public com.google.cloud.dialogflow.cx.v3.PageInfo.FormInfo build() {
public com.google.cloud.dialogflow.cx.v3.PageInfo.FormInfo buildPartial() {
com.google.cloud.dialogflow.cx.v3.PageInfo.FormInfo result =
new com.google.cloud.dialogflow.cx.v3.PageInfo.FormInfo(this);
- int from_bitField0_ = bitField0_;
+ buildPartialRepeatedFields(result);
+ if (bitField0_ != 0) {
+ buildPartial0(result);
+ }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartialRepeatedFields(
+ com.google.cloud.dialogflow.cx.v3.PageInfo.FormInfo result) {
if (parameterInfoBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
parameterInfo_ = java.util.Collections.unmodifiableList(parameterInfo_);
@@ -2200,8 +2343,10 @@ public com.google.cloud.dialogflow.cx.v3.PageInfo.FormInfo buildPartial() {
} else {
result.parameterInfo_ = parameterInfoBuilder_.build();
}
- onBuilt();
- return result;
+ }
+
+ private void buildPartial0(com.google.cloud.dialogflow.cx.v3.PageInfo.FormInfo result) {
+ int from_bitField0_ = bitField0_;
}
@java.lang.Override
@@ -2362,9 +2507,11 @@ private void ensureParameterInfoIsMutable() {
*
*
*
- * Optional for both [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
- * The parameters contained in the form. Note that the webhook cannot add
- * or remove any form parameter.
+ * Optional for both
+ * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and
+ * [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. The
+ * parameters contained in the form. Note that the webhook cannot add or
+ * remove any form parameter.
*
*
*
@@ -2383,9 +2530,11 @@ private void ensureParameterInfoIsMutable() {
*
*
*
- * Optional for both [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
- * The parameters contained in the form. Note that the webhook cannot add
- * or remove any form parameter.
+ * Optional for both
+ * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and
+ * [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. The
+ * parameters contained in the form. Note that the webhook cannot add or
+ * remove any form parameter.
*
*
*
@@ -2403,9 +2552,11 @@ public int getParameterInfoCount() {
*
*
*
- * Optional for both [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
- * The parameters contained in the form. Note that the webhook cannot add
- * or remove any form parameter.
+ * Optional for both
+ * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and
+ * [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. The
+ * parameters contained in the form. Note that the webhook cannot add or
+ * remove any form parameter.
*
*
*
@@ -2424,9 +2575,11 @@ public com.google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo getPara
*
*
*
- * Optional for both [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
- * The parameters contained in the form. Note that the webhook cannot add
- * or remove any form parameter.
+ * Optional for both
+ * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and
+ * [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. The
+ * parameters contained in the form. Note that the webhook cannot add or
+ * remove any form parameter.
*
*
*
@@ -2451,9 +2604,11 @@ public Builder setParameterInfo(
*
*
*
- * Optional for both [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
- * The parameters contained in the form. Note that the webhook cannot add
- * or remove any form parameter.
+ * Optional for both
+ * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and
+ * [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. The
+ * parameters contained in the form. Note that the webhook cannot add or
+ * remove any form parameter.
*
*
*
@@ -2477,9 +2632,11 @@ public Builder setParameterInfo(
*
*
*
- * Optional for both [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
- * The parameters contained in the form. Note that the webhook cannot add
- * or remove any form parameter.
+ * Optional for both
+ * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and
+ * [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. The
+ * parameters contained in the form. Note that the webhook cannot add or
+ * remove any form parameter.
*
*
*
@@ -2504,9 +2661,11 @@ public Builder addParameterInfo(
*
*
*
- * Optional for both [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
- * The parameters contained in the form. Note that the webhook cannot add
- * or remove any form parameter.
+ * Optional for both
+ * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and
+ * [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. The
+ * parameters contained in the form. Note that the webhook cannot add or
+ * remove any form parameter.
*
*
*
@@ -2531,9 +2690,11 @@ public Builder addParameterInfo(
*
*
*
- * Optional for both [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
- * The parameters contained in the form. Note that the webhook cannot add
- * or remove any form parameter.
+ * Optional for both
+ * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and
+ * [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. The
+ * parameters contained in the form. Note that the webhook cannot add or
+ * remove any form parameter.
*
*
*
@@ -2556,9 +2717,11 @@ public Builder addParameterInfo(
*
*
*
- * Optional for both [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
- * The parameters contained in the form. Note that the webhook cannot add
- * or remove any form parameter.
+ * Optional for both
+ * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and
+ * [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. The
+ * parameters contained in the form. Note that the webhook cannot add or
+ * remove any form parameter.
*
*
*
@@ -2582,9 +2745,11 @@ public Builder addParameterInfo(
*
*
*
- * Optional for both [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
- * The parameters contained in the form. Note that the webhook cannot add
- * or remove any form parameter.
+ * Optional for both
+ * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and
+ * [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. The
+ * parameters contained in the form. Note that the webhook cannot add or
+ * remove any form parameter.
*
*
*
@@ -2608,9 +2773,11 @@ public Builder addAllParameterInfo(
*
*
*
- * Optional for both [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
- * The parameters contained in the form. Note that the webhook cannot add
- * or remove any form parameter.
+ * Optional for both
+ * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and
+ * [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. The
+ * parameters contained in the form. Note that the webhook cannot add or
+ * remove any form parameter.
*
*
*
@@ -2631,9 +2798,11 @@ public Builder clearParameterInfo() {
*
*
*
- * Optional for both [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
- * The parameters contained in the form. Note that the webhook cannot add
- * or remove any form parameter.
+ * Optional for both
+ * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and
+ * [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. The
+ * parameters contained in the form. Note that the webhook cannot add or
+ * remove any form parameter.
*
*
*
@@ -2654,9 +2823,11 @@ public Builder removeParameterInfo(int index) {
*
*
*
- * Optional for both [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
- * The parameters contained in the form. Note that the webhook cannot add
- * or remove any form parameter.
+ * Optional for both
+ * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and
+ * [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. The
+ * parameters contained in the form. Note that the webhook cannot add or
+ * remove any form parameter.
*
*
*
@@ -2671,9 +2842,11 @@ public Builder removeParameterInfo(int index) {
*
*
*
- * Optional for both [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
- * The parameters contained in the form. Note that the webhook cannot add
- * or remove any form parameter.
+ * Optional for both
+ * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and
+ * [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. The
+ * parameters contained in the form. Note that the webhook cannot add or
+ * remove any form parameter.
*
*
*
@@ -2692,9 +2865,11 @@ public Builder removeParameterInfo(int index) {
*
*
*
- * Optional for both [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
- * The parameters contained in the form. Note that the webhook cannot add
- * or remove any form parameter.
+ * Optional for both
+ * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and
+ * [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. The
+ * parameters contained in the form. Note that the webhook cannot add or
+ * remove any form parameter.
*
*
*
@@ -2714,9 +2889,11 @@ public Builder removeParameterInfo(int index) {
*
*
*
- * Optional for both [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
- * The parameters contained in the form. Note that the webhook cannot add
- * or remove any form parameter.
+ * Optional for both
+ * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and
+ * [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. The
+ * parameters contained in the form. Note that the webhook cannot add or
+ * remove any form parameter.
*
*
*
@@ -2734,9 +2911,11 @@ public Builder removeParameterInfo(int index) {
*
*
*
- * Optional for both [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
- * The parameters contained in the form. Note that the webhook cannot add
- * or remove any form parameter.
+ * Optional for both
+ * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and
+ * [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. The
+ * parameters contained in the form. Note that the webhook cannot add or
+ * remove any form parameter.
*
*
*
@@ -2755,9 +2934,11 @@ public Builder removeParameterInfo(int index) {
*
*
*
- * Optional for both [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
- * The parameters contained in the form. Note that the webhook cannot add
- * or remove any form parameter.
+ * Optional for both
+ * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and
+ * [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. The
+ * parameters contained in the form. Note that the webhook cannot add or
+ * remove any form parameter.
*
*
*
@@ -2855,15 +3036,19 @@ public com.google.cloud.dialogflow.cx.v3.PageInfo.FormInfo getDefaultInstanceFor
}
public static final int CURRENT_PAGE_FIELD_NUMBER = 1;
- private volatile java.lang.Object currentPage_;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object currentPage_ = "";
/**
*
*
*
- * Always present for [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Ignored for [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
- * The unique identifier of the current page.
- * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
- * ID>/flows/<Flow ID>/pages/<Page ID>`.
+ * Always present for
+ * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Ignored for
+ * [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. The
+ * unique identifier of the current page. Format: `projects/<Project
+ * ID>/locations/<Location ID>/agents/<Agent ID>/flows/<Flow ID>/pages/<Page
+ * ID>`.
*
*
* string current_page = 1 [(.google.api.resource_reference) = { ... }
@@ -2886,10 +3071,12 @@ public java.lang.String getCurrentPage() {
*
*
*
- * Always present for [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Ignored for [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
- * The unique identifier of the current page.
- * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
- * ID>/flows/<Flow ID>/pages/<Page ID>`.
+ * Always present for
+ * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Ignored for
+ * [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. The
+ * unique identifier of the current page. Format: `projects/<Project
+ * ID>/locations/<Location ID>/agents/<Agent ID>/flows/<Flow ID>/pages/<Page
+ * ID>`.
*
*
* string current_page = 1 [(.google.api.resource_reference) = { ... }
@@ -2910,13 +3097,17 @@ public com.google.protobuf.ByteString getCurrentPageBytes() {
}
public static final int DISPLAY_NAME_FIELD_NUMBER = 4;
- private volatile java.lang.Object displayName_;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object displayName_ = "";
/**
*
*
*
- * Always present for [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Ignored for [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
- * The display name of the current page.
+ * Always present for
+ * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Ignored for
+ * [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. The
+ * display name of the current page.
*
*
* string display_name = 4;
@@ -2939,8 +3130,10 @@ public java.lang.String getDisplayName() {
*
*
*
- * Always present for [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Ignored for [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
- * The display name of the current page.
+ * Always present for
+ * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Ignored for
+ * [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. The
+ * display name of the current page.
*
*
* string display_name = 4;
@@ -2966,7 +3159,9 @@ public com.google.protobuf.ByteString getDisplayNameBytes() {
*
*
*
- * Optional for both [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
+ * Optional for both
+ * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and
+ * [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
* Information about the form.
*
*
@@ -2982,7 +3177,9 @@ public boolean hasFormInfo() {
*
*
*
- * Optional for both [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
+ * Optional for both
+ * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and
+ * [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
* Information about the form.
*
*
@@ -3000,7 +3197,9 @@ public com.google.cloud.dialogflow.cx.v3.PageInfo.FormInfo getFormInfo() {
*
*
*
- * Optional for both [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
+ * Optional for both
+ * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and
+ * [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
* Information about the form.
*
*
@@ -3008,7 +3207,9 @@ public com.google.cloud.dialogflow.cx.v3.PageInfo.FormInfo getFormInfo() {
*/
@java.lang.Override
public com.google.cloud.dialogflow.cx.v3.PageInfo.FormInfoOrBuilder getFormInfoOrBuilder() {
- return getFormInfo();
+ return formInfo_ == null
+ ? com.google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.getDefaultInstance()
+ : formInfo_;
}
private byte memoizedIsInitialized = -1;
@@ -3231,14 +3432,12 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
@java.lang.Override
public Builder clear() {
super.clear();
+ bitField0_ = 0;
currentPage_ = "";
-
displayName_ = "";
-
- if (formInfoBuilder_ == null) {
- formInfo_ = null;
- } else {
- formInfo_ = null;
+ formInfo_ = null;
+ if (formInfoBuilder_ != null) {
+ formInfoBuilder_.dispose();
formInfoBuilder_ = null;
}
return this;
@@ -3268,17 +3467,26 @@ public com.google.cloud.dialogflow.cx.v3.PageInfo build() {
public com.google.cloud.dialogflow.cx.v3.PageInfo buildPartial() {
com.google.cloud.dialogflow.cx.v3.PageInfo result =
new com.google.cloud.dialogflow.cx.v3.PageInfo(this);
- result.currentPage_ = currentPage_;
- result.displayName_ = displayName_;
- if (formInfoBuilder_ == null) {
- result.formInfo_ = formInfo_;
- } else {
- result.formInfo_ = formInfoBuilder_.build();
+ if (bitField0_ != 0) {
+ buildPartial0(result);
}
onBuilt();
return result;
}
+ private void buildPartial0(com.google.cloud.dialogflow.cx.v3.PageInfo result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.currentPage_ = currentPage_;
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.displayName_ = displayName_;
+ }
+ if (((from_bitField0_ & 0x00000004) != 0)) {
+ result.formInfo_ = formInfoBuilder_ == null ? formInfo_ : formInfoBuilder_.build();
+ }
+ }
+
@java.lang.Override
public Builder clone() {
return super.clone();
@@ -3326,10 +3534,12 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.PageInfo other) {
if (other == com.google.cloud.dialogflow.cx.v3.PageInfo.getDefaultInstance()) return this;
if (!other.getCurrentPage().isEmpty()) {
currentPage_ = other.currentPage_;
+ bitField0_ |= 0x00000001;
onChanged();
}
if (!other.getDisplayName().isEmpty()) {
displayName_ = other.displayName_;
+ bitField0_ |= 0x00000002;
onChanged();
}
if (other.hasFormInfo()) {
@@ -3364,19 +3574,19 @@ public Builder mergeFrom(
case 10:
{
currentPage_ = input.readStringRequireUtf8();
-
+ bitField0_ |= 0x00000001;
break;
} // case 10
case 26:
{
input.readMessage(getFormInfoFieldBuilder().getBuilder(), extensionRegistry);
-
+ bitField0_ |= 0x00000004;
break;
} // case 26
case 34:
{
displayName_ = input.readStringRequireUtf8();
-
+ bitField0_ |= 0x00000002;
break;
} // case 34
default:
@@ -3396,15 +3606,19 @@ public Builder mergeFrom(
return this;
}
+ private int bitField0_;
+
private java.lang.Object currentPage_ = "";
/**
*
*
*
- * Always present for [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Ignored for [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
- * The unique identifier of the current page.
- * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
- * ID>/flows/<Flow ID>/pages/<Page ID>`.
+ * Always present for
+ * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Ignored for
+ * [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. The
+ * unique identifier of the current page. Format: `projects/<Project
+ * ID>/locations/<Location ID>/agents/<Agent ID>/flows/<Flow ID>/pages/<Page
+ * ID>`.
*
*
* string current_page = 1 [(.google.api.resource_reference) = { ... }
@@ -3426,10 +3640,12 @@ public java.lang.String getCurrentPage() {
*
*
*
- * Always present for [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Ignored for [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
- * The unique identifier of the current page.
- * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
- * ID>/flows/<Flow ID>/pages/<Page ID>`.
+ * Always present for
+ * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Ignored for
+ * [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. The
+ * unique identifier of the current page. Format: `projects/<Project
+ * ID>/locations/<Location ID>/agents/<Agent ID>/flows/<Flow ID>/pages/<Page
+ * ID>`.
*
*
* string current_page = 1 [(.google.api.resource_reference) = { ... }
@@ -3451,10 +3667,12 @@ public com.google.protobuf.ByteString getCurrentPageBytes() {
*
*
*
- * Always present for [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Ignored for [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
- * The unique identifier of the current page.
- * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
- * ID>/flows/<Flow ID>/pages/<Page ID>`.
+ * Always present for
+ * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Ignored for
+ * [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. The
+ * unique identifier of the current page. Format: `projects/<Project
+ * ID>/locations/<Location ID>/agents/<Agent ID>/flows/<Flow ID>/pages/<Page
+ * ID>`.
*
*
* string current_page = 1 [(.google.api.resource_reference) = { ... }
@@ -3466,8 +3684,8 @@ public Builder setCurrentPage(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
-
currentPage_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -3475,10 +3693,12 @@ public Builder setCurrentPage(java.lang.String value) {
*
*
*
- * Always present for [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Ignored for [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
- * The unique identifier of the current page.
- * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
- * ID>/flows/<Flow ID>/pages/<Page ID>`.
+ * Always present for
+ * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Ignored for
+ * [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. The
+ * unique identifier of the current page. Format: `projects/<Project
+ * ID>/locations/<Location ID>/agents/<Agent ID>/flows/<Flow ID>/pages/<Page
+ * ID>`.
*
*
* string current_page = 1 [(.google.api.resource_reference) = { ... }
@@ -3486,8 +3706,8 @@ public Builder setCurrentPage(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearCurrentPage() {
-
currentPage_ = getDefaultInstance().getCurrentPage();
+ bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
@@ -3495,10 +3715,12 @@ public Builder clearCurrentPage() {
*
*
*
- * Always present for [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Ignored for [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
- * The unique identifier of the current page.
- * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
- * ID>/flows/<Flow ID>/pages/<Page ID>`.
+ * Always present for
+ * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Ignored for
+ * [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. The
+ * unique identifier of the current page. Format: `projects/<Project
+ * ID>/locations/<Location ID>/agents/<Agent ID>/flows/<Flow ID>/pages/<Page
+ * ID>`.
*
*
* string current_page = 1 [(.google.api.resource_reference) = { ... }
@@ -3511,8 +3733,8 @@ public Builder setCurrentPageBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
-
currentPage_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -3522,8 +3744,10 @@ public Builder setCurrentPageBytes(com.google.protobuf.ByteString value) {
*
*
*
- * Always present for [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Ignored for [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
- * The display name of the current page.
+ * Always present for
+ * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Ignored for
+ * [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. The
+ * display name of the current page.
*
*
* string display_name = 4;
@@ -3545,8 +3769,10 @@ public java.lang.String getDisplayName() {
*
*
*
- * Always present for [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Ignored for [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
- * The display name of the current page.
+ * Always present for
+ * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Ignored for
+ * [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. The
+ * display name of the current page.
*
*
* string display_name = 4;
@@ -3568,8 +3794,10 @@ public com.google.protobuf.ByteString getDisplayNameBytes() {
*
*
*
- * Always present for [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Ignored for [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
- * The display name of the current page.
+ * Always present for
+ * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Ignored for
+ * [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. The
+ * display name of the current page.
*
*
* string display_name = 4;
@@ -3581,8 +3809,8 @@ public Builder setDisplayName(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
-
displayName_ = value;
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -3590,8 +3818,10 @@ public Builder setDisplayName(java.lang.String value) {
*
*
*
- * Always present for [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Ignored for [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
- * The display name of the current page.
+ * Always present for
+ * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Ignored for
+ * [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. The
+ * display name of the current page.
*
*
* string display_name = 4;
@@ -3599,8 +3829,8 @@ public Builder setDisplayName(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearDisplayName() {
-
displayName_ = getDefaultInstance().getDisplayName();
+ bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
@@ -3608,8 +3838,10 @@ public Builder clearDisplayName() {
*
*
*
- * Always present for [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Ignored for [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
- * The display name of the current page.
+ * Always present for
+ * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Ignored for
+ * [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. The
+ * display name of the current page.
*
*
* string display_name = 4;
@@ -3622,8 +3854,8 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
-
displayName_ = value;
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -3638,7 +3870,9 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) {
*
*
*
- * Optional for both [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
+ * Optional for both
+ * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and
+ * [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
* Information about the form.
*
*
@@ -3647,13 +3881,15 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) {
* @return Whether the formInfo field is set.
*/
public boolean hasFormInfo() {
- return formInfoBuilder_ != null || formInfo_ != null;
+ return ((bitField0_ & 0x00000004) != 0);
}
/**
*
*
*
- * Optional for both [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
+ * Optional for both
+ * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and
+ * [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
* Information about the form.
*
*
@@ -3674,7 +3910,9 @@ public com.google.cloud.dialogflow.cx.v3.PageInfo.FormInfo getFormInfo() {
*
*
*
- * Optional for both [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
+ * Optional for both
+ * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and
+ * [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
* Information about the form.
*
*
@@ -3686,18 +3924,20 @@ public Builder setFormInfo(com.google.cloud.dialogflow.cx.v3.PageInfo.FormInfo v
throw new NullPointerException();
}
formInfo_ = value;
- onChanged();
} else {
formInfoBuilder_.setMessage(value);
}
-
+ bitField0_ |= 0x00000004;
+ onChanged();
return this;
}
/**
*
*
*
- * Optional for both [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
+ * Optional for both
+ * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and
+ * [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
* Information about the form.
*
*
@@ -3707,18 +3947,20 @@ public Builder setFormInfo(
com.google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.Builder builderForValue) {
if (formInfoBuilder_ == null) {
formInfo_ = builderForValue.build();
- onChanged();
} else {
formInfoBuilder_.setMessage(builderForValue.build());
}
-
+ bitField0_ |= 0x00000004;
+ onChanged();
return this;
}
/**
*
*
*
- * Optional for both [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
+ * Optional for both
+ * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and
+ * [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
* Information about the form.
*
*
@@ -3726,54 +3968,57 @@ public Builder setFormInfo(
*/
public Builder mergeFormInfo(com.google.cloud.dialogflow.cx.v3.PageInfo.FormInfo value) {
if (formInfoBuilder_ == null) {
- if (formInfo_ != null) {
- formInfo_ =
- com.google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.newBuilder(formInfo_)
- .mergeFrom(value)
- .buildPartial();
+ if (((bitField0_ & 0x00000004) != 0)
+ && formInfo_ != null
+ && formInfo_
+ != com.google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.getDefaultInstance()) {
+ getFormInfoBuilder().mergeFrom(value);
} else {
formInfo_ = value;
}
- onChanged();
} else {
formInfoBuilder_.mergeFrom(value);
}
-
+ bitField0_ |= 0x00000004;
+ onChanged();
return this;
}
/**
*
*
*
- * Optional for both [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
+ * Optional for both
+ * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and
+ * [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
* Information about the form.
*
*
* .google.cloud.dialogflow.cx.v3.PageInfo.FormInfo form_info = 3;
*/
public Builder clearFormInfo() {
- if (formInfoBuilder_ == null) {
- formInfo_ = null;
- onChanged();
- } else {
- formInfo_ = null;
+ bitField0_ = (bitField0_ & ~0x00000004);
+ formInfo_ = null;
+ if (formInfoBuilder_ != null) {
+ formInfoBuilder_.dispose();
formInfoBuilder_ = null;
}
-
+ onChanged();
return this;
}
/**
*
*
*
- * Optional for both [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
+ * Optional for both
+ * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and
+ * [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
* Information about the form.
*
*
* .google.cloud.dialogflow.cx.v3.PageInfo.FormInfo form_info = 3;
*/
public com.google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.Builder getFormInfoBuilder() {
-
+ bitField0_ |= 0x00000004;
onChanged();
return getFormInfoFieldBuilder().getBuilder();
}
@@ -3781,7 +4026,9 @@ public com.google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.Builder getFormInfoBu
*
*
*
- * Optional for both [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
+ * Optional for both
+ * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and
+ * [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
* Information about the form.
*
*
@@ -3800,7 +4047,9 @@ public com.google.cloud.dialogflow.cx.v3.PageInfo.FormInfoOrBuilder getFormInfoO
*
*
*
- * Optional for both [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
+ * Optional for both
+ * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and
+ * [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
* Information about the form.
*
*
diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/PageInfoOrBuilder.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/PageInfoOrBuilder.java
index 8099256fe4b1..8c409c78ebc2 100644
--- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/PageInfoOrBuilder.java
+++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/PageInfoOrBuilder.java
@@ -27,10 +27,12 @@ public interface PageInfoOrBuilder
*
*
*
- * Always present for [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Ignored for [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
- * The unique identifier of the current page.
- * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
- * ID>/flows/<Flow ID>/pages/<Page ID>`.
+ * Always present for
+ * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Ignored for
+ * [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. The
+ * unique identifier of the current page. Format: `projects/<Project
+ * ID>/locations/<Location ID>/agents/<Agent ID>/flows/<Flow ID>/pages/<Page
+ * ID>`.
*
*
* string current_page = 1 [(.google.api.resource_reference) = { ... }
@@ -42,10 +44,12 @@ public interface PageInfoOrBuilder
*
*
*
- * Always present for [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Ignored for [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
- * The unique identifier of the current page.
- * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
- * ID>/flows/<Flow ID>/pages/<Page ID>`.
+ * Always present for
+ * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Ignored for
+ * [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. The
+ * unique identifier of the current page. Format: `projects/<Project
+ * ID>/locations/<Location ID>/agents/<Agent ID>/flows/<Flow ID>/pages/<Page
+ * ID>`.
*
*
* string current_page = 1 [(.google.api.resource_reference) = { ... }
@@ -58,8 +62,10 @@ public interface PageInfoOrBuilder
*
*
*
- * Always present for [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Ignored for [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
- * The display name of the current page.
+ * Always present for
+ * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Ignored for
+ * [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. The
+ * display name of the current page.
*
*
* string display_name = 4;
@@ -71,8 +77,10 @@ public interface PageInfoOrBuilder
*
*
*
- * Always present for [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Ignored for [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
- * The display name of the current page.
+ * Always present for
+ * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Ignored for
+ * [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. The
+ * display name of the current page.
*
*
* string display_name = 4;
@@ -85,7 +93,9 @@ public interface PageInfoOrBuilder
*
*
*
- * Optional for both [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
+ * Optional for both
+ * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and
+ * [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
* Information about the form.
*
*
@@ -98,7 +108,9 @@ public interface PageInfoOrBuilder
*
*
*
- * Optional for both [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
+ * Optional for both
+ * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and
+ * [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
* Information about the form.
*
*
@@ -111,7 +123,9 @@ public interface PageInfoOrBuilder
*
*
*
- * Optional for both [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
+ * Optional for both
+ * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and
+ * [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
* Information about the form.
*
*
diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/PageOrBuilder.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/PageOrBuilder.java
index 618a68dd283a..13de0ee63a7e 100644
--- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/PageOrBuilder.java
+++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/PageOrBuilder.java
@@ -28,7 +28,9 @@ public interface PageOrBuilder
*
*
* The unique identifier of the page.
- * Required for the [Pages.UpdatePage][google.cloud.dialogflow.cx.v3.Pages.UpdatePage] method. [Pages.CreatePage][google.cloud.dialogflow.cx.v3.Pages.CreatePage]
+ * Required for the
+ * [Pages.UpdatePage][google.cloud.dialogflow.cx.v3.Pages.UpdatePage] method.
+ * [Pages.CreatePage][google.cloud.dialogflow.cx.v3.Pages.CreatePage]
* populates the name automatically.
* Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
* ID>/flows/<Flow ID>/pages/<Page ID>`.
@@ -44,7 +46,9 @@ public interface PageOrBuilder
*
*
* The unique identifier of the page.
- * Required for the [Pages.UpdatePage][google.cloud.dialogflow.cx.v3.Pages.UpdatePage] method. [Pages.CreatePage][google.cloud.dialogflow.cx.v3.Pages.CreatePage]
+ * Required for the
+ * [Pages.UpdatePage][google.cloud.dialogflow.cx.v3.Pages.UpdatePage] method.
+ * [Pages.CreatePage][google.cloud.dialogflow.cx.v3.Pages.CreatePage]
* populates the name automatically.
* Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
* ID>/flows/<Flow ID>/pages/<Page ID>`.
@@ -158,8 +162,10 @@ public interface PageOrBuilder
*
*
*
- * Ordered list of [`TransitionRouteGroups`][google.cloud.dialogflow.cx.v3.TransitionRouteGroup] associated
- * with the page. Transition route groups must be unique within a page.
+ * Ordered list of
+ * [`TransitionRouteGroups`][google.cloud.dialogflow.cx.v3.TransitionRouteGroup]
+ * associated with the page. Transition route groups must be unique within a
+ * page.
* * If multiple transition routes within a page scope refer to the same
* intent, then the precedence order is: page's transition route -> page's
* transition route group -> flow's transition routes.
@@ -179,8 +185,10 @@ public interface PageOrBuilder
*
*
*
- * Ordered list of [`TransitionRouteGroups`][google.cloud.dialogflow.cx.v3.TransitionRouteGroup] associated
- * with the page. Transition route groups must be unique within a page.
+ * Ordered list of
+ * [`TransitionRouteGroups`][google.cloud.dialogflow.cx.v3.TransitionRouteGroup]
+ * associated with the page. Transition route groups must be unique within a
+ * page.
* * If multiple transition routes within a page scope refer to the same
* intent, then the precedence order is: page's transition route -> page's
* transition route group -> flow's transition routes.
@@ -200,8 +208,10 @@ public interface PageOrBuilder
*
*
*
- * Ordered list of [`TransitionRouteGroups`][google.cloud.dialogflow.cx.v3.TransitionRouteGroup] associated
- * with the page. Transition route groups must be unique within a page.
+ * Ordered list of
+ * [`TransitionRouteGroups`][google.cloud.dialogflow.cx.v3.TransitionRouteGroup]
+ * associated with the page. Transition route groups must be unique within a
+ * page.
* * If multiple transition routes within a page scope refer to the same
* intent, then the precedence order is: page's transition route -> page's
* transition route group -> flow's transition routes.
@@ -222,8 +232,10 @@ public interface PageOrBuilder
*
*
*
- * Ordered list of [`TransitionRouteGroups`][google.cloud.dialogflow.cx.v3.TransitionRouteGroup] associated
- * with the page. Transition route groups must be unique within a page.
+ * Ordered list of
+ * [`TransitionRouteGroups`][google.cloud.dialogflow.cx.v3.TransitionRouteGroup]
+ * associated with the page. Transition route groups must be unique within a
+ * page.
* * If multiple transition routes within a page scope refer to the same
* intent, then the precedence order is: page's transition route -> page's
* transition route group -> flow's transition routes.
@@ -252,16 +264,19 @@ public interface PageOrBuilder
* following order:
* * TransitionRoutes defined in the page with intent specified.
* * TransitionRoutes defined in the
- * [transition route groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups] with intent
- * specified.
+ * [transition route
+ * groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups]
+ * with intent specified.
* * TransitionRoutes defined in flow with intent specified.
* * TransitionRoutes defined in the
- * [transition route groups][google.cloud.dialogflow.cx.v3.Flow.transition_route_groups] with intent
- * specified.
+ * [transition route
+ * groups][google.cloud.dialogflow.cx.v3.Flow.transition_route_groups]
+ * with intent specified.
* * TransitionRoutes defined in the page with only condition specified.
* * TransitionRoutes defined in the
- * [transition route groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups] with only
- * condition specified.
+ * [transition route
+ * groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups]
+ * with only condition specified.
*
*
* repeated .google.cloud.dialogflow.cx.v3.TransitionRoute transition_routes = 9;
@@ -278,16 +293,19 @@ public interface PageOrBuilder
* following order:
* * TransitionRoutes defined in the page with intent specified.
* * TransitionRoutes defined in the
- * [transition route groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups] with intent
- * specified.
+ * [transition route
+ * groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups]
+ * with intent specified.
* * TransitionRoutes defined in flow with intent specified.
* * TransitionRoutes defined in the
- * [transition route groups][google.cloud.dialogflow.cx.v3.Flow.transition_route_groups] with intent
- * specified.
+ * [transition route
+ * groups][google.cloud.dialogflow.cx.v3.Flow.transition_route_groups]
+ * with intent specified.
* * TransitionRoutes defined in the page with only condition specified.
* * TransitionRoutes defined in the
- * [transition route groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups] with only
- * condition specified.
+ * [transition route
+ * groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups]
+ * with only condition specified.
*
*
* repeated .google.cloud.dialogflow.cx.v3.TransitionRoute transition_routes = 9;
@@ -304,16 +322,19 @@ public interface PageOrBuilder
* following order:
* * TransitionRoutes defined in the page with intent specified.
* * TransitionRoutes defined in the
- * [transition route groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups] with intent
- * specified.
+ * [transition route
+ * groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups]
+ * with intent specified.
* * TransitionRoutes defined in flow with intent specified.
* * TransitionRoutes defined in the
- * [transition route groups][google.cloud.dialogflow.cx.v3.Flow.transition_route_groups] with intent
- * specified.
+ * [transition route
+ * groups][google.cloud.dialogflow.cx.v3.Flow.transition_route_groups]
+ * with intent specified.
* * TransitionRoutes defined in the page with only condition specified.
* * TransitionRoutes defined in the
- * [transition route groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups] with only
- * condition specified.
+ * [transition route
+ * groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups]
+ * with only condition specified.
*
*
* repeated .google.cloud.dialogflow.cx.v3.TransitionRoute transition_routes = 9;
@@ -330,16 +351,19 @@ public interface PageOrBuilder
* following order:
* * TransitionRoutes defined in the page with intent specified.
* * TransitionRoutes defined in the
- * [transition route groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups] with intent
- * specified.
+ * [transition route
+ * groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups]
+ * with intent specified.
* * TransitionRoutes defined in flow with intent specified.
* * TransitionRoutes defined in the
- * [transition route groups][google.cloud.dialogflow.cx.v3.Flow.transition_route_groups] with intent
- * specified.
+ * [transition route
+ * groups][google.cloud.dialogflow.cx.v3.Flow.transition_route_groups]
+ * with intent specified.
* * TransitionRoutes defined in the page with only condition specified.
* * TransitionRoutes defined in the
- * [transition route groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups] with only
- * condition specified.
+ * [transition route
+ * groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups]
+ * with only condition specified.
*
*
* repeated .google.cloud.dialogflow.cx.v3.TransitionRoute transition_routes = 9;
@@ -357,16 +381,19 @@ public interface PageOrBuilder
* following order:
* * TransitionRoutes defined in the page with intent specified.
* * TransitionRoutes defined in the
- * [transition route groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups] with intent
- * specified.
+ * [transition route
+ * groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups]
+ * with intent specified.
* * TransitionRoutes defined in flow with intent specified.
* * TransitionRoutes defined in the
- * [transition route groups][google.cloud.dialogflow.cx.v3.Flow.transition_route_groups] with intent
- * specified.
+ * [transition route
+ * groups][google.cloud.dialogflow.cx.v3.Flow.transition_route_groups]
+ * with intent specified.
* * TransitionRoutes defined in the page with only condition specified.
* * TransitionRoutes defined in the
- * [transition route groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups] with only
- * condition specified.
+ * [transition route
+ * groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups]
+ * with only condition specified.
*
*
* repeated .google.cloud.dialogflow.cx.v3.TransitionRoute transition_routes = 9;
diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/PageProto.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/PageProto.java
index 8a0a9771cfe8..0bce07703bdf 100644
--- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/PageProto.java
+++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/PageProto.java
@@ -177,12 +177,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "ents/*/flows/*/pages/*}\332A\004name\032x\312A\031dialo"
+ "gflow.googleapis.com\322AYhttps://www.googl"
+ "eapis.com/auth/cloud-platform,https://ww"
- + "w.googleapis.com/auth/dialogflowB\275\001\n!com"
+ + "w.googleapis.com/auth/dialogflowB\257\001\n!com"
+ ".google.cloud.dialogflow.cx.v3B\tPageProt"
- + "oP\001Z?google.golang.org/genproto/googleap"
- + "is/cloud/dialogflow/cx/v3;cx\370\001\001\242\002\002DF\252\002\035G"
- + "oogle.Cloud.Dialogflow.Cx.V3\352\002!Google::C"
- + "loud::Dialogflow::CX::V3b\006proto3"
+ + "oP\001Z1cloud.google.com/go/dialogflow/cx/a"
+ + "piv3/cxpb;cxpb\370\001\001\242\002\002DF\252\002\035Google.Cloud.Di"
+ + "alogflow.Cx.V3\352\002!Google::Cloud::Dialogfl"
+ + "ow::CX::V3b\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/QueryInput.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/QueryInput.java
index 7c9e1a004f46..91cb6d0cc982 100644
--- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/QueryInput.java
+++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/QueryInput.java
@@ -383,7 +383,9 @@ public com.google.cloud.dialogflow.cx.v3.DtmfInputOrBuilder getDtmfOrBuilder() {
}
public static final int LANGUAGE_CODE_FIELD_NUMBER = 4;
- private volatile java.lang.Object languageCode_;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object languageCode_ = "";
/**
*
*
@@ -722,6 +724,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
@java.lang.Override
public Builder clear() {
super.clear();
+ bitField0_ = 0;
if (textBuilder_ != null) {
textBuilder_.clear();
}
@@ -738,7 +741,6 @@ public Builder clear() {
dtmfBuilder_.clear();
}
languageCode_ = "";
-
inputCase_ = 0;
input_ = null;
return this;
@@ -768,45 +770,39 @@ public com.google.cloud.dialogflow.cx.v3.QueryInput build() {
public com.google.cloud.dialogflow.cx.v3.QueryInput buildPartial() {
com.google.cloud.dialogflow.cx.v3.QueryInput result =
new com.google.cloud.dialogflow.cx.v3.QueryInput(this);
- if (inputCase_ == 2) {
- if (textBuilder_ == null) {
- result.input_ = input_;
- } else {
- result.input_ = textBuilder_.build();
- }
+ if (bitField0_ != 0) {
+ buildPartial0(result);
}
- if (inputCase_ == 3) {
- if (intentBuilder_ == null) {
- result.input_ = input_;
- } else {
- result.input_ = intentBuilder_.build();
- }
+ buildPartialOneofs(result);
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartial0(com.google.cloud.dialogflow.cx.v3.QueryInput result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000020) != 0)) {
+ result.languageCode_ = languageCode_;
}
- if (inputCase_ == 5) {
- if (audioBuilder_ == null) {
- result.input_ = input_;
- } else {
- result.input_ = audioBuilder_.build();
- }
+ }
+
+ private void buildPartialOneofs(com.google.cloud.dialogflow.cx.v3.QueryInput result) {
+ result.inputCase_ = inputCase_;
+ result.input_ = this.input_;
+ if (inputCase_ == 2 && textBuilder_ != null) {
+ result.input_ = textBuilder_.build();
}
- if (inputCase_ == 6) {
- if (eventBuilder_ == null) {
- result.input_ = input_;
- } else {
- result.input_ = eventBuilder_.build();
- }
+ if (inputCase_ == 3 && intentBuilder_ != null) {
+ result.input_ = intentBuilder_.build();
}
- if (inputCase_ == 7) {
- if (dtmfBuilder_ == null) {
- result.input_ = input_;
- } else {
- result.input_ = dtmfBuilder_.build();
- }
+ if (inputCase_ == 5 && audioBuilder_ != null) {
+ result.input_ = audioBuilder_.build();
+ }
+ if (inputCase_ == 6 && eventBuilder_ != null) {
+ result.input_ = eventBuilder_.build();
+ }
+ if (inputCase_ == 7 && dtmfBuilder_ != null) {
+ result.input_ = dtmfBuilder_.build();
}
- result.languageCode_ = languageCode_;
- result.inputCase_ = inputCase_;
- onBuilt();
- return result;
}
@java.lang.Override
@@ -856,6 +852,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.QueryInput other) {
if (other == com.google.cloud.dialogflow.cx.v3.QueryInput.getDefaultInstance()) return this;
if (!other.getLanguageCode().isEmpty()) {
languageCode_ = other.languageCode_;
+ bitField0_ |= 0x00000020;
onChanged();
}
switch (other.getInputCase()) {
@@ -930,7 +927,7 @@ public Builder mergeFrom(
case 34:
{
languageCode_ = input.readStringRequireUtf8();
-
+ bitField0_ |= 0x00000020;
break;
} // case 34
case 42:
@@ -982,6 +979,8 @@ public Builder clearInput() {
return this;
}
+ private int bitField0_;
+
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.dialogflow.cx.v3.TextInput,
com.google.cloud.dialogflow.cx.v3.TextInput.Builder,
@@ -1187,7 +1186,6 @@ public com.google.cloud.dialogflow.cx.v3.TextInputOrBuilder getTextOrBuilder() {
}
inputCase_ = 2;
onChanged();
- ;
return textBuilder_;
}
@@ -1397,7 +1395,6 @@ public com.google.cloud.dialogflow.cx.v3.IntentInputOrBuilder getIntentOrBuilder
}
inputCase_ = 3;
onChanged();
- ;
return intentBuilder_;
}
@@ -1606,7 +1603,6 @@ public com.google.cloud.dialogflow.cx.v3.AudioInputOrBuilder getAudioOrBuilder()
}
inputCase_ = 5;
onChanged();
- ;
return audioBuilder_;
}
@@ -1815,7 +1811,6 @@ public com.google.cloud.dialogflow.cx.v3.EventInputOrBuilder getEventOrBuilder()
}
inputCase_ = 6;
onChanged();
- ;
return eventBuilder_;
}
@@ -2024,7 +2019,6 @@ public com.google.cloud.dialogflow.cx.v3.DtmfInputOrBuilder getDtmfOrBuilder() {
}
inputCase_ = 7;
onChanged();
- ;
return dtmfBuilder_;
}
@@ -2098,8 +2092,8 @@ public Builder setLanguageCode(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
-
languageCode_ = value;
+ bitField0_ |= 0x00000020;
onChanged();
return this;
}
@@ -2118,8 +2112,8 @@ public Builder setLanguageCode(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearLanguageCode() {
-
languageCode_ = getDefaultInstance().getLanguageCode();
+ bitField0_ = (bitField0_ & ~0x00000020);
onChanged();
return this;
}
@@ -2143,8 +2137,8 @@ public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
-
languageCode_ = value;
+ bitField0_ |= 0x00000020;
onChanged();
return this;
}
diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/QueryParameters.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/QueryParameters.java
index bba29c8343ce..77eff9186411 100644
--- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/QueryParameters.java
+++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/QueryParameters.java
@@ -42,6 +42,7 @@ private QueryParameters() {
sessionEntityTypes_ = java.util.Collections.emptyList();
currentPage_ = "";
flowVersions_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ channel_ = "";
}
@java.lang.Override
@@ -82,7 +83,9 @@ protected com.google.protobuf.MapField internalGetMapField(int number) {
}
public static final int TIME_ZONE_FIELD_NUMBER = 1;
- private volatile java.lang.Object timeZone_;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object timeZone_ = "";
/**
*
*
@@ -179,10 +182,12 @@ public com.google.type.LatLng getGeoLocation() {
*/
@java.lang.Override
public com.google.type.LatLngOrBuilder getGeoLocationOrBuilder() {
- return getGeoLocation();
+ return geoLocation_ == null ? com.google.type.LatLng.getDefaultInstance() : geoLocation_;
}
public static final int SESSION_ENTITY_TYPES_FIELD_NUMBER = 3;
+
+ @SuppressWarnings("serial")
private java.util.List sessionEntityTypes_;
/**
*
@@ -347,7 +352,7 @@ public com.google.protobuf.Struct getPayload() {
*/
@java.lang.Override
public com.google.protobuf.StructOrBuilder getPayloadOrBuilder() {
- return getPayload();
+ return payload_ == null ? com.google.protobuf.Struct.getDefaultInstance() : payload_;
}
public static final int PARAMETERS_FIELD_NUMBER = 5;
@@ -441,26 +446,29 @@ public com.google.protobuf.Struct getParameters() {
*/
@java.lang.Override
public com.google.protobuf.StructOrBuilder getParametersOrBuilder() {
- return getParameters();
+ return parameters_ == null ? com.google.protobuf.Struct.getDefaultInstance() : parameters_;
}
public static final int CURRENT_PAGE_FIELD_NUMBER = 6;
- private volatile java.lang.Object currentPage_;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object currentPage_ = "";
/**
*
*
*
- * The unique identifier of the [page][google.cloud.dialogflow.cx.v3.Page] to override the [current
- * page][QueryResult.current_page] in the session.
+ * The unique identifier of the [page][google.cloud.dialogflow.cx.v3.Page] to
+ * override the [current page][QueryResult.current_page] in the session.
* Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
* ID>/flows/<Flow ID>/pages/<Page ID>`.
* If `current_page` is specified, the previous state of the session will be
* ignored by Dialogflow, including the [previous
* page][QueryResult.current_page] and the [previous session
* parameters][QueryResult.parameters].
- * In most cases, [current_page][google.cloud.dialogflow.cx.v3.QueryParameters.current_page] and
- * [parameters][google.cloud.dialogflow.cx.v3.QueryParameters.parameters] should be configured together to
- * direct a session to a specific state.
+ * In most cases,
+ * [current_page][google.cloud.dialogflow.cx.v3.QueryParameters.current_page]
+ * and [parameters][google.cloud.dialogflow.cx.v3.QueryParameters.parameters]
+ * should be configured together to direct a session to a specific state.
*
*
* string current_page = 6 [(.google.api.resource_reference) = { ... }
@@ -483,17 +491,18 @@ public java.lang.String getCurrentPage() {
*
*
*
- * The unique identifier of the [page][google.cloud.dialogflow.cx.v3.Page] to override the [current
- * page][QueryResult.current_page] in the session.
+ * The unique identifier of the [page][google.cloud.dialogflow.cx.v3.Page] to
+ * override the [current page][QueryResult.current_page] in the session.
* Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
* ID>/flows/<Flow ID>/pages/<Page ID>`.
* If `current_page` is specified, the previous state of the session will be
* ignored by Dialogflow, including the [previous
* page][QueryResult.current_page] and the [previous session
* parameters][QueryResult.parameters].
- * In most cases, [current_page][google.cloud.dialogflow.cx.v3.QueryParameters.current_page] and
- * [parameters][google.cloud.dialogflow.cx.v3.QueryParameters.parameters] should be configured together to
- * direct a session to a specific state.
+ * In most cases,
+ * [current_page][google.cloud.dialogflow.cx.v3.QueryParameters.current_page]
+ * and [parameters][google.cloud.dialogflow.cx.v3.QueryParameters.parameters]
+ * should be configured together to direct a session to a specific state.
*
*
* string current_page = 6 [(.google.api.resource_reference) = { ... }
@@ -514,7 +523,7 @@ public com.google.protobuf.ByteString getCurrentPageBytes() {
}
public static final int DISABLE_WEBHOOK_FIELD_NUMBER = 7;
- private boolean disableWebhook_;
+ private boolean disableWebhook_ = false;
/**
*
*
@@ -532,7 +541,7 @@ public boolean getDisableWebhook() {
}
public static final int ANALYZE_QUERY_TEXT_SENTIMENT_FIELD_NUMBER = 8;
- private boolean analyzeQueryTextSentiment_;
+ private boolean analyzeQueryTextSentiment_ = false;
/**
*
*
@@ -563,6 +572,7 @@ private static final class WebhookHeadersDefaultEntryHolder {
"");
}
+ @SuppressWarnings("serial")
private com.google.protobuf.MapField webhookHeaders_;
private com.google.protobuf.MapField
@@ -643,8 +653,10 @@ public java.util.Map getWebhookHeadersMap()
* map<string, string> webhook_headers = 10;
*/
@java.lang.Override
- public java.lang.String getWebhookHeadersOrDefault(
- java.lang.String key, java.lang.String defaultValue) {
+ public /* nullable */ java.lang.String getWebhookHeadersOrDefault(
+ java.lang.String key,
+ /* nullable */
+ java.lang.String defaultValue) {
if (key == null) {
throw new NullPointerException("map key");
}
@@ -680,6 +692,8 @@ public java.lang.String getWebhookHeadersOrThrow(java.lang.String key) {
}
public static final int FLOW_VERSIONS_FIELD_NUMBER = 14;
+
+ @SuppressWarnings("serial")
private com.google.protobuf.LazyStringList flowVersions_;
/**
*
@@ -764,6 +778,77 @@ public com.google.protobuf.ByteString getFlowVersionsBytes(int index) {
return flowVersions_.getByteString(index);
}
+ public static final int CHANNEL_FIELD_NUMBER = 15;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object channel_ = "";
+ /**
+ *
+ *
+ *
+ * The channel which this query is for.
+ * If specified, only the
+ * [ResponseMessage][google.cloud.dialogflow.cx.v3.ResponseMessage] associated
+ * with the channel will be returned. If no
+ * [ResponseMessage][google.cloud.dialogflow.cx.v3.ResponseMessage] is
+ * associated with the channel, it falls back to the
+ * [ResponseMessage][google.cloud.dialogflow.cx.v3.ResponseMessage] with
+ * unspecified channel.
+ * If unspecified, the
+ * [ResponseMessage][google.cloud.dialogflow.cx.v3.ResponseMessage] with
+ * unspecified channel will be returned.
+ *
+ *
+ * string channel = 15;
+ *
+ * @return The channel.
+ */
+ @java.lang.Override
+ public java.lang.String getChannel() {
+ java.lang.Object ref = channel_;
+ 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();
+ channel_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The channel which this query is for.
+ * If specified, only the
+ * [ResponseMessage][google.cloud.dialogflow.cx.v3.ResponseMessage] associated
+ * with the channel will be returned. If no
+ * [ResponseMessage][google.cloud.dialogflow.cx.v3.ResponseMessage] is
+ * associated with the channel, it falls back to the
+ * [ResponseMessage][google.cloud.dialogflow.cx.v3.ResponseMessage] with
+ * unspecified channel.
+ * If unspecified, the
+ * [ResponseMessage][google.cloud.dialogflow.cx.v3.ResponseMessage] with
+ * unspecified channel will be returned.
+ *
+ *
+ * string channel = 15;
+ *
+ * @return The bytes for channel.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getChannelBytes() {
+ java.lang.Object ref = channel_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ channel_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
private byte memoizedIsInitialized = -1;
@java.lang.Override
@@ -807,6 +892,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
for (int i = 0; i < flowVersions_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 14, flowVersions_.getRaw(i));
}
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(channel_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 15, channel_);
+ }
getUnknownFields().writeTo(output);
}
@@ -859,6 +947,9 @@ public int getSerializedSize() {
size += dataSize;
size += 1 * getFlowVersionsList().size();
}
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(channel_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(15, channel_);
+ }
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
@@ -894,6 +985,7 @@ public boolean equals(final java.lang.Object obj) {
if (getAnalyzeQueryTextSentiment() != other.getAnalyzeQueryTextSentiment()) return false;
if (!internalGetWebhookHeaders().equals(other.internalGetWebhookHeaders())) return false;
if (!getFlowVersionsList().equals(other.getFlowVersionsList())) return false;
+ if (!getChannel().equals(other.getChannel())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@@ -937,6 +1029,8 @@ public int hashCode() {
hash = (37 * hash) + FLOW_VERSIONS_FIELD_NUMBER;
hash = (53 * hash) + getFlowVersionsList().hashCode();
}
+ hash = (37 * hash) + CHANNEL_FIELD_NUMBER;
+ hash = (53 * hash) + getChannel().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
@@ -1095,12 +1189,11 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
@java.lang.Override
public Builder clear() {
super.clear();
+ bitField0_ = 0;
timeZone_ = "";
-
- if (geoLocationBuilder_ == null) {
- geoLocation_ = null;
- } else {
- geoLocation_ = null;
+ geoLocation_ = null;
+ if (geoLocationBuilder_ != null) {
+ geoLocationBuilder_.dispose();
geoLocationBuilder_ = null;
}
if (sessionEntityTypesBuilder_ == null) {
@@ -1109,28 +1202,24 @@ public Builder clear() {
sessionEntityTypes_ = null;
sessionEntityTypesBuilder_.clear();
}
- bitField0_ = (bitField0_ & ~0x00000001);
- if (payloadBuilder_ == null) {
- payload_ = null;
- } else {
- payload_ = null;
+ bitField0_ = (bitField0_ & ~0x00000004);
+ payload_ = null;
+ if (payloadBuilder_ != null) {
+ payloadBuilder_.dispose();
payloadBuilder_ = null;
}
- if (parametersBuilder_ == null) {
- parameters_ = null;
- } else {
- parameters_ = null;
+ parameters_ = null;
+ if (parametersBuilder_ != null) {
+ parametersBuilder_.dispose();
parametersBuilder_ = null;
}
currentPage_ = "";
-
disableWebhook_ = false;
-
analyzeQueryTextSentiment_ = false;
-
internalGetMutableWebhookHeaders().clear();
flowVersions_ = com.google.protobuf.LazyStringArrayList.EMPTY;
- bitField0_ = (bitField0_ & ~0x00000004);
+ bitField0_ = (bitField0_ & ~0x00000200);
+ channel_ = "";
return this;
}
@@ -1158,44 +1247,63 @@ public com.google.cloud.dialogflow.cx.v3.QueryParameters build() {
public com.google.cloud.dialogflow.cx.v3.QueryParameters buildPartial() {
com.google.cloud.dialogflow.cx.v3.QueryParameters result =
new com.google.cloud.dialogflow.cx.v3.QueryParameters(this);
- int from_bitField0_ = bitField0_;
- result.timeZone_ = timeZone_;
- if (geoLocationBuilder_ == null) {
- result.geoLocation_ = geoLocation_;
- } else {
- result.geoLocation_ = geoLocationBuilder_.build();
+ buildPartialRepeatedFields(result);
+ if (bitField0_ != 0) {
+ buildPartial0(result);
}
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartialRepeatedFields(
+ com.google.cloud.dialogflow.cx.v3.QueryParameters result) {
if (sessionEntityTypesBuilder_ == null) {
- if (((bitField0_ & 0x00000001) != 0)) {
+ if (((bitField0_ & 0x00000004) != 0)) {
sessionEntityTypes_ = java.util.Collections.unmodifiableList(sessionEntityTypes_);
- bitField0_ = (bitField0_ & ~0x00000001);
+ bitField0_ = (bitField0_ & ~0x00000004);
}
result.sessionEntityTypes_ = sessionEntityTypes_;
} else {
result.sessionEntityTypes_ = sessionEntityTypesBuilder_.build();
}
- if (payloadBuilder_ == null) {
- result.payload_ = payload_;
- } else {
- result.payload_ = payloadBuilder_.build();
- }
- if (parametersBuilder_ == null) {
- result.parameters_ = parameters_;
- } else {
- result.parameters_ = parametersBuilder_.build();
- }
- result.currentPage_ = currentPage_;
- result.disableWebhook_ = disableWebhook_;
- result.analyzeQueryTextSentiment_ = analyzeQueryTextSentiment_;
- result.webhookHeaders_ = internalGetWebhookHeaders();
- result.webhookHeaders_.makeImmutable();
- if (((bitField0_ & 0x00000004) != 0)) {
+ if (((bitField0_ & 0x00000200) != 0)) {
flowVersions_ = flowVersions_.getUnmodifiableView();
- bitField0_ = (bitField0_ & ~0x00000004);
+ bitField0_ = (bitField0_ & ~0x00000200);
}
result.flowVersions_ = flowVersions_;
- onBuilt();
- return result;
+ }
+
+ private void buildPartial0(com.google.cloud.dialogflow.cx.v3.QueryParameters result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.timeZone_ = timeZone_;
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.geoLocation_ =
+ geoLocationBuilder_ == null ? geoLocation_ : geoLocationBuilder_.build();
+ }
+ if (((from_bitField0_ & 0x00000008) != 0)) {
+ result.payload_ = payloadBuilder_ == null ? payload_ : payloadBuilder_.build();
+ }
+ if (((from_bitField0_ & 0x00000010) != 0)) {
+ result.parameters_ = parametersBuilder_ == null ? parameters_ : parametersBuilder_.build();
+ }
+ if (((from_bitField0_ & 0x00000020) != 0)) {
+ result.currentPage_ = currentPage_;
+ }
+ if (((from_bitField0_ & 0x00000040) != 0)) {
+ result.disableWebhook_ = disableWebhook_;
+ }
+ if (((from_bitField0_ & 0x00000080) != 0)) {
+ result.analyzeQueryTextSentiment_ = analyzeQueryTextSentiment_;
+ }
+ if (((from_bitField0_ & 0x00000100) != 0)) {
+ result.webhookHeaders_ = internalGetWebhookHeaders();
+ result.webhookHeaders_.makeImmutable();
+ }
+ if (((from_bitField0_ & 0x00000400) != 0)) {
+ result.channel_ = channel_;
+ }
}
@java.lang.Override
@@ -1246,6 +1354,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.QueryParameters other
return this;
if (!other.getTimeZone().isEmpty()) {
timeZone_ = other.timeZone_;
+ bitField0_ |= 0x00000001;
onChanged();
}
if (other.hasGeoLocation()) {
@@ -1255,7 +1364,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.QueryParameters other
if (!other.sessionEntityTypes_.isEmpty()) {
if (sessionEntityTypes_.isEmpty()) {
sessionEntityTypes_ = other.sessionEntityTypes_;
- bitField0_ = (bitField0_ & ~0x00000001);
+ bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensureSessionEntityTypesIsMutable();
sessionEntityTypes_.addAll(other.sessionEntityTypes_);
@@ -1268,7 +1377,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.QueryParameters other
sessionEntityTypesBuilder_.dispose();
sessionEntityTypesBuilder_ = null;
sessionEntityTypes_ = other.sessionEntityTypes_;
- bitField0_ = (bitField0_ & ~0x00000001);
+ bitField0_ = (bitField0_ & ~0x00000004);
sessionEntityTypesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
? getSessionEntityTypesFieldBuilder()
@@ -1286,6 +1395,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.QueryParameters other
}
if (!other.getCurrentPage().isEmpty()) {
currentPage_ = other.currentPage_;
+ bitField0_ |= 0x00000020;
onChanged();
}
if (other.getDisableWebhook() != false) {
@@ -1295,16 +1405,22 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.QueryParameters other
setAnalyzeQueryTextSentiment(other.getAnalyzeQueryTextSentiment());
}
internalGetMutableWebhookHeaders().mergeFrom(other.internalGetWebhookHeaders());
+ bitField0_ |= 0x00000100;
if (!other.flowVersions_.isEmpty()) {
if (flowVersions_.isEmpty()) {
flowVersions_ = other.flowVersions_;
- bitField0_ = (bitField0_ & ~0x00000004);
+ bitField0_ = (bitField0_ & ~0x00000200);
} else {
ensureFlowVersionsIsMutable();
flowVersions_.addAll(other.flowVersions_);
}
onChanged();
}
+ if (!other.getChannel().isEmpty()) {
+ channel_ = other.channel_;
+ bitField0_ |= 0x00000400;
+ onChanged();
+ }
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
@@ -1334,13 +1450,13 @@ public Builder mergeFrom(
case 10:
{
timeZone_ = input.readStringRequireUtf8();
-
+ bitField0_ |= 0x00000001;
break;
} // case 10
case 18:
{
input.readMessage(getGeoLocationFieldBuilder().getBuilder(), extensionRegistry);
-
+ bitField0_ |= 0x00000002;
break;
} // case 18
case 26:
@@ -1360,31 +1476,31 @@ public Builder mergeFrom(
case 34:
{
input.readMessage(getPayloadFieldBuilder().getBuilder(), extensionRegistry);
-
+ bitField0_ |= 0x00000008;
break;
} // case 34
case 42:
{
input.readMessage(getParametersFieldBuilder().getBuilder(), extensionRegistry);
-
+ bitField0_ |= 0x00000010;
break;
} // case 42
case 50:
{
currentPage_ = input.readStringRequireUtf8();
-
+ bitField0_ |= 0x00000020;
break;
} // case 50
case 56:
{
disableWebhook_ = input.readBool();
-
+ bitField0_ |= 0x00000040;
break;
} // case 56
case 64:
{
analyzeQueryTextSentiment_ = input.readBool();
-
+ bitField0_ |= 0x00000080;
break;
} // case 64
case 82:
@@ -1396,6 +1512,7 @@ public Builder mergeFrom(
internalGetMutableWebhookHeaders()
.getMutableMap()
.put(webhookHeaders__.getKey(), webhookHeaders__.getValue());
+ bitField0_ |= 0x00000100;
break;
} // case 82
case 114:
@@ -1405,6 +1522,12 @@ public Builder mergeFrom(
flowVersions_.add(s);
break;
} // case 114
+ case 122:
+ {
+ channel_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000400;
+ break;
+ } // case 122
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
@@ -1494,8 +1617,8 @@ public Builder setTimeZone(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
-
timeZone_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -1514,8 +1637,8 @@ public Builder setTimeZone(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearTimeZone() {
-
timeZone_ = getDefaultInstance().getTimeZone();
+ bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
@@ -1539,8 +1662,8 @@ public Builder setTimeZoneBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
-
timeZone_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -1561,7 +1684,7 @@ public Builder setTimeZoneBytes(com.google.protobuf.ByteString value) {
* @return Whether the geoLocation field is set.
*/
public boolean hasGeoLocation() {
- return geoLocationBuilder_ != null || geoLocation_ != null;
+ return ((bitField0_ & 0x00000002) != 0);
}
/**
*
@@ -1596,11 +1719,11 @@ public Builder setGeoLocation(com.google.type.LatLng value) {
throw new NullPointerException();
}
geoLocation_ = value;
- onChanged();
} else {
geoLocationBuilder_.setMessage(value);
}
-
+ bitField0_ |= 0x00000002;
+ onChanged();
return this;
}
/**
@@ -1615,11 +1738,11 @@ public Builder setGeoLocation(com.google.type.LatLng value) {
public Builder setGeoLocation(com.google.type.LatLng.Builder builderForValue) {
if (geoLocationBuilder_ == null) {
geoLocation_ = builderForValue.build();
- onChanged();
} else {
geoLocationBuilder_.setMessage(builderForValue.build());
}
-
+ bitField0_ |= 0x00000002;
+ onChanged();
return this;
}
/**
@@ -1633,17 +1756,18 @@ public Builder setGeoLocation(com.google.type.LatLng.Builder builderForValue) {
*/
public Builder mergeGeoLocation(com.google.type.LatLng value) {
if (geoLocationBuilder_ == null) {
- if (geoLocation_ != null) {
- geoLocation_ =
- com.google.type.LatLng.newBuilder(geoLocation_).mergeFrom(value).buildPartial();
+ if (((bitField0_ & 0x00000002) != 0)
+ && geoLocation_ != null
+ && geoLocation_ != com.google.type.LatLng.getDefaultInstance()) {
+ getGeoLocationBuilder().mergeFrom(value);
} else {
geoLocation_ = value;
}
- onChanged();
} else {
geoLocationBuilder_.mergeFrom(value);
}
-
+ bitField0_ |= 0x00000002;
+ onChanged();
return this;
}
/**
@@ -1656,14 +1780,13 @@ public Builder mergeGeoLocation(com.google.type.LatLng value) {
* .google.type.LatLng geo_location = 2;
*/
public Builder clearGeoLocation() {
- if (geoLocationBuilder_ == null) {
- geoLocation_ = null;
- onChanged();
- } else {
- geoLocation_ = null;
+ bitField0_ = (bitField0_ & ~0x00000002);
+ geoLocation_ = null;
+ if (geoLocationBuilder_ != null) {
+ geoLocationBuilder_.dispose();
geoLocationBuilder_ = null;
}
-
+ onChanged();
return this;
}
/**
@@ -1676,7 +1799,7 @@ public Builder clearGeoLocation() {
* .google.type.LatLng geo_location = 2;
*/
public com.google.type.LatLng.Builder getGeoLocationBuilder() {
-
+ bitField0_ |= 0x00000002;
onChanged();
return getGeoLocationFieldBuilder().getBuilder();
}
@@ -1724,11 +1847,11 @@ public com.google.type.LatLngOrBuilder getGeoLocationOrBuilder() {
sessionEntityTypes_ = java.util.Collections.emptyList();
private void ensureSessionEntityTypesIsMutable() {
- if (!((bitField0_ & 0x00000001) != 0)) {
+ if (!((bitField0_ & 0x00000004) != 0)) {
sessionEntityTypes_ =
new java.util.ArrayList(
sessionEntityTypes_);
- bitField0_ |= 0x00000001;
+ bitField0_ |= 0x00000004;
}
}
@@ -1981,7 +2104,7 @@ public Builder addAllSessionEntityTypes(
public Builder clearSessionEntityTypes() {
if (sessionEntityTypesBuilder_ == null) {
sessionEntityTypes_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000001);
+ bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
} else {
sessionEntityTypesBuilder_.clear();
@@ -2130,7 +2253,7 @@ public com.google.cloud.dialogflow.cx.v3.SessionEntityType.Builder addSessionEnt
com.google.cloud.dialogflow.cx.v3.SessionEntityType.Builder,
com.google.cloud.dialogflow.cx.v3.SessionEntityTypeOrBuilder>(
sessionEntityTypes_,
- ((bitField0_ & 0x00000001) != 0),
+ ((bitField0_ & 0x00000004) != 0),
getParentForChildren(),
isClean());
sessionEntityTypes_ = null;
@@ -2168,7 +2291,7 @@ public com.google.cloud.dialogflow.cx.v3.SessionEntityType.Builder addSessionEnt
* @return Whether the payload field is set.
*/
public boolean hasPayload() {
- return payloadBuilder_ != null || payload_ != null;
+ return ((bitField0_ & 0x00000008) != 0);
}
/**
*
@@ -2227,11 +2350,11 @@ public Builder setPayload(com.google.protobuf.Struct value) {
throw new NullPointerException();
}
payload_ = value;
- onChanged();
} else {
payloadBuilder_.setMessage(value);
}
-
+ bitField0_ |= 0x00000008;
+ onChanged();
return this;
}
/**
@@ -2258,11 +2381,11 @@ public Builder setPayload(com.google.protobuf.Struct value) {
public Builder setPayload(com.google.protobuf.Struct.Builder builderForValue) {
if (payloadBuilder_ == null) {
payload_ = builderForValue.build();
- onChanged();
} else {
payloadBuilder_.setMessage(builderForValue.build());
}
-
+ bitField0_ |= 0x00000008;
+ onChanged();
return this;
}
/**
@@ -2288,17 +2411,18 @@ public Builder setPayload(com.google.protobuf.Struct.Builder builderForValue) {
*/
public Builder mergePayload(com.google.protobuf.Struct value) {
if (payloadBuilder_ == null) {
- if (payload_ != null) {
- payload_ =
- com.google.protobuf.Struct.newBuilder(payload_).mergeFrom(value).buildPartial();
+ if (((bitField0_ & 0x00000008) != 0)
+ && payload_ != null
+ && payload_ != com.google.protobuf.Struct.getDefaultInstance()) {
+ getPayloadBuilder().mergeFrom(value);
} else {
payload_ = value;
}
- onChanged();
} else {
payloadBuilder_.mergeFrom(value);
}
-
+ bitField0_ |= 0x00000008;
+ onChanged();
return this;
}
/**
@@ -2323,14 +2447,13 @@ public Builder mergePayload(com.google.protobuf.Struct value) {
* .google.protobuf.Struct payload = 4;
*/
public Builder clearPayload() {
- if (payloadBuilder_ == null) {
- payload_ = null;
- onChanged();
- } else {
- payload_ = null;
+ bitField0_ = (bitField0_ & ~0x00000008);
+ payload_ = null;
+ if (payloadBuilder_ != null) {
+ payloadBuilder_.dispose();
payloadBuilder_ = null;
}
-
+ onChanged();
return this;
}
/**
@@ -2355,7 +2478,7 @@ public Builder clearPayload() {
* .google.protobuf.Struct payload = 4;
*/
public com.google.protobuf.Struct.Builder getPayloadBuilder() {
-
+ bitField0_ |= 0x00000008;
onChanged();
return getPayloadFieldBuilder().getBuilder();
}
@@ -2459,7 +2582,7 @@ public com.google.protobuf.StructOrBuilder getPayloadOrBuilder() {
* @return Whether the parameters field is set.
*/
public boolean hasParameters() {
- return parametersBuilder_ != null || parameters_ != null;
+ return ((bitField0_ & 0x00000010) != 0);
}
/**
*
@@ -2526,11 +2649,11 @@ public Builder setParameters(com.google.protobuf.Struct value) {
throw new NullPointerException();
}
parameters_ = value;
- onChanged();
} else {
parametersBuilder_.setMessage(value);
}
-
+ bitField0_ |= 0x00000010;
+ onChanged();
return this;
}
/**
@@ -2561,11 +2684,11 @@ public Builder setParameters(com.google.protobuf.Struct value) {
public Builder setParameters(com.google.protobuf.Struct.Builder builderForValue) {
if (parametersBuilder_ == null) {
parameters_ = builderForValue.build();
- onChanged();
} else {
parametersBuilder_.setMessage(builderForValue.build());
}
-
+ bitField0_ |= 0x00000010;
+ onChanged();
return this;
}
/**
@@ -2595,17 +2718,18 @@ public Builder setParameters(com.google.protobuf.Struct.Builder builderForValue)
*/
public Builder mergeParameters(com.google.protobuf.Struct value) {
if (parametersBuilder_ == null) {
- if (parameters_ != null) {
- parameters_ =
- com.google.protobuf.Struct.newBuilder(parameters_).mergeFrom(value).buildPartial();
+ if (((bitField0_ & 0x00000010) != 0)
+ && parameters_ != null
+ && parameters_ != com.google.protobuf.Struct.getDefaultInstance()) {
+ getParametersBuilder().mergeFrom(value);
} else {
parameters_ = value;
}
- onChanged();
} else {
parametersBuilder_.mergeFrom(value);
}
-
+ bitField0_ |= 0x00000010;
+ onChanged();
return this;
}
/**
@@ -2634,14 +2758,13 @@ public Builder mergeParameters(com.google.protobuf.Struct value) {
* .google.protobuf.Struct parameters = 5;
*/
public Builder clearParameters() {
- if (parametersBuilder_ == null) {
- parameters_ = null;
- onChanged();
- } else {
- parameters_ = null;
+ bitField0_ = (bitField0_ & ~0x00000010);
+ parameters_ = null;
+ if (parametersBuilder_ != null) {
+ parametersBuilder_.dispose();
parametersBuilder_ = null;
}
-
+ onChanged();
return this;
}
/**
@@ -2670,7 +2793,7 @@ public Builder clearParameters() {
* .google.protobuf.Struct parameters = 5;
*/
public com.google.protobuf.Struct.Builder getParametersBuilder() {
-
+ bitField0_ |= 0x00000010;
onChanged();
return getParametersFieldBuilder().getBuilder();
}
@@ -2753,17 +2876,18 @@ public com.google.protobuf.StructOrBuilder getParametersOrBuilder() {
*
*
*
- * The unique identifier of the [page][google.cloud.dialogflow.cx.v3.Page] to override the [current
- * page][QueryResult.current_page] in the session.
+ * The unique identifier of the [page][google.cloud.dialogflow.cx.v3.Page] to
+ * override the [current page][QueryResult.current_page] in the session.
* Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
* ID>/flows/<Flow ID>/pages/<Page ID>`.
* If `current_page` is specified, the previous state of the session will be
* ignored by Dialogflow, including the [previous
* page][QueryResult.current_page] and the [previous session
* parameters][QueryResult.parameters].
- * In most cases, [current_page][google.cloud.dialogflow.cx.v3.QueryParameters.current_page] and
- * [parameters][google.cloud.dialogflow.cx.v3.QueryParameters.parameters] should be configured together to
- * direct a session to a specific state.
+ * In most cases,
+ * [current_page][google.cloud.dialogflow.cx.v3.QueryParameters.current_page]
+ * and [parameters][google.cloud.dialogflow.cx.v3.QueryParameters.parameters]
+ * should be configured together to direct a session to a specific state.
*
*
* string current_page = 6 [(.google.api.resource_reference) = { ... }
@@ -2785,17 +2909,18 @@ public java.lang.String getCurrentPage() {
*
*
*
- * The unique identifier of the [page][google.cloud.dialogflow.cx.v3.Page] to override the [current
- * page][QueryResult.current_page] in the session.
+ * The unique identifier of the [page][google.cloud.dialogflow.cx.v3.Page] to
+ * override the [current page][QueryResult.current_page] in the session.
* Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
* ID>/flows/<Flow ID>/pages/<Page ID>`.
* If `current_page` is specified, the previous state of the session will be
* ignored by Dialogflow, including the [previous
* page][QueryResult.current_page] and the [previous session
* parameters][QueryResult.parameters].
- * In most cases, [current_page][google.cloud.dialogflow.cx.v3.QueryParameters.current_page] and
- * [parameters][google.cloud.dialogflow.cx.v3.QueryParameters.parameters] should be configured together to
- * direct a session to a specific state.
+ * In most cases,
+ * [current_page][google.cloud.dialogflow.cx.v3.QueryParameters.current_page]
+ * and [parameters][google.cloud.dialogflow.cx.v3.QueryParameters.parameters]
+ * should be configured together to direct a session to a specific state.
*
*
* string current_page = 6 [(.google.api.resource_reference) = { ... }
@@ -2817,17 +2942,18 @@ public com.google.protobuf.ByteString getCurrentPageBytes() {
*
*
*
- * The unique identifier of the [page][google.cloud.dialogflow.cx.v3.Page] to override the [current
- * page][QueryResult.current_page] in the session.
+ * The unique identifier of the [page][google.cloud.dialogflow.cx.v3.Page] to
+ * override the [current page][QueryResult.current_page] in the session.
* Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
* ID>/flows/<Flow ID>/pages/<Page ID>`.
* If `current_page` is specified, the previous state of the session will be
* ignored by Dialogflow, including the [previous
* page][QueryResult.current_page] and the [previous session
* parameters][QueryResult.parameters].
- * In most cases, [current_page][google.cloud.dialogflow.cx.v3.QueryParameters.current_page] and
- * [parameters][google.cloud.dialogflow.cx.v3.QueryParameters.parameters] should be configured together to
- * direct a session to a specific state.
+ * In most cases,
+ * [current_page][google.cloud.dialogflow.cx.v3.QueryParameters.current_page]
+ * and [parameters][google.cloud.dialogflow.cx.v3.QueryParameters.parameters]
+ * should be configured together to direct a session to a specific state.
*
*
* string current_page = 6 [(.google.api.resource_reference) = { ... }
@@ -2839,8 +2965,8 @@ public Builder setCurrentPage(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
-
currentPage_ = value;
+ bitField0_ |= 0x00000020;
onChanged();
return this;
}
@@ -2848,17 +2974,18 @@ public Builder setCurrentPage(java.lang.String value) {
*
*
*
- * The unique identifier of the [page][google.cloud.dialogflow.cx.v3.Page] to override the [current
- * page][QueryResult.current_page] in the session.
+ * The unique identifier of the [page][google.cloud.dialogflow.cx.v3.Page] to
+ * override the [current page][QueryResult.current_page] in the session.
* Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
* ID>/flows/<Flow ID>/pages/<Page ID>`.
* If `current_page` is specified, the previous state of the session will be
* ignored by Dialogflow, including the [previous
* page][QueryResult.current_page] and the [previous session
* parameters][QueryResult.parameters].
- * In most cases, [current_page][google.cloud.dialogflow.cx.v3.QueryParameters.current_page] and
- * [parameters][google.cloud.dialogflow.cx.v3.QueryParameters.parameters] should be configured together to
- * direct a session to a specific state.
+ * In most cases,
+ * [current_page][google.cloud.dialogflow.cx.v3.QueryParameters.current_page]
+ * and [parameters][google.cloud.dialogflow.cx.v3.QueryParameters.parameters]
+ * should be configured together to direct a session to a specific state.
*
*
* string current_page = 6 [(.google.api.resource_reference) = { ... }
@@ -2866,8 +2993,8 @@ public Builder setCurrentPage(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearCurrentPage() {
-
currentPage_ = getDefaultInstance().getCurrentPage();
+ bitField0_ = (bitField0_ & ~0x00000020);
onChanged();
return this;
}
@@ -2875,17 +3002,18 @@ public Builder clearCurrentPage() {
*
*
*
- * The unique identifier of the [page][google.cloud.dialogflow.cx.v3.Page] to override the [current
- * page][QueryResult.current_page] in the session.
+ * The unique identifier of the [page][google.cloud.dialogflow.cx.v3.Page] to
+ * override the [current page][QueryResult.current_page] in the session.
* Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
* ID>/flows/<Flow ID>/pages/<Page ID>`.
* If `current_page` is specified, the previous state of the session will be
* ignored by Dialogflow, including the [previous
* page][QueryResult.current_page] and the [previous session
* parameters][QueryResult.parameters].
- * In most cases, [current_page][google.cloud.dialogflow.cx.v3.QueryParameters.current_page] and
- * [parameters][google.cloud.dialogflow.cx.v3.QueryParameters.parameters] should be configured together to
- * direct a session to a specific state.
+ * In most cases,
+ * [current_page][google.cloud.dialogflow.cx.v3.QueryParameters.current_page]
+ * and [parameters][google.cloud.dialogflow.cx.v3.QueryParameters.parameters]
+ * should be configured together to direct a session to a specific state.
*
*
* string current_page = 6 [(.google.api.resource_reference) = { ... }
@@ -2898,8 +3026,8 @@ public Builder setCurrentPageBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
-
currentPage_ = value;
+ bitField0_ |= 0x00000020;
onChanged();
return this;
}
@@ -2935,6 +3063,7 @@ public boolean getDisableWebhook() {
public Builder setDisableWebhook(boolean value) {
disableWebhook_ = value;
+ bitField0_ |= 0x00000040;
onChanged();
return this;
}
@@ -2950,7 +3079,7 @@ public Builder setDisableWebhook(boolean value) {
* @return This builder for chaining.
*/
public Builder clearDisableWebhook() {
-
+ bitField0_ = (bitField0_ & ~0x00000040);
disableWebhook_ = false;
onChanged();
return this;
@@ -2989,6 +3118,7 @@ public boolean getAnalyzeQueryTextSentiment() {
public Builder setAnalyzeQueryTextSentiment(boolean value) {
analyzeQueryTextSentiment_ = value;
+ bitField0_ |= 0x00000080;
onChanged();
return this;
}
@@ -3005,7 +3135,7 @@ public Builder setAnalyzeQueryTextSentiment(boolean value) {
* @return This builder for chaining.
*/
public Builder clearAnalyzeQueryTextSentiment() {
-
+ bitField0_ = (bitField0_ & ~0x00000080);
analyzeQueryTextSentiment_ = false;
onChanged();
return this;
@@ -3024,8 +3154,6 @@ public Builder clearAnalyzeQueryTextSentiment() {
private com.google.protobuf.MapField
internalGetMutableWebhookHeaders() {
- onChanged();
- ;
if (webhookHeaders_ == null) {
webhookHeaders_ =
com.google.protobuf.MapField.newMapField(WebhookHeadersDefaultEntryHolder.defaultEntry);
@@ -3033,6 +3161,8 @@ public Builder clearAnalyzeQueryTextSentiment() {
if (!webhookHeaders_.isMutable()) {
webhookHeaders_ = webhookHeaders_.copy();
}
+ bitField0_ |= 0x00000100;
+ onChanged();
return webhookHeaders_;
}
@@ -3105,8 +3235,10 @@ public java.util.Map getWebhookHeadersMap()
* map<string, string> webhook_headers = 10;
*/
@java.lang.Override
- public java.lang.String getWebhookHeadersOrDefault(
- java.lang.String key, java.lang.String defaultValue) {
+ public /* nullable */ java.lang.String getWebhookHeadersOrDefault(
+ java.lang.String key,
+ /* nullable */
+ java.lang.String defaultValue) {
if (key == null) {
throw new NullPointerException("map key");
}
@@ -3142,6 +3274,7 @@ public java.lang.String getWebhookHeadersOrThrow(java.lang.String key) {
}
public Builder clearWebhookHeaders() {
+ bitField0_ = (bitField0_ & ~0x00000100);
internalGetMutableWebhookHeaders().getMutableMap().clear();
return this;
}
@@ -3171,6 +3304,7 @@ public Builder removeWebhookHeaders(java.lang.String key) {
/** Use alternate mutation accessors instead. */
@java.lang.Deprecated
public java.util.Map getMutableWebhookHeaders() {
+ bitField0_ |= 0x00000100;
return internalGetMutableWebhookHeaders().getMutableMap();
}
/**
@@ -3196,8 +3330,8 @@ public Builder putWebhookHeaders(java.lang.String key, java.lang.String value) {
if (value == null) {
throw new NullPointerException("map value");
}
-
internalGetMutableWebhookHeaders().getMutableMap().put(key, value);
+ bitField0_ |= 0x00000100;
return this;
}
/**
@@ -3218,6 +3352,7 @@ public Builder putWebhookHeaders(java.lang.String key, java.lang.String value) {
*/
public Builder putAllWebhookHeaders(java.util.Map values) {
internalGetMutableWebhookHeaders().getMutableMap().putAll(values);
+ bitField0_ |= 0x00000100;
return this;
}
@@ -3225,9 +3360,9 @@ public Builder putAllWebhookHeaders(java.util.Map values) {
*/
public Builder clearFlowVersions() {
flowVersions_ = com.google.protobuf.LazyStringArrayList.EMPTY;
- bitField0_ = (bitField0_ & ~0x00000004);
+ bitField0_ = (bitField0_ & ~0x00000200);
onChanged();
return this;
}
@@ -3443,6 +3578,162 @@ public Builder addFlowVersionsBytes(com.google.protobuf.ByteString value) {
return this;
}
+ private java.lang.Object channel_ = "";
+ /**
+ *
+ *
+ *
+ * The channel which this query is for.
+ * If specified, only the
+ * [ResponseMessage][google.cloud.dialogflow.cx.v3.ResponseMessage] associated
+ * with the channel will be returned. If no
+ * [ResponseMessage][google.cloud.dialogflow.cx.v3.ResponseMessage] is
+ * associated with the channel, it falls back to the
+ * [ResponseMessage][google.cloud.dialogflow.cx.v3.ResponseMessage] with
+ * unspecified channel.
+ * If unspecified, the
+ * [ResponseMessage][google.cloud.dialogflow.cx.v3.ResponseMessage] with
+ * unspecified channel will be returned.
+ *
+ *
+ * string channel = 15;
+ *
+ * @return The channel.
+ */
+ public java.lang.String getChannel() {
+ java.lang.Object ref = channel_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ channel_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The channel which this query is for.
+ * If specified, only the
+ * [ResponseMessage][google.cloud.dialogflow.cx.v3.ResponseMessage] associated
+ * with the channel will be returned. If no
+ * [ResponseMessage][google.cloud.dialogflow.cx.v3.ResponseMessage] is
+ * associated with the channel, it falls back to the
+ * [ResponseMessage][google.cloud.dialogflow.cx.v3.ResponseMessage] with
+ * unspecified channel.
+ * If unspecified, the
+ * [ResponseMessage][google.cloud.dialogflow.cx.v3.ResponseMessage] with
+ * unspecified channel will be returned.
+ *
+ *
+ * string channel = 15;
+ *
+ * @return The bytes for channel.
+ */
+ public com.google.protobuf.ByteString getChannelBytes() {
+ java.lang.Object ref = channel_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ channel_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The channel which this query is for.
+ * If specified, only the
+ * [ResponseMessage][google.cloud.dialogflow.cx.v3.ResponseMessage] associated
+ * with the channel will be returned. If no
+ * [ResponseMessage][google.cloud.dialogflow.cx.v3.ResponseMessage] is
+ * associated with the channel, it falls back to the
+ * [ResponseMessage][google.cloud.dialogflow.cx.v3.ResponseMessage] with
+ * unspecified channel.
+ * If unspecified, the
+ * [ResponseMessage][google.cloud.dialogflow.cx.v3.ResponseMessage] with
+ * unspecified channel will be returned.
+ *
+ *
+ * string channel = 15;
+ *
+ * @param value The channel to set.
+ * @return This builder for chaining.
+ */
+ public Builder setChannel(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ channel_ = value;
+ bitField0_ |= 0x00000400;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The channel which this query is for.
+ * If specified, only the
+ * [ResponseMessage][google.cloud.dialogflow.cx.v3.ResponseMessage] associated
+ * with the channel will be returned. If no
+ * [ResponseMessage][google.cloud.dialogflow.cx.v3.ResponseMessage] is
+ * associated with the channel, it falls back to the
+ * [ResponseMessage][google.cloud.dialogflow.cx.v3.ResponseMessage] with
+ * unspecified channel.
+ * If unspecified, the
+ * [ResponseMessage][google.cloud.dialogflow.cx.v3.ResponseMessage] with
+ * unspecified channel will be returned.
+ *
+ *
+ * string channel = 15;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearChannel() {
+ channel_ = getDefaultInstance().getChannel();
+ bitField0_ = (bitField0_ & ~0x00000400);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The channel which this query is for.
+ * If specified, only the
+ * [ResponseMessage][google.cloud.dialogflow.cx.v3.ResponseMessage] associated
+ * with the channel will be returned. If no
+ * [ResponseMessage][google.cloud.dialogflow.cx.v3.ResponseMessage] is
+ * associated with the channel, it falls back to the
+ * [ResponseMessage][google.cloud.dialogflow.cx.v3.ResponseMessage] with
+ * unspecified channel.
+ * If unspecified, the
+ * [ResponseMessage][google.cloud.dialogflow.cx.v3.ResponseMessage] with
+ * unspecified channel will be returned.
+ *
+ *
+ * string channel = 15;
+ *
+ * @param value The bytes for channel to set.
+ * @return This builder for chaining.
+ */
+ public Builder setChannelBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ channel_ = value;
+ bitField0_ |= 0x00000400;
+ onChanged();
+ return this;
+ }
+
@java.lang.Override
public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/QueryParametersOrBuilder.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/QueryParametersOrBuilder.java
index a342d0ad84eb..a5e7ce455f0f 100644
--- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/QueryParametersOrBuilder.java
+++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/QueryParametersOrBuilder.java
@@ -315,17 +315,18 @@ com.google.cloud.dialogflow.cx.v3.SessionEntityTypeOrBuilder getSessionEntityTyp
*
*
*
- * The unique identifier of the [page][google.cloud.dialogflow.cx.v3.Page] to override the [current
- * page][QueryResult.current_page] in the session.
+ * The unique identifier of the [page][google.cloud.dialogflow.cx.v3.Page] to
+ * override the [current page][QueryResult.current_page] in the session.
* Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
* ID>/flows/<Flow ID>/pages/<Page ID>`.
* If `current_page` is specified, the previous state of the session will be
* ignored by Dialogflow, including the [previous
* page][QueryResult.current_page] and the [previous session
* parameters][QueryResult.parameters].
- * In most cases, [current_page][google.cloud.dialogflow.cx.v3.QueryParameters.current_page] and
- * [parameters][google.cloud.dialogflow.cx.v3.QueryParameters.parameters] should be configured together to
- * direct a session to a specific state.
+ * In most cases,
+ * [current_page][google.cloud.dialogflow.cx.v3.QueryParameters.current_page]
+ * and [parameters][google.cloud.dialogflow.cx.v3.QueryParameters.parameters]
+ * should be configured together to direct a session to a specific state.
*
*
* string current_page = 6 [(.google.api.resource_reference) = { ... }
@@ -337,17 +338,18 @@ com.google.cloud.dialogflow.cx.v3.SessionEntityTypeOrBuilder getSessionEntityTyp
*
*
*
- * The unique identifier of the [page][google.cloud.dialogflow.cx.v3.Page] to override the [current
- * page][QueryResult.current_page] in the session.
+ * The unique identifier of the [page][google.cloud.dialogflow.cx.v3.Page] to
+ * override the [current page][QueryResult.current_page] in the session.
* Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
* ID>/flows/<Flow ID>/pages/<Page ID>`.
* If `current_page` is specified, the previous state of the session will be
* ignored by Dialogflow, including the [previous
* page][QueryResult.current_page] and the [previous session
* parameters][QueryResult.parameters].
- * In most cases, [current_page][google.cloud.dialogflow.cx.v3.QueryParameters.current_page] and
- * [parameters][google.cloud.dialogflow.cx.v3.QueryParameters.parameters] should be configured together to
- * direct a session to a specific state.
+ * In most cases,
+ * [current_page][google.cloud.dialogflow.cx.v3.QueryParameters.current_page]
+ * and [parameters][google.cloud.dialogflow.cx.v3.QueryParameters.parameters]
+ * should be configured together to direct a session to a specific state.
*
*
* string current_page = 6 [(.google.api.resource_reference) = { ... }
@@ -453,7 +455,6 @@ com.google.cloud.dialogflow.cx.v3.SessionEntityTypeOrBuilder getSessionEntityTyp
*
* map<string, string> webhook_headers = 10;
*/
-
/* nullable */
java.lang.String getWebhookHeadersOrDefault(
java.lang.String key,
@@ -551,4 +552,49 @@ java.lang.String getWebhookHeadersOrDefault(
* @return The bytes of the flowVersions at the given index.
*/
com.google.protobuf.ByteString getFlowVersionsBytes(int index);
+
+ /**
+ *
+ *
+ *
+ * The channel which this query is for.
+ * If specified, only the
+ * [ResponseMessage][google.cloud.dialogflow.cx.v3.ResponseMessage] associated
+ * with the channel will be returned. If no
+ * [ResponseMessage][google.cloud.dialogflow.cx.v3.ResponseMessage] is
+ * associated with the channel, it falls back to the
+ * [ResponseMessage][google.cloud.dialogflow.cx.v3.ResponseMessage] with
+ * unspecified channel.
+ * If unspecified, the
+ * [ResponseMessage][google.cloud.dialogflow.cx.v3.ResponseMessage] with
+ * unspecified channel will be returned.
+ *
+ *
+ * string channel = 15;
+ *
+ * @return The channel.
+ */
+ java.lang.String getChannel();
+ /**
+ *
+ *
+ *
+ * The channel which this query is for.
+ * If specified, only the
+ * [ResponseMessage][google.cloud.dialogflow.cx.v3.ResponseMessage] associated
+ * with the channel will be returned. If no
+ * [ResponseMessage][google.cloud.dialogflow.cx.v3.ResponseMessage] is
+ * associated with the channel, it falls back to the
+ * [ResponseMessage][google.cloud.dialogflow.cx.v3.ResponseMessage] with
+ * unspecified channel.
+ * If unspecified, the
+ * [ResponseMessage][google.cloud.dialogflow.cx.v3.ResponseMessage] with
+ * unspecified channel will be returned.
+ *
+ *
+ * string channel = 15;
+ *
+ * @return The bytes for channel.
+ */
+ com.google.protobuf.ByteString getChannelBytes();
}
diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/QueryResult.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/QueryResult.java
index 6d7cdae8ff7a..01eabfed435b 100644
--- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/QueryResult.java
+++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/QueryResult.java
@@ -131,8 +131,8 @@ public QueryCase getQueryCase() {
*
*
*
- * If [natural language text][google.cloud.dialogflow.cx.v3.TextInput] was provided as input, this field
- * will contain a copy of the text.
+ * If [natural language text][google.cloud.dialogflow.cx.v3.TextInput] was
+ * provided as input, this field will contain a copy of the text.
*
*
* string text = 1;
@@ -146,8 +146,8 @@ public boolean hasText() {
*
*
*
- * If [natural language text][google.cloud.dialogflow.cx.v3.TextInput] was provided as input, this field
- * will contain a copy of the text.
+ * If [natural language text][google.cloud.dialogflow.cx.v3.TextInput] was
+ * provided as input, this field will contain a copy of the text.
*
*
* string text = 1;
@@ -174,8 +174,8 @@ public java.lang.String getText() {
*
*
*
- * If [natural language text][google.cloud.dialogflow.cx.v3.TextInput] was provided as input, this field
- * will contain a copy of the text.
+ * If [natural language text][google.cloud.dialogflow.cx.v3.TextInput] was
+ * provided as input, this field will contain a copy of the text.
*
*
* string text = 1;
@@ -204,9 +204,9 @@ public com.google.protobuf.ByteString getTextBytes() {
*
*
*
- * If an [intent][google.cloud.dialogflow.cx.v3.IntentInput] was provided as input, this field will
- * contain a copy of the intent identifier.
- * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+ * If an [intent][google.cloud.dialogflow.cx.v3.IntentInput] was provided as
+ * input, this field will contain a copy of the intent identifier. Format:
+ * `projects/<Project ID>/locations/<Location ID>/agents/<Agent
* ID>/intents/<Intent ID>`.
*
*
@@ -221,9 +221,9 @@ public boolean hasTriggerIntent() {
*
*
*
- * If an [intent][google.cloud.dialogflow.cx.v3.IntentInput] was provided as input, this field will
- * contain a copy of the intent identifier.
- * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+ * If an [intent][google.cloud.dialogflow.cx.v3.IntentInput] was provided as
+ * input, this field will contain a copy of the intent identifier. Format:
+ * `projects/<Project ID>/locations/<Location ID>/agents/<Agent
* ID>/intents/<Intent ID>`.
*
*
@@ -251,9 +251,9 @@ public java.lang.String getTriggerIntent() {
*
*
*
- * If an [intent][google.cloud.dialogflow.cx.v3.IntentInput] was provided as input, this field will
- * contain a copy of the intent identifier.
- * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+ * If an [intent][google.cloud.dialogflow.cx.v3.IntentInput] was provided as
+ * input, this field will contain a copy of the intent identifier. Format:
+ * `projects/<Project ID>/locations/<Location ID>/agents/<Agent
* ID>/intents/<Intent ID>`.
*
*
@@ -283,7 +283,8 @@ public com.google.protobuf.ByteString getTriggerIntentBytes() {
*
*
*
- * If [natural language speech audio][google.cloud.dialogflow.cx.v3.AudioInput] was provided as input,
+ * If [natural language speech
+ * audio][google.cloud.dialogflow.cx.v3.AudioInput] was provided as input,
* this field will contain the transcript for the audio.
*
*
@@ -298,7 +299,8 @@ public boolean hasTranscript() {
*
*
*
- * If [natural language speech audio][google.cloud.dialogflow.cx.v3.AudioInput] was provided as input,
+ * If [natural language speech
+ * audio][google.cloud.dialogflow.cx.v3.AudioInput] was provided as input,
* this field will contain the transcript for the audio.
*
*
@@ -326,7 +328,8 @@ public java.lang.String getTranscript() {
*
*
*
- * If [natural language speech audio][google.cloud.dialogflow.cx.v3.AudioInput] was provided as input,
+ * If [natural language speech
+ * audio][google.cloud.dialogflow.cx.v3.AudioInput] was provided as input,
* this field will contain the transcript for the audio.
*
*
@@ -356,8 +359,8 @@ public com.google.protobuf.ByteString getTranscriptBytes() {
*
*
*
- * If an [event][google.cloud.dialogflow.cx.v3.EventInput] was provided as input, this field will contain
- * the name of the event.
+ * If an [event][google.cloud.dialogflow.cx.v3.EventInput] was provided as
+ * input, this field will contain the name of the event.
*
*
* string trigger_event = 14;
@@ -371,8 +374,8 @@ public boolean hasTriggerEvent() {
*
*
*
- * If an [event][google.cloud.dialogflow.cx.v3.EventInput] was provided as input, this field will contain
- * the name of the event.
+ * If an [event][google.cloud.dialogflow.cx.v3.EventInput] was provided as
+ * input, this field will contain the name of the event.
*
*
* string trigger_event = 14;
@@ -399,8 +402,8 @@ public java.lang.String getTriggerEvent() {
*
*
*
- * If an [event][google.cloud.dialogflow.cx.v3.EventInput] was provided as input, this field will contain
- * the name of the event.
+ * If an [event][google.cloud.dialogflow.cx.v3.EventInput] was provided as
+ * input, this field will contain the name of the event.
*
*
* string trigger_event = 14;
@@ -479,7 +482,9 @@ public com.google.cloud.dialogflow.cx.v3.DtmfInputOrBuilder getDtmfOrBuilder() {
}
public static final int LANGUAGE_CODE_FIELD_NUMBER = 2;
- private volatile java.lang.Object languageCode_;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object languageCode_ = "";
/**
*
*
@@ -539,7 +544,8 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() {
*
*
*
- * The collected [session parameters][google.cloud.dialogflow.cx.v3.SessionInfo.parameters].
+ * The collected [session
+ * parameters][google.cloud.dialogflow.cx.v3.SessionInfo.parameters].
* 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:
@@ -565,7 +571,8 @@ public boolean hasParameters() {
*
*
*
- * The collected [session parameters][google.cloud.dialogflow.cx.v3.SessionInfo.parameters].
+ * The collected [session
+ * parameters][google.cloud.dialogflow.cx.v3.SessionInfo.parameters].
* 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:
@@ -591,7 +598,8 @@ public com.google.protobuf.Struct getParameters() {
*
*
*
- * The collected [session parameters][google.cloud.dialogflow.cx.v3.SessionInfo.parameters].
+ * The collected [session
+ * parameters][google.cloud.dialogflow.cx.v3.SessionInfo.parameters].
* 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:
@@ -609,10 +617,12 @@ public com.google.protobuf.Struct getParameters() {
*/
@java.lang.Override
public com.google.protobuf.StructOrBuilder getParametersOrBuilder() {
- return getParameters();
+ return parameters_ == null ? com.google.protobuf.Struct.getDefaultInstance() : parameters_;
}
public static final int RESPONSE_MESSAGES_FIELD_NUMBER = 4;
+
+ @SuppressWarnings("serial")
private java.util.List responseMessages_;
/**
*
@@ -694,6 +704,8 @@ public com.google.cloud.dialogflow.cx.v3.ResponseMessageOrBuilder getResponseMes
}
public static final int WEBHOOK_STATUSES_FIELD_NUMBER = 13;
+
+ @SuppressWarnings("serial")
private java.util.List webhookStatuses_;
/**
*
@@ -763,13 +775,16 @@ public com.google.rpc.StatusOrBuilder getWebhookStatusesOrBuilder(int index) {
}
public static final int WEBHOOK_PAYLOADS_FIELD_NUMBER = 6;
+
+ @SuppressWarnings("serial")
private java.util.List webhookPayloads_;
/**
*
*
*
- * The list of webhook payload in [WebhookResponse.payload][google.cloud.dialogflow.cx.v3.WebhookResponse.payload], in
- * the order of call sequence. If some webhook call fails or doesn't return
+ * The list of webhook payload in
+ * [WebhookResponse.payload][google.cloud.dialogflow.cx.v3.WebhookResponse.payload],
+ * in the order of call sequence. If some webhook call fails or doesn't return
* any payload, an empty `Struct` would be used instead.
*
*
@@ -783,8 +798,9 @@ public java.util.List getWebhookPayloadsList() {
*
*
*
- * The list of webhook payload in [WebhookResponse.payload][google.cloud.dialogflow.cx.v3.WebhookResponse.payload], in
- * the order of call sequence. If some webhook call fails or doesn't return
+ * The list of webhook payload in
+ * [WebhookResponse.payload][google.cloud.dialogflow.cx.v3.WebhookResponse.payload],
+ * in the order of call sequence. If some webhook call fails or doesn't return
* any payload, an empty `Struct` would be used instead.
*
*
@@ -799,8 +815,9 @@ public java.util.List getWebhookPayloadsList() {
*
*
*
- * The list of webhook payload in [WebhookResponse.payload][google.cloud.dialogflow.cx.v3.WebhookResponse.payload], in
- * the order of call sequence. If some webhook call fails or doesn't return
+ * The list of webhook payload in
+ * [WebhookResponse.payload][google.cloud.dialogflow.cx.v3.WebhookResponse.payload],
+ * in the order of call sequence. If some webhook call fails or doesn't return
* any payload, an empty `Struct` would be used instead.
*
*
@@ -814,8 +831,9 @@ public int getWebhookPayloadsCount() {
*
*
*
- * The list of webhook payload in [WebhookResponse.payload][google.cloud.dialogflow.cx.v3.WebhookResponse.payload], in
- * the order of call sequence. If some webhook call fails or doesn't return
+ * The list of webhook payload in
+ * [WebhookResponse.payload][google.cloud.dialogflow.cx.v3.WebhookResponse.payload],
+ * in the order of call sequence. If some webhook call fails or doesn't return
* any payload, an empty `Struct` would be used instead.
*
*
@@ -829,8 +847,9 @@ public com.google.protobuf.Struct getWebhookPayloads(int index) {
*
*
*
- * The list of webhook payload in [WebhookResponse.payload][google.cloud.dialogflow.cx.v3.WebhookResponse.payload], in
- * the order of call sequence. If some webhook call fails or doesn't return
+ * The list of webhook payload in
+ * [WebhookResponse.payload][google.cloud.dialogflow.cx.v3.WebhookResponse.payload],
+ * in the order of call sequence. If some webhook call fails or doesn't return
* any payload, an empty `Struct` would be used instead.
*
*
@@ -847,8 +866,9 @@ public com.google.protobuf.StructOrBuilder getWebhookPayloadsOrBuilder(int index
*
*
*
- * The current [Page][google.cloud.dialogflow.cx.v3.Page]. Some, not all fields are filled in this message,
- * including but not limited to `name` and `display_name`.
+ * The current [Page][google.cloud.dialogflow.cx.v3.Page]. Some, not all
+ * fields are filled in this message, including but not limited to `name` and
+ * `display_name`.
*
*
* .google.cloud.dialogflow.cx.v3.Page current_page = 7;
@@ -863,8 +883,9 @@ public boolean hasCurrentPage() {
*
*
*
- * The current [Page][google.cloud.dialogflow.cx.v3.Page]. Some, not all fields are filled in this message,
- * including but not limited to `name` and `display_name`.
+ * The current [Page][google.cloud.dialogflow.cx.v3.Page]. Some, not all
+ * fields are filled in this message, including but not limited to `name` and
+ * `display_name`.
*
*
* .google.cloud.dialogflow.cx.v3.Page current_page = 7;
@@ -881,15 +902,18 @@ public com.google.cloud.dialogflow.cx.v3.Page getCurrentPage() {
*
*
*
- * The current [Page][google.cloud.dialogflow.cx.v3.Page]. Some, not all fields are filled in this message,
- * including but not limited to `name` and `display_name`.
+ * The current [Page][google.cloud.dialogflow.cx.v3.Page]. Some, not all
+ * fields are filled in this message, including but not limited to `name` and
+ * `display_name`.
*
*
* .google.cloud.dialogflow.cx.v3.Page current_page = 7;
*/
@java.lang.Override
public com.google.cloud.dialogflow.cx.v3.PageOrBuilder getCurrentPageOrBuilder() {
- return getCurrentPage();
+ return currentPage_ == null
+ ? com.google.cloud.dialogflow.cx.v3.Page.getDefaultInstance()
+ : currentPage_;
}
public static final int INTENT_FIELD_NUMBER = 8;
@@ -898,16 +922,18 @@ public com.google.cloud.dialogflow.cx.v3.PageOrBuilder getCurrentPageOrBuilder()
*
*
*
- * The [Intent][google.cloud.dialogflow.cx.v3.Intent] that matched the conversational query. Some, not all fields
- * are filled in this message, including but not limited to: `name` and
- * `display_name`.
- * This field is deprecated, please use [QueryResult.match][google.cloud.dialogflow.cx.v3.QueryResult.match] instead.
+ * The [Intent][google.cloud.dialogflow.cx.v3.Intent] that matched the
+ * conversational query. Some, not all fields are filled in this message,
+ * including but not limited to: `name` and `display_name`. This field is
+ * deprecated, please use
+ * [QueryResult.match][google.cloud.dialogflow.cx.v3.QueryResult.match]
+ * instead.
*
*
* .google.cloud.dialogflow.cx.v3.Intent intent = 8 [deprecated = true];
*
* @deprecated google.cloud.dialogflow.cx.v3.QueryResult.intent is deprecated. See
- * google/cloud/dialogflow/cx/v3/session.proto;l=604
+ * google/cloud/dialogflow/cx/v3/session.proto;l=642
* @return Whether the intent field is set.
*/
@java.lang.Override
@@ -919,16 +945,18 @@ public boolean hasIntent() {
*
*
*
- * The [Intent][google.cloud.dialogflow.cx.v3.Intent] that matched the conversational query. Some, not all fields
- * are filled in this message, including but not limited to: `name` and
- * `display_name`.
- * This field is deprecated, please use [QueryResult.match][google.cloud.dialogflow.cx.v3.QueryResult.match] instead.
+ * The [Intent][google.cloud.dialogflow.cx.v3.Intent] that matched the
+ * conversational query. Some, not all fields are filled in this message,
+ * including but not limited to: `name` and `display_name`. This field is
+ * deprecated, please use
+ * [QueryResult.match][google.cloud.dialogflow.cx.v3.QueryResult.match]
+ * instead.
*
*
* .google.cloud.dialogflow.cx.v3.Intent intent = 8 [deprecated = true];
*
* @deprecated google.cloud.dialogflow.cx.v3.QueryResult.intent is deprecated. See
- * google/cloud/dialogflow/cx/v3/session.proto;l=604
+ * google/cloud/dialogflow/cx/v3/session.proto;l=642
* @return The intent.
*/
@java.lang.Override
@@ -942,10 +970,12 @@ public com.google.cloud.dialogflow.cx.v3.Intent getIntent() {
*
*
*
- * The [Intent][google.cloud.dialogflow.cx.v3.Intent] that matched the conversational query. Some, not all fields
- * are filled in this message, including but not limited to: `name` and
- * `display_name`.
- * This field is deprecated, please use [QueryResult.match][google.cloud.dialogflow.cx.v3.QueryResult.match] instead.
+ * The [Intent][google.cloud.dialogflow.cx.v3.Intent] that matched the
+ * conversational query. Some, not all fields are filled in this message,
+ * including but not limited to: `name` and `display_name`. This field is
+ * deprecated, please use
+ * [QueryResult.match][google.cloud.dialogflow.cx.v3.QueryResult.match]
+ * instead.
*
*
* .google.cloud.dialogflow.cx.v3.Intent intent = 8 [deprecated = true];
@@ -953,11 +983,13 @@ public com.google.cloud.dialogflow.cx.v3.Intent getIntent() {
@java.lang.Override
@java.lang.Deprecated
public com.google.cloud.dialogflow.cx.v3.IntentOrBuilder getIntentOrBuilder() {
- return getIntent();
+ return intent_ == null
+ ? com.google.cloud.dialogflow.cx.v3.Intent.getDefaultInstance()
+ : intent_;
}
public static final int INTENT_DETECTION_CONFIDENCE_FIELD_NUMBER = 9;
- private float intentDetectionConfidence_;
+ private float intentDetectionConfidence_ = 0F;
/**
*
*
@@ -968,13 +1000,15 @@ public com.google.cloud.dialogflow.cx.v3.IntentOrBuilder getIntentOrBuilder() {
* help match the best intent within the classification threshold.
* This value may change for the same end-user expression at any time due to a
* model retraining or change in implementation.
- * This field is deprecated, please use [QueryResult.match][google.cloud.dialogflow.cx.v3.QueryResult.match] instead.
+ * This field is deprecated, please use
+ * [QueryResult.match][google.cloud.dialogflow.cx.v3.QueryResult.match]
+ * instead.
*
*
* float intent_detection_confidence = 9 [deprecated = true];
*
* @deprecated google.cloud.dialogflow.cx.v3.QueryResult.intent_detection_confidence is
- * deprecated. See google/cloud/dialogflow/cx/v3/session.proto;l=613
+ * deprecated. See google/cloud/dialogflow/cx/v3/session.proto;l=653
* @return The intentDetectionConfidence.
*/
@java.lang.Override
@@ -1026,7 +1060,7 @@ public com.google.cloud.dialogflow.cx.v3.Match getMatch() {
*/
@java.lang.Override
public com.google.cloud.dialogflow.cx.v3.MatchOrBuilder getMatchOrBuilder() {
- return getMatch();
+ return match_ == null ? com.google.cloud.dialogflow.cx.v3.Match.getDefaultInstance() : match_;
}
public static final int DIAGNOSTIC_INFO_FIELD_NUMBER = 10;
@@ -1116,7 +1150,9 @@ public com.google.protobuf.Struct getDiagnosticInfo() {
*/
@java.lang.Override
public com.google.protobuf.StructOrBuilder getDiagnosticInfoOrBuilder() {
- return getDiagnosticInfo();
+ return diagnosticInfo_ == null
+ ? com.google.protobuf.Struct.getDefaultInstance()
+ : diagnosticInfo_;
}
public static final int SENTIMENT_ANALYSIS_RESULT_FIELD_NUMBER = 17;
@@ -1127,7 +1163,8 @@ public com.google.protobuf.StructOrBuilder getDiagnosticInfoOrBuilder() {
*
* The sentiment analyss result, which depends on
* [`analyze_query_text_sentiment`]
- * [google.cloud.dialogflow.cx.v3.QueryParameters.analyze_query_text_sentiment], specified in the request.
+ * [google.cloud.dialogflow.cx.v3.QueryParameters.analyze_query_text_sentiment],
+ * specified in the request.
*
*
* .google.cloud.dialogflow.cx.v3.SentimentAnalysisResult sentiment_analysis_result = 17;
@@ -1145,7 +1182,8 @@ public boolean hasSentimentAnalysisResult() {
*
* The sentiment analyss result, which depends on
* [`analyze_query_text_sentiment`]
- * [google.cloud.dialogflow.cx.v3.QueryParameters.analyze_query_text_sentiment], specified in the request.
+ * [google.cloud.dialogflow.cx.v3.QueryParameters.analyze_query_text_sentiment],
+ * specified in the request.
*
*
* .google.cloud.dialogflow.cx.v3.SentimentAnalysisResult sentiment_analysis_result = 17;
@@ -1165,7 +1203,8 @@ public com.google.cloud.dialogflow.cx.v3.SentimentAnalysisResult getSentimentAna
*
* The sentiment analyss result, which depends on
* [`analyze_query_text_sentiment`]
- * [google.cloud.dialogflow.cx.v3.QueryParameters.analyze_query_text_sentiment], specified in the request.
+ * [google.cloud.dialogflow.cx.v3.QueryParameters.analyze_query_text_sentiment],
+ * specified in the request.
*
*
* .google.cloud.dialogflow.cx.v3.SentimentAnalysisResult sentiment_analysis_result = 17;
@@ -1174,7 +1213,9 @@ public com.google.cloud.dialogflow.cx.v3.SentimentAnalysisResult getSentimentAna
@java.lang.Override
public com.google.cloud.dialogflow.cx.v3.SentimentAnalysisResultOrBuilder
getSentimentAnalysisResultOrBuilder() {
- return getSentimentAnalysisResult();
+ return sentimentAnalysisResult_ == null
+ ? com.google.cloud.dialogflow.cx.v3.SentimentAnalysisResult.getDefaultInstance()
+ : sentimentAnalysisResult_;
}
private byte memoizedIsInitialized = -1;
@@ -1579,15 +1620,14 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
@java.lang.Override
public Builder clear() {
super.clear();
+ bitField0_ = 0;
if (dtmfBuilder_ != null) {
dtmfBuilder_.clear();
}
languageCode_ = "";
-
- if (parametersBuilder_ == null) {
- parameters_ = null;
- } else {
- parameters_ = null;
+ parameters_ = null;
+ if (parametersBuilder_ != null) {
+ parametersBuilder_.dispose();
parametersBuilder_ = null;
}
if (responseMessagesBuilder_ == null) {
@@ -1596,51 +1636,45 @@ public Builder clear() {
responseMessages_ = null;
responseMessagesBuilder_.clear();
}
- bitField0_ = (bitField0_ & ~0x00000001);
+ bitField0_ = (bitField0_ & ~0x00000080);
if (webhookStatusesBuilder_ == null) {
webhookStatuses_ = java.util.Collections.emptyList();
} else {
webhookStatuses_ = null;
webhookStatusesBuilder_.clear();
}
- bitField0_ = (bitField0_ & ~0x00000002);
+ bitField0_ = (bitField0_ & ~0x00000100);
if (webhookPayloadsBuilder_ == null) {
webhookPayloads_ = java.util.Collections.emptyList();
} else {
webhookPayloads_ = null;
webhookPayloadsBuilder_.clear();
}
- bitField0_ = (bitField0_ & ~0x00000004);
- if (currentPageBuilder_ == null) {
- currentPage_ = null;
- } else {
- currentPage_ = null;
+ bitField0_ = (bitField0_ & ~0x00000200);
+ currentPage_ = null;
+ if (currentPageBuilder_ != null) {
+ currentPageBuilder_.dispose();
currentPageBuilder_ = null;
}
- if (intentBuilder_ == null) {
- intent_ = null;
- } else {
- intent_ = null;
+ intent_ = null;
+ if (intentBuilder_ != null) {
+ intentBuilder_.dispose();
intentBuilder_ = null;
}
intentDetectionConfidence_ = 0F;
-
- if (matchBuilder_ == null) {
- match_ = null;
- } else {
- match_ = null;
+ match_ = null;
+ if (matchBuilder_ != null) {
+ matchBuilder_.dispose();
matchBuilder_ = null;
}
- if (diagnosticInfoBuilder_ == null) {
- diagnosticInfo_ = null;
- } else {
- diagnosticInfo_ = null;
+ diagnosticInfo_ = null;
+ if (diagnosticInfoBuilder_ != null) {
+ diagnosticInfoBuilder_.dispose();
diagnosticInfoBuilder_ = null;
}
- if (sentimentAnalysisResultBuilder_ == null) {
- sentimentAnalysisResult_ = null;
- } else {
- sentimentAnalysisResult_ = null;
+ sentimentAnalysisResult_ = null;
+ if (sentimentAnalysisResultBuilder_ != null) {
+ sentimentAnalysisResultBuilder_.dispose();
sentimentAnalysisResultBuilder_ = null;
}
queryCase_ = 0;
@@ -1672,88 +1706,84 @@ public com.google.cloud.dialogflow.cx.v3.QueryResult build() {
public com.google.cloud.dialogflow.cx.v3.QueryResult buildPartial() {
com.google.cloud.dialogflow.cx.v3.QueryResult result =
new com.google.cloud.dialogflow.cx.v3.QueryResult(this);
- int from_bitField0_ = bitField0_;
- if (queryCase_ == 1) {
- result.query_ = query_;
- }
- if (queryCase_ == 11) {
- result.query_ = query_;
- }
- if (queryCase_ == 12) {
- result.query_ = query_;
- }
- if (queryCase_ == 14) {
- result.query_ = query_;
- }
- if (queryCase_ == 23) {
- if (dtmfBuilder_ == null) {
- result.query_ = query_;
- } else {
- result.query_ = dtmfBuilder_.build();
- }
- }
- result.languageCode_ = languageCode_;
- if (parametersBuilder_ == null) {
- result.parameters_ = parameters_;
- } else {
- result.parameters_ = parametersBuilder_.build();
+ buildPartialRepeatedFields(result);
+ if (bitField0_ != 0) {
+ buildPartial0(result);
}
+ buildPartialOneofs(result);
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartialRepeatedFields(com.google.cloud.dialogflow.cx.v3.QueryResult result) {
if (responseMessagesBuilder_ == null) {
- if (((bitField0_ & 0x00000001) != 0)) {
+ if (((bitField0_ & 0x00000080) != 0)) {
responseMessages_ = java.util.Collections.unmodifiableList(responseMessages_);
- bitField0_ = (bitField0_ & ~0x00000001);
+ bitField0_ = (bitField0_ & ~0x00000080);
}
result.responseMessages_ = responseMessages_;
} else {
result.responseMessages_ = responseMessagesBuilder_.build();
}
if (webhookStatusesBuilder_ == null) {
- if (((bitField0_ & 0x00000002) != 0)) {
+ if (((bitField0_ & 0x00000100) != 0)) {
webhookStatuses_ = java.util.Collections.unmodifiableList(webhookStatuses_);
- bitField0_ = (bitField0_ & ~0x00000002);
+ bitField0_ = (bitField0_ & ~0x00000100);
}
result.webhookStatuses_ = webhookStatuses_;
} else {
result.webhookStatuses_ = webhookStatusesBuilder_.build();
}
if (webhookPayloadsBuilder_ == null) {
- if (((bitField0_ & 0x00000004) != 0)) {
+ if (((bitField0_ & 0x00000200) != 0)) {
webhookPayloads_ = java.util.Collections.unmodifiableList(webhookPayloads_);
- bitField0_ = (bitField0_ & ~0x00000004);
+ bitField0_ = (bitField0_ & ~0x00000200);
}
result.webhookPayloads_ = webhookPayloads_;
} else {
result.webhookPayloads_ = webhookPayloadsBuilder_.build();
}
- if (currentPageBuilder_ == null) {
- result.currentPage_ = currentPage_;
- } else {
- result.currentPage_ = currentPageBuilder_.build();
+ }
+
+ private void buildPartial0(com.google.cloud.dialogflow.cx.v3.QueryResult result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000020) != 0)) {
+ result.languageCode_ = languageCode_;
}
- if (intentBuilder_ == null) {
- result.intent_ = intent_;
- } else {
- result.intent_ = intentBuilder_.build();
+ if (((from_bitField0_ & 0x00000040) != 0)) {
+ result.parameters_ = parametersBuilder_ == null ? parameters_ : parametersBuilder_.build();
}
- result.intentDetectionConfidence_ = intentDetectionConfidence_;
- if (matchBuilder_ == null) {
- result.match_ = match_;
- } else {
- result.match_ = matchBuilder_.build();
+ if (((from_bitField0_ & 0x00000400) != 0)) {
+ result.currentPage_ =
+ currentPageBuilder_ == null ? currentPage_ : currentPageBuilder_.build();
}
- if (diagnosticInfoBuilder_ == null) {
- result.diagnosticInfo_ = diagnosticInfo_;
- } else {
- result.diagnosticInfo_ = diagnosticInfoBuilder_.build();
+ if (((from_bitField0_ & 0x00000800) != 0)) {
+ result.intent_ = intentBuilder_ == null ? intent_ : intentBuilder_.build();
}
- if (sentimentAnalysisResultBuilder_ == null) {
- result.sentimentAnalysisResult_ = sentimentAnalysisResult_;
- } else {
- result.sentimentAnalysisResult_ = sentimentAnalysisResultBuilder_.build();
+ if (((from_bitField0_ & 0x00001000) != 0)) {
+ result.intentDetectionConfidence_ = intentDetectionConfidence_;
+ }
+ if (((from_bitField0_ & 0x00002000) != 0)) {
+ result.match_ = matchBuilder_ == null ? match_ : matchBuilder_.build();
+ }
+ if (((from_bitField0_ & 0x00004000) != 0)) {
+ result.diagnosticInfo_ =
+ diagnosticInfoBuilder_ == null ? diagnosticInfo_ : diagnosticInfoBuilder_.build();
}
+ if (((from_bitField0_ & 0x00008000) != 0)) {
+ result.sentimentAnalysisResult_ =
+ sentimentAnalysisResultBuilder_ == null
+ ? sentimentAnalysisResult_
+ : sentimentAnalysisResultBuilder_.build();
+ }
+ }
+
+ private void buildPartialOneofs(com.google.cloud.dialogflow.cx.v3.QueryResult result) {
result.queryCase_ = queryCase_;
- onBuilt();
- return result;
+ result.query_ = this.query_;
+ if (queryCase_ == 23 && dtmfBuilder_ != null) {
+ result.query_ = dtmfBuilder_.build();
+ }
}
@java.lang.Override
@@ -1803,6 +1833,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.QueryResult other) {
if (other == com.google.cloud.dialogflow.cx.v3.QueryResult.getDefaultInstance()) return this;
if (!other.getLanguageCode().isEmpty()) {
languageCode_ = other.languageCode_;
+ bitField0_ |= 0x00000020;
onChanged();
}
if (other.hasParameters()) {
@@ -1812,7 +1843,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.QueryResult other) {
if (!other.responseMessages_.isEmpty()) {
if (responseMessages_.isEmpty()) {
responseMessages_ = other.responseMessages_;
- bitField0_ = (bitField0_ & ~0x00000001);
+ bitField0_ = (bitField0_ & ~0x00000080);
} else {
ensureResponseMessagesIsMutable();
responseMessages_.addAll(other.responseMessages_);
@@ -1825,7 +1856,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.QueryResult other) {
responseMessagesBuilder_.dispose();
responseMessagesBuilder_ = null;
responseMessages_ = other.responseMessages_;
- bitField0_ = (bitField0_ & ~0x00000001);
+ bitField0_ = (bitField0_ & ~0x00000080);
responseMessagesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
? getResponseMessagesFieldBuilder()
@@ -1839,7 +1870,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.QueryResult other) {
if (!other.webhookStatuses_.isEmpty()) {
if (webhookStatuses_.isEmpty()) {
webhookStatuses_ = other.webhookStatuses_;
- bitField0_ = (bitField0_ & ~0x00000002);
+ bitField0_ = (bitField0_ & ~0x00000100);
} else {
ensureWebhookStatusesIsMutable();
webhookStatuses_.addAll(other.webhookStatuses_);
@@ -1852,7 +1883,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.QueryResult other) {
webhookStatusesBuilder_.dispose();
webhookStatusesBuilder_ = null;
webhookStatuses_ = other.webhookStatuses_;
- bitField0_ = (bitField0_ & ~0x00000002);
+ bitField0_ = (bitField0_ & ~0x00000100);
webhookStatusesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
? getWebhookStatusesFieldBuilder()
@@ -1866,7 +1897,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.QueryResult other) {
if (!other.webhookPayloads_.isEmpty()) {
if (webhookPayloads_.isEmpty()) {
webhookPayloads_ = other.webhookPayloads_;
- bitField0_ = (bitField0_ & ~0x00000004);
+ bitField0_ = (bitField0_ & ~0x00000200);
} else {
ensureWebhookPayloadsIsMutable();
webhookPayloads_.addAll(other.webhookPayloads_);
@@ -1879,7 +1910,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.QueryResult other) {
webhookPayloadsBuilder_.dispose();
webhookPayloadsBuilder_ = null;
webhookPayloads_ = other.webhookPayloads_;
- bitField0_ = (bitField0_ & ~0x00000004);
+ bitField0_ = (bitField0_ & ~0x00000200);
webhookPayloadsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
? getWebhookPayloadsFieldBuilder()
@@ -1982,13 +2013,13 @@ public Builder mergeFrom(
case 18:
{
languageCode_ = input.readStringRequireUtf8();
-
+ bitField0_ |= 0x00000020;
break;
} // case 18
case 26:
{
input.readMessage(getParametersFieldBuilder().getBuilder(), extensionRegistry);
-
+ bitField0_ |= 0x00000040;
break;
} // case 26
case 34:
@@ -2020,25 +2051,25 @@ public Builder mergeFrom(
case 58:
{
input.readMessage(getCurrentPageFieldBuilder().getBuilder(), extensionRegistry);
-
+ bitField0_ |= 0x00000400;
break;
} // case 58
case 66:
{
input.readMessage(getIntentFieldBuilder().getBuilder(), extensionRegistry);
-
+ bitField0_ |= 0x00000800;
break;
} // case 66
case 77:
{
intentDetectionConfidence_ = input.readFloat();
-
+ bitField0_ |= 0x00001000;
break;
} // case 77
case 82:
{
input.readMessage(getDiagnosticInfoFieldBuilder().getBuilder(), extensionRegistry);
-
+ bitField0_ |= 0x00004000;
break;
} // case 82
case 90:
@@ -2077,14 +2108,14 @@ public Builder mergeFrom(
case 122:
{
input.readMessage(getMatchFieldBuilder().getBuilder(), extensionRegistry);
-
+ bitField0_ |= 0x00002000;
break;
} // case 122
case 138:
{
input.readMessage(
getSentimentAnalysisResultFieldBuilder().getBuilder(), extensionRegistry);
-
+ bitField0_ |= 0x00008000;
break;
} // case 138
case 186:
@@ -2130,8 +2161,8 @@ public Builder clearQuery() {
*
*
*
- * If [natural language text][google.cloud.dialogflow.cx.v3.TextInput] was provided as input, this field
- * will contain a copy of the text.
+ * If [natural language text][google.cloud.dialogflow.cx.v3.TextInput] was
+ * provided as input, this field will contain a copy of the text.
*
*
* string text = 1;
@@ -2146,8 +2177,8 @@ public boolean hasText() {
*
*
*
- * If [natural language text][google.cloud.dialogflow.cx.v3.TextInput] was provided as input, this field
- * will contain a copy of the text.
+ * If [natural language text][google.cloud.dialogflow.cx.v3.TextInput] was
+ * provided as input, this field will contain a copy of the text.
*
*
* string text = 1;
@@ -2175,8 +2206,8 @@ public java.lang.String getText() {
*
*
*
- * If [natural language text][google.cloud.dialogflow.cx.v3.TextInput] was provided as input, this field
- * will contain a copy of the text.
+ * If [natural language text][google.cloud.dialogflow.cx.v3.TextInput] was
+ * provided as input, this field will contain a copy of the text.
*
*
* string text = 1;
@@ -2204,8 +2235,8 @@ public com.google.protobuf.ByteString getTextBytes() {
*
*
*
- * If [natural language text][google.cloud.dialogflow.cx.v3.TextInput] was provided as input, this field
- * will contain a copy of the text.
+ * If [natural language text][google.cloud.dialogflow.cx.v3.TextInput] was
+ * provided as input, this field will contain a copy of the text.
*
*
* string text = 1;
@@ -2226,8 +2257,8 @@ public Builder setText(java.lang.String value) {
*
*
*
- * If [natural language text][google.cloud.dialogflow.cx.v3.TextInput] was provided as input, this field
- * will contain a copy of the text.
+ * If [natural language text][google.cloud.dialogflow.cx.v3.TextInput] was
+ * provided as input, this field will contain a copy of the text.
*
*
* string text = 1;
@@ -2246,8 +2277,8 @@ public Builder clearText() {
*
*
*
- * If [natural language text][google.cloud.dialogflow.cx.v3.TextInput] was provided as input, this field
- * will contain a copy of the text.
+ * If [natural language text][google.cloud.dialogflow.cx.v3.TextInput] was
+ * provided as input, this field will contain a copy of the text.
*
*
* string text = 1;
@@ -2270,9 +2301,9 @@ public Builder setTextBytes(com.google.protobuf.ByteString value) {
*
*
*
- * If an [intent][google.cloud.dialogflow.cx.v3.IntentInput] was provided as input, this field will
- * contain a copy of the intent identifier.
- * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+ * If an [intent][google.cloud.dialogflow.cx.v3.IntentInput] was provided as
+ * input, this field will contain a copy of the intent identifier. Format:
+ * `projects/<Project ID>/locations/<Location ID>/agents/<Agent
* ID>/intents/<Intent ID>`.
*
*
@@ -2288,9 +2319,9 @@ public boolean hasTriggerIntent() {
*
*
*
- * If an [intent][google.cloud.dialogflow.cx.v3.IntentInput] was provided as input, this field will
- * contain a copy of the intent identifier.
- * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+ * If an [intent][google.cloud.dialogflow.cx.v3.IntentInput] was provided as
+ * input, this field will contain a copy of the intent identifier. Format:
+ * `projects/<Project ID>/locations/<Location ID>/agents/<Agent
* ID>/intents/<Intent ID>`.
*
*
@@ -2319,9 +2350,9 @@ public java.lang.String getTriggerIntent() {
*
*
*
- * If an [intent][google.cloud.dialogflow.cx.v3.IntentInput] was provided as input, this field will
- * contain a copy of the intent identifier.
- * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+ * If an [intent][google.cloud.dialogflow.cx.v3.IntentInput] was provided as
+ * input, this field will contain a copy of the intent identifier. Format:
+ * `projects/<Project ID>/locations/<Location ID>/agents/<Agent
* ID>/intents/<Intent ID>`.
*
*
@@ -2350,9 +2381,9 @@ public com.google.protobuf.ByteString getTriggerIntentBytes() {
*
*
*
- * If an [intent][google.cloud.dialogflow.cx.v3.IntentInput] was provided as input, this field will
- * contain a copy of the intent identifier.
- * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+ * If an [intent][google.cloud.dialogflow.cx.v3.IntentInput] was provided as
+ * input, this field will contain a copy of the intent identifier. Format:
+ * `projects/<Project ID>/locations/<Location ID>/agents/<Agent
* ID>/intents/<Intent ID>`.
*
*
@@ -2374,9 +2405,9 @@ public Builder setTriggerIntent(java.lang.String value) {
*
*
*
- * If an [intent][google.cloud.dialogflow.cx.v3.IntentInput] was provided as input, this field will
- * contain a copy of the intent identifier.
- * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+ * If an [intent][google.cloud.dialogflow.cx.v3.IntentInput] was provided as
+ * input, this field will contain a copy of the intent identifier. Format:
+ * `projects/<Project ID>/locations/<Location ID>/agents/<Agent
* ID>/intents/<Intent ID>`.
*
*
@@ -2396,9 +2427,9 @@ public Builder clearTriggerIntent() {
*
*
*
- * If an [intent][google.cloud.dialogflow.cx.v3.IntentInput] was provided as input, this field will
- * contain a copy of the intent identifier.
- * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+ * If an [intent][google.cloud.dialogflow.cx.v3.IntentInput] was provided as
+ * input, this field will contain a copy of the intent identifier. Format:
+ * `projects/<Project ID>/locations/<Location ID>/agents/<Agent
* ID>/intents/<Intent ID>`.
*
*
@@ -2422,7 +2453,8 @@ public Builder setTriggerIntentBytes(com.google.protobuf.ByteString value) {
*
*
*
- * If [natural language speech audio][google.cloud.dialogflow.cx.v3.AudioInput] was provided as input,
+ * If [natural language speech
+ * audio][google.cloud.dialogflow.cx.v3.AudioInput] was provided as input,
* this field will contain the transcript for the audio.
*
*
@@ -2438,7 +2470,8 @@ public boolean hasTranscript() {
*
*
*
- * If [natural language speech audio][google.cloud.dialogflow.cx.v3.AudioInput] was provided as input,
+ * If [natural language speech
+ * audio][google.cloud.dialogflow.cx.v3.AudioInput] was provided as input,
* this field will contain the transcript for the audio.
*
*
@@ -2467,7 +2500,8 @@ public java.lang.String getTranscript() {
*
*
*
- * If [natural language speech audio][google.cloud.dialogflow.cx.v3.AudioInput] was provided as input,
+ * If [natural language speech
+ * audio][google.cloud.dialogflow.cx.v3.AudioInput] was provided as input,
* this field will contain the transcript for the audio.
*
*
@@ -2496,7 +2530,8 @@ public com.google.protobuf.ByteString getTranscriptBytes() {
*
*
*
- * If [natural language speech audio][google.cloud.dialogflow.cx.v3.AudioInput] was provided as input,
+ * If [natural language speech
+ * audio][google.cloud.dialogflow.cx.v3.AudioInput] was provided as input,
* this field will contain the transcript for the audio.
*
*
@@ -2518,7 +2553,8 @@ public Builder setTranscript(java.lang.String value) {
*
*
*
- * If [natural language speech audio][google.cloud.dialogflow.cx.v3.AudioInput] was provided as input,
+ * If [natural language speech
+ * audio][google.cloud.dialogflow.cx.v3.AudioInput] was provided as input,
* this field will contain the transcript for the audio.
*
*
@@ -2538,7 +2574,8 @@ public Builder clearTranscript() {
*
*
*
- * If [natural language speech audio][google.cloud.dialogflow.cx.v3.AudioInput] was provided as input,
+ * If [natural language speech
+ * audio][google.cloud.dialogflow.cx.v3.AudioInput] was provided as input,
* this field will contain the transcript for the audio.
*
*
@@ -2562,8 +2599,8 @@ public Builder setTranscriptBytes(com.google.protobuf.ByteString value) {
*
*
*
- * If an [event][google.cloud.dialogflow.cx.v3.EventInput] was provided as input, this field will contain
- * the name of the event.
+ * If an [event][google.cloud.dialogflow.cx.v3.EventInput] was provided as
+ * input, this field will contain the name of the event.
*
*
* string trigger_event = 14;
@@ -2578,8 +2615,8 @@ public boolean hasTriggerEvent() {
*
*
*
- * If an [event][google.cloud.dialogflow.cx.v3.EventInput] was provided as input, this field will contain
- * the name of the event.
+ * If an [event][google.cloud.dialogflow.cx.v3.EventInput] was provided as
+ * input, this field will contain the name of the event.
*
*
* string trigger_event = 14;
@@ -2607,8 +2644,8 @@ public java.lang.String getTriggerEvent() {
*
*
*
- * If an [event][google.cloud.dialogflow.cx.v3.EventInput] was provided as input, this field will contain
- * the name of the event.
+ * If an [event][google.cloud.dialogflow.cx.v3.EventInput] was provided as
+ * input, this field will contain the name of the event.
*
*
* string trigger_event = 14;
@@ -2636,8 +2673,8 @@ public com.google.protobuf.ByteString getTriggerEventBytes() {
*
*
*
- * If an [event][google.cloud.dialogflow.cx.v3.EventInput] was provided as input, this field will contain
- * the name of the event.
+ * If an [event][google.cloud.dialogflow.cx.v3.EventInput] was provided as
+ * input, this field will contain the name of the event.
*
*
* string trigger_event = 14;
@@ -2658,8 +2695,8 @@ public Builder setTriggerEvent(java.lang.String value) {
*
*
*
- * If an [event][google.cloud.dialogflow.cx.v3.EventInput] was provided as input, this field will contain
- * the name of the event.
+ * If an [event][google.cloud.dialogflow.cx.v3.EventInput] was provided as
+ * input, this field will contain the name of the event.
*
*
* string trigger_event = 14;
@@ -2678,8 +2715,8 @@ public Builder clearTriggerEvent() {
*
*
*
- * If an [event][google.cloud.dialogflow.cx.v3.EventInput] was provided as input, this field will contain
- * the name of the event.
+ * If an [event][google.cloud.dialogflow.cx.v3.EventInput] was provided as
+ * input, this field will contain the name of the event.
*
*
* string trigger_event = 14;
@@ -2912,7 +2949,6 @@ public com.google.cloud.dialogflow.cx.v3.DtmfInputOrBuilder getDtmfOrBuilder() {
}
queryCase_ = 23;
onChanged();
- ;
return dtmfBuilder_;
}
@@ -2986,8 +3022,8 @@ public Builder setLanguageCode(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
-
languageCode_ = value;
+ bitField0_ |= 0x00000020;
onChanged();
return this;
}
@@ -3006,8 +3042,8 @@ public Builder setLanguageCode(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearLanguageCode() {
-
languageCode_ = getDefaultInstance().getLanguageCode();
+ bitField0_ = (bitField0_ & ~0x00000020);
onChanged();
return this;
}
@@ -3031,8 +3067,8 @@ public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
-
languageCode_ = value;
+ bitField0_ |= 0x00000020;
onChanged();
return this;
}
@@ -3047,7 +3083,8 @@ public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) {
*
*
*
- * The collected [session parameters][google.cloud.dialogflow.cx.v3.SessionInfo.parameters].
+ * The collected [session
+ * parameters][google.cloud.dialogflow.cx.v3.SessionInfo.parameters].
* 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:
@@ -3066,13 +3103,14 @@ public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) {
* @return Whether the parameters field is set.
*/
public boolean hasParameters() {
- return parametersBuilder_ != null || parameters_ != null;
+ return ((bitField0_ & 0x00000040) != 0);
}
/**
*
*
*
- * The collected [session parameters][google.cloud.dialogflow.cx.v3.SessionInfo.parameters].
+ * The collected [session
+ * parameters][google.cloud.dialogflow.cx.v3.SessionInfo.parameters].
* 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:
@@ -3101,7 +3139,8 @@ public com.google.protobuf.Struct getParameters() {
*
*
*
- * The collected [session parameters][google.cloud.dialogflow.cx.v3.SessionInfo.parameters].
+ * The collected [session
+ * parameters][google.cloud.dialogflow.cx.v3.SessionInfo.parameters].
* 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:
@@ -3123,18 +3162,19 @@ public Builder setParameters(com.google.protobuf.Struct value) {
throw new NullPointerException();
}
parameters_ = value;
- onChanged();
} else {
parametersBuilder_.setMessage(value);
}
-
+ bitField0_ |= 0x00000040;
+ onChanged();
return this;
}
/**
*
*
*
- * The collected [session parameters][google.cloud.dialogflow.cx.v3.SessionInfo.parameters].
+ * The collected [session
+ * parameters][google.cloud.dialogflow.cx.v3.SessionInfo.parameters].
* 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:
@@ -3153,18 +3193,19 @@ public Builder setParameters(com.google.protobuf.Struct value) {
public Builder setParameters(com.google.protobuf.Struct.Builder builderForValue) {
if (parametersBuilder_ == null) {
parameters_ = builderForValue.build();
- onChanged();
} else {
parametersBuilder_.setMessage(builderForValue.build());
}
-
+ bitField0_ |= 0x00000040;
+ onChanged();
return this;
}
/**
*
*
*
- * The collected [session parameters][google.cloud.dialogflow.cx.v3.SessionInfo.parameters].
+ * The collected [session
+ * parameters][google.cloud.dialogflow.cx.v3.SessionInfo.parameters].
* 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:
@@ -3182,24 +3223,26 @@ public Builder setParameters(com.google.protobuf.Struct.Builder builderForValue)
*/
public Builder mergeParameters(com.google.protobuf.Struct value) {
if (parametersBuilder_ == null) {
- if (parameters_ != null) {
- parameters_ =
- com.google.protobuf.Struct.newBuilder(parameters_).mergeFrom(value).buildPartial();
+ if (((bitField0_ & 0x00000040) != 0)
+ && parameters_ != null
+ && parameters_ != com.google.protobuf.Struct.getDefaultInstance()) {
+ getParametersBuilder().mergeFrom(value);
} else {
parameters_ = value;
}
- onChanged();
} else {
parametersBuilder_.mergeFrom(value);
}
-
+ bitField0_ |= 0x00000040;
+ onChanged();
return this;
}
/**
*
*
*
- * The collected [session parameters][google.cloud.dialogflow.cx.v3.SessionInfo.parameters].
+ * The collected [session
+ * parameters][google.cloud.dialogflow.cx.v3.SessionInfo.parameters].
* 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:
@@ -3216,21 +3259,21 @@ public Builder mergeParameters(com.google.protobuf.Struct value) {
* .google.protobuf.Struct parameters = 3;
*/
public Builder clearParameters() {
- if (parametersBuilder_ == null) {
- parameters_ = null;
- onChanged();
- } else {
- parameters_ = null;
+ bitField0_ = (bitField0_ & ~0x00000040);
+ parameters_ = null;
+ if (parametersBuilder_ != null) {
+ parametersBuilder_.dispose();
parametersBuilder_ = null;
}
-
+ onChanged();
return this;
}
/**
*
*
*
- * The collected [session parameters][google.cloud.dialogflow.cx.v3.SessionInfo.parameters].
+ * The collected [session
+ * parameters][google.cloud.dialogflow.cx.v3.SessionInfo.parameters].
* 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:
@@ -3247,7 +3290,7 @@ public Builder clearParameters() {
* .google.protobuf.Struct parameters = 3;
*/
public com.google.protobuf.Struct.Builder getParametersBuilder() {
-
+ bitField0_ |= 0x00000040;
onChanged();
return getParametersFieldBuilder().getBuilder();
}
@@ -3255,7 +3298,8 @@ public com.google.protobuf.Struct.Builder getParametersBuilder() {
*
*
*
- * The collected [session parameters][google.cloud.dialogflow.cx.v3.SessionInfo.parameters].
+ * The collected [session
+ * parameters][google.cloud.dialogflow.cx.v3.SessionInfo.parameters].
* 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:
@@ -3282,7 +3326,8 @@ public com.google.protobuf.StructOrBuilder getParametersOrBuilder() {
*
*
*
- * The collected [session parameters][google.cloud.dialogflow.cx.v3.SessionInfo.parameters].
+ * The collected [session
+ * parameters][google.cloud.dialogflow.cx.v3.SessionInfo.parameters].
* 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:
@@ -3319,11 +3364,11 @@ public com.google.protobuf.StructOrBuilder getParametersOrBuilder() {
java.util.Collections.emptyList();
private void ensureResponseMessagesIsMutable() {
- if (!((bitField0_ & 0x00000001) != 0)) {
+ if (!((bitField0_ & 0x00000080) != 0)) {
responseMessages_ =
new java.util.ArrayList(
responseMessages_);
- bitField0_ |= 0x00000001;
+ bitField0_ |= 0x00000080;
}
}
@@ -3564,7 +3609,7 @@ public Builder addAllResponseMessages(
public Builder clearResponseMessages() {
if (responseMessagesBuilder_ == null) {
responseMessages_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000001);
+ bitField0_ = (bitField0_ & ~0x00000080);
onChanged();
} else {
responseMessagesBuilder_.clear();
@@ -3705,7 +3750,7 @@ public com.google.cloud.dialogflow.cx.v3.ResponseMessage.Builder addResponseMess
com.google.cloud.dialogflow.cx.v3.ResponseMessage.Builder,
com.google.cloud.dialogflow.cx.v3.ResponseMessageOrBuilder>(
responseMessages_,
- ((bitField0_ & 0x00000001) != 0),
+ ((bitField0_ & 0x00000080) != 0),
getParentForChildren(),
isClean());
responseMessages_ = null;
@@ -3717,9 +3762,9 @@ public com.google.cloud.dialogflow.cx.v3.ResponseMessage.Builder addResponseMess
java.util.Collections.emptyList();
private void ensureWebhookStatusesIsMutable() {
- if (!((bitField0_ & 0x00000002) != 0)) {
+ if (!((bitField0_ & 0x00000100) != 0)) {
webhookStatuses_ = new java.util.ArrayList(webhookStatuses_);
- bitField0_ |= 0x00000002;
+ bitField0_ |= 0x00000100;
}
}
@@ -3930,7 +3975,7 @@ public Builder addAllWebhookStatuses(
public Builder clearWebhookStatuses() {
if (webhookStatusesBuilder_ == null) {
webhookStatuses_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000002);
+ bitField0_ = (bitField0_ & ~0x00000100);
onChanged();
} else {
webhookStatusesBuilder_.clear();
@@ -4050,7 +4095,7 @@ public java.util.List getWebhookStatusesBuilderLi
com.google.rpc.Status.Builder,
com.google.rpc.StatusOrBuilder>(
webhookStatuses_,
- ((bitField0_ & 0x00000002) != 0),
+ ((bitField0_ & 0x00000100) != 0),
getParentForChildren(),
isClean());
webhookStatuses_ = null;
@@ -4062,9 +4107,9 @@ public java.util.List getWebhookStatusesBuilderLi
java.util.Collections.emptyList();
private void ensureWebhookPayloadsIsMutable() {
- if (!((bitField0_ & 0x00000004) != 0)) {
+ if (!((bitField0_ & 0x00000200) != 0)) {
webhookPayloads_ = new java.util.ArrayList(webhookPayloads_);
- bitField0_ |= 0x00000004;
+ bitField0_ |= 0x00000200;
}
}
@@ -4078,8 +4123,9 @@ private void ensureWebhookPayloadsIsMutable() {
*
*
*
- * The list of webhook payload in [WebhookResponse.payload][google.cloud.dialogflow.cx.v3.WebhookResponse.payload], in
- * the order of call sequence. If some webhook call fails or doesn't return
+ * The list of webhook payload in
+ * [WebhookResponse.payload][google.cloud.dialogflow.cx.v3.WebhookResponse.payload],
+ * in the order of call sequence. If some webhook call fails or doesn't return
* any payload, an empty `Struct` would be used instead.
*
*
@@ -4096,8 +4142,9 @@ public java.util.List getWebhookPayloadsList() {
*
*
*
- * The list of webhook payload in [WebhookResponse.payload][google.cloud.dialogflow.cx.v3.WebhookResponse.payload], in
- * the order of call sequence. If some webhook call fails or doesn't return
+ * The list of webhook payload in
+ * [WebhookResponse.payload][google.cloud.dialogflow.cx.v3.WebhookResponse.payload],
+ * in the order of call sequence. If some webhook call fails or doesn't return
* any payload, an empty `Struct` would be used instead.
*
*
@@ -4114,8 +4161,9 @@ public int getWebhookPayloadsCount() {
*
*
*
- * The list of webhook payload in [WebhookResponse.payload][google.cloud.dialogflow.cx.v3.WebhookResponse.payload], in
- * the order of call sequence. If some webhook call fails or doesn't return
+ * The list of webhook payload in
+ * [WebhookResponse.payload][google.cloud.dialogflow.cx.v3.WebhookResponse.payload],
+ * in the order of call sequence. If some webhook call fails or doesn't return
* any payload, an empty `Struct` would be used instead.
*
*
@@ -4132,8 +4180,9 @@ public com.google.protobuf.Struct getWebhookPayloads(int index) {
*
*
*
- * The list of webhook payload in [WebhookResponse.payload][google.cloud.dialogflow.cx.v3.WebhookResponse.payload], in
- * the order of call sequence. If some webhook call fails or doesn't return
+ * The list of webhook payload in
+ * [WebhookResponse.payload][google.cloud.dialogflow.cx.v3.WebhookResponse.payload],
+ * in the order of call sequence. If some webhook call fails or doesn't return
* any payload, an empty `Struct` would be used instead.
*
*
@@ -4156,8 +4205,9 @@ public Builder setWebhookPayloads(int index, com.google.protobuf.Struct value) {
*
*
*
- * The list of webhook payload in [WebhookResponse.payload][google.cloud.dialogflow.cx.v3.WebhookResponse.payload], in
- * the order of call sequence. If some webhook call fails or doesn't return
+ * The list of webhook payload in
+ * [WebhookResponse.payload][google.cloud.dialogflow.cx.v3.WebhookResponse.payload],
+ * in the order of call sequence. If some webhook call fails or doesn't return
* any payload, an empty `Struct` would be used instead.
*
*
@@ -4178,8 +4228,9 @@ public Builder setWebhookPayloads(
*
*
*
- * The list of webhook payload in [WebhookResponse.payload][google.cloud.dialogflow.cx.v3.WebhookResponse.payload], in
- * the order of call sequence. If some webhook call fails or doesn't return
+ * The list of webhook payload in
+ * [WebhookResponse.payload][google.cloud.dialogflow.cx.v3.WebhookResponse.payload],
+ * in the order of call sequence. If some webhook call fails or doesn't return
* any payload, an empty `Struct` would be used instead.
*
*
@@ -4202,8 +4253,9 @@ public Builder addWebhookPayloads(com.google.protobuf.Struct value) {
*
*
*
- * The list of webhook payload in [WebhookResponse.payload][google.cloud.dialogflow.cx.v3.WebhookResponse.payload], in
- * the order of call sequence. If some webhook call fails or doesn't return
+ * The list of webhook payload in
+ * [WebhookResponse.payload][google.cloud.dialogflow.cx.v3.WebhookResponse.payload],
+ * in the order of call sequence. If some webhook call fails or doesn't return
* any payload, an empty `Struct` would be used instead.
*
*
@@ -4226,8 +4278,9 @@ public Builder addWebhookPayloads(int index, com.google.protobuf.Struct value) {
*
*
*
- * The list of webhook payload in [WebhookResponse.payload][google.cloud.dialogflow.cx.v3.WebhookResponse.payload], in
- * the order of call sequence. If some webhook call fails or doesn't return
+ * The list of webhook payload in
+ * [WebhookResponse.payload][google.cloud.dialogflow.cx.v3.WebhookResponse.payload],
+ * in the order of call sequence. If some webhook call fails or doesn't return
* any payload, an empty `Struct` would be used instead.
*
*
@@ -4247,8 +4300,9 @@ public Builder addWebhookPayloads(com.google.protobuf.Struct.Builder builderForV
*
*
*
- * The list of webhook payload in [WebhookResponse.payload][google.cloud.dialogflow.cx.v3.WebhookResponse.payload], in
- * the order of call sequence. If some webhook call fails or doesn't return
+ * The list of webhook payload in
+ * [WebhookResponse.payload][google.cloud.dialogflow.cx.v3.WebhookResponse.payload],
+ * in the order of call sequence. If some webhook call fails or doesn't return
* any payload, an empty `Struct` would be used instead.
*
*
@@ -4269,8 +4323,9 @@ public Builder addWebhookPayloads(
*
*
*
- * The list of webhook payload in [WebhookResponse.payload][google.cloud.dialogflow.cx.v3.WebhookResponse.payload], in
- * the order of call sequence. If some webhook call fails or doesn't return
+ * The list of webhook payload in
+ * [WebhookResponse.payload][google.cloud.dialogflow.cx.v3.WebhookResponse.payload],
+ * in the order of call sequence. If some webhook call fails or doesn't return
* any payload, an empty `Struct` would be used instead.
*
*
@@ -4291,8 +4346,9 @@ public Builder addAllWebhookPayloads(
*
*
*
- * The list of webhook payload in [WebhookResponse.payload][google.cloud.dialogflow.cx.v3.WebhookResponse.payload], in
- * the order of call sequence. If some webhook call fails or doesn't return
+ * The list of webhook payload in
+ * [WebhookResponse.payload][google.cloud.dialogflow.cx.v3.WebhookResponse.payload],
+ * in the order of call sequence. If some webhook call fails or doesn't return
* any payload, an empty `Struct` would be used instead.
*
*
@@ -4301,7 +4357,7 @@ public Builder addAllWebhookPayloads(
public Builder clearWebhookPayloads() {
if (webhookPayloadsBuilder_ == null) {
webhookPayloads_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000004);
+ bitField0_ = (bitField0_ & ~0x00000200);
onChanged();
} else {
webhookPayloadsBuilder_.clear();
@@ -4312,8 +4368,9 @@ public Builder clearWebhookPayloads() {
*
*
*
- * The list of webhook payload in [WebhookResponse.payload][google.cloud.dialogflow.cx.v3.WebhookResponse.payload], in
- * the order of call sequence. If some webhook call fails or doesn't return
+ * The list of webhook payload in
+ * [WebhookResponse.payload][google.cloud.dialogflow.cx.v3.WebhookResponse.payload],
+ * in the order of call sequence. If some webhook call fails or doesn't return
* any payload, an empty `Struct` would be used instead.
*
*
@@ -4333,8 +4390,9 @@ public Builder removeWebhookPayloads(int index) {
*
*
*
- * The list of webhook payload in [WebhookResponse.payload][google.cloud.dialogflow.cx.v3.WebhookResponse.payload], in
- * the order of call sequence. If some webhook call fails or doesn't return
+ * The list of webhook payload in
+ * [WebhookResponse.payload][google.cloud.dialogflow.cx.v3.WebhookResponse.payload],
+ * in the order of call sequence. If some webhook call fails or doesn't return
* any payload, an empty `Struct` would be used instead.
*
*
@@ -4347,8 +4405,9 @@ public com.google.protobuf.Struct.Builder getWebhookPayloadsBuilder(int index) {
*
*
*
- * The list of webhook payload in [WebhookResponse.payload][google.cloud.dialogflow.cx.v3.WebhookResponse.payload], in
- * the order of call sequence. If some webhook call fails or doesn't return
+ * The list of webhook payload in
+ * [WebhookResponse.payload][google.cloud.dialogflow.cx.v3.WebhookResponse.payload],
+ * in the order of call sequence. If some webhook call fails or doesn't return
* any payload, an empty `Struct` would be used instead.
*
*
@@ -4365,8 +4424,9 @@ public com.google.protobuf.StructOrBuilder getWebhookPayloadsOrBuilder(int index
*
*
*
- * The list of webhook payload in [WebhookResponse.payload][google.cloud.dialogflow.cx.v3.WebhookResponse.payload], in
- * the order of call sequence. If some webhook call fails or doesn't return
+ * The list of webhook payload in
+ * [WebhookResponse.payload][google.cloud.dialogflow.cx.v3.WebhookResponse.payload],
+ * in the order of call sequence. If some webhook call fails or doesn't return
* any payload, an empty `Struct` would be used instead.
*
*
@@ -4384,8 +4444,9 @@ public com.google.protobuf.StructOrBuilder getWebhookPayloadsOrBuilder(int index
*
*
*
- * The list of webhook payload in [WebhookResponse.payload][google.cloud.dialogflow.cx.v3.WebhookResponse.payload], in
- * the order of call sequence. If some webhook call fails or doesn't return
+ * The list of webhook payload in
+ * [WebhookResponse.payload][google.cloud.dialogflow.cx.v3.WebhookResponse.payload],
+ * in the order of call sequence. If some webhook call fails or doesn't return
* any payload, an empty `Struct` would be used instead.
*
*
@@ -4399,8 +4460,9 @@ public com.google.protobuf.Struct.Builder addWebhookPayloadsBuilder() {
*
*
*
- * The list of webhook payload in [WebhookResponse.payload][google.cloud.dialogflow.cx.v3.WebhookResponse.payload], in
- * the order of call sequence. If some webhook call fails or doesn't return
+ * The list of webhook payload in
+ * [WebhookResponse.payload][google.cloud.dialogflow.cx.v3.WebhookResponse.payload],
+ * in the order of call sequence. If some webhook call fails or doesn't return
* any payload, an empty `Struct` would be used instead.
*
*
@@ -4414,8 +4476,9 @@ public com.google.protobuf.Struct.Builder addWebhookPayloadsBuilder(int index) {
*
*
*
- * The list of webhook payload in [WebhookResponse.payload][google.cloud.dialogflow.cx.v3.WebhookResponse.payload], in
- * the order of call sequence. If some webhook call fails or doesn't return
+ * The list of webhook payload in
+ * [WebhookResponse.payload][google.cloud.dialogflow.cx.v3.WebhookResponse.payload],
+ * in the order of call sequence. If some webhook call fails or doesn't return
* any payload, an empty `Struct` would be used instead.
*
*
@@ -4437,7 +4500,7 @@ public java.util.List getWebhookPayloadsBuil
com.google.protobuf.Struct.Builder,
com.google.protobuf.StructOrBuilder>(
webhookPayloads_,
- ((bitField0_ & 0x00000004) != 0),
+ ((bitField0_ & 0x00000200) != 0),
getParentForChildren(),
isClean());
webhookPayloads_ = null;
@@ -4455,8 +4518,9 @@ public java.util.List getWebhookPayloadsBuil
*
*
*
- * The current [Page][google.cloud.dialogflow.cx.v3.Page]. Some, not all fields are filled in this message,
- * including but not limited to `name` and `display_name`.
+ * The current [Page][google.cloud.dialogflow.cx.v3.Page]. Some, not all
+ * fields are filled in this message, including but not limited to `name` and
+ * `display_name`.
*
*
* .google.cloud.dialogflow.cx.v3.Page current_page = 7;
@@ -4464,14 +4528,15 @@ public java.util.List getWebhookPayloadsBuil
* @return Whether the currentPage field is set.
*/
public boolean hasCurrentPage() {
- return currentPageBuilder_ != null || currentPage_ != null;
+ return ((bitField0_ & 0x00000400) != 0);
}
/**
*
*
*
- * The current [Page][google.cloud.dialogflow.cx.v3.Page]. Some, not all fields are filled in this message,
- * including but not limited to `name` and `display_name`.
+ * The current [Page][google.cloud.dialogflow.cx.v3.Page]. Some, not all
+ * fields are filled in this message, including but not limited to `name` and
+ * `display_name`.
*
*
* .google.cloud.dialogflow.cx.v3.Page current_page = 7;
@@ -4491,8 +4556,9 @@ public com.google.cloud.dialogflow.cx.v3.Page getCurrentPage() {
*
*
*
- * The current [Page][google.cloud.dialogflow.cx.v3.Page]. Some, not all fields are filled in this message,
- * including but not limited to `name` and `display_name`.
+ * The current [Page][google.cloud.dialogflow.cx.v3.Page]. Some, not all
+ * fields are filled in this message, including but not limited to `name` and
+ * `display_name`.
*
*
* .google.cloud.dialogflow.cx.v3.Page current_page = 7;
@@ -4503,19 +4569,20 @@ public Builder setCurrentPage(com.google.cloud.dialogflow.cx.v3.Page value) {
throw new NullPointerException();
}
currentPage_ = value;
- onChanged();
} else {
currentPageBuilder_.setMessage(value);
}
-
+ bitField0_ |= 0x00000400;
+ onChanged();
return this;
}
/**
*
*
*
- * The current [Page][google.cloud.dialogflow.cx.v3.Page]. Some, not all fields are filled in this message,
- * including but not limited to `name` and `display_name`.
+ * The current [Page][google.cloud.dialogflow.cx.v3.Page]. Some, not all
+ * fields are filled in this message, including but not limited to `name` and
+ * `display_name`.
*
*
* .google.cloud.dialogflow.cx.v3.Page current_page = 7;
@@ -4523,73 +4590,74 @@ public Builder setCurrentPage(com.google.cloud.dialogflow.cx.v3.Page value) {
public Builder setCurrentPage(com.google.cloud.dialogflow.cx.v3.Page.Builder builderForValue) {
if (currentPageBuilder_ == null) {
currentPage_ = builderForValue.build();
- onChanged();
} else {
currentPageBuilder_.setMessage(builderForValue.build());
}
-
+ bitField0_ |= 0x00000400;
+ onChanged();
return this;
}
/**
*
*
*
- * The current [Page][google.cloud.dialogflow.cx.v3.Page]. Some, not all fields are filled in this message,
- * including but not limited to `name` and `display_name`.
+ * The current [Page][google.cloud.dialogflow.cx.v3.Page]. Some, not all
+ * fields are filled in this message, including but not limited to `name` and
+ * `display_name`.
*
*
* .google.cloud.dialogflow.cx.v3.Page current_page = 7;
*/
public Builder mergeCurrentPage(com.google.cloud.dialogflow.cx.v3.Page value) {
if (currentPageBuilder_ == null) {
- if (currentPage_ != null) {
- currentPage_ =
- com.google.cloud.dialogflow.cx.v3.Page.newBuilder(currentPage_)
- .mergeFrom(value)
- .buildPartial();
+ if (((bitField0_ & 0x00000400) != 0)
+ && currentPage_ != null
+ && currentPage_ != com.google.cloud.dialogflow.cx.v3.Page.getDefaultInstance()) {
+ getCurrentPageBuilder().mergeFrom(value);
} else {
currentPage_ = value;
}
- onChanged();
} else {
currentPageBuilder_.mergeFrom(value);
}
-
+ bitField0_ |= 0x00000400;
+ onChanged();
return this;
}
/**
*
*
*
- * The current [Page][google.cloud.dialogflow.cx.v3.Page]. Some, not all fields are filled in this message,
- * including but not limited to `name` and `display_name`.
+ * The current [Page][google.cloud.dialogflow.cx.v3.Page]. Some, not all
+ * fields are filled in this message, including but not limited to `name` and
+ * `display_name`.
*
*
* .google.cloud.dialogflow.cx.v3.Page current_page = 7;
*/
public Builder clearCurrentPage() {
- if (currentPageBuilder_ == null) {
- currentPage_ = null;
- onChanged();
- } else {
- currentPage_ = null;
+ bitField0_ = (bitField0_ & ~0x00000400);
+ currentPage_ = null;
+ if (currentPageBuilder_ != null) {
+ currentPageBuilder_.dispose();
currentPageBuilder_ = null;
}
-
+ onChanged();
return this;
}
/**
*
*
*
- * The current [Page][google.cloud.dialogflow.cx.v3.Page]. Some, not all fields are filled in this message,
- * including but not limited to `name` and `display_name`.
+ * The current [Page][google.cloud.dialogflow.cx.v3.Page]. Some, not all
+ * fields are filled in this message, including but not limited to `name` and
+ * `display_name`.
*
*
* .google.cloud.dialogflow.cx.v3.Page current_page = 7;
*/
public com.google.cloud.dialogflow.cx.v3.Page.Builder getCurrentPageBuilder() {
-
+ bitField0_ |= 0x00000400;
onChanged();
return getCurrentPageFieldBuilder().getBuilder();
}
@@ -4597,8 +4665,9 @@ public com.google.cloud.dialogflow.cx.v3.Page.Builder getCurrentPageBuilder() {
*
*
*
- * The current [Page][google.cloud.dialogflow.cx.v3.Page]. Some, not all fields are filled in this message,
- * including but not limited to `name` and `display_name`.
+ * The current [Page][google.cloud.dialogflow.cx.v3.Page]. Some, not all
+ * fields are filled in this message, including but not limited to `name` and
+ * `display_name`.
*
*
* .google.cloud.dialogflow.cx.v3.Page current_page = 7;
@@ -4616,8 +4685,9 @@ public com.google.cloud.dialogflow.cx.v3.PageOrBuilder getCurrentPageOrBuilder()
*
*
*
- * The current [Page][google.cloud.dialogflow.cx.v3.Page]. Some, not all fields are filled in this message,
- * including but not limited to `name` and `display_name`.
+ * The current [Page][google.cloud.dialogflow.cx.v3.Page]. Some, not all
+ * fields are filled in this message, including but not limited to `name` and
+ * `display_name`.
*
*
* .google.cloud.dialogflow.cx.v3.Page current_page = 7;
@@ -4649,36 +4719,40 @@ public com.google.cloud.dialogflow.cx.v3.PageOrBuilder getCurrentPageOrBuilder()
*
*
*
- * The [Intent][google.cloud.dialogflow.cx.v3.Intent] that matched the conversational query. Some, not all fields
- * are filled in this message, including but not limited to: `name` and
- * `display_name`.
- * This field is deprecated, please use [QueryResult.match][google.cloud.dialogflow.cx.v3.QueryResult.match] instead.
+ * The [Intent][google.cloud.dialogflow.cx.v3.Intent] that matched the
+ * conversational query. Some, not all fields are filled in this message,
+ * including but not limited to: `name` and `display_name`. This field is
+ * deprecated, please use
+ * [QueryResult.match][google.cloud.dialogflow.cx.v3.QueryResult.match]
+ * instead.
*
*
* .google.cloud.dialogflow.cx.v3.Intent intent = 8 [deprecated = true];
*
* @deprecated google.cloud.dialogflow.cx.v3.QueryResult.intent is deprecated. See
- * google/cloud/dialogflow/cx/v3/session.proto;l=604
+ * google/cloud/dialogflow/cx/v3/session.proto;l=642
* @return Whether the intent field is set.
*/
@java.lang.Deprecated
public boolean hasIntent() {
- return intentBuilder_ != null || intent_ != null;
+ return ((bitField0_ & 0x00000800) != 0);
}
/**
*
*
*
- * The [Intent][google.cloud.dialogflow.cx.v3.Intent] that matched the conversational query. Some, not all fields
- * are filled in this message, including but not limited to: `name` and
- * `display_name`.
- * This field is deprecated, please use [QueryResult.match][google.cloud.dialogflow.cx.v3.QueryResult.match] instead.
+ * The [Intent][google.cloud.dialogflow.cx.v3.Intent] that matched the
+ * conversational query. Some, not all fields are filled in this message,
+ * including but not limited to: `name` and `display_name`. This field is
+ * deprecated, please use
+ * [QueryResult.match][google.cloud.dialogflow.cx.v3.QueryResult.match]
+ * instead.
*
*
* .google.cloud.dialogflow.cx.v3.Intent intent = 8 [deprecated = true];
*
* @deprecated google.cloud.dialogflow.cx.v3.QueryResult.intent is deprecated. See
- * google/cloud/dialogflow/cx/v3/session.proto;l=604
+ * google/cloud/dialogflow/cx/v3/session.proto;l=642
* @return The intent.
*/
@java.lang.Deprecated
@@ -4695,10 +4769,12 @@ public com.google.cloud.dialogflow.cx.v3.Intent getIntent() {
*
*
*
- * The [Intent][google.cloud.dialogflow.cx.v3.Intent] that matched the conversational query. Some, not all fields
- * are filled in this message, including but not limited to: `name` and
- * `display_name`.
- * This field is deprecated, please use [QueryResult.match][google.cloud.dialogflow.cx.v3.QueryResult.match] instead.
+ * The [Intent][google.cloud.dialogflow.cx.v3.Intent] that matched the
+ * conversational query. Some, not all fields are filled in this message,
+ * including but not limited to: `name` and `display_name`. This field is
+ * deprecated, please use
+ * [QueryResult.match][google.cloud.dialogflow.cx.v3.QueryResult.match]
+ * instead.
*
*
* .google.cloud.dialogflow.cx.v3.Intent intent = 8 [deprecated = true];
@@ -4710,21 +4786,23 @@ public Builder setIntent(com.google.cloud.dialogflow.cx.v3.Intent value) {
throw new NullPointerException();
}
intent_ = value;
- onChanged();
} else {
intentBuilder_.setMessage(value);
}
-
+ bitField0_ |= 0x00000800;
+ onChanged();
return this;
}
/**
*
*
*
- * The [Intent][google.cloud.dialogflow.cx.v3.Intent] that matched the conversational query. Some, not all fields
- * are filled in this message, including but not limited to: `name` and
- * `display_name`.
- * This field is deprecated, please use [QueryResult.match][google.cloud.dialogflow.cx.v3.QueryResult.match] instead.
+ * The [Intent][google.cloud.dialogflow.cx.v3.Intent] that matched the
+ * conversational query. Some, not all fields are filled in this message,
+ * including but not limited to: `name` and `display_name`. This field is
+ * deprecated, please use
+ * [QueryResult.match][google.cloud.dialogflow.cx.v3.QueryResult.match]
+ * instead.
*
*
* .google.cloud.dialogflow.cx.v3.Intent intent = 8 [deprecated = true];
@@ -4733,21 +4811,23 @@ public Builder setIntent(com.google.cloud.dialogflow.cx.v3.Intent value) {
public Builder setIntent(com.google.cloud.dialogflow.cx.v3.Intent.Builder builderForValue) {
if (intentBuilder_ == null) {
intent_ = builderForValue.build();
- onChanged();
} else {
intentBuilder_.setMessage(builderForValue.build());
}
-
+ bitField0_ |= 0x00000800;
+ onChanged();
return this;
}
/**
*
*
*
- * The [Intent][google.cloud.dialogflow.cx.v3.Intent] that matched the conversational query. Some, not all fields
- * are filled in this message, including but not limited to: `name` and
- * `display_name`.
- * This field is deprecated, please use [QueryResult.match][google.cloud.dialogflow.cx.v3.QueryResult.match] instead.
+ * The [Intent][google.cloud.dialogflow.cx.v3.Intent] that matched the
+ * conversational query. Some, not all fields are filled in this message,
+ * including but not limited to: `name` and `display_name`. This field is
+ * deprecated, please use
+ * [QueryResult.match][google.cloud.dialogflow.cx.v3.QueryResult.match]
+ * instead.
*
*
* .google.cloud.dialogflow.cx.v3.Intent intent = 8 [deprecated = true];
@@ -4755,60 +4835,62 @@ public Builder setIntent(com.google.cloud.dialogflow.cx.v3.Intent.Builder builde
@java.lang.Deprecated
public Builder mergeIntent(com.google.cloud.dialogflow.cx.v3.Intent value) {
if (intentBuilder_ == null) {
- if (intent_ != null) {
- intent_ =
- com.google.cloud.dialogflow.cx.v3.Intent.newBuilder(intent_)
- .mergeFrom(value)
- .buildPartial();
+ if (((bitField0_ & 0x00000800) != 0)
+ && intent_ != null
+ && intent_ != com.google.cloud.dialogflow.cx.v3.Intent.getDefaultInstance()) {
+ getIntentBuilder().mergeFrom(value);
} else {
intent_ = value;
}
- onChanged();
} else {
intentBuilder_.mergeFrom(value);
}
-
+ bitField0_ |= 0x00000800;
+ onChanged();
return this;
}
/**
*
*
*
- * The [Intent][google.cloud.dialogflow.cx.v3.Intent] that matched the conversational query. Some, not all fields
- * are filled in this message, including but not limited to: `name` and
- * `display_name`.
- * This field is deprecated, please use [QueryResult.match][google.cloud.dialogflow.cx.v3.QueryResult.match] instead.
+ * The [Intent][google.cloud.dialogflow.cx.v3.Intent] that matched the
+ * conversational query. Some, not all fields are filled in this message,
+ * including but not limited to: `name` and `display_name`. This field is
+ * deprecated, please use
+ * [QueryResult.match][google.cloud.dialogflow.cx.v3.QueryResult.match]
+ * instead.
*
*
* .google.cloud.dialogflow.cx.v3.Intent intent = 8 [deprecated = true];
*/
@java.lang.Deprecated
public Builder clearIntent() {
- if (intentBuilder_ == null) {
- intent_ = null;
- onChanged();
- } else {
- intent_ = null;
+ bitField0_ = (bitField0_ & ~0x00000800);
+ intent_ = null;
+ if (intentBuilder_ != null) {
+ intentBuilder_.dispose();
intentBuilder_ = null;
}
-
+ onChanged();
return this;
}
/**
*
*
*
- * The [Intent][google.cloud.dialogflow.cx.v3.Intent] that matched the conversational query. Some, not all fields
- * are filled in this message, including but not limited to: `name` and
- * `display_name`.
- * This field is deprecated, please use [QueryResult.match][google.cloud.dialogflow.cx.v3.QueryResult.match] instead.
+ * The [Intent][google.cloud.dialogflow.cx.v3.Intent] that matched the
+ * conversational query. Some, not all fields are filled in this message,
+ * including but not limited to: `name` and `display_name`. This field is
+ * deprecated, please use
+ * [QueryResult.match][google.cloud.dialogflow.cx.v3.QueryResult.match]
+ * instead.
*
*
* .google.cloud.dialogflow.cx.v3.Intent intent = 8 [deprecated = true];
*/
@java.lang.Deprecated
public com.google.cloud.dialogflow.cx.v3.Intent.Builder getIntentBuilder() {
-
+ bitField0_ |= 0x00000800;
onChanged();
return getIntentFieldBuilder().getBuilder();
}
@@ -4816,10 +4898,12 @@ public com.google.cloud.dialogflow.cx.v3.Intent.Builder getIntentBuilder() {
*
*
*
- * The [Intent][google.cloud.dialogflow.cx.v3.Intent] that matched the conversational query. Some, not all fields
- * are filled in this message, including but not limited to: `name` and
- * `display_name`.
- * This field is deprecated, please use [QueryResult.match][google.cloud.dialogflow.cx.v3.QueryResult.match] instead.
+ * The [Intent][google.cloud.dialogflow.cx.v3.Intent] that matched the
+ * conversational query. Some, not all fields are filled in this message,
+ * including but not limited to: `name` and `display_name`. This field is
+ * deprecated, please use
+ * [QueryResult.match][google.cloud.dialogflow.cx.v3.QueryResult.match]
+ * instead.
*
*
* .google.cloud.dialogflow.cx.v3.Intent intent = 8 [deprecated = true];
@@ -4838,10 +4922,12 @@ public com.google.cloud.dialogflow.cx.v3.IntentOrBuilder getIntentOrBuilder() {
*
*
*
- * The [Intent][google.cloud.dialogflow.cx.v3.Intent] that matched the conversational query. Some, not all fields
- * are filled in this message, including but not limited to: `name` and
- * `display_name`.
- * This field is deprecated, please use [QueryResult.match][google.cloud.dialogflow.cx.v3.QueryResult.match] instead.
+ * The [Intent][google.cloud.dialogflow.cx.v3.Intent] that matched the
+ * conversational query. Some, not all fields are filled in this message,
+ * including but not limited to: `name` and `display_name`. This field is
+ * deprecated, please use
+ * [QueryResult.match][google.cloud.dialogflow.cx.v3.QueryResult.match]
+ * instead.
*
*
* .google.cloud.dialogflow.cx.v3.Intent intent = 8 [deprecated = true];
@@ -4874,13 +4960,15 @@ public com.google.cloud.dialogflow.cx.v3.IntentOrBuilder getIntentOrBuilder() {
* help match the best intent within the classification threshold.
* This value may change for the same end-user expression at any time due to a
* model retraining or change in implementation.
- * This field is deprecated, please use [QueryResult.match][google.cloud.dialogflow.cx.v3.QueryResult.match] instead.
+ * This field is deprecated, please use
+ * [QueryResult.match][google.cloud.dialogflow.cx.v3.QueryResult.match]
+ * instead.
*
*
* float intent_detection_confidence = 9 [deprecated = true];
*
* @deprecated google.cloud.dialogflow.cx.v3.QueryResult.intent_detection_confidence is
- * deprecated. See google/cloud/dialogflow/cx/v3/session.proto;l=613
+ * deprecated. See google/cloud/dialogflow/cx/v3/session.proto;l=653
* @return The intentDetectionConfidence.
*/
@java.lang.Override
@@ -4898,13 +4986,15 @@ public float getIntentDetectionConfidence() {
* help match the best intent within the classification threshold.
* This value may change for the same end-user expression at any time due to a
* model retraining or change in implementation.
- * This field is deprecated, please use [QueryResult.match][google.cloud.dialogflow.cx.v3.QueryResult.match] instead.
+ * This field is deprecated, please use
+ * [QueryResult.match][google.cloud.dialogflow.cx.v3.QueryResult.match]
+ * instead.
*
*
* float intent_detection_confidence = 9 [deprecated = true];
*
* @deprecated google.cloud.dialogflow.cx.v3.QueryResult.intent_detection_confidence is
- * deprecated. See google/cloud/dialogflow/cx/v3/session.proto;l=613
+ * deprecated. See google/cloud/dialogflow/cx/v3/session.proto;l=653
* @param value The intentDetectionConfidence to set.
* @return This builder for chaining.
*/
@@ -4912,6 +5002,7 @@ public float getIntentDetectionConfidence() {
public Builder setIntentDetectionConfidence(float value) {
intentDetectionConfidence_ = value;
+ bitField0_ |= 0x00001000;
onChanged();
return this;
}
@@ -4925,18 +5016,20 @@ public Builder setIntentDetectionConfidence(float value) {
* help match the best intent within the classification threshold.
* This value may change for the same end-user expression at any time due to a
* model retraining or change in implementation.
- * This field is deprecated, please use [QueryResult.match][google.cloud.dialogflow.cx.v3.QueryResult.match] instead.
+ * This field is deprecated, please use
+ * [QueryResult.match][google.cloud.dialogflow.cx.v3.QueryResult.match]
+ * instead.
*
*
* float intent_detection_confidence = 9 [deprecated = true];
*
* @deprecated google.cloud.dialogflow.cx.v3.QueryResult.intent_detection_confidence is
- * deprecated. See google/cloud/dialogflow/cx/v3/session.proto;l=613
+ * deprecated. See google/cloud/dialogflow/cx/v3/session.proto;l=653
* @return This builder for chaining.
*/
@java.lang.Deprecated
public Builder clearIntentDetectionConfidence() {
-
+ bitField0_ = (bitField0_ & ~0x00001000);
intentDetectionConfidence_ = 0F;
onChanged();
return this;
@@ -4960,7 +5053,7 @@ public Builder clearIntentDetectionConfidence() {
* @return Whether the match field is set.
*/
public boolean hasMatch() {
- return matchBuilder_ != null || match_ != null;
+ return ((bitField0_ & 0x00002000) != 0);
}
/**
*
@@ -4997,11 +5090,11 @@ public Builder setMatch(com.google.cloud.dialogflow.cx.v3.Match value) {
throw new NullPointerException();
}
match_ = value;
- onChanged();
} else {
matchBuilder_.setMessage(value);
}
-
+ bitField0_ |= 0x00002000;
+ onChanged();
return this;
}
/**
@@ -5016,11 +5109,11 @@ public Builder setMatch(com.google.cloud.dialogflow.cx.v3.Match value) {
public Builder setMatch(com.google.cloud.dialogflow.cx.v3.Match.Builder builderForValue) {
if (matchBuilder_ == null) {
match_ = builderForValue.build();
- onChanged();
} else {
matchBuilder_.setMessage(builderForValue.build());
}
-
+ bitField0_ |= 0x00002000;
+ onChanged();
return this;
}
/**
@@ -5034,19 +5127,18 @@ public Builder setMatch(com.google.cloud.dialogflow.cx.v3.Match.Builder builderF
*/
public Builder mergeMatch(com.google.cloud.dialogflow.cx.v3.Match value) {
if (matchBuilder_ == null) {
- if (match_ != null) {
- match_ =
- com.google.cloud.dialogflow.cx.v3.Match.newBuilder(match_)
- .mergeFrom(value)
- .buildPartial();
+ if (((bitField0_ & 0x00002000) != 0)
+ && match_ != null
+ && match_ != com.google.cloud.dialogflow.cx.v3.Match.getDefaultInstance()) {
+ getMatchBuilder().mergeFrom(value);
} else {
match_ = value;
}
- onChanged();
} else {
matchBuilder_.mergeFrom(value);
}
-
+ bitField0_ |= 0x00002000;
+ onChanged();
return this;
}
/**
@@ -5059,14 +5151,13 @@ public Builder mergeMatch(com.google.cloud.dialogflow.cx.v3.Match value) {
* .google.cloud.dialogflow.cx.v3.Match match = 15;
*/
public Builder clearMatch() {
- if (matchBuilder_ == null) {
- match_ = null;
- onChanged();
- } else {
- match_ = null;
+ bitField0_ = (bitField0_ & ~0x00002000);
+ match_ = null;
+ if (matchBuilder_ != null) {
+ matchBuilder_.dispose();
matchBuilder_ = null;
}
-
+ onChanged();
return this;
}
/**
@@ -5079,7 +5170,7 @@ public Builder clearMatch() {
* .google.cloud.dialogflow.cx.v3.Match match = 15;
*/
public com.google.cloud.dialogflow.cx.v3.Match.Builder getMatchBuilder() {
-
+ bitField0_ |= 0x00002000;
onChanged();
return getMatchFieldBuilder().getBuilder();
}
@@ -5159,7 +5250,7 @@ public com.google.cloud.dialogflow.cx.v3.MatchOrBuilder getMatchOrBuilder() {
* @return Whether the diagnosticInfo field is set.
*/
public boolean hasDiagnosticInfo() {
- return diagnosticInfoBuilder_ != null || diagnosticInfo_ != null;
+ return ((bitField0_ & 0x00004000) != 0);
}
/**
*
@@ -5224,11 +5315,11 @@ public Builder setDiagnosticInfo(com.google.protobuf.Struct value) {
throw new NullPointerException();
}
diagnosticInfo_ = value;
- onChanged();
} else {
diagnosticInfoBuilder_.setMessage(value);
}
-
+ bitField0_ |= 0x00004000;
+ onChanged();
return this;
}
/**
@@ -5257,11 +5348,11 @@ public Builder setDiagnosticInfo(com.google.protobuf.Struct value) {
public Builder setDiagnosticInfo(com.google.protobuf.Struct.Builder builderForValue) {
if (diagnosticInfoBuilder_ == null) {
diagnosticInfo_ = builderForValue.build();
- onChanged();
} else {
diagnosticInfoBuilder_.setMessage(builderForValue.build());
}
-
+ bitField0_ |= 0x00004000;
+ onChanged();
return this;
}
/**
@@ -5289,19 +5380,18 @@ public Builder setDiagnosticInfo(com.google.protobuf.Struct.Builder builderForVa
*/
public Builder mergeDiagnosticInfo(com.google.protobuf.Struct value) {
if (diagnosticInfoBuilder_ == null) {
- if (diagnosticInfo_ != null) {
- diagnosticInfo_ =
- com.google.protobuf.Struct.newBuilder(diagnosticInfo_)
- .mergeFrom(value)
- .buildPartial();
+ if (((bitField0_ & 0x00004000) != 0)
+ && diagnosticInfo_ != null
+ && diagnosticInfo_ != com.google.protobuf.Struct.getDefaultInstance()) {
+ getDiagnosticInfoBuilder().mergeFrom(value);
} else {
diagnosticInfo_ = value;
}
- onChanged();
} else {
diagnosticInfoBuilder_.mergeFrom(value);
}
-
+ bitField0_ |= 0x00004000;
+ onChanged();
return this;
}
/**
@@ -5328,14 +5418,13 @@ public Builder mergeDiagnosticInfo(com.google.protobuf.Struct value) {
* .google.protobuf.Struct diagnostic_info = 10;
*/
public Builder clearDiagnosticInfo() {
- if (diagnosticInfoBuilder_ == null) {
- diagnosticInfo_ = null;
- onChanged();
- } else {
- diagnosticInfo_ = null;
+ bitField0_ = (bitField0_ & ~0x00004000);
+ diagnosticInfo_ = null;
+ if (diagnosticInfoBuilder_ != null) {
+ diagnosticInfoBuilder_.dispose();
diagnosticInfoBuilder_ = null;
}
-
+ onChanged();
return this;
}
/**
@@ -5362,7 +5451,7 @@ public Builder clearDiagnosticInfo() {
* .google.protobuf.Struct diagnostic_info = 10;
*/
public com.google.protobuf.Struct.Builder getDiagnosticInfoBuilder() {
-
+ bitField0_ |= 0x00004000;
onChanged();
return getDiagnosticInfoFieldBuilder().getBuilder();
}
@@ -5450,7 +5539,8 @@ public com.google.protobuf.StructOrBuilder getDiagnosticInfoOrBuilder() {
*
* The sentiment analyss result, which depends on
* [`analyze_query_text_sentiment`]
- * [google.cloud.dialogflow.cx.v3.QueryParameters.analyze_query_text_sentiment], specified in the request.
+ * [google.cloud.dialogflow.cx.v3.QueryParameters.analyze_query_text_sentiment],
+ * specified in the request.
*
*
* .google.cloud.dialogflow.cx.v3.SentimentAnalysisResult sentiment_analysis_result = 17;
@@ -5459,7 +5549,7 @@ public com.google.protobuf.StructOrBuilder getDiagnosticInfoOrBuilder() {
* @return Whether the sentimentAnalysisResult field is set.
*/
public boolean hasSentimentAnalysisResult() {
- return sentimentAnalysisResultBuilder_ != null || sentimentAnalysisResult_ != null;
+ return ((bitField0_ & 0x00008000) != 0);
}
/**
*
@@ -5467,7 +5557,8 @@ public boolean hasSentimentAnalysisResult() {
*
* The sentiment analyss result, which depends on
* [`analyze_query_text_sentiment`]
- * [google.cloud.dialogflow.cx.v3.QueryParameters.analyze_query_text_sentiment], specified in the request.
+ * [google.cloud.dialogflow.cx.v3.QueryParameters.analyze_query_text_sentiment],
+ * specified in the request.
*
*
* .google.cloud.dialogflow.cx.v3.SentimentAnalysisResult sentiment_analysis_result = 17;
@@ -5490,7 +5581,8 @@ public com.google.cloud.dialogflow.cx.v3.SentimentAnalysisResult getSentimentAna
*
* The sentiment analyss result, which depends on
* [`analyze_query_text_sentiment`]
- * [google.cloud.dialogflow.cx.v3.QueryParameters.analyze_query_text_sentiment], specified in the request.
+ * [google.cloud.dialogflow.cx.v3.QueryParameters.analyze_query_text_sentiment],
+ * specified in the request.
*
*
* .google.cloud.dialogflow.cx.v3.SentimentAnalysisResult sentiment_analysis_result = 17;
@@ -5503,11 +5595,11 @@ public Builder setSentimentAnalysisResult(
throw new NullPointerException();
}
sentimentAnalysisResult_ = value;
- onChanged();
} else {
sentimentAnalysisResultBuilder_.setMessage(value);
}
-
+ bitField0_ |= 0x00008000;
+ onChanged();
return this;
}
/**
@@ -5516,7 +5608,8 @@ public Builder setSentimentAnalysisResult(
*
* The sentiment analyss result, which depends on
* [`analyze_query_text_sentiment`]
- * [google.cloud.dialogflow.cx.v3.QueryParameters.analyze_query_text_sentiment], specified in the request.
+ * [google.cloud.dialogflow.cx.v3.QueryParameters.analyze_query_text_sentiment],
+ * specified in the request.
*
*
* .google.cloud.dialogflow.cx.v3.SentimentAnalysisResult sentiment_analysis_result = 17;
@@ -5526,11 +5619,11 @@ public Builder setSentimentAnalysisResult(
com.google.cloud.dialogflow.cx.v3.SentimentAnalysisResult.Builder builderForValue) {
if (sentimentAnalysisResultBuilder_ == null) {
sentimentAnalysisResult_ = builderForValue.build();
- onChanged();
} else {
sentimentAnalysisResultBuilder_.setMessage(builderForValue.build());
}
-
+ bitField0_ |= 0x00008000;
+ onChanged();
return this;
}
/**
@@ -5539,7 +5632,8 @@ public Builder setSentimentAnalysisResult(
*
* The sentiment analyss result, which depends on
* [`analyze_query_text_sentiment`]
- * [google.cloud.dialogflow.cx.v3.QueryParameters.analyze_query_text_sentiment], specified in the request.
+ * [google.cloud.dialogflow.cx.v3.QueryParameters.analyze_query_text_sentiment],
+ * specified in the request.
*
*
* .google.cloud.dialogflow.cx.v3.SentimentAnalysisResult sentiment_analysis_result = 17;
@@ -5548,20 +5642,19 @@ public Builder setSentimentAnalysisResult(
public Builder mergeSentimentAnalysisResult(
com.google.cloud.dialogflow.cx.v3.SentimentAnalysisResult value) {
if (sentimentAnalysisResultBuilder_ == null) {
- if (sentimentAnalysisResult_ != null) {
- sentimentAnalysisResult_ =
- com.google.cloud.dialogflow.cx.v3.SentimentAnalysisResult.newBuilder(
- sentimentAnalysisResult_)
- .mergeFrom(value)
- .buildPartial();
+ if (((bitField0_ & 0x00008000) != 0)
+ && sentimentAnalysisResult_ != null
+ && sentimentAnalysisResult_
+ != com.google.cloud.dialogflow.cx.v3.SentimentAnalysisResult.getDefaultInstance()) {
+ getSentimentAnalysisResultBuilder().mergeFrom(value);
} else {
sentimentAnalysisResult_ = value;
}
- onChanged();
} else {
sentimentAnalysisResultBuilder_.mergeFrom(value);
}
-
+ bitField0_ |= 0x00008000;
+ onChanged();
return this;
}
/**
@@ -5570,21 +5663,21 @@ public Builder mergeSentimentAnalysisResult(
*
* The sentiment analyss result, which depends on
* [`analyze_query_text_sentiment`]
- * [google.cloud.dialogflow.cx.v3.QueryParameters.analyze_query_text_sentiment], specified in the request.
+ * [google.cloud.dialogflow.cx.v3.QueryParameters.analyze_query_text_sentiment],
+ * specified in the request.
*
*
* .google.cloud.dialogflow.cx.v3.SentimentAnalysisResult sentiment_analysis_result = 17;
*
*/
public Builder clearSentimentAnalysisResult() {
- if (sentimentAnalysisResultBuilder_ == null) {
- sentimentAnalysisResult_ = null;
- onChanged();
- } else {
- sentimentAnalysisResult_ = null;
+ bitField0_ = (bitField0_ & ~0x00008000);
+ sentimentAnalysisResult_ = null;
+ if (sentimentAnalysisResultBuilder_ != null) {
+ sentimentAnalysisResultBuilder_.dispose();
sentimentAnalysisResultBuilder_ = null;
}
-
+ onChanged();
return this;
}
/**
@@ -5593,7 +5686,8 @@ public Builder clearSentimentAnalysisResult() {
*
* The sentiment analyss result, which depends on
* [`analyze_query_text_sentiment`]
- * [google.cloud.dialogflow.cx.v3.QueryParameters.analyze_query_text_sentiment], specified in the request.
+ * [google.cloud.dialogflow.cx.v3.QueryParameters.analyze_query_text_sentiment],
+ * specified in the request.
*
*
* .google.cloud.dialogflow.cx.v3.SentimentAnalysisResult sentiment_analysis_result = 17;
@@ -5601,7 +5695,7 @@ public Builder clearSentimentAnalysisResult() {
*/
public com.google.cloud.dialogflow.cx.v3.SentimentAnalysisResult.Builder
getSentimentAnalysisResultBuilder() {
-
+ bitField0_ |= 0x00008000;
onChanged();
return getSentimentAnalysisResultFieldBuilder().getBuilder();
}
@@ -5611,7 +5705,8 @@ public Builder clearSentimentAnalysisResult() {
*
* The sentiment analyss result, which depends on
* [`analyze_query_text_sentiment`]
- * [google.cloud.dialogflow.cx.v3.QueryParameters.analyze_query_text_sentiment], specified in the request.
+ * [google.cloud.dialogflow.cx.v3.QueryParameters.analyze_query_text_sentiment],
+ * specified in the request.
*
*
* .google.cloud.dialogflow.cx.v3.SentimentAnalysisResult sentiment_analysis_result = 17;
@@ -5633,7 +5728,8 @@ public Builder clearSentimentAnalysisResult() {
*
* The sentiment analyss result, which depends on
* [`analyze_query_text_sentiment`]
- * [google.cloud.dialogflow.cx.v3.QueryParameters.analyze_query_text_sentiment], specified in the request.
+ * [google.cloud.dialogflow.cx.v3.QueryParameters.analyze_query_text_sentiment],
+ * specified in the request.
*
*
* .google.cloud.dialogflow.cx.v3.SentimentAnalysisResult sentiment_analysis_result = 17;
diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/QueryResultOrBuilder.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/QueryResultOrBuilder.java
index 68ac525e48aa..48dde3e24184 100644
--- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/QueryResultOrBuilder.java
+++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/QueryResultOrBuilder.java
@@ -27,8 +27,8 @@ public interface QueryResultOrBuilder
*
*
*
- * If [natural language text][google.cloud.dialogflow.cx.v3.TextInput] was provided as input, this field
- * will contain a copy of the text.
+ * If [natural language text][google.cloud.dialogflow.cx.v3.TextInput] was
+ * provided as input, this field will contain a copy of the text.
*
*
* string text = 1;
@@ -40,8 +40,8 @@ public interface QueryResultOrBuilder
*
*
*
- * If [natural language text][google.cloud.dialogflow.cx.v3.TextInput] was provided as input, this field
- * will contain a copy of the text.
+ * If [natural language text][google.cloud.dialogflow.cx.v3.TextInput] was
+ * provided as input, this field will contain a copy of the text.
*
*
* string text = 1;
@@ -53,8 +53,8 @@ public interface QueryResultOrBuilder
*
*
*
- * If [natural language text][google.cloud.dialogflow.cx.v3.TextInput] was provided as input, this field
- * will contain a copy of the text.
+ * If [natural language text][google.cloud.dialogflow.cx.v3.TextInput] was
+ * provided as input, this field will contain a copy of the text.
*
*
* string text = 1;
@@ -67,9 +67,9 @@ public interface QueryResultOrBuilder
*
*
*
- * If an [intent][google.cloud.dialogflow.cx.v3.IntentInput] was provided as input, this field will
- * contain a copy of the intent identifier.
- * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+ * If an [intent][google.cloud.dialogflow.cx.v3.IntentInput] was provided as
+ * input, this field will contain a copy of the intent identifier. Format:
+ * `projects/<Project ID>/locations/<Location ID>/agents/<Agent
* ID>/intents/<Intent ID>`.
*
*
@@ -82,9 +82,9 @@ public interface QueryResultOrBuilder
*
*
*
- * If an [intent][google.cloud.dialogflow.cx.v3.IntentInput] was provided as input, this field will
- * contain a copy of the intent identifier.
- * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+ * If an [intent][google.cloud.dialogflow.cx.v3.IntentInput] was provided as
+ * input, this field will contain a copy of the intent identifier. Format:
+ * `projects/<Project ID>/locations/<Location ID>/agents/<Agent
* ID>/intents/<Intent ID>`.
*
*
@@ -97,9 +97,9 @@ public interface QueryResultOrBuilder
*
*
*
- * If an [intent][google.cloud.dialogflow.cx.v3.IntentInput] was provided as input, this field will
- * contain a copy of the intent identifier.
- * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+ * If an [intent][google.cloud.dialogflow.cx.v3.IntentInput] was provided as
+ * input, this field will contain a copy of the intent identifier. Format:
+ * `projects/<Project ID>/locations/<Location ID>/agents/<Agent
* ID>/intents/<Intent ID>`.
*
*
@@ -113,7 +113,8 @@ public interface QueryResultOrBuilder
*
*
*
- * If [natural language speech audio][google.cloud.dialogflow.cx.v3.AudioInput] was provided as input,
+ * If [natural language speech
+ * audio][google.cloud.dialogflow.cx.v3.AudioInput] was provided as input,
* this field will contain the transcript for the audio.
*
*
@@ -126,7 +127,8 @@ public interface QueryResultOrBuilder
*
*
*
- * If [natural language speech audio][google.cloud.dialogflow.cx.v3.AudioInput] was provided as input,
+ * If [natural language speech
+ * audio][google.cloud.dialogflow.cx.v3.AudioInput] was provided as input,
* this field will contain the transcript for the audio.
*
*
@@ -139,7 +141,8 @@ public interface QueryResultOrBuilder
*
*
*
- * If [natural language speech audio][google.cloud.dialogflow.cx.v3.AudioInput] was provided as input,
+ * If [natural language speech
+ * audio][google.cloud.dialogflow.cx.v3.AudioInput] was provided as input,
* this field will contain the transcript for the audio.
*
*
@@ -153,8 +156,8 @@ public interface QueryResultOrBuilder
*
*
*
- * If an [event][google.cloud.dialogflow.cx.v3.EventInput] was provided as input, this field will contain
- * the name of the event.
+ * If an [event][google.cloud.dialogflow.cx.v3.EventInput] was provided as
+ * input, this field will contain the name of the event.
*
*
* string trigger_event = 14;
@@ -166,8 +169,8 @@ public interface QueryResultOrBuilder
*
*
*
- * If an [event][google.cloud.dialogflow.cx.v3.EventInput] was provided as input, this field will contain
- * the name of the event.
+ * If an [event][google.cloud.dialogflow.cx.v3.EventInput] was provided as
+ * input, this field will contain the name of the event.
*
*
* string trigger_event = 14;
@@ -179,8 +182,8 @@ public interface QueryResultOrBuilder
*
*
*
- * If an [event][google.cloud.dialogflow.cx.v3.EventInput] was provided as input, this field will contain
- * the name of the event.
+ * If an [event][google.cloud.dialogflow.cx.v3.EventInput] was provided as
+ * input, this field will contain the name of the event.
*
*
* string trigger_event = 14;
@@ -262,7 +265,8 @@ public interface QueryResultOrBuilder
*
*
*
- * The collected [session parameters][google.cloud.dialogflow.cx.v3.SessionInfo.parameters].
+ * The collected [session
+ * parameters][google.cloud.dialogflow.cx.v3.SessionInfo.parameters].
* 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:
@@ -285,7 +289,8 @@ public interface QueryResultOrBuilder
*
*
*
- * The collected [session parameters][google.cloud.dialogflow.cx.v3.SessionInfo.parameters].
+ * The collected [session
+ * parameters][google.cloud.dialogflow.cx.v3.SessionInfo.parameters].
* 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:
@@ -308,7 +313,8 @@ public interface QueryResultOrBuilder
*
*
*
- * The collected [session parameters][google.cloud.dialogflow.cx.v3.SessionInfo.parameters].
+ * The collected [session
+ * parameters][google.cloud.dialogflow.cx.v3.SessionInfo.parameters].
* 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:
@@ -444,8 +450,9 @@ com.google.cloud.dialogflow.cx.v3.ResponseMessageOrBuilder getResponseMessagesOr
*
*
*
- * The list of webhook payload in [WebhookResponse.payload][google.cloud.dialogflow.cx.v3.WebhookResponse.payload], in
- * the order of call sequence. If some webhook call fails or doesn't return
+ * The list of webhook payload in
+ * [WebhookResponse.payload][google.cloud.dialogflow.cx.v3.WebhookResponse.payload],
+ * in the order of call sequence. If some webhook call fails or doesn't return
* any payload, an empty `Struct` would be used instead.
*
*
@@ -456,8 +463,9 @@ com.google.cloud.dialogflow.cx.v3.ResponseMessageOrBuilder getResponseMessagesOr
*
*
*
- * The list of webhook payload in [WebhookResponse.payload][google.cloud.dialogflow.cx.v3.WebhookResponse.payload], in
- * the order of call sequence. If some webhook call fails or doesn't return
+ * The list of webhook payload in
+ * [WebhookResponse.payload][google.cloud.dialogflow.cx.v3.WebhookResponse.payload],
+ * in the order of call sequence. If some webhook call fails or doesn't return
* any payload, an empty `Struct` would be used instead.
*
*
@@ -468,8 +476,9 @@ com.google.cloud.dialogflow.cx.v3.ResponseMessageOrBuilder getResponseMessagesOr
*
*
*
- * The list of webhook payload in [WebhookResponse.payload][google.cloud.dialogflow.cx.v3.WebhookResponse.payload], in
- * the order of call sequence. If some webhook call fails or doesn't return
+ * The list of webhook payload in
+ * [WebhookResponse.payload][google.cloud.dialogflow.cx.v3.WebhookResponse.payload],
+ * in the order of call sequence. If some webhook call fails or doesn't return
* any payload, an empty `Struct` would be used instead.
*
*
@@ -480,8 +489,9 @@ com.google.cloud.dialogflow.cx.v3.ResponseMessageOrBuilder getResponseMessagesOr
*
*
*
- * The list of webhook payload in [WebhookResponse.payload][google.cloud.dialogflow.cx.v3.WebhookResponse.payload], in
- * the order of call sequence. If some webhook call fails or doesn't return
+ * The list of webhook payload in
+ * [WebhookResponse.payload][google.cloud.dialogflow.cx.v3.WebhookResponse.payload],
+ * in the order of call sequence. If some webhook call fails or doesn't return
* any payload, an empty `Struct` would be used instead.
*
*
@@ -492,8 +502,9 @@ com.google.cloud.dialogflow.cx.v3.ResponseMessageOrBuilder getResponseMessagesOr
*
*
*
- * The list of webhook payload in [WebhookResponse.payload][google.cloud.dialogflow.cx.v3.WebhookResponse.payload], in
- * the order of call sequence. If some webhook call fails or doesn't return
+ * The list of webhook payload in
+ * [WebhookResponse.payload][google.cloud.dialogflow.cx.v3.WebhookResponse.payload],
+ * in the order of call sequence. If some webhook call fails or doesn't return
* any payload, an empty `Struct` would be used instead.
*
*
@@ -505,8 +516,9 @@ com.google.cloud.dialogflow.cx.v3.ResponseMessageOrBuilder getResponseMessagesOr
*
*
*
- * The current [Page][google.cloud.dialogflow.cx.v3.Page]. Some, not all fields are filled in this message,
- * including but not limited to `name` and `display_name`.
+ * The current [Page][google.cloud.dialogflow.cx.v3.Page]. Some, not all
+ * fields are filled in this message, including but not limited to `name` and
+ * `display_name`.
*
*
* .google.cloud.dialogflow.cx.v3.Page current_page = 7;
@@ -518,8 +530,9 @@ com.google.cloud.dialogflow.cx.v3.ResponseMessageOrBuilder getResponseMessagesOr
*
*
*
- * The current [Page][google.cloud.dialogflow.cx.v3.Page]. Some, not all fields are filled in this message,
- * including but not limited to `name` and `display_name`.
+ * The current [Page][google.cloud.dialogflow.cx.v3.Page]. Some, not all
+ * fields are filled in this message, including but not limited to `name` and
+ * `display_name`.
*
*
* .google.cloud.dialogflow.cx.v3.Page current_page = 7;
@@ -531,8 +544,9 @@ com.google.cloud.dialogflow.cx.v3.ResponseMessageOrBuilder getResponseMessagesOr
*
*
*
- * The current [Page][google.cloud.dialogflow.cx.v3.Page]. Some, not all fields are filled in this message,
- * including but not limited to `name` and `display_name`.
+ * The current [Page][google.cloud.dialogflow.cx.v3.Page]. Some, not all
+ * fields are filled in this message, including but not limited to `name` and
+ * `display_name`.
*
*
* .google.cloud.dialogflow.cx.v3.Page current_page = 7;
@@ -543,16 +557,18 @@ com.google.cloud.dialogflow.cx.v3.ResponseMessageOrBuilder getResponseMessagesOr
*
*
*
- * The [Intent][google.cloud.dialogflow.cx.v3.Intent] that matched the conversational query. Some, not all fields
- * are filled in this message, including but not limited to: `name` and
- * `display_name`.
- * This field is deprecated, please use [QueryResult.match][google.cloud.dialogflow.cx.v3.QueryResult.match] instead.
+ * The [Intent][google.cloud.dialogflow.cx.v3.Intent] that matched the
+ * conversational query. Some, not all fields are filled in this message,
+ * including but not limited to: `name` and `display_name`. This field is
+ * deprecated, please use
+ * [QueryResult.match][google.cloud.dialogflow.cx.v3.QueryResult.match]
+ * instead.
*
*
* .google.cloud.dialogflow.cx.v3.Intent intent = 8 [deprecated = true];
*
* @deprecated google.cloud.dialogflow.cx.v3.QueryResult.intent is deprecated. See
- * google/cloud/dialogflow/cx/v3/session.proto;l=604
+ * google/cloud/dialogflow/cx/v3/session.proto;l=642
* @return Whether the intent field is set.
*/
@java.lang.Deprecated
@@ -561,16 +577,18 @@ com.google.cloud.dialogflow.cx.v3.ResponseMessageOrBuilder getResponseMessagesOr
*
*
*
- * The [Intent][google.cloud.dialogflow.cx.v3.Intent] that matched the conversational query. Some, not all fields
- * are filled in this message, including but not limited to: `name` and
- * `display_name`.
- * This field is deprecated, please use [QueryResult.match][google.cloud.dialogflow.cx.v3.QueryResult.match] instead.
+ * The [Intent][google.cloud.dialogflow.cx.v3.Intent] that matched the
+ * conversational query. Some, not all fields are filled in this message,
+ * including but not limited to: `name` and `display_name`. This field is
+ * deprecated, please use
+ * [QueryResult.match][google.cloud.dialogflow.cx.v3.QueryResult.match]
+ * instead.
*
*
* .google.cloud.dialogflow.cx.v3.Intent intent = 8 [deprecated = true];
*
* @deprecated google.cloud.dialogflow.cx.v3.QueryResult.intent is deprecated. See
- * google/cloud/dialogflow/cx/v3/session.proto;l=604
+ * google/cloud/dialogflow/cx/v3/session.proto;l=642
* @return The intent.
*/
@java.lang.Deprecated
@@ -579,10 +597,12 @@ com.google.cloud.dialogflow.cx.v3.ResponseMessageOrBuilder getResponseMessagesOr
*
*
*
- * The [Intent][google.cloud.dialogflow.cx.v3.Intent] that matched the conversational query. Some, not all fields
- * are filled in this message, including but not limited to: `name` and
- * `display_name`.
- * This field is deprecated, please use [QueryResult.match][google.cloud.dialogflow.cx.v3.QueryResult.match] instead.
+ * The [Intent][google.cloud.dialogflow.cx.v3.Intent] that matched the
+ * conversational query. Some, not all fields are filled in this message,
+ * including but not limited to: `name` and `display_name`. This field is
+ * deprecated, please use
+ * [QueryResult.match][google.cloud.dialogflow.cx.v3.QueryResult.match]
+ * instead.
*
*
* .google.cloud.dialogflow.cx.v3.Intent intent = 8 [deprecated = true];
@@ -600,13 +620,15 @@ com.google.cloud.dialogflow.cx.v3.ResponseMessageOrBuilder getResponseMessagesOr
* help match the best intent within the classification threshold.
* This value may change for the same end-user expression at any time due to a
* model retraining or change in implementation.
- * This field is deprecated, please use [QueryResult.match][google.cloud.dialogflow.cx.v3.QueryResult.match] instead.
+ * This field is deprecated, please use
+ * [QueryResult.match][google.cloud.dialogflow.cx.v3.QueryResult.match]
+ * instead.
*
*
* float intent_detection_confidence = 9 [deprecated = true];
*
* @deprecated google.cloud.dialogflow.cx.v3.QueryResult.intent_detection_confidence is
- * deprecated. See google/cloud/dialogflow/cx/v3/session.proto;l=613
+ * deprecated. See google/cloud/dialogflow/cx/v3/session.proto;l=653
* @return The intentDetectionConfidence.
*/
@java.lang.Deprecated
@@ -730,7 +752,8 @@ com.google.cloud.dialogflow.cx.v3.ResponseMessageOrBuilder getResponseMessagesOr
*
* The sentiment analyss result, which depends on
* [`analyze_query_text_sentiment`]
- * [google.cloud.dialogflow.cx.v3.QueryParameters.analyze_query_text_sentiment], specified in the request.
+ * [google.cloud.dialogflow.cx.v3.QueryParameters.analyze_query_text_sentiment],
+ * specified in the request.
*
*
* .google.cloud.dialogflow.cx.v3.SentimentAnalysisResult sentiment_analysis_result = 17;
@@ -745,7 +768,8 @@ com.google.cloud.dialogflow.cx.v3.ResponseMessageOrBuilder getResponseMessagesOr
*
* The sentiment analyss result, which depends on
* [`analyze_query_text_sentiment`]
- * [google.cloud.dialogflow.cx.v3.QueryParameters.analyze_query_text_sentiment], specified in the request.
+ * [google.cloud.dialogflow.cx.v3.QueryParameters.analyze_query_text_sentiment],
+ * specified in the request.
*
*
* .google.cloud.dialogflow.cx.v3.SentimentAnalysisResult sentiment_analysis_result = 17;
@@ -760,7 +784,8 @@ com.google.cloud.dialogflow.cx.v3.ResponseMessageOrBuilder getResponseMessagesOr
*
* The sentiment analyss result, which depends on
* [`analyze_query_text_sentiment`]
- * [google.cloud.dialogflow.cx.v3.QueryParameters.analyze_query_text_sentiment], specified in the request.
+ * [google.cloud.dialogflow.cx.v3.QueryParameters.analyze_query_text_sentiment],
+ * specified in the request.
*
*
* .google.cloud.dialogflow.cx.v3.SentimentAnalysisResult sentiment_analysis_result = 17;
diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ResourceName.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ResourceName.java
index 0e1175210895..aef7b180a29d 100644
--- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ResourceName.java
+++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ResourceName.java
@@ -69,7 +69,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
public static final int NAME_FIELD_NUMBER = 1;
- private volatile java.lang.Object name_;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object name_ = "";
/**
*
*
@@ -118,7 +120,9 @@ public com.google.protobuf.ByteString getNameBytes() {
}
public static final int DISPLAY_NAME_FIELD_NUMBER = 2;
- private volatile java.lang.Object displayName_;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object displayName_ = "";
/**
*
*
@@ -372,10 +376,9 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
@java.lang.Override
public Builder clear() {
super.clear();
+ bitField0_ = 0;
name_ = "";
-
displayName_ = "";
-
return this;
}
@@ -403,12 +406,23 @@ public com.google.cloud.dialogflow.cx.v3.ResourceName build() {
public com.google.cloud.dialogflow.cx.v3.ResourceName buildPartial() {
com.google.cloud.dialogflow.cx.v3.ResourceName result =
new com.google.cloud.dialogflow.cx.v3.ResourceName(this);
- result.name_ = name_;
- result.displayName_ = displayName_;
+ if (bitField0_ != 0) {
+ buildPartial0(result);
+ }
onBuilt();
return result;
}
+ private void buildPartial0(com.google.cloud.dialogflow.cx.v3.ResourceName result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.name_ = name_;
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.displayName_ = displayName_;
+ }
+ }
+
@java.lang.Override
public Builder clone() {
return super.clone();
@@ -456,10 +470,12 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.ResourceName other) {
if (other == com.google.cloud.dialogflow.cx.v3.ResourceName.getDefaultInstance()) return this;
if (!other.getName().isEmpty()) {
name_ = other.name_;
+ bitField0_ |= 0x00000001;
onChanged();
}
if (!other.getDisplayName().isEmpty()) {
displayName_ = other.displayName_;
+ bitField0_ |= 0x00000002;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
@@ -491,13 +507,13 @@ public Builder mergeFrom(
case 10:
{
name_ = input.readStringRequireUtf8();
-
+ bitField0_ |= 0x00000001;
break;
} // case 10
case 18:
{
displayName_ = input.readStringRequireUtf8();
-
+ bitField0_ |= 0x00000002;
break;
} // case 18
default:
@@ -517,6 +533,8 @@ public Builder mergeFrom(
return this;
}
+ private int bitField0_;
+
private java.lang.Object name_ = "";
/**
*
@@ -578,8 +596,8 @@ public Builder setName(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
-
name_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -595,8 +613,8 @@ public Builder setName(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearName() {
-
name_ = getDefaultInstance().getName();
+ bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
@@ -617,8 +635,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
-
name_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -684,8 +702,8 @@ public Builder setDisplayName(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
-
displayName_ = value;
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -701,8 +719,8 @@ public Builder setDisplayName(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearDisplayName() {
-
displayName_ = getDefaultInstance().getDisplayName();
+ bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
@@ -723,8 +741,8 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
-
displayName_ = value;
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ResponseMessage.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ResponseMessage.java
index a17d306ed0bd..6601132121c9 100644
--- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ResponseMessage.java
+++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ResponseMessage.java
@@ -50,7 +50,9 @@ private ResponseMessage(com.google.protobuf.GeneratedMessageV3.Builder> builde
super(builder);
}
- private ResponseMessage() {}
+ private ResponseMessage() {
+ channel_ = "";
+ }
@java.lang.Override
@SuppressWarnings({"unused"})
@@ -138,8 +140,8 @@ public interface TextOrBuilder
*
*
*
- * Output only. Whether the playback of this message can be interrupted by the end
- * user's speech and the client can then starts the next Dialogflow
+ * Output only. Whether the playback of this message can be interrupted by
+ * the end user's speech and the client can then starts the next Dialogflow
* request.
*
*
@@ -200,6 +202,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
public static final int TEXT_FIELD_NUMBER = 1;
+
+ @SuppressWarnings("serial")
private com.google.protobuf.LazyStringList text_;
/**
*
@@ -261,13 +265,13 @@ public com.google.protobuf.ByteString getTextBytes(int index) {
}
public static final int ALLOW_PLAYBACK_INTERRUPTION_FIELD_NUMBER = 2;
- private boolean allowPlaybackInterruption_;
+ private boolean allowPlaybackInterruption_ = false;
/**
*
*
*
- * Output only. Whether the playback of this message can be interrupted by the end
- * user's speech and the client can then starts the next Dialogflow
+ * Output only. Whether the playback of this message can be interrupted by
+ * the end user's speech and the client can then starts the next Dialogflow
* request.
*
*
@@ -498,10 +502,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
@java.lang.Override
public Builder clear() {
super.clear();
+ bitField0_ = 0;
text_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
allowPlaybackInterruption_ = false;
-
return this;
}
@@ -529,15 +533,28 @@ public com.google.cloud.dialogflow.cx.v3.ResponseMessage.Text build() {
public com.google.cloud.dialogflow.cx.v3.ResponseMessage.Text buildPartial() {
com.google.cloud.dialogflow.cx.v3.ResponseMessage.Text result =
new com.google.cloud.dialogflow.cx.v3.ResponseMessage.Text(this);
- int from_bitField0_ = bitField0_;
+ buildPartialRepeatedFields(result);
+ if (bitField0_ != 0) {
+ buildPartial0(result);
+ }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartialRepeatedFields(
+ com.google.cloud.dialogflow.cx.v3.ResponseMessage.Text result) {
if (((bitField0_ & 0x00000001) != 0)) {
text_ = text_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000001);
}
result.text_ = text_;
- result.allowPlaybackInterruption_ = allowPlaybackInterruption_;
- onBuilt();
- return result;
+ }
+
+ private void buildPartial0(com.google.cloud.dialogflow.cx.v3.ResponseMessage.Text result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.allowPlaybackInterruption_ = allowPlaybackInterruption_;
+ }
}
@java.lang.Override
@@ -637,7 +654,7 @@ public Builder mergeFrom(
case 16:
{
allowPlaybackInterruption_ = input.readBool();
-
+ bitField0_ |= 0x00000002;
break;
} // case 16
default:
@@ -832,8 +849,8 @@ public Builder addTextBytes(com.google.protobuf.ByteString value) {
*
*
*
- * Output only. Whether the playback of this message can be interrupted by the end
- * user's speech and the client can then starts the next Dialogflow
+ * Output only. Whether the playback of this message can be interrupted by
+ * the end user's speech and the client can then starts the next Dialogflow
* request.
*
*
@@ -850,8 +867,8 @@ public boolean getAllowPlaybackInterruption() {
*
*
*
- * Output only. Whether the playback of this message can be interrupted by the end
- * user's speech and the client can then starts the next Dialogflow
+ * Output only. Whether the playback of this message can be interrupted by
+ * the end user's speech and the client can then starts the next Dialogflow
* request.
*
*
@@ -864,6 +881,7 @@ public boolean getAllowPlaybackInterruption() {
public Builder setAllowPlaybackInterruption(boolean value) {
allowPlaybackInterruption_ = value;
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -871,8 +889,8 @@ public Builder setAllowPlaybackInterruption(boolean value) {
*
*
*
- * Output only. Whether the playback of this message can be interrupted by the end
- * user's speech and the client can then starts the next Dialogflow
+ * Output only. Whether the playback of this message can be interrupted by
+ * the end user's speech and the client can then starts the next Dialogflow
* request.
*
*
@@ -882,7 +900,7 @@ public Builder setAllowPlaybackInterruption(boolean value) {
* @return This builder for chaining.
*/
public Builder clearAllowPlaybackInterruption() {
-
+ bitField0_ = (bitField0_ & ~0x00000002);
allowPlaybackInterruption_ = false;
onChanged();
return this;
@@ -1004,7 +1022,9 @@ public interface LiveAgentHandoffOrBuilder
* to a human agent for measurement purposes. What else to do with this signal
* is up to you and your handoff procedures.
* You may set this, for example:
- * * In the [entry_fulfillment][google.cloud.dialogflow.cx.v3.Page.entry_fulfillment] of a [Page][google.cloud.dialogflow.cx.v3.Page] if
+ * * In the
+ * [entry_fulfillment][google.cloud.dialogflow.cx.v3.Page.entry_fulfillment]
+ * of a [Page][google.cloud.dialogflow.cx.v3.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
@@ -1097,7 +1117,7 @@ public com.google.protobuf.Struct getMetadata() {
*/
@java.lang.Override
public com.google.protobuf.StructOrBuilder getMetadataOrBuilder() {
- return getMetadata();
+ return metadata_ == null ? com.google.protobuf.Struct.getDefaultInstance() : metadata_;
}
private byte memoizedIsInitialized = -1;
@@ -1276,7 +1296,9 @@ protected Builder newBuilderForType(
* to a human agent for measurement purposes. What else to do with this signal
* is up to you and your handoff procedures.
* You may set this, for example:
- * * In the [entry_fulfillment][google.cloud.dialogflow.cx.v3.Page.entry_fulfillment] of a [Page][google.cloud.dialogflow.cx.v3.Page] if
+ * * In the
+ * [entry_fulfillment][google.cloud.dialogflow.cx.v3.Page.entry_fulfillment]
+ * of a [Page][google.cloud.dialogflow.cx.v3.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
@@ -1316,10 +1338,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
@java.lang.Override
public Builder clear() {
super.clear();
- if (metadataBuilder_ == null) {
- metadata_ = null;
- } else {
- metadata_ = null;
+ bitField0_ = 0;
+ metadata_ = null;
+ if (metadataBuilder_ != null) {
+ metadataBuilder_.dispose();
metadataBuilder_ = null;
}
return this;
@@ -1351,15 +1373,21 @@ public com.google.cloud.dialogflow.cx.v3.ResponseMessage.LiveAgentHandoff build(
public com.google.cloud.dialogflow.cx.v3.ResponseMessage.LiveAgentHandoff buildPartial() {
com.google.cloud.dialogflow.cx.v3.ResponseMessage.LiveAgentHandoff result =
new com.google.cloud.dialogflow.cx.v3.ResponseMessage.LiveAgentHandoff(this);
- if (metadataBuilder_ == null) {
- result.metadata_ = metadata_;
- } else {
- result.metadata_ = metadataBuilder_.build();
+ if (bitField0_ != 0) {
+ buildPartial0(result);
}
onBuilt();
return result;
}
+ private void buildPartial0(
+ com.google.cloud.dialogflow.cx.v3.ResponseMessage.LiveAgentHandoff result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.metadata_ = metadataBuilder_ == null ? metadata_ : metadataBuilder_.build();
+ }
+ }
+
@java.lang.Override
public Builder clone() {
return super.clone();
@@ -1443,7 +1471,7 @@ public Builder mergeFrom(
case 10:
{
input.readMessage(getMetadataFieldBuilder().getBuilder(), extensionRegistry);
-
+ bitField0_ |= 0x00000001;
break;
} // case 10
default:
@@ -1463,6 +1491,8 @@ public Builder mergeFrom(
return this;
}
+ private int bitField0_;
+
private com.google.protobuf.Struct metadata_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Struct,
@@ -1482,7 +1512,7 @@ public Builder mergeFrom(
* @return Whether the metadata field is set.
*/
public boolean hasMetadata() {
- return metadataBuilder_ != null || metadata_ != null;
+ return ((bitField0_ & 0x00000001) != 0);
}
/**
*
@@ -1519,11 +1549,11 @@ public Builder setMetadata(com.google.protobuf.Struct value) {
throw new NullPointerException();
}
metadata_ = value;
- onChanged();
} else {
metadataBuilder_.setMessage(value);
}
-
+ bitField0_ |= 0x00000001;
+ onChanged();
return this;
}
/**
@@ -1539,11 +1569,11 @@ public Builder setMetadata(com.google.protobuf.Struct value) {
public Builder setMetadata(com.google.protobuf.Struct.Builder builderForValue) {
if (metadataBuilder_ == null) {
metadata_ = builderForValue.build();
- onChanged();
} else {
metadataBuilder_.setMessage(builderForValue.build());
}
-
+ bitField0_ |= 0x00000001;
+ onChanged();
return this;
}
/**
@@ -1558,17 +1588,18 @@ public Builder setMetadata(com.google.protobuf.Struct.Builder builderForValue) {
*/
public Builder mergeMetadata(com.google.protobuf.Struct value) {
if (metadataBuilder_ == null) {
- if (metadata_ != null) {
- metadata_ =
- com.google.protobuf.Struct.newBuilder(metadata_).mergeFrom(value).buildPartial();
+ if (((bitField0_ & 0x00000001) != 0)
+ && metadata_ != null
+ && metadata_ != com.google.protobuf.Struct.getDefaultInstance()) {
+ getMetadataBuilder().mergeFrom(value);
} else {
metadata_ = value;
}
- onChanged();
} else {
metadataBuilder_.mergeFrom(value);
}
-
+ bitField0_ |= 0x00000001;
+ onChanged();
return this;
}
/**
@@ -1582,14 +1613,13 @@ public Builder mergeMetadata(com.google.protobuf.Struct value) {
* .google.protobuf.Struct metadata = 1;
*/
public Builder clearMetadata() {
- if (metadataBuilder_ == null) {
- metadata_ = null;
- onChanged();
- } else {
- metadata_ = null;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ metadata_ = null;
+ if (metadataBuilder_ != null) {
+ metadataBuilder_.dispose();
metadataBuilder_ = null;
}
-
+ onChanged();
return this;
}
/**
@@ -1603,7 +1633,7 @@ public Builder clearMetadata() {
* .google.protobuf.Struct metadata = 1;
*/
public com.google.protobuf.Struct.Builder getMetadataBuilder() {
-
+ bitField0_ |= 0x00000001;
onChanged();
return getMetadataFieldBuilder().getBuilder();
}
@@ -1770,7 +1800,9 @@ public interface ConversationSuccessOrBuilder
* conversation end page as successful even if they don't return
* [ConversationSuccess][google.cloud.dialogflow.cx.v3.ResponseMessage.ConversationSuccess].
* You may set this, for example:
- * * In the [entry_fulfillment][google.cloud.dialogflow.cx.v3.Page.entry_fulfillment] of a [Page][google.cloud.dialogflow.cx.v3.Page] if
+ * * In the
+ * [entry_fulfillment][google.cloud.dialogflow.cx.v3.Page.entry_fulfillment]
+ * of a [Page][google.cloud.dialogflow.cx.v3.Page] if
* entering the page indicates that the conversation succeeded.
* * In a webhook response when you determine that you handled the customer
* issue.
@@ -1859,7 +1891,7 @@ public com.google.protobuf.Struct getMetadata() {
*/
@java.lang.Override
public com.google.protobuf.StructOrBuilder getMetadataOrBuilder() {
- return getMetadata();
+ return metadata_ == null ? com.google.protobuf.Struct.getDefaultInstance() : metadata_;
}
private byte memoizedIsInitialized = -1;
@@ -2041,7 +2073,9 @@ protected Builder newBuilderForType(
* conversation end page as successful even if they don't return
* [ConversationSuccess][google.cloud.dialogflow.cx.v3.ResponseMessage.ConversationSuccess].
* You may set this, for example:
- * * In the [entry_fulfillment][google.cloud.dialogflow.cx.v3.Page.entry_fulfillment] of a [Page][google.cloud.dialogflow.cx.v3.Page] if
+ * * In the
+ * [entry_fulfillment][google.cloud.dialogflow.cx.v3.Page.entry_fulfillment]
+ * of a [Page][google.cloud.dialogflow.cx.v3.Page] if
* entering the page indicates that the conversation succeeded.
* * In a webhook response when you determine that you handled the customer
* issue.
@@ -2081,10 +2115,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
@java.lang.Override
public Builder clear() {
super.clear();
- if (metadataBuilder_ == null) {
- metadata_ = null;
- } else {
- metadata_ = null;
+ bitField0_ = 0;
+ metadata_ = null;
+ if (metadataBuilder_ != null) {
+ metadataBuilder_.dispose();
metadataBuilder_ = null;
}
return this;
@@ -2117,15 +2151,21 @@ public com.google.cloud.dialogflow.cx.v3.ResponseMessage.ConversationSuccess bui
public com.google.cloud.dialogflow.cx.v3.ResponseMessage.ConversationSuccess buildPartial() {
com.google.cloud.dialogflow.cx.v3.ResponseMessage.ConversationSuccess result =
new com.google.cloud.dialogflow.cx.v3.ResponseMessage.ConversationSuccess(this);
- if (metadataBuilder_ == null) {
- result.metadata_ = metadata_;
- } else {
- result.metadata_ = metadataBuilder_.build();
+ if (bitField0_ != 0) {
+ buildPartial0(result);
}
onBuilt();
return result;
}
+ private void buildPartial0(
+ com.google.cloud.dialogflow.cx.v3.ResponseMessage.ConversationSuccess result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.metadata_ = metadataBuilder_ == null ? metadata_ : metadataBuilder_.build();
+ }
+ }
+
@java.lang.Override
public Builder clone() {
return super.clone();
@@ -2210,7 +2250,7 @@ public Builder mergeFrom(
case 10:
{
input.readMessage(getMetadataFieldBuilder().getBuilder(), extensionRegistry);
-
+ bitField0_ |= 0x00000001;
break;
} // case 10
default:
@@ -2230,6 +2270,8 @@ public Builder mergeFrom(
return this;
}
+ private int bitField0_;
+
private com.google.protobuf.Struct metadata_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Struct,
@@ -2248,7 +2290,7 @@ public Builder mergeFrom(
* @return Whether the metadata field is set.
*/
public boolean hasMetadata() {
- return metadataBuilder_ != null || metadata_ != null;
+ return ((bitField0_ & 0x00000001) != 0);
}
/**
*
@@ -2283,11 +2325,11 @@ public Builder setMetadata(com.google.protobuf.Struct value) {
throw new NullPointerException();
}
metadata_ = value;
- onChanged();
} else {
metadataBuilder_.setMessage(value);
}
-
+ bitField0_ |= 0x00000001;
+ onChanged();
return this;
}
/**
@@ -2302,11 +2344,11 @@ public Builder setMetadata(com.google.protobuf.Struct value) {
public Builder setMetadata(com.google.protobuf.Struct.Builder builderForValue) {
if (metadataBuilder_ == null) {
metadata_ = builderForValue.build();
- onChanged();
} else {
metadataBuilder_.setMessage(builderForValue.build());
}
-
+ bitField0_ |= 0x00000001;
+ onChanged();
return this;
}
/**
@@ -2320,17 +2362,18 @@ public Builder setMetadata(com.google.protobuf.Struct.Builder builderForValue) {
*/
public Builder mergeMetadata(com.google.protobuf.Struct value) {
if (metadataBuilder_ == null) {
- if (metadata_ != null) {
- metadata_ =
- com.google.protobuf.Struct.newBuilder(metadata_).mergeFrom(value).buildPartial();
+ if (((bitField0_ & 0x00000001) != 0)
+ && metadata_ != null
+ && metadata_ != com.google.protobuf.Struct.getDefaultInstance()) {
+ getMetadataBuilder().mergeFrom(value);
} else {
metadata_ = value;
}
- onChanged();
} else {
metadataBuilder_.mergeFrom(value);
}
-
+ bitField0_ |= 0x00000001;
+ onChanged();
return this;
}
/**
@@ -2343,14 +2386,13 @@ public Builder mergeMetadata(com.google.protobuf.Struct value) {
* .google.protobuf.Struct metadata = 1;
*/
public Builder clearMetadata() {
- if (metadataBuilder_ == null) {
- metadata_ = null;
- onChanged();
- } else {
- metadata_ = null;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ metadata_ = null;
+ if (metadataBuilder_ != null) {
+ metadataBuilder_.dispose();
metadataBuilder_ = null;
}
-
+ onChanged();
return this;
}
/**
@@ -2363,7 +2405,7 @@ public Builder clearMetadata() {
* .google.protobuf.Struct metadata = 1;
*/
public com.google.protobuf.Struct.Builder getMetadataBuilder() {
-
+ bitField0_ |= 0x00000001;
onChanged();
return getMetadataFieldBuilder().getBuilder();
}
@@ -2563,8 +2605,8 @@ public interface OutputAudioTextOrBuilder
*
*
*
- * Output only. Whether the playback of this message can be interrupted by the end
- * user's speech and the client can then starts the next Dialogflow
+ * Output only. Whether the playback of this message can be interrupted by
+ * the end user's speech and the client can then starts the next Dialogflow
* request.
*
*
@@ -2817,13 +2859,13 @@ public com.google.protobuf.ByteString getSsmlBytes() {
}
public static final int ALLOW_PLAYBACK_INTERRUPTION_FIELD_NUMBER = 3;
- private boolean allowPlaybackInterruption_;
+ private boolean allowPlaybackInterruption_ = false;
/**
*
*
*
- * Output only. Whether the playback of this message can be interrupted by the end
- * user's speech and the client can then starts the next Dialogflow
+ * Output only. Whether the playback of this message can be interrupted by
+ * the end user's speech and the client can then starts the next Dialogflow
* request.
*
*
@@ -3076,8 +3118,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
@java.lang.Override
public Builder clear() {
super.clear();
+ bitField0_ = 0;
allowPlaybackInterruption_ = false;
-
sourceCase_ = 0;
source_ = null;
return this;
@@ -3109,18 +3151,28 @@ public com.google.cloud.dialogflow.cx.v3.ResponseMessage.OutputAudioText build()
public com.google.cloud.dialogflow.cx.v3.ResponseMessage.OutputAudioText buildPartial() {
com.google.cloud.dialogflow.cx.v3.ResponseMessage.OutputAudioText result =
new com.google.cloud.dialogflow.cx.v3.ResponseMessage.OutputAudioText(this);
- if (sourceCase_ == 1) {
- result.source_ = source_;
- }
- if (sourceCase_ == 2) {
- result.source_ = source_;
+ if (bitField0_ != 0) {
+ buildPartial0(result);
}
- result.allowPlaybackInterruption_ = allowPlaybackInterruption_;
- result.sourceCase_ = sourceCase_;
+ buildPartialOneofs(result);
onBuilt();
return result;
}
+ private void buildPartial0(
+ com.google.cloud.dialogflow.cx.v3.ResponseMessage.OutputAudioText result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000004) != 0)) {
+ result.allowPlaybackInterruption_ = allowPlaybackInterruption_;
+ }
+ }
+
+ private void buildPartialOneofs(
+ com.google.cloud.dialogflow.cx.v3.ResponseMessage.OutputAudioText result) {
+ result.sourceCase_ = sourceCase_;
+ result.source_ = this.source_;
+ }
+
@java.lang.Override
public Builder clone() {
return super.clone();
@@ -3238,7 +3290,7 @@ public Builder mergeFrom(
case 24:
{
allowPlaybackInterruption_ = input.readBool();
-
+ bitField0_ |= 0x00000004;
break;
} // case 24
default:
@@ -3272,6 +3324,8 @@ public Builder clearSource() {
return this;
}
+ private int bitField0_;
+
/**
*
*
@@ -3551,8 +3605,8 @@ public Builder setSsmlBytes(com.google.protobuf.ByteString value) {
*
*
*
- * Output only. Whether the playback of this message can be interrupted by the end
- * user's speech and the client can then starts the next Dialogflow
+ * Output only. Whether the playback of this message can be interrupted by
+ * the end user's speech and the client can then starts the next Dialogflow
* request.
*
*
@@ -3569,8 +3623,8 @@ public boolean getAllowPlaybackInterruption() {
*
*
*
- * Output only. Whether the playback of this message can be interrupted by the end
- * user's speech and the client can then starts the next Dialogflow
+ * Output only. Whether the playback of this message can be interrupted by
+ * the end user's speech and the client can then starts the next Dialogflow
* request.
*
*
@@ -3583,6 +3637,7 @@ public boolean getAllowPlaybackInterruption() {
public Builder setAllowPlaybackInterruption(boolean value) {
allowPlaybackInterruption_ = value;
+ bitField0_ |= 0x00000004;
onChanged();
return this;
}
@@ -3590,8 +3645,8 @@ public Builder setAllowPlaybackInterruption(boolean value) {
*
*
*
- * Output only. Whether the playback of this message can be interrupted by the end
- * user's speech and the client can then starts the next Dialogflow
+ * Output only. Whether the playback of this message can be interrupted by
+ * the end user's speech and the client can then starts the next Dialogflow
* request.
*
*
@@ -3601,7 +3656,7 @@ public Builder setAllowPlaybackInterruption(boolean value) {
* @return This builder for chaining.
*/
public Builder clearAllowPlaybackInterruption() {
-
+ bitField0_ = (bitField0_ & ~0x00000004);
allowPlaybackInterruption_ = false;
onChanged();
return this;
@@ -4125,8 +4180,8 @@ public interface PlayAudioOrBuilder
*
*
*
- * Required. URI of the audio clip. Dialogflow does not impose any validation on this
- * value. It is specific to the client that reads it.
+ * Required. URI of the audio clip. Dialogflow does not impose any
+ * validation on this value. It is specific to the client that reads it.
*
*
* string audio_uri = 1 [(.google.api.field_behavior) = REQUIRED];
@@ -4138,8 +4193,8 @@ public interface PlayAudioOrBuilder
*
*
*
- * Required. URI of the audio clip. Dialogflow does not impose any validation on this
- * value. It is specific to the client that reads it.
+ * Required. URI of the audio clip. Dialogflow does not impose any
+ * validation on this value. It is specific to the client that reads it.
*
*
* string audio_uri = 1 [(.google.api.field_behavior) = REQUIRED];
@@ -4152,8 +4207,8 @@ public interface PlayAudioOrBuilder
*
*
*
- * Output only. Whether the playback of this message can be interrupted by the end
- * user's speech and the client can then starts the next Dialogflow
+ * Output only. Whether the playback of this message can be interrupted by
+ * the end user's speech and the client can then starts the next Dialogflow
* request.
*
*
@@ -4214,13 +4269,15 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
public static final int AUDIO_URI_FIELD_NUMBER = 1;
- private volatile java.lang.Object audioUri_;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object audioUri_ = "";
/**
*
*
*
- * Required. URI of the audio clip. Dialogflow does not impose any validation on this
- * value. It is specific to the client that reads it.
+ * Required. URI of the audio clip. Dialogflow does not impose any
+ * validation on this value. It is specific to the client that reads it.
*
*
* string audio_uri = 1 [(.google.api.field_behavior) = REQUIRED];
@@ -4243,8 +4300,8 @@ public java.lang.String getAudioUri() {
*
*
*
- * Required. URI of the audio clip. Dialogflow does not impose any validation on this
- * value. It is specific to the client that reads it.
+ * Required. URI of the audio clip. Dialogflow does not impose any
+ * validation on this value. It is specific to the client that reads it.
*
*
* string audio_uri = 1 [(.google.api.field_behavior) = REQUIRED];
@@ -4265,13 +4322,13 @@ public com.google.protobuf.ByteString getAudioUriBytes() {
}
public static final int ALLOW_PLAYBACK_INTERRUPTION_FIELD_NUMBER = 2;
- private boolean allowPlaybackInterruption_;
+ private boolean allowPlaybackInterruption_ = false;
/**
*
*
*
- * Output only. Whether the playback of this message can be interrupted by the end
- * user's speech and the client can then starts the next Dialogflow
+ * Output only. Whether the playback of this message can be interrupted by
+ * the end user's speech and the client can then starts the next Dialogflow
* request.
*
*
@@ -4495,10 +4552,9 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
@java.lang.Override
public Builder clear() {
super.clear();
+ bitField0_ = 0;
audioUri_ = "";
-
allowPlaybackInterruption_ = false;
-
return this;
}
@@ -4527,12 +4583,24 @@ public com.google.cloud.dialogflow.cx.v3.ResponseMessage.PlayAudio build() {
public com.google.cloud.dialogflow.cx.v3.ResponseMessage.PlayAudio buildPartial() {
com.google.cloud.dialogflow.cx.v3.ResponseMessage.PlayAudio result =
new com.google.cloud.dialogflow.cx.v3.ResponseMessage.PlayAudio(this);
- result.audioUri_ = audioUri_;
- result.allowPlaybackInterruption_ = allowPlaybackInterruption_;
+ if (bitField0_ != 0) {
+ buildPartial0(result);
+ }
onBuilt();
return result;
}
+ private void buildPartial0(
+ com.google.cloud.dialogflow.cx.v3.ResponseMessage.PlayAudio result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.audioUri_ = audioUri_;
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.allowPlaybackInterruption_ = allowPlaybackInterruption_;
+ }
+ }
+
@java.lang.Override
public Builder clone() {
return super.clone();
@@ -4584,6 +4652,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.ResponseMessage.PlayA
return this;
if (!other.getAudioUri().isEmpty()) {
audioUri_ = other.audioUri_;
+ bitField0_ |= 0x00000001;
onChanged();
}
if (other.getAllowPlaybackInterruption() != false) {
@@ -4618,13 +4687,13 @@ public Builder mergeFrom(
case 10:
{
audioUri_ = input.readStringRequireUtf8();
-
+ bitField0_ |= 0x00000001;
break;
} // case 10
case 16:
{
allowPlaybackInterruption_ = input.readBool();
-
+ bitField0_ |= 0x00000002;
break;
} // case 16
default:
@@ -4644,13 +4713,15 @@ public Builder mergeFrom(
return this;
}
+ private int bitField0_;
+
private java.lang.Object audioUri_ = "";
/**
*
*
*
- * Required. URI of the audio clip. Dialogflow does not impose any validation on this
- * value. It is specific to the client that reads it.
+ * Required. URI of the audio clip. Dialogflow does not impose any
+ * validation on this value. It is specific to the client that reads it.
*
*
* string audio_uri = 1 [(.google.api.field_behavior) = REQUIRED];
@@ -4672,8 +4743,8 @@ public java.lang.String getAudioUri() {
*
*
*
- * Required. URI of the audio clip. Dialogflow does not impose any validation on this
- * value. It is specific to the client that reads it.
+ * Required. URI of the audio clip. Dialogflow does not impose any
+ * validation on this value. It is specific to the client that reads it.
*
*
* string audio_uri = 1 [(.google.api.field_behavior) = REQUIRED];
@@ -4695,8 +4766,8 @@ public com.google.protobuf.ByteString getAudioUriBytes() {
*
*
*
- * Required. URI of the audio clip. Dialogflow does not impose any validation on this
- * value. It is specific to the client that reads it.
+ * Required. URI of the audio clip. Dialogflow does not impose any
+ * validation on this value. It is specific to the client that reads it.
*
*
* string audio_uri = 1 [(.google.api.field_behavior) = REQUIRED];
@@ -4708,8 +4779,8 @@ public Builder setAudioUri(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
-
audioUri_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -4717,8 +4788,8 @@ public Builder setAudioUri(java.lang.String value) {
*
*
*
- * Required. URI of the audio clip. Dialogflow does not impose any validation on this
- * value. It is specific to the client that reads it.
+ * Required. URI of the audio clip. Dialogflow does not impose any
+ * validation on this value. It is specific to the client that reads it.
*
*
* string audio_uri = 1 [(.google.api.field_behavior) = REQUIRED];
@@ -4726,8 +4797,8 @@ public Builder setAudioUri(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearAudioUri() {
-
audioUri_ = getDefaultInstance().getAudioUri();
+ bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
@@ -4735,8 +4806,8 @@ public Builder clearAudioUri() {
*
*
*
- * Required. URI of the audio clip. Dialogflow does not impose any validation on this
- * value. It is specific to the client that reads it.
+ * Required. URI of the audio clip. Dialogflow does not impose any
+ * validation on this value. It is specific to the client that reads it.
*
*
* string audio_uri = 1 [(.google.api.field_behavior) = REQUIRED];
@@ -4749,8 +4820,8 @@ public Builder setAudioUriBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
-
audioUri_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -4760,8 +4831,8 @@ public Builder setAudioUriBytes(com.google.protobuf.ByteString value) {
*
*
*
- * Output only. Whether the playback of this message can be interrupted by the end
- * user's speech and the client can then starts the next Dialogflow
+ * Output only. Whether the playback of this message can be interrupted by
+ * the end user's speech and the client can then starts the next Dialogflow
* request.
*
*
@@ -4778,8 +4849,8 @@ public boolean getAllowPlaybackInterruption() {
*
*
*
- * Output only. Whether the playback of this message can be interrupted by the end
- * user's speech and the client can then starts the next Dialogflow
+ * Output only. Whether the playback of this message can be interrupted by
+ * the end user's speech and the client can then starts the next Dialogflow
* request.
*
*
@@ -4792,6 +4863,7 @@ public boolean getAllowPlaybackInterruption() {
public Builder setAllowPlaybackInterruption(boolean value) {
allowPlaybackInterruption_ = value;
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -4799,8 +4871,8 @@ public Builder setAllowPlaybackInterruption(boolean value) {
*
*
*
- * Output only. Whether the playback of this message can be interrupted by the end
- * user's speech and the client can then starts the next Dialogflow
+ * Output only. Whether the playback of this message can be interrupted by
+ * the end user's speech and the client can then starts the next Dialogflow
* request.
*
*
@@ -4810,7 +4882,7 @@ public Builder setAllowPlaybackInterruption(boolean value) {
* @return This builder for chaining.
*/
public Builder clearAllowPlaybackInterruption() {
-
+ bitField0_ = (bitField0_ & ~0x00000002);
allowPlaybackInterruption_ = false;
onChanged();
return this;
@@ -5082,9 +5154,9 @@ public interface SegmentOrBuilder
*
*
*
- * Output only. Whether the playback of this segment can be interrupted by the end
- * user's speech and the client should then start the next Dialogflow
- * request.
+ * Output only. Whether the playback of this segment can be interrupted by
+ * the end user's speech and the client should then start the next
+ * Dialogflow request.
*
*
* bool allow_playback_interruption = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
@@ -5302,14 +5374,14 @@ public com.google.protobuf.ByteString getUriBytes() {
}
public static final int ALLOW_PLAYBACK_INTERRUPTION_FIELD_NUMBER = 3;
- private boolean allowPlaybackInterruption_;
+ private boolean allowPlaybackInterruption_ = false;
/**
*
*
*
- * Output only. Whether the playback of this segment can be interrupted by the end
- * user's speech and the client should then start the next Dialogflow
- * request.
+ * Output only. Whether the playback of this segment can be interrupted by
+ * the end user's speech and the client should then start the next
+ * Dialogflow request.
*
*
* bool allow_playback_interruption = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
@@ -5566,8 +5638,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
@java.lang.Override
public Builder clear() {
super.clear();
+ bitField0_ = 0;
allowPlaybackInterruption_ = false;
-
contentCase_ = 0;
content_ = null;
return this;
@@ -5600,18 +5672,28 @@ public com.google.cloud.dialogflow.cx.v3.ResponseMessage.MixedAudio.Segment buil
public com.google.cloud.dialogflow.cx.v3.ResponseMessage.MixedAudio.Segment buildPartial() {
com.google.cloud.dialogflow.cx.v3.ResponseMessage.MixedAudio.Segment result =
new com.google.cloud.dialogflow.cx.v3.ResponseMessage.MixedAudio.Segment(this);
- if (contentCase_ == 1) {
- result.content_ = content_;
- }
- if (contentCase_ == 2) {
- result.content_ = content_;
+ if (bitField0_ != 0) {
+ buildPartial0(result);
}
- result.allowPlaybackInterruption_ = allowPlaybackInterruption_;
- result.contentCase_ = contentCase_;
+ buildPartialOneofs(result);
onBuilt();
return result;
}
+ private void buildPartial0(
+ com.google.cloud.dialogflow.cx.v3.ResponseMessage.MixedAudio.Segment result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000004) != 0)) {
+ result.allowPlaybackInterruption_ = allowPlaybackInterruption_;
+ }
+ }
+
+ private void buildPartialOneofs(
+ com.google.cloud.dialogflow.cx.v3.ResponseMessage.MixedAudio.Segment result) {
+ result.contentCase_ = contentCase_;
+ result.content_ = this.content_;
+ }
+
@java.lang.Override
public Builder clone() {
return super.clone();
@@ -5727,7 +5809,7 @@ public Builder mergeFrom(
case 24:
{
allowPlaybackInterruption_ = input.readBool();
-
+ bitField0_ |= 0x00000004;
break;
} // case 24
default:
@@ -5761,6 +5843,8 @@ public Builder clearContent() {
return this;
}
+ private int bitField0_;
+
/**
*
*
@@ -5982,9 +6066,9 @@ public Builder setUriBytes(com.google.protobuf.ByteString value) {
*
*
*
- * Output only. Whether the playback of this segment can be interrupted by the end
- * user's speech and the client should then start the next Dialogflow
- * request.
+ * Output only. Whether the playback of this segment can be interrupted by
+ * the end user's speech and the client should then start the next
+ * Dialogflow request.
*
*
* bool allow_playback_interruption = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
@@ -6000,9 +6084,9 @@ public boolean getAllowPlaybackInterruption() {
*
*
*
- * Output only. Whether the playback of this segment can be interrupted by the end
- * user's speech and the client should then start the next Dialogflow
- * request.
+ * Output only. Whether the playback of this segment can be interrupted by
+ * the end user's speech and the client should then start the next
+ * Dialogflow request.
*
*
* bool allow_playback_interruption = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
@@ -6014,6 +6098,7 @@ public boolean getAllowPlaybackInterruption() {
public Builder setAllowPlaybackInterruption(boolean value) {
allowPlaybackInterruption_ = value;
+ bitField0_ |= 0x00000004;
onChanged();
return this;
}
@@ -6021,9 +6106,9 @@ public Builder setAllowPlaybackInterruption(boolean value) {
*
*
*
- * Output only. Whether the playback of this segment can be interrupted by the end
- * user's speech and the client should then start the next Dialogflow
- * request.
+ * Output only. Whether the playback of this segment can be interrupted by
+ * the end user's speech and the client should then start the next
+ * Dialogflow request.
*
*
* bool allow_playback_interruption = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
@@ -6032,7 +6117,7 @@ public Builder setAllowPlaybackInterruption(boolean value) {
* @return This builder for chaining.
*/
public Builder clearAllowPlaybackInterruption() {
-
+ bitField0_ = (bitField0_ & ~0x00000004);
allowPlaybackInterruption_ = false;
onChanged();
return this;
@@ -6107,6 +6192,8 @@ public com.google.protobuf.Parser getParserForType() {
}
public static final int SEGMENTS_FIELD_NUMBER = 1;
+
+ @SuppressWarnings("serial")
private java.util.List
segments_;
/**
@@ -6398,6 +6485,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
@java.lang.Override
public Builder clear() {
super.clear();
+ bitField0_ = 0;
if (segmentsBuilder_ == null) {
segments_ = java.util.Collections.emptyList();
} else {
@@ -6433,7 +6521,16 @@ public com.google.cloud.dialogflow.cx.v3.ResponseMessage.MixedAudio build() {
public com.google.cloud.dialogflow.cx.v3.ResponseMessage.MixedAudio buildPartial() {
com.google.cloud.dialogflow.cx.v3.ResponseMessage.MixedAudio result =
new com.google.cloud.dialogflow.cx.v3.ResponseMessage.MixedAudio(this);
- int from_bitField0_ = bitField0_;
+ buildPartialRepeatedFields(result);
+ if (bitField0_ != 0) {
+ buildPartial0(result);
+ }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartialRepeatedFields(
+ com.google.cloud.dialogflow.cx.v3.ResponseMessage.MixedAudio result) {
if (segmentsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
segments_ = java.util.Collections.unmodifiableList(segments_);
@@ -6443,8 +6540,11 @@ public com.google.cloud.dialogflow.cx.v3.ResponseMessage.MixedAudio buildPartial
} else {
result.segments_ = segmentsBuilder_.build();
}
- onBuilt();
- return result;
+ }
+
+ private void buildPartial0(
+ com.google.cloud.dialogflow.cx.v3.ResponseMessage.MixedAudio result) {
+ int from_bitField0_ = bitField0_;
}
@java.lang.Override
@@ -7494,6 +7594,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
@java.lang.Override
public Builder clear() {
super.clear();
+ bitField0_ = 0;
endpointCase_ = 0;
endpoint_ = null;
return this;
@@ -7527,14 +7628,25 @@ public com.google.cloud.dialogflow.cx.v3.ResponseMessage.TelephonyTransferCall b
buildPartial() {
com.google.cloud.dialogflow.cx.v3.ResponseMessage.TelephonyTransferCall result =
new com.google.cloud.dialogflow.cx.v3.ResponseMessage.TelephonyTransferCall(this);
- if (endpointCase_ == 1) {
- result.endpoint_ = endpoint_;
+ if (bitField0_ != 0) {
+ buildPartial0(result);
}
- result.endpointCase_ = endpointCase_;
+ buildPartialOneofs(result);
onBuilt();
return result;
}
+ private void buildPartial0(
+ com.google.cloud.dialogflow.cx.v3.ResponseMessage.TelephonyTransferCall result) {
+ int from_bitField0_ = bitField0_;
+ }
+
+ private void buildPartialOneofs(
+ com.google.cloud.dialogflow.cx.v3.ResponseMessage.TelephonyTransferCall result) {
+ result.endpointCase_ = endpointCase_;
+ result.endpoint_ = this.endpoint_;
+ }
+
@java.lang.Override
public Builder clone() {
return super.clone();
@@ -7664,6 +7776,8 @@ public Builder clearEndpoint() {
return this;
}
+ private int bitField0_;
+
/**
*
*
@@ -8221,10 +8335,10 @@ public com.google.cloud.dialogflow.cx.v3.ResponseMessage.LiveAgentHandoff getLiv
*
*
*
- * Output only. A signal that indicates the interaction with the Dialogflow agent has
- * ended.
- * This message is generated by Dialogflow only when the conversation
- * reaches `END_SESSION` page. It is not supposed to be defined by the user.
+ * Output only. A signal that indicates the interaction with the Dialogflow
+ * agent has ended. This message is generated by Dialogflow only when the
+ * conversation reaches `END_SESSION` page. It is not supposed to be defined
+ * by the user.
* It's guaranteed that there is at most one such message in each response.
*
*
@@ -8242,10 +8356,10 @@ public boolean hasEndInteraction() {
*
*
*
- * Output only. A signal that indicates the interaction with the Dialogflow agent has
- * ended.
- * This message is generated by Dialogflow only when the conversation
- * reaches `END_SESSION` page. It is not supposed to be defined by the user.
+ * Output only. A signal that indicates the interaction with the Dialogflow
+ * agent has ended. This message is generated by Dialogflow only when the
+ * conversation reaches `END_SESSION` page. It is not supposed to be defined
+ * by the user.
* It's guaranteed that there is at most one such message in each response.
*
*
@@ -8266,10 +8380,10 @@ public com.google.cloud.dialogflow.cx.v3.ResponseMessage.EndInteraction getEndIn
*
*
*
- * Output only. A signal that indicates the interaction with the Dialogflow agent has
- * ended.
- * This message is generated by Dialogflow only when the conversation
- * reaches `END_SESSION` page. It is not supposed to be defined by the user.
+ * Output only. A signal that indicates the interaction with the Dialogflow
+ * agent has ended. This message is generated by Dialogflow only when the
+ * conversation reaches `END_SESSION` page. It is not supposed to be defined
+ * by the user.
* It's guaranteed that there is at most one such message in each response.
*
*
@@ -8293,8 +8407,9 @@ public com.google.cloud.dialogflow.cx.v3.ResponseMessage.EndInteraction getEndIn
*
* Signal that the client should play an audio clip hosted at a
* client-specific URI. Dialogflow uses this to construct
- * [mixed_audio][google.cloud.dialogflow.cx.v3.ResponseMessage.mixed_audio]. However, Dialogflow itself
- * does not try to read or process the URI in any way.
+ * [mixed_audio][google.cloud.dialogflow.cx.v3.ResponseMessage.mixed_audio].
+ * However, Dialogflow itself does not try to read or process the URI in any
+ * way.
*
*
* .google.cloud.dialogflow.cx.v3.ResponseMessage.PlayAudio play_audio = 12;
@@ -8311,8 +8426,9 @@ public boolean hasPlayAudio() {
*
* Signal that the client should play an audio clip hosted at a
* client-specific URI. Dialogflow uses this to construct
- * [mixed_audio][google.cloud.dialogflow.cx.v3.ResponseMessage.mixed_audio]. However, Dialogflow itself
- * does not try to read or process the URI in any way.
+ * [mixed_audio][google.cloud.dialogflow.cx.v3.ResponseMessage.mixed_audio].
+ * However, Dialogflow itself does not try to read or process the URI in any
+ * way.
*
*
* .google.cloud.dialogflow.cx.v3.ResponseMessage.PlayAudio play_audio = 12;
@@ -8332,8 +8448,9 @@ public com.google.cloud.dialogflow.cx.v3.ResponseMessage.PlayAudio getPlayAudio(
*
* Signal that the client should play an audio clip hosted at a
* client-specific URI. Dialogflow uses this to construct
- * [mixed_audio][google.cloud.dialogflow.cx.v3.ResponseMessage.mixed_audio]. However, Dialogflow itself
- * does not try to read or process the URI in any way.
+ * [mixed_audio][google.cloud.dialogflow.cx.v3.ResponseMessage.mixed_audio].
+ * However, Dialogflow itself does not try to read or process the URI in any
+ * way.
*
*
* .google.cloud.dialogflow.cx.v3.ResponseMessage.PlayAudio play_audio = 12;
@@ -8352,8 +8469,8 @@ public com.google.cloud.dialogflow.cx.v3.ResponseMessage.PlayAudio getPlayAudio(
*
*
*
- * Output only. An audio response message composed of both the synthesized Dialogflow
- * agent responses and responses defined via
+ * Output only. An audio response message composed of both the synthesized
+ * Dialogflow agent responses and responses defined via
* [play_audio][google.cloud.dialogflow.cx.v3.ResponseMessage.play_audio].
* This message is generated by Dialogflow only and not supposed to be
* defined by the user.
@@ -8373,8 +8490,8 @@ public boolean hasMixedAudio() {
*
*
*
- * Output only. An audio response message composed of both the synthesized Dialogflow
- * agent responses and responses defined via
+ * Output only. An audio response message composed of both the synthesized
+ * Dialogflow agent responses and responses defined via
* [play_audio][google.cloud.dialogflow.cx.v3.ResponseMessage.play_audio].
* This message is generated by Dialogflow only and not supposed to be
* defined by the user.
@@ -8397,8 +8514,8 @@ public com.google.cloud.dialogflow.cx.v3.ResponseMessage.MixedAudio getMixedAudi
*
*
*
- * Output only. An audio response message composed of both the synthesized Dialogflow
- * agent responses and responses defined via
+ * Output only. An audio response message composed of both the synthesized
+ * Dialogflow agent responses and responses defined via
* [play_audio][google.cloud.dialogflow.cx.v3.ResponseMessage.play_audio].
* This message is generated by Dialogflow only and not supposed to be
* defined by the user.
@@ -8481,6 +8598,63 @@ public boolean hasTelephonyTransferCall() {
.getDefaultInstance();
}
+ public static final int CHANNEL_FIELD_NUMBER = 19;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object channel_ = "";
+ /**
+ *
+ *
+ *
+ * The channel which the response is associated with. Clients can specify the
+ * channel via
+ * [QueryParameters.channel][google.cloud.dialogflow.cx.v3.QueryParameters.channel],
+ * and only associated channel response will be returned.
+ *
+ *
+ * string channel = 19;
+ *
+ * @return The channel.
+ */
+ @java.lang.Override
+ public java.lang.String getChannel() {
+ java.lang.Object ref = channel_;
+ 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();
+ channel_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The channel which the response is associated with. Clients can specify the
+ * channel via
+ * [QueryParameters.channel][google.cloud.dialogflow.cx.v3.QueryParameters.channel],
+ * and only associated channel response will be returned.
+ *
+ *
+ * string channel = 19;
+ *
+ * @return The bytes for channel.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getChannelBytes() {
+ java.lang.Object ref = channel_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ channel_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
private byte memoizedIsInitialized = -1;
@java.lang.Override
@@ -8529,6 +8703,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
output.writeMessage(
18, (com.google.cloud.dialogflow.cx.v3.ResponseMessage.TelephonyTransferCall) message_);
}
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(channel_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 19, channel_);
+ }
getUnknownFields().writeTo(output);
}
@@ -8584,6 +8761,9 @@ public int getSerializedSize() {
18,
(com.google.cloud.dialogflow.cx.v3.ResponseMessage.TelephonyTransferCall) message_);
}
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(channel_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(19, channel_);
+ }
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
@@ -8600,6 +8780,7 @@ public boolean equals(final java.lang.Object obj) {
com.google.cloud.dialogflow.cx.v3.ResponseMessage other =
(com.google.cloud.dialogflow.cx.v3.ResponseMessage) obj;
+ if (!getChannel().equals(other.getChannel())) return false;
if (!getMessageCase().equals(other.getMessageCase())) return false;
switch (messageCase_) {
case 1:
@@ -8643,6 +8824,8 @@ public int hashCode() {
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + CHANNEL_FIELD_NUMBER;
+ hash = (53 * hash) + getChannel().hashCode();
switch (messageCase_) {
case 1:
hash = (37 * hash) + TEXT_FIELD_NUMBER;
@@ -8834,6 +9017,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
@java.lang.Override
public Builder clear() {
super.clear();
+ bitField0_ = 0;
if (textBuilder_ != null) {
textBuilder_.clear();
}
@@ -8861,6 +9045,7 @@ public Builder clear() {
if (telephonyTransferCallBuilder_ != null) {
telephonyTransferCallBuilder_.clear();
}
+ channel_ = "";
messageCase_ = 0;
message_ = null;
return this;
@@ -8890,72 +9075,51 @@ public com.google.cloud.dialogflow.cx.v3.ResponseMessage build() {
public com.google.cloud.dialogflow.cx.v3.ResponseMessage buildPartial() {
com.google.cloud.dialogflow.cx.v3.ResponseMessage result =
new com.google.cloud.dialogflow.cx.v3.ResponseMessage(this);
- if (messageCase_ == 1) {
- if (textBuilder_ == null) {
- result.message_ = message_;
- } else {
- result.message_ = textBuilder_.build();
- }
+ if (bitField0_ != 0) {
+ buildPartial0(result);
}
- if (messageCase_ == 2) {
- if (payloadBuilder_ == null) {
- result.message_ = message_;
- } else {
- result.message_ = payloadBuilder_.build();
- }
+ buildPartialOneofs(result);
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartial0(com.google.cloud.dialogflow.cx.v3.ResponseMessage result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000200) != 0)) {
+ result.channel_ = channel_;
}
- if (messageCase_ == 9) {
- if (conversationSuccessBuilder_ == null) {
- result.message_ = message_;
- } else {
- result.message_ = conversationSuccessBuilder_.build();
- }
+ }
+
+ private void buildPartialOneofs(com.google.cloud.dialogflow.cx.v3.ResponseMessage result) {
+ result.messageCase_ = messageCase_;
+ result.message_ = this.message_;
+ if (messageCase_ == 1 && textBuilder_ != null) {
+ result.message_ = textBuilder_.build();
}
- if (messageCase_ == 8) {
- if (outputAudioTextBuilder_ == null) {
- result.message_ = message_;
- } else {
- result.message_ = outputAudioTextBuilder_.build();
- }
+ if (messageCase_ == 2 && payloadBuilder_ != null) {
+ result.message_ = payloadBuilder_.build();
}
- if (messageCase_ == 10) {
- if (liveAgentHandoffBuilder_ == null) {
- result.message_ = message_;
- } else {
- result.message_ = liveAgentHandoffBuilder_.build();
- }
+ if (messageCase_ == 9 && conversationSuccessBuilder_ != null) {
+ result.message_ = conversationSuccessBuilder_.build();
}
- if (messageCase_ == 11) {
- if (endInteractionBuilder_ == null) {
- result.message_ = message_;
- } else {
- result.message_ = endInteractionBuilder_.build();
- }
+ if (messageCase_ == 8 && outputAudioTextBuilder_ != null) {
+ result.message_ = outputAudioTextBuilder_.build();
}
- if (messageCase_ == 12) {
- if (playAudioBuilder_ == null) {
- result.message_ = message_;
- } else {
- result.message_ = playAudioBuilder_.build();
- }
+ if (messageCase_ == 10 && liveAgentHandoffBuilder_ != null) {
+ result.message_ = liveAgentHandoffBuilder_.build();
}
- if (messageCase_ == 13) {
- if (mixedAudioBuilder_ == null) {
- result.message_ = message_;
- } else {
- result.message_ = mixedAudioBuilder_.build();
- }
+ if (messageCase_ == 11 && endInteractionBuilder_ != null) {
+ result.message_ = endInteractionBuilder_.build();
}
- if (messageCase_ == 18) {
- if (telephonyTransferCallBuilder_ == null) {
- result.message_ = message_;
- } else {
- result.message_ = telephonyTransferCallBuilder_.build();
- }
+ if (messageCase_ == 12 && playAudioBuilder_ != null) {
+ result.message_ = playAudioBuilder_.build();
+ }
+ if (messageCase_ == 13 && mixedAudioBuilder_ != null) {
+ result.message_ = mixedAudioBuilder_.build();
+ }
+ if (messageCase_ == 18 && telephonyTransferCallBuilder_ != null) {
+ result.message_ = telephonyTransferCallBuilder_.build();
}
- result.messageCase_ = messageCase_;
- onBuilt();
- return result;
}
@java.lang.Override
@@ -9004,6 +9168,11 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.ResponseMessage other) {
if (other == com.google.cloud.dialogflow.cx.v3.ResponseMessage.getDefaultInstance())
return this;
+ if (!other.getChannel().isEmpty()) {
+ channel_ = other.channel_;
+ bitField0_ |= 0x00000200;
+ onChanged();
+ }
switch (other.getMessageCase()) {
case TEXT:
{
@@ -9138,6 +9307,12 @@ public Builder mergeFrom(
messageCase_ = 18;
break;
} // case 146
+ case 154:
+ {
+ channel_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000200;
+ break;
+ } // case 154
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
@@ -9169,6 +9344,8 @@ public Builder clearMessage() {
return this;
}
+ private int bitField0_;
+
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.dialogflow.cx.v3.ResponseMessage.Text,
com.google.cloud.dialogflow.cx.v3.ResponseMessage.Text.Builder,
@@ -9376,7 +9553,6 @@ public com.google.cloud.dialogflow.cx.v3.ResponseMessage.TextOrBuilder getTextOr
}
messageCase_ = 1;
onChanged();
- ;
return textBuilder_;
}
@@ -9581,7 +9757,6 @@ public com.google.protobuf.StructOrBuilder getPayloadOrBuilder() {
}
messageCase_ = 2;
onChanged();
- ;
return payloadBuilder_;
}
@@ -9823,7 +9998,6 @@ public Builder clearConversationSuccess() {
}
messageCase_ = 9;
onChanged();
- ;
return conversationSuccessBuilder_;
}
@@ -10062,7 +10236,6 @@ public Builder clearOutputAudioText() {
}
messageCase_ = 8;
onChanged();
- ;
return outputAudioTextBuilder_;
}
@@ -10303,7 +10476,6 @@ public Builder clearLiveAgentHandoff() {
}
messageCase_ = 10;
onChanged();
- ;
return liveAgentHandoffBuilder_;
}
@@ -10316,10 +10488,10 @@ public Builder clearLiveAgentHandoff() {
*
*
*
- * Output only. A signal that indicates the interaction with the Dialogflow agent has
- * ended.
- * This message is generated by Dialogflow only when the conversation
- * reaches `END_SESSION` page. It is not supposed to be defined by the user.
+ * Output only. A signal that indicates the interaction with the Dialogflow
+ * agent has ended. This message is generated by Dialogflow only when the
+ * conversation reaches `END_SESSION` page. It is not supposed to be defined
+ * by the user.
* It's guaranteed that there is at most one such message in each response.
*
*
@@ -10337,10 +10509,10 @@ public boolean hasEndInteraction() {
*
*
*
- * Output only. A signal that indicates the interaction with the Dialogflow agent has
- * ended.
- * This message is generated by Dialogflow only when the conversation
- * reaches `END_SESSION` page. It is not supposed to be defined by the user.
+ * Output only. A signal that indicates the interaction with the Dialogflow
+ * agent has ended. This message is generated by Dialogflow only when the
+ * conversation reaches `END_SESSION` page. It is not supposed to be defined
+ * by the user.
* It's guaranteed that there is at most one such message in each response.
*
*
@@ -10370,10 +10542,10 @@ public com.google.cloud.dialogflow.cx.v3.ResponseMessage.EndInteraction getEndIn
*
*
*
- * Output only. A signal that indicates the interaction with the Dialogflow agent has
- * ended.
- * This message is generated by Dialogflow only when the conversation
- * reaches `END_SESSION` page. It is not supposed to be defined by the user.
+ * Output only. A signal that indicates the interaction with the Dialogflow
+ * agent has ended. This message is generated by Dialogflow only when the
+ * conversation reaches `END_SESSION` page. It is not supposed to be defined
+ * by the user.
* It's guaranteed that there is at most one such message in each response.
*
*
@@ -10399,10 +10571,10 @@ public Builder setEndInteraction(
*
*
*
- * Output only. A signal that indicates the interaction with the Dialogflow agent has
- * ended.
- * This message is generated by Dialogflow only when the conversation
- * reaches `END_SESSION` page. It is not supposed to be defined by the user.
+ * Output only. A signal that indicates the interaction with the Dialogflow
+ * agent has ended. This message is generated by Dialogflow only when the
+ * conversation reaches `END_SESSION` page. It is not supposed to be defined
+ * by the user.
* It's guaranteed that there is at most one such message in each response.
*
*
@@ -10425,10 +10597,10 @@ public Builder setEndInteraction(
*
*
*
- * Output only. A signal that indicates the interaction with the Dialogflow agent has
- * ended.
- * This message is generated by Dialogflow only when the conversation
- * reaches `END_SESSION` page. It is not supposed to be defined by the user.
+ * Output only. A signal that indicates the interaction with the Dialogflow
+ * agent has ended. This message is generated by Dialogflow only when the
+ * conversation reaches `END_SESSION` page. It is not supposed to be defined
+ * by the user.
* It's guaranteed that there is at most one such message in each response.
*
*
@@ -10466,10 +10638,10 @@ public Builder mergeEndInteraction(
*
*
*
- * Output only. A signal that indicates the interaction with the Dialogflow agent has
- * ended.
- * This message is generated by Dialogflow only when the conversation
- * reaches `END_SESSION` page. It is not supposed to be defined by the user.
+ * Output only. A signal that indicates the interaction with the Dialogflow
+ * agent has ended. This message is generated by Dialogflow only when the
+ * conversation reaches `END_SESSION` page. It is not supposed to be defined
+ * by the user.
* It's guaranteed that there is at most one such message in each response.
*
*
@@ -10497,10 +10669,10 @@ public Builder clearEndInteraction() {
*
*
*
- * Output only. A signal that indicates the interaction with the Dialogflow agent has
- * ended.
- * This message is generated by Dialogflow only when the conversation
- * reaches `END_SESSION` page. It is not supposed to be defined by the user.
+ * Output only. A signal that indicates the interaction with the Dialogflow
+ * agent has ended. This message is generated by Dialogflow only when the
+ * conversation reaches `END_SESSION` page. It is not supposed to be defined
+ * by the user.
* It's guaranteed that there is at most one such message in each response.
*
*
@@ -10516,10 +10688,10 @@ public Builder clearEndInteraction() {
*
*
*
- * Output only. A signal that indicates the interaction with the Dialogflow agent has
- * ended.
- * This message is generated by Dialogflow only when the conversation
- * reaches `END_SESSION` page. It is not supposed to be defined by the user.
+ * Output only. A signal that indicates the interaction with the Dialogflow
+ * agent has ended. This message is generated by Dialogflow only when the
+ * conversation reaches `END_SESSION` page. It is not supposed to be defined
+ * by the user.
* It's guaranteed that there is at most one such message in each response.
*
*
@@ -10544,10 +10716,10 @@ public Builder clearEndInteraction() {
*
*
*
- * Output only. A signal that indicates the interaction with the Dialogflow agent has
- * ended.
- * This message is generated by Dialogflow only when the conversation
- * reaches `END_SESSION` page. It is not supposed to be defined by the user.
+ * Output only. A signal that indicates the interaction with the Dialogflow
+ * agent has ended. This message is generated by Dialogflow only when the
+ * conversation reaches `END_SESSION` page. It is not supposed to be defined
+ * by the user.
* It's guaranteed that there is at most one such message in each response.
*
*
@@ -10577,7 +10749,6 @@ public Builder clearEndInteraction() {
}
messageCase_ = 11;
onChanged();
- ;
return endInteractionBuilder_;
}
@@ -10592,8 +10763,9 @@ public Builder clearEndInteraction() {
*
* Signal that the client should play an audio clip hosted at a
* client-specific URI. Dialogflow uses this to construct
- * [mixed_audio][google.cloud.dialogflow.cx.v3.ResponseMessage.mixed_audio]. However, Dialogflow itself
- * does not try to read or process the URI in any way.
+ * [mixed_audio][google.cloud.dialogflow.cx.v3.ResponseMessage.mixed_audio].
+ * However, Dialogflow itself does not try to read or process the URI in any
+ * way.
*
*
* .google.cloud.dialogflow.cx.v3.ResponseMessage.PlayAudio play_audio = 12;
@@ -10610,8 +10782,9 @@ public boolean hasPlayAudio() {
*
* Signal that the client should play an audio clip hosted at a
* client-specific URI. Dialogflow uses this to construct
- * [mixed_audio][google.cloud.dialogflow.cx.v3.ResponseMessage.mixed_audio]. However, Dialogflow itself
- * does not try to read or process the URI in any way.
+ * [mixed_audio][google.cloud.dialogflow.cx.v3.ResponseMessage.mixed_audio].
+ * However, Dialogflow itself does not try to read or process the URI in any
+ * way.
*
*
* .google.cloud.dialogflow.cx.v3.ResponseMessage.PlayAudio play_audio = 12;
@@ -10638,8 +10811,9 @@ public com.google.cloud.dialogflow.cx.v3.ResponseMessage.PlayAudio getPlayAudio(
*
* Signal that the client should play an audio clip hosted at a
* client-specific URI. Dialogflow uses this to construct
- * [mixed_audio][google.cloud.dialogflow.cx.v3.ResponseMessage.mixed_audio]. However, Dialogflow itself
- * does not try to read or process the URI in any way.
+ * [mixed_audio][google.cloud.dialogflow.cx.v3.ResponseMessage.mixed_audio].
+ * However, Dialogflow itself does not try to read or process the URI in any
+ * way.
*
*
* .google.cloud.dialogflow.cx.v3.ResponseMessage.PlayAudio play_audio = 12;
@@ -10663,8 +10837,9 @@ public Builder setPlayAudio(com.google.cloud.dialogflow.cx.v3.ResponseMessage.Pl
*
* Signal that the client should play an audio clip hosted at a
* client-specific URI. Dialogflow uses this to construct
- * [mixed_audio][google.cloud.dialogflow.cx.v3.ResponseMessage.mixed_audio]. However, Dialogflow itself
- * does not try to read or process the URI in any way.
+ * [mixed_audio][google.cloud.dialogflow.cx.v3.ResponseMessage.mixed_audio].
+ * However, Dialogflow itself does not try to read or process the URI in any
+ * way.
*
*
* .google.cloud.dialogflow.cx.v3.ResponseMessage.PlayAudio play_audio = 12;
@@ -10686,8 +10861,9 @@ public Builder setPlayAudio(
*
* Signal that the client should play an audio clip hosted at a
* client-specific URI. Dialogflow uses this to construct
- * [mixed_audio][google.cloud.dialogflow.cx.v3.ResponseMessage.mixed_audio]. However, Dialogflow itself
- * does not try to read or process the URI in any way.
+ * [mixed_audio][google.cloud.dialogflow.cx.v3.ResponseMessage.mixed_audio].
+ * However, Dialogflow itself does not try to read or process the URI in any
+ * way.
*
*
* .google.cloud.dialogflow.cx.v3.ResponseMessage.PlayAudio play_audio = 12;
@@ -10724,8 +10900,9 @@ public Builder mergePlayAudio(
*
* Signal that the client should play an audio clip hosted at a
* client-specific URI. Dialogflow uses this to construct
- * [mixed_audio][google.cloud.dialogflow.cx.v3.ResponseMessage.mixed_audio]. However, Dialogflow itself
- * does not try to read or process the URI in any way.
+ * [mixed_audio][google.cloud.dialogflow.cx.v3.ResponseMessage.mixed_audio].
+ * However, Dialogflow itself does not try to read or process the URI in any
+ * way.
*
*
* .google.cloud.dialogflow.cx.v3.ResponseMessage.PlayAudio play_audio = 12;
@@ -10752,8 +10929,9 @@ public Builder clearPlayAudio() {
*
* Signal that the client should play an audio clip hosted at a
* client-specific URI. Dialogflow uses this to construct
- * [mixed_audio][google.cloud.dialogflow.cx.v3.ResponseMessage.mixed_audio]. However, Dialogflow itself
- * does not try to read or process the URI in any way.
+ * [mixed_audio][google.cloud.dialogflow.cx.v3.ResponseMessage.mixed_audio].
+ * However, Dialogflow itself does not try to read or process the URI in any
+ * way.
*
*
* .google.cloud.dialogflow.cx.v3.ResponseMessage.PlayAudio play_audio = 12;
@@ -10768,8 +10946,9 @@ public Builder clearPlayAudio() {
*
* Signal that the client should play an audio clip hosted at a
* client-specific URI. Dialogflow uses this to construct
- * [mixed_audio][google.cloud.dialogflow.cx.v3.ResponseMessage.mixed_audio]. However, Dialogflow itself
- * does not try to read or process the URI in any way.
+ * [mixed_audio][google.cloud.dialogflow.cx.v3.ResponseMessage.mixed_audio].
+ * However, Dialogflow itself does not try to read or process the URI in any
+ * way.
*
*
* .google.cloud.dialogflow.cx.v3.ResponseMessage.PlayAudio play_audio = 12;
@@ -10792,8 +10971,9 @@ public Builder clearPlayAudio() {
*
* Signal that the client should play an audio clip hosted at a
* client-specific URI. Dialogflow uses this to construct
- * [mixed_audio][google.cloud.dialogflow.cx.v3.ResponseMessage.mixed_audio]. However, Dialogflow itself
- * does not try to read or process the URI in any way.
+ * [mixed_audio][google.cloud.dialogflow.cx.v3.ResponseMessage.mixed_audio].
+ * However, Dialogflow itself does not try to read or process the URI in any
+ * way.
*
*
* .google.cloud.dialogflow.cx.v3.ResponseMessage.PlayAudio play_audio = 12;
@@ -10820,7 +11000,6 @@ public Builder clearPlayAudio() {
}
messageCase_ = 12;
onChanged();
- ;
return playAudioBuilder_;
}
@@ -10833,8 +11012,8 @@ public Builder clearPlayAudio() {
*
*
*
- * Output only. An audio response message composed of both the synthesized Dialogflow
- * agent responses and responses defined via
+ * Output only. An audio response message composed of both the synthesized
+ * Dialogflow agent responses and responses defined via
* [play_audio][google.cloud.dialogflow.cx.v3.ResponseMessage.play_audio].
* This message is generated by Dialogflow only and not supposed to be
* defined by the user.
@@ -10854,8 +11033,8 @@ public boolean hasMixedAudio() {
*
*
*
- * Output only. An audio response message composed of both the synthesized Dialogflow
- * agent responses and responses defined via
+ * Output only. An audio response message composed of both the synthesized
+ * Dialogflow agent responses and responses defined via
* [play_audio][google.cloud.dialogflow.cx.v3.ResponseMessage.play_audio].
* This message is generated by Dialogflow only and not supposed to be
* defined by the user.
@@ -10885,8 +11064,8 @@ public com.google.cloud.dialogflow.cx.v3.ResponseMessage.MixedAudio getMixedAudi
*
*
*
- * Output only. An audio response message composed of both the synthesized Dialogflow
- * agent responses and responses defined via
+ * Output only. An audio response message composed of both the synthesized
+ * Dialogflow agent responses and responses defined via
* [play_audio][google.cloud.dialogflow.cx.v3.ResponseMessage.play_audio].
* This message is generated by Dialogflow only and not supposed to be
* defined by the user.
@@ -10914,8 +11093,8 @@ public Builder setMixedAudio(
*
*
*
- * Output only. An audio response message composed of both the synthesized Dialogflow
- * agent responses and responses defined via
+ * Output only. An audio response message composed of both the synthesized
+ * Dialogflow agent responses and responses defined via
* [play_audio][google.cloud.dialogflow.cx.v3.ResponseMessage.play_audio].
* This message is generated by Dialogflow only and not supposed to be
* defined by the user.
@@ -10940,8 +11119,8 @@ public Builder setMixedAudio(
*
*
*
- * Output only. An audio response message composed of both the synthesized Dialogflow
- * agent responses and responses defined via
+ * Output only. An audio response message composed of both the synthesized
+ * Dialogflow agent responses and responses defined via
* [play_audio][google.cloud.dialogflow.cx.v3.ResponseMessage.play_audio].
* This message is generated by Dialogflow only and not supposed to be
* defined by the user.
@@ -10981,8 +11160,8 @@ public Builder mergeMixedAudio(
*
*
*
- * Output only. An audio response message composed of both the synthesized Dialogflow
- * agent responses and responses defined via
+ * Output only. An audio response message composed of both the synthesized
+ * Dialogflow agent responses and responses defined via
* [play_audio][google.cloud.dialogflow.cx.v3.ResponseMessage.play_audio].
* This message is generated by Dialogflow only and not supposed to be
* defined by the user.
@@ -11012,8 +11191,8 @@ public Builder clearMixedAudio() {
*
*
*
- * Output only. An audio response message composed of both the synthesized Dialogflow
- * agent responses and responses defined via
+ * Output only. An audio response message composed of both the synthesized
+ * Dialogflow agent responses and responses defined via
* [play_audio][google.cloud.dialogflow.cx.v3.ResponseMessage.play_audio].
* This message is generated by Dialogflow only and not supposed to be
* defined by the user.
@@ -11031,8 +11210,8 @@ public Builder clearMixedAudio() {
*
*
*
- * Output only. An audio response message composed of both the synthesized Dialogflow
- * agent responses and responses defined via
+ * Output only. An audio response message composed of both the synthesized
+ * Dialogflow agent responses and responses defined via
* [play_audio][google.cloud.dialogflow.cx.v3.ResponseMessage.play_audio].
* This message is generated by Dialogflow only and not supposed to be
* defined by the user.
@@ -11058,8 +11237,8 @@ public Builder clearMixedAudio() {
*
*
*
- * Output only. An audio response message composed of both the synthesized Dialogflow
- * agent responses and responses defined via
+ * Output only. An audio response message composed of both the synthesized
+ * Dialogflow agent responses and responses defined via
* [play_audio][google.cloud.dialogflow.cx.v3.ResponseMessage.play_audio].
* This message is generated by Dialogflow only and not supposed to be
* defined by the user.
@@ -11091,7 +11270,6 @@ public Builder clearMixedAudio() {
}
messageCase_ = 13;
onChanged();
- ;
return mixedAudioBuilder_;
}
@@ -11342,10 +11520,130 @@ public Builder clearTelephonyTransferCall() {
}
messageCase_ = 18;
onChanged();
- ;
return telephonyTransferCallBuilder_;
}
+ private java.lang.Object channel_ = "";
+ /**
+ *
+ *
+ *
+ * The channel which the response is associated with. Clients can specify the
+ * channel via
+ * [QueryParameters.channel][google.cloud.dialogflow.cx.v3.QueryParameters.channel],
+ * and only associated channel response will be returned.
+ *
+ *
+ * string channel = 19;
+ *
+ * @return The channel.
+ */
+ public java.lang.String getChannel() {
+ java.lang.Object ref = channel_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ channel_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The channel which the response is associated with. Clients can specify the
+ * channel via
+ * [QueryParameters.channel][google.cloud.dialogflow.cx.v3.QueryParameters.channel],
+ * and only associated channel response will be returned.
+ *
+ *
+ * string channel = 19;
+ *
+ * @return The bytes for channel.
+ */
+ public com.google.protobuf.ByteString getChannelBytes() {
+ java.lang.Object ref = channel_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ channel_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The channel which the response is associated with. Clients can specify the
+ * channel via
+ * [QueryParameters.channel][google.cloud.dialogflow.cx.v3.QueryParameters.channel],
+ * and only associated channel response will be returned.
+ *
+ *
+ * string channel = 19;
+ *
+ * @param value The channel to set.
+ * @return This builder for chaining.
+ */
+ public Builder setChannel(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ channel_ = value;
+ bitField0_ |= 0x00000200;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The channel which the response is associated with. Clients can specify the
+ * channel via
+ * [QueryParameters.channel][google.cloud.dialogflow.cx.v3.QueryParameters.channel],
+ * and only associated channel response will be returned.
+ *
+ *
+ * string channel = 19;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearChannel() {
+ channel_ = getDefaultInstance().getChannel();
+ bitField0_ = (bitField0_ & ~0x00000200);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The channel which the response is associated with. Clients can specify the
+ * channel via
+ * [QueryParameters.channel][google.cloud.dialogflow.cx.v3.QueryParameters.channel],
+ * and only associated channel response will be returned.
+ *
+ *
+ * string channel = 19;
+ *
+ * @param value The bytes for channel to set.
+ * @return This builder for chaining.
+ */
+ public Builder setChannelBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ channel_ = value;
+ bitField0_ |= 0x00000200;
+ onChanged();
+ return this;
+ }
+
@java.lang.Override
public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ResponseMessageOrBuilder.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ResponseMessageOrBuilder.java
index 48643e3c91f8..39f494c11b95 100644
--- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ResponseMessageOrBuilder.java
+++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ResponseMessageOrBuilder.java
@@ -220,10 +220,10 @@ public interface ResponseMessageOrBuilder
*
*
*
- * Output only. A signal that indicates the interaction with the Dialogflow agent has
- * ended.
- * This message is generated by Dialogflow only when the conversation
- * reaches `END_SESSION` page. It is not supposed to be defined by the user.
+ * Output only. A signal that indicates the interaction with the Dialogflow
+ * agent has ended. This message is generated by Dialogflow only when the
+ * conversation reaches `END_SESSION` page. It is not supposed to be defined
+ * by the user.
* It's guaranteed that there is at most one such message in each response.
*
*
@@ -238,10 +238,10 @@ public interface ResponseMessageOrBuilder
*
*
*
- * Output only. A signal that indicates the interaction with the Dialogflow agent has
- * ended.
- * This message is generated by Dialogflow only when the conversation
- * reaches `END_SESSION` page. It is not supposed to be defined by the user.
+ * Output only. A signal that indicates the interaction with the Dialogflow
+ * agent has ended. This message is generated by Dialogflow only when the
+ * conversation reaches `END_SESSION` page. It is not supposed to be defined
+ * by the user.
* It's guaranteed that there is at most one such message in each response.
*
*
@@ -256,10 +256,10 @@ public interface ResponseMessageOrBuilder
*
*
*
- * Output only. A signal that indicates the interaction with the Dialogflow agent has
- * ended.
- * This message is generated by Dialogflow only when the conversation
- * reaches `END_SESSION` page. It is not supposed to be defined by the user.
+ * Output only. A signal that indicates the interaction with the Dialogflow
+ * agent has ended. This message is generated by Dialogflow only when the
+ * conversation reaches `END_SESSION` page. It is not supposed to be defined
+ * by the user.
* It's guaranteed that there is at most one such message in each response.
*
*
@@ -276,8 +276,9 @@ public interface ResponseMessageOrBuilder
*
* Signal that the client should play an audio clip hosted at a
* client-specific URI. Dialogflow uses this to construct
- * [mixed_audio][google.cloud.dialogflow.cx.v3.ResponseMessage.mixed_audio]. However, Dialogflow itself
- * does not try to read or process the URI in any way.
+ * [mixed_audio][google.cloud.dialogflow.cx.v3.ResponseMessage.mixed_audio].
+ * However, Dialogflow itself does not try to read or process the URI in any
+ * way.
*
*
* .google.cloud.dialogflow.cx.v3.ResponseMessage.PlayAudio play_audio = 12;
@@ -291,8 +292,9 @@ public interface ResponseMessageOrBuilder
*
* Signal that the client should play an audio clip hosted at a
* client-specific URI. Dialogflow uses this to construct
- * [mixed_audio][google.cloud.dialogflow.cx.v3.ResponseMessage.mixed_audio]. However, Dialogflow itself
- * does not try to read or process the URI in any way.
+ * [mixed_audio][google.cloud.dialogflow.cx.v3.ResponseMessage.mixed_audio].
+ * However, Dialogflow itself does not try to read or process the URI in any
+ * way.
*
*
* .google.cloud.dialogflow.cx.v3.ResponseMessage.PlayAudio play_audio = 12;
@@ -306,8 +308,9 @@ public interface ResponseMessageOrBuilder
*
* Signal that the client should play an audio clip hosted at a
* client-specific URI. Dialogflow uses this to construct
- * [mixed_audio][google.cloud.dialogflow.cx.v3.ResponseMessage.mixed_audio]. However, Dialogflow itself
- * does not try to read or process the URI in any way.
+ * [mixed_audio][google.cloud.dialogflow.cx.v3.ResponseMessage.mixed_audio].
+ * However, Dialogflow itself does not try to read or process the URI in any
+ * way.
*
*
* .google.cloud.dialogflow.cx.v3.ResponseMessage.PlayAudio play_audio = 12;
@@ -318,8 +321,8 @@ public interface ResponseMessageOrBuilder
*
*
*
- * Output only. An audio response message composed of both the synthesized Dialogflow
- * agent responses and responses defined via
+ * Output only. An audio response message composed of both the synthesized
+ * Dialogflow agent responses and responses defined via
* [play_audio][google.cloud.dialogflow.cx.v3.ResponseMessage.play_audio].
* This message is generated by Dialogflow only and not supposed to be
* defined by the user.
@@ -336,8 +339,8 @@ public interface ResponseMessageOrBuilder
*
*
*
- * Output only. An audio response message composed of both the synthesized Dialogflow
- * agent responses and responses defined via
+ * Output only. An audio response message composed of both the synthesized
+ * Dialogflow agent responses and responses defined via
* [play_audio][google.cloud.dialogflow.cx.v3.ResponseMessage.play_audio].
* This message is generated by Dialogflow only and not supposed to be
* defined by the user.
@@ -354,8 +357,8 @@ public interface ResponseMessageOrBuilder
*
*
*
- * Output only. An audio response message composed of both the synthesized Dialogflow
- * agent responses and responses defined via
+ * Output only. An audio response message composed of both the synthesized
+ * Dialogflow agent responses and responses defined via
* [play_audio][google.cloud.dialogflow.cx.v3.ResponseMessage.play_audio].
* This message is generated by Dialogflow only and not supposed to be
* defined by the user.
@@ -413,5 +416,36 @@ public interface ResponseMessageOrBuilder
com.google.cloud.dialogflow.cx.v3.ResponseMessage.TelephonyTransferCallOrBuilder
getTelephonyTransferCallOrBuilder();
+ /**
+ *
+ *
+ *
+ * The channel which the response is associated with. Clients can specify the
+ * channel via
+ * [QueryParameters.channel][google.cloud.dialogflow.cx.v3.QueryParameters.channel],
+ * and only associated channel response will be returned.
+ *
+ *
+ * string channel = 19;
+ *
+ * @return The channel.
+ */
+ java.lang.String getChannel();
+ /**
+ *
+ *
+ *
+ * The channel which the response is associated with. Clients can specify the
+ * channel via
+ * [QueryParameters.channel][google.cloud.dialogflow.cx.v3.QueryParameters.channel],
+ * and only associated channel response will be returned.
+ *
+ *
+ * string channel = 19;
+ *
+ * @return The bytes for channel.
+ */
+ com.google.protobuf.ByteString getChannelBytes();
+
public com.google.cloud.dialogflow.cx.v3.ResponseMessage.MessageCase getMessageCase();
}
diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ResponseMessageProto.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ResponseMessageProto.java
index adf814e51213..2f9b939501bb 100644
--- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ResponseMessageProto.java
+++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ResponseMessageProto.java
@@ -79,7 +79,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"\n4google/cloud/dialogflow/cx/v3/response"
+ "_message.proto\022\035google.cloud.dialogflow."
+ "cx.v3\032\037google/api/field_behavior.proto\032\034"
- + "google/protobuf/struct.proto\"\253\013\n\017Respons"
+ + "google/protobuf/struct.proto\"\274\013\n\017Respons"
+ "eMessage\022C\n\004text\030\001 \001(\01323.google.cloud.di"
+ "alogflow.cx.v3.ResponseMessage.TextH\000\022*\n"
+ "\007payload\030\002 \001(\0132\027.google.protobuf.StructH"
@@ -99,29 +99,29 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "sponseMessage.MixedAudioB\003\340A\003H\000\022g\n\027telep"
+ "hony_transfer_call\030\022 \001(\0132D.google.cloud."
+ "dialogflow.cx.v3.ResponseMessage.Telepho"
- + "nyTransferCallH\000\032C\n\004Text\022\021\n\004text\030\001 \003(\tB\003"
- + "\340A\002\022(\n\033allow_playback_interruption\030\002 \001(\010"
- + "B\003\340A\003\032=\n\020LiveAgentHandoff\022)\n\010metadata\030\001 "
- + "\001(\0132\027.google.protobuf.Struct\032@\n\023Conversa"
- + "tionSuccess\022)\n\010metadata\030\001 \001(\0132\027.google.p"
- + "rotobuf.Struct\032e\n\017OutputAudioText\022\016\n\004tex"
- + "t\030\001 \001(\tH\000\022\016\n\004ssml\030\002 \001(\tH\000\022(\n\033allow_playb"
- + "ack_interruption\030\003 \001(\010B\003\340A\003B\010\n\006source\032\020\n"
- + "\016EndInteraction\032M\n\tPlayAudio\022\026\n\taudio_ur"
- + "i\030\001 \001(\tB\003\340A\002\022(\n\033allow_playback_interrupt"
- + "ion\030\002 \001(\010B\003\340A\003\032\301\001\n\nMixedAudio\022S\n\010segment"
- + "s\030\001 \003(\0132A.google.cloud.dialogflow.cx.v3."
- + "ResponseMessage.MixedAudio.Segment\032^\n\007Se"
- + "gment\022\017\n\005audio\030\001 \001(\014H\000\022\r\n\003uri\030\002 \001(\tH\000\022(\n"
- + "\033allow_playback_interruption\030\003 \001(\010B\003\340A\003B"
- + "\t\n\007content\032;\n\025TelephonyTransferCall\022\026\n\014p"
- + "hone_number\030\001 \001(\tH\000B\n\n\010endpointB\t\n\007messa"
- + "geB\310\001\n!com.google.cloud.dialogflow.cx.v3"
- + "B\024ResponseMessageProtoP\001Z?google.golang."
- + "org/genproto/googleapis/cloud/dialogflow"
- + "/cx/v3;cx\370\001\001\242\002\002DF\252\002\035Google.Cloud.Dialogf"
- + "low.Cx.V3\352\002!Google::Cloud::Dialogflow::C"
- + "X::V3b\006proto3"
+ + "nyTransferCallH\000\022\017\n\007channel\030\023 \001(\t\032C\n\004Tex"
+ + "t\022\021\n\004text\030\001 \003(\tB\003\340A\002\022(\n\033allow_playback_i"
+ + "nterruption\030\002 \001(\010B\003\340A\003\032=\n\020LiveAgentHando"
+ + "ff\022)\n\010metadata\030\001 \001(\0132\027.google.protobuf.S"
+ + "truct\032@\n\023ConversationSuccess\022)\n\010metadata"
+ + "\030\001 \001(\0132\027.google.protobuf.Struct\032e\n\017Outpu"
+ + "tAudioText\022\016\n\004text\030\001 \001(\tH\000\022\016\n\004ssml\030\002 \001(\t"
+ + "H\000\022(\n\033allow_playback_interruption\030\003 \001(\010B"
+ + "\003\340A\003B\010\n\006source\032\020\n\016EndInteraction\032M\n\tPlay"
+ + "Audio\022\026\n\taudio_uri\030\001 \001(\tB\003\340A\002\022(\n\033allow_p"
+ + "layback_interruption\030\002 \001(\010B\003\340A\003\032\301\001\n\nMixe"
+ + "dAudio\022S\n\010segments\030\001 \003(\0132A.google.cloud."
+ + "dialogflow.cx.v3.ResponseMessage.MixedAu"
+ + "dio.Segment\032^\n\007Segment\022\017\n\005audio\030\001 \001(\014H\000\022"
+ + "\r\n\003uri\030\002 \001(\tH\000\022(\n\033allow_playback_interru"
+ + "ption\030\003 \001(\010B\003\340A\003B\t\n\007content\032;\n\025Telephony"
+ + "TransferCall\022\026\n\014phone_number\030\001 \001(\tH\000B\n\n\010"
+ + "endpointB\t\n\007messageB\272\001\n!com.google.cloud"
+ + ".dialogflow.cx.v3B\024ResponseMessageProtoP"
+ + "\001Z1cloud.google.com/go/dialogflow/cx/api"
+ + "v3/cxpb;cxpb\370\001\001\242\002\002DF\252\002\035Google.Cloud.Dial"
+ + "ogflow.Cx.V3\352\002!Google::Cloud::Dialogflow"
+ + "::CX::V3b\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
@@ -145,6 +145,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"PlayAudio",
"MixedAudio",
"TelephonyTransferCall",
+ "Channel",
"Message",
});
internal_static_google_cloud_dialogflow_cx_v3_ResponseMessage_Text_descriptor =
diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/RestoreAgentRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/RestoreAgentRequest.java
index dd1496f876a0..7ca989a9a921 100644
--- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/RestoreAgentRequest.java
+++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/RestoreAgentRequest.java
@@ -22,7 +22,8 @@
*
*
*
- * The request message for [Agents.RestoreAgent][google.cloud.dialogflow.cx.v3.Agents.RestoreAgent].
+ * The request message for
+ * [Agents.RestoreAgent][google.cloud.dialogflow.cx.v3.Agents.RestoreAgent].
*
*
* Protobuf type {@code google.cloud.dialogflow.cx.v3.RestoreAgentRequest}
@@ -281,7 +282,9 @@ public AgentCase getAgentCase() {
}
public static final int NAME_FIELD_NUMBER = 1;
- private volatile java.lang.Object name_;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object name_ = "";
/**
*
*
@@ -462,7 +465,7 @@ public com.google.protobuf.ByteString getAgentContent() {
}
public static final int RESTORE_OPTION_FIELD_NUMBER = 5;
- private int restoreOption_;
+ private int restoreOption_ = 0;
/**
*
*
@@ -493,9 +496,9 @@ public int getRestoreOptionValue() {
*/
@java.lang.Override
public com.google.cloud.dialogflow.cx.v3.RestoreAgentRequest.RestoreOption getRestoreOption() {
- @SuppressWarnings("deprecation")
com.google.cloud.dialogflow.cx.v3.RestoreAgentRequest.RestoreOption result =
- com.google.cloud.dialogflow.cx.v3.RestoreAgentRequest.RestoreOption.valueOf(restoreOption_);
+ com.google.cloud.dialogflow.cx.v3.RestoreAgentRequest.RestoreOption.forNumber(
+ restoreOption_);
return result == null
? com.google.cloud.dialogflow.cx.v3.RestoreAgentRequest.RestoreOption.UNRECOGNIZED
: result;
@@ -717,7 +720,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
*
*
*
- * The request message for [Agents.RestoreAgent][google.cloud.dialogflow.cx.v3.Agents.RestoreAgent].
+ * The request message for
+ * [Agents.RestoreAgent][google.cloud.dialogflow.cx.v3.Agents.RestoreAgent].
*
*
* Protobuf type {@code google.cloud.dialogflow.cx.v3.RestoreAgentRequest}
@@ -751,10 +755,9 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
@java.lang.Override
public Builder clear() {
super.clear();
+ bitField0_ = 0;
name_ = "";
-
restoreOption_ = 0;
-
agentCase_ = 0;
agent_ = null;
return this;
@@ -784,19 +787,29 @@ public com.google.cloud.dialogflow.cx.v3.RestoreAgentRequest build() {
public com.google.cloud.dialogflow.cx.v3.RestoreAgentRequest buildPartial() {
com.google.cloud.dialogflow.cx.v3.RestoreAgentRequest result =
new com.google.cloud.dialogflow.cx.v3.RestoreAgentRequest(this);
- result.name_ = name_;
- if (agentCase_ == 2) {
- result.agent_ = agent_;
- }
- if (agentCase_ == 3) {
- result.agent_ = agent_;
+ if (bitField0_ != 0) {
+ buildPartial0(result);
}
- result.restoreOption_ = restoreOption_;
- result.agentCase_ = agentCase_;
+ buildPartialOneofs(result);
onBuilt();
return result;
}
+ private void buildPartial0(com.google.cloud.dialogflow.cx.v3.RestoreAgentRequest result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.name_ = name_;
+ }
+ if (((from_bitField0_ & 0x00000008) != 0)) {
+ result.restoreOption_ = restoreOption_;
+ }
+ }
+
+ private void buildPartialOneofs(com.google.cloud.dialogflow.cx.v3.RestoreAgentRequest result) {
+ result.agentCase_ = agentCase_;
+ result.agent_ = this.agent_;
+ }
+
@java.lang.Override
public Builder clone() {
return super.clone();
@@ -845,6 +858,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.RestoreAgentRequest o
return this;
if (!other.getName().isEmpty()) {
name_ = other.name_;
+ bitField0_ |= 0x00000001;
onChanged();
}
if (other.restoreOption_ != 0) {
@@ -897,7 +911,7 @@ public Builder mergeFrom(
case 10:
{
name_ = input.readStringRequireUtf8();
-
+ bitField0_ |= 0x00000001;
break;
} // case 10
case 18:
@@ -916,7 +930,7 @@ public Builder mergeFrom(
case 40:
{
restoreOption_ = input.readEnum();
-
+ bitField0_ |= 0x00000008;
break;
} // case 40
default:
@@ -950,6 +964,8 @@ public Builder clearAgent() {
return this;
}
+ private int bitField0_;
+
private java.lang.Object name_ = "";
/**
*
@@ -1020,8 +1036,8 @@ public Builder setName(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
-
name_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -1040,8 +1056,8 @@ public Builder setName(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearName() {
-
name_ = getDefaultInstance().getName();
+ bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
@@ -1065,8 +1081,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
-
name_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -1350,8 +1366,8 @@ public int getRestoreOptionValue() {
* @return This builder for chaining.
*/
public Builder setRestoreOptionValue(int value) {
-
restoreOption_ = value;
+ bitField0_ |= 0x00000008;
onChanged();
return this;
}
@@ -1369,9 +1385,8 @@ public Builder setRestoreOptionValue(int value) {
*/
@java.lang.Override
public com.google.cloud.dialogflow.cx.v3.RestoreAgentRequest.RestoreOption getRestoreOption() {
- @SuppressWarnings("deprecation")
com.google.cloud.dialogflow.cx.v3.RestoreAgentRequest.RestoreOption result =
- com.google.cloud.dialogflow.cx.v3.RestoreAgentRequest.RestoreOption.valueOf(
+ com.google.cloud.dialogflow.cx.v3.RestoreAgentRequest.RestoreOption.forNumber(
restoreOption_);
return result == null
? com.google.cloud.dialogflow.cx.v3.RestoreAgentRequest.RestoreOption.UNRECOGNIZED
@@ -1395,7 +1410,7 @@ public Builder setRestoreOption(
if (value == null) {
throw new NullPointerException();
}
-
+ bitField0_ |= 0x00000008;
restoreOption_ = value.getNumber();
onChanged();
return this;
@@ -1413,7 +1428,7 @@ public Builder setRestoreOption(
* @return This builder for chaining.
*/
public Builder clearRestoreOption() {
-
+ bitField0_ = (bitField0_ & ~0x00000008);
restoreOption_ = 0;
onChanged();
return this;
diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/RolloutConfig.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/RolloutConfig.java
index c483d3e4b2b1..62da7db89d33 100644
--- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/RolloutConfig.java
+++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/RolloutConfig.java
@@ -204,7 +204,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
public static final int DISPLAY_NAME_FIELD_NUMBER = 1;
- private volatile java.lang.Object displayName_;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object displayName_ = "";
/**
*
*
@@ -253,7 +255,7 @@ public com.google.protobuf.ByteString getDisplayNameBytes() {
}
public static final int TRAFFIC_PERCENT_FIELD_NUMBER = 2;
- private int trafficPercent_;
+ private int trafficPercent_ = 0;
/**
*
*
@@ -322,7 +324,9 @@ public com.google.protobuf.Duration getMinDuration() {
*/
@java.lang.Override
public com.google.protobuf.DurationOrBuilder getMinDurationOrBuilder() {
- return getMinDuration();
+ return minDuration_ == null
+ ? com.google.protobuf.Duration.getDefaultInstance()
+ : minDuration_;
}
private byte memoizedIsInitialized = -1;
@@ -548,14 +552,12 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
@java.lang.Override
public Builder clear() {
super.clear();
+ bitField0_ = 0;
displayName_ = "";
-
trafficPercent_ = 0;
-
- if (minDurationBuilder_ == null) {
- minDuration_ = null;
- } else {
- minDuration_ = null;
+ minDuration_ = null;
+ if (minDurationBuilder_ != null) {
+ minDurationBuilder_.dispose();
minDurationBuilder_ = null;
}
return this;
@@ -586,17 +588,28 @@ public com.google.cloud.dialogflow.cx.v3.RolloutConfig.RolloutStep build() {
public com.google.cloud.dialogflow.cx.v3.RolloutConfig.RolloutStep buildPartial() {
com.google.cloud.dialogflow.cx.v3.RolloutConfig.RolloutStep result =
new com.google.cloud.dialogflow.cx.v3.RolloutConfig.RolloutStep(this);
- result.displayName_ = displayName_;
- result.trafficPercent_ = trafficPercent_;
- if (minDurationBuilder_ == null) {
- result.minDuration_ = minDuration_;
- } else {
- result.minDuration_ = minDurationBuilder_.build();
+ if (bitField0_ != 0) {
+ buildPartial0(result);
}
onBuilt();
return result;
}
+ private void buildPartial0(
+ com.google.cloud.dialogflow.cx.v3.RolloutConfig.RolloutStep result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.displayName_ = displayName_;
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.trafficPercent_ = trafficPercent_;
+ }
+ if (((from_bitField0_ & 0x00000004) != 0)) {
+ result.minDuration_ =
+ minDurationBuilder_ == null ? minDuration_ : minDurationBuilder_.build();
+ }
+ }
+
@java.lang.Override
public Builder clone() {
return super.clone();
@@ -648,6 +661,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.RolloutConfig.Rollout
return this;
if (!other.getDisplayName().isEmpty()) {
displayName_ = other.displayName_;
+ bitField0_ |= 0x00000001;
onChanged();
}
if (other.getTrafficPercent() != 0) {
@@ -685,19 +699,19 @@ public Builder mergeFrom(
case 10:
{
displayName_ = input.readStringRequireUtf8();
-
+ bitField0_ |= 0x00000001;
break;
} // case 10
case 16:
{
trafficPercent_ = input.readInt32();
-
+ bitField0_ |= 0x00000002;
break;
} // case 16
case 26:
{
input.readMessage(getMinDurationFieldBuilder().getBuilder(), extensionRegistry);
-
+ bitField0_ |= 0x00000004;
break;
} // case 26
default:
@@ -717,6 +731,8 @@ public Builder mergeFrom(
return this;
}
+ private int bitField0_;
+
private java.lang.Object displayName_ = "";
/**
*
@@ -778,8 +794,8 @@ public Builder setDisplayName(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
-
displayName_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -795,8 +811,8 @@ public Builder setDisplayName(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearDisplayName() {
-
displayName_ = getDefaultInstance().getDisplayName();
+ bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
@@ -817,8 +833,8 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
-
displayName_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -856,6 +872,7 @@ public int getTrafficPercent() {
public Builder setTrafficPercent(int value) {
trafficPercent_ = value;
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -872,7 +889,7 @@ public Builder setTrafficPercent(int value) {
* @return This builder for chaining.
*/
public Builder clearTrafficPercent() {
-
+ bitField0_ = (bitField0_ & ~0x00000002);
trafficPercent_ = 0;
onChanged();
return this;
@@ -898,7 +915,7 @@ public Builder clearTrafficPercent() {
* @return Whether the minDuration field is set.
*/
public boolean hasMinDuration() {
- return minDurationBuilder_ != null || minDuration_ != null;
+ return ((bitField0_ & 0x00000004) != 0);
}
/**
*
@@ -939,11 +956,11 @@ public Builder setMinDuration(com.google.protobuf.Duration value) {
throw new NullPointerException();
}
minDuration_ = value;
- onChanged();
} else {
minDurationBuilder_.setMessage(value);
}
-
+ bitField0_ |= 0x00000004;
+ onChanged();
return this;
}
/**
@@ -960,11 +977,11 @@ public Builder setMinDuration(com.google.protobuf.Duration value) {
public Builder setMinDuration(com.google.protobuf.Duration.Builder builderForValue) {
if (minDurationBuilder_ == null) {
minDuration_ = builderForValue.build();
- onChanged();
} else {
minDurationBuilder_.setMessage(builderForValue.build());
}
-
+ bitField0_ |= 0x00000004;
+ onChanged();
return this;
}
/**
@@ -980,19 +997,18 @@ public Builder setMinDuration(com.google.protobuf.Duration.Builder builderForVal
*/
public Builder mergeMinDuration(com.google.protobuf.Duration value) {
if (minDurationBuilder_ == null) {
- if (minDuration_ != null) {
- minDuration_ =
- com.google.protobuf.Duration.newBuilder(minDuration_)
- .mergeFrom(value)
- .buildPartial();
+ if (((bitField0_ & 0x00000004) != 0)
+ && minDuration_ != null
+ && minDuration_ != com.google.protobuf.Duration.getDefaultInstance()) {
+ getMinDurationBuilder().mergeFrom(value);
} else {
minDuration_ = value;
}
- onChanged();
} else {
minDurationBuilder_.mergeFrom(value);
}
-
+ bitField0_ |= 0x00000004;
+ onChanged();
return this;
}
/**
@@ -1007,14 +1023,13 @@ public Builder mergeMinDuration(com.google.protobuf.Duration value) {
* .google.protobuf.Duration min_duration = 3;
*/
public Builder clearMinDuration() {
- if (minDurationBuilder_ == null) {
- minDuration_ = null;
- onChanged();
- } else {
- minDuration_ = null;
+ bitField0_ = (bitField0_ & ~0x00000004);
+ minDuration_ = null;
+ if (minDurationBuilder_ != null) {
+ minDurationBuilder_.dispose();
minDurationBuilder_ = null;
}
-
+ onChanged();
return this;
}
/**
@@ -1029,7 +1044,7 @@ public Builder clearMinDuration() {
* .google.protobuf.Duration min_duration = 3;
*/
public com.google.protobuf.Duration.Builder getMinDurationBuilder() {
-
+ bitField0_ |= 0x00000004;
onChanged();
return getMinDurationFieldBuilder().getBuilder();
}
@@ -1147,6 +1162,8 @@ public com.google.cloud.dialogflow.cx.v3.RolloutConfig.RolloutStep getDefaultIns
}
public static final int ROLLOUT_STEPS_FIELD_NUMBER = 1;
+
+ @SuppressWarnings("serial")
private java.util.List rolloutSteps_;
/**
*
@@ -1229,7 +1246,9 @@ public com.google.cloud.dialogflow.cx.v3.RolloutConfig.RolloutStep getRolloutSte
}
public static final int ROLLOUT_CONDITION_FIELD_NUMBER = 2;
- private volatile java.lang.Object rolloutCondition_;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object rolloutCondition_ = "";
/**
*
*
@@ -1286,7 +1305,9 @@ public com.google.protobuf.ByteString getRolloutConditionBytes() {
}
public static final int FAILURE_CONDITION_FIELD_NUMBER = 3;
- private volatile java.lang.Object failureCondition_;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object failureCondition_ = "";
/**
*
*
@@ -1557,6 +1578,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
@java.lang.Override
public Builder clear() {
super.clear();
+ bitField0_ = 0;
if (rolloutStepsBuilder_ == null) {
rolloutSteps_ = java.util.Collections.emptyList();
} else {
@@ -1565,9 +1587,7 @@ public Builder clear() {
}
bitField0_ = (bitField0_ & ~0x00000001);
rolloutCondition_ = "";
-
failureCondition_ = "";
-
return this;
}
@@ -1595,7 +1615,16 @@ public com.google.cloud.dialogflow.cx.v3.RolloutConfig build() {
public com.google.cloud.dialogflow.cx.v3.RolloutConfig buildPartial() {
com.google.cloud.dialogflow.cx.v3.RolloutConfig result =
new com.google.cloud.dialogflow.cx.v3.RolloutConfig(this);
- int from_bitField0_ = bitField0_;
+ buildPartialRepeatedFields(result);
+ if (bitField0_ != 0) {
+ buildPartial0(result);
+ }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartialRepeatedFields(
+ com.google.cloud.dialogflow.cx.v3.RolloutConfig result) {
if (rolloutStepsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
rolloutSteps_ = java.util.Collections.unmodifiableList(rolloutSteps_);
@@ -1605,10 +1634,16 @@ public com.google.cloud.dialogflow.cx.v3.RolloutConfig buildPartial() {
} else {
result.rolloutSteps_ = rolloutStepsBuilder_.build();
}
- result.rolloutCondition_ = rolloutCondition_;
- result.failureCondition_ = failureCondition_;
- onBuilt();
- return result;
+ }
+
+ private void buildPartial0(com.google.cloud.dialogflow.cx.v3.RolloutConfig result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.rolloutCondition_ = rolloutCondition_;
+ }
+ if (((from_bitField0_ & 0x00000004) != 0)) {
+ result.failureCondition_ = failureCondition_;
+ }
}
@java.lang.Override
@@ -1686,10 +1721,12 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.RolloutConfig other)
}
if (!other.getRolloutCondition().isEmpty()) {
rolloutCondition_ = other.rolloutCondition_;
+ bitField0_ |= 0x00000002;
onChanged();
}
if (!other.getFailureCondition().isEmpty()) {
failureCondition_ = other.failureCondition_;
+ bitField0_ |= 0x00000004;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
@@ -1735,13 +1772,13 @@ public Builder mergeFrom(
case 18:
{
rolloutCondition_ = input.readStringRequireUtf8();
-
+ bitField0_ |= 0x00000002;
break;
} // case 18
case 26:
{
failureCondition_ = input.readStringRequireUtf8();
-
+ bitField0_ |= 0x00000004;
break;
} // case 26
default:
@@ -2239,8 +2276,8 @@ public Builder setRolloutCondition(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
-
rolloutCondition_ = value;
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -2260,8 +2297,8 @@ public Builder setRolloutCondition(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearRolloutCondition() {
-
rolloutCondition_ = getDefaultInstance().getRolloutCondition();
+ bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
@@ -2286,8 +2323,8 @@ public Builder setRolloutConditionBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
-
rolloutCondition_ = value;
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -2362,8 +2399,8 @@ public Builder setFailureCondition(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
-
failureCondition_ = value;
+ bitField0_ |= 0x00000004;
onChanged();
return this;
}
@@ -2382,8 +2419,8 @@ public Builder setFailureCondition(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearFailureCondition() {
-
failureCondition_ = getDefaultInstance().getFailureCondition();
+ bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
@@ -2407,8 +2444,8 @@ public Builder setFailureConditionBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
-
failureCondition_ = value;
+ bitField0_ |= 0x00000004;
onChanged();
return this;
}
diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/RolloutState.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/RolloutState.java
index 09f62bf03ac0..aa1d324de57f 100644
--- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/RolloutState.java
+++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/RolloutState.java
@@ -68,7 +68,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
public static final int STEP_FIELD_NUMBER = 1;
- private volatile java.lang.Object step_;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object step_ = "";
/**
*
*
@@ -117,7 +119,7 @@ public com.google.protobuf.ByteString getStepBytes() {
}
public static final int STEP_INDEX_FIELD_NUMBER = 3;
- private int stepIndex_;
+ private int stepIndex_ = 0;
/**
*
*
@@ -177,7 +179,7 @@ public com.google.protobuf.Timestamp getStartTime() {
*/
@java.lang.Override
public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() {
- return getStartTime();
+ return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_;
}
private byte memoizedIsInitialized = -1;
@@ -400,14 +402,12 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
@java.lang.Override
public Builder clear() {
super.clear();
+ bitField0_ = 0;
step_ = "";
-
stepIndex_ = 0;
-
- if (startTimeBuilder_ == null) {
- startTime_ = null;
- } else {
- startTime_ = null;
+ startTime_ = null;
+ if (startTimeBuilder_ != null) {
+ startTimeBuilder_.dispose();
startTimeBuilder_ = null;
}
return this;
@@ -437,17 +437,26 @@ public com.google.cloud.dialogflow.cx.v3.RolloutState build() {
public com.google.cloud.dialogflow.cx.v3.RolloutState buildPartial() {
com.google.cloud.dialogflow.cx.v3.RolloutState result =
new com.google.cloud.dialogflow.cx.v3.RolloutState(this);
- result.step_ = step_;
- result.stepIndex_ = stepIndex_;
- if (startTimeBuilder_ == null) {
- result.startTime_ = startTime_;
- } else {
- result.startTime_ = startTimeBuilder_.build();
+ if (bitField0_ != 0) {
+ buildPartial0(result);
}
onBuilt();
return result;
}
+ private void buildPartial0(com.google.cloud.dialogflow.cx.v3.RolloutState result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.step_ = step_;
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.stepIndex_ = stepIndex_;
+ }
+ if (((from_bitField0_ & 0x00000004) != 0)) {
+ result.startTime_ = startTimeBuilder_ == null ? startTime_ : startTimeBuilder_.build();
+ }
+ }
+
@java.lang.Override
public Builder clone() {
return super.clone();
@@ -495,6 +504,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.RolloutState other) {
if (other == com.google.cloud.dialogflow.cx.v3.RolloutState.getDefaultInstance()) return this;
if (!other.getStep().isEmpty()) {
step_ = other.step_;
+ bitField0_ |= 0x00000001;
onChanged();
}
if (other.getStepIndex() != 0) {
@@ -532,19 +542,19 @@ public Builder mergeFrom(
case 10:
{
step_ = input.readStringRequireUtf8();
-
+ bitField0_ |= 0x00000001;
break;
} // case 10
case 18:
{
input.readMessage(getStartTimeFieldBuilder().getBuilder(), extensionRegistry);
-
+ bitField0_ |= 0x00000004;
break;
} // case 18
case 24:
{
stepIndex_ = input.readInt32();
-
+ bitField0_ |= 0x00000002;
break;
} // case 24
default:
@@ -564,6 +574,8 @@ public Builder mergeFrom(
return this;
}
+ private int bitField0_;
+
private java.lang.Object step_ = "";
/**
*
@@ -625,8 +637,8 @@ public Builder setStep(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
-
step_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -642,8 +654,8 @@ public Builder setStep(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearStep() {
-
step_ = getDefaultInstance().getStep();
+ bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
@@ -664,8 +676,8 @@ public Builder setStepBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
-
step_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -701,6 +713,7 @@ public int getStepIndex() {
public Builder setStepIndex(int value) {
stepIndex_ = value;
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -716,7 +729,7 @@ public Builder setStepIndex(int value) {
* @return This builder for chaining.
*/
public Builder clearStepIndex() {
-
+ bitField0_ = (bitField0_ & ~0x00000002);
stepIndex_ = 0;
onChanged();
return this;
@@ -740,7 +753,7 @@ public Builder clearStepIndex() {
* @return Whether the startTime field is set.
*/
public boolean hasStartTime() {
- return startTimeBuilder_ != null || startTime_ != null;
+ return ((bitField0_ & 0x00000004) != 0);
}
/**
*
@@ -775,11 +788,11 @@ public Builder setStartTime(com.google.protobuf.Timestamp value) {
throw new NullPointerException();
}
startTime_ = value;
- onChanged();
} else {
startTimeBuilder_.setMessage(value);
}
-
+ bitField0_ |= 0x00000004;
+ onChanged();
return this;
}
/**
@@ -794,11 +807,11 @@ public Builder setStartTime(com.google.protobuf.Timestamp value) {
public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) {
if (startTimeBuilder_ == null) {
startTime_ = builderForValue.build();
- onChanged();
} else {
startTimeBuilder_.setMessage(builderForValue.build());
}
-
+ bitField0_ |= 0x00000004;
+ onChanged();
return this;
}
/**
@@ -812,17 +825,18 @@ public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValu
*/
public Builder mergeStartTime(com.google.protobuf.Timestamp value) {
if (startTimeBuilder_ == null) {
- if (startTime_ != null) {
- startTime_ =
- com.google.protobuf.Timestamp.newBuilder(startTime_).mergeFrom(value).buildPartial();
+ if (((bitField0_ & 0x00000004) != 0)
+ && startTime_ != null
+ && startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
+ getStartTimeBuilder().mergeFrom(value);
} else {
startTime_ = value;
}
- onChanged();
} else {
startTimeBuilder_.mergeFrom(value);
}
-
+ bitField0_ |= 0x00000004;
+ onChanged();
return this;
}
/**
@@ -835,14 +849,13 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) {
* .google.protobuf.Timestamp start_time = 2;
*/
public Builder clearStartTime() {
- if (startTimeBuilder_ == null) {
- startTime_ = null;
- onChanged();
- } else {
- startTime_ = null;
+ bitField0_ = (bitField0_ & ~0x00000004);
+ startTime_ = null;
+ if (startTimeBuilder_ != null) {
+ startTimeBuilder_.dispose();
startTimeBuilder_ = null;
}
-
+ onChanged();
return this;
}
/**
@@ -855,7 +868,7 @@ public Builder clearStartTime() {
* .google.protobuf.Timestamp start_time = 2;
*/
public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() {
-
+ bitField0_ |= 0x00000004;
onChanged();
return getStartTimeFieldBuilder().getBuilder();
}
diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/RunContinuousTestMetadata.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/RunContinuousTestMetadata.java
index cbf74210bead..3e28de6a749d 100644
--- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/RunContinuousTestMetadata.java
+++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/RunContinuousTestMetadata.java
@@ -22,8 +22,9 @@
*
*
*
- * Metadata returned for the [Environments.RunContinuousTest][google.cloud.dialogflow.cx.v3.Environments.RunContinuousTest] long running
- * operation.
+ * Metadata returned for the
+ * [Environments.RunContinuousTest][google.cloud.dialogflow.cx.v3.Environments.RunContinuousTest]
+ * long running operation.
*
*
* Protobuf type {@code google.cloud.dialogflow.cx.v3.RunContinuousTestMetadata}
@@ -69,6 +70,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
public static final int ERRORS_FIELD_NUMBER = 1;
+
+ @SuppressWarnings("serial")
private java.util.List errors_;
/**
*
@@ -303,8 +306,9 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
*
*
*
- * Metadata returned for the [Environments.RunContinuousTest][google.cloud.dialogflow.cx.v3.Environments.RunContinuousTest] long running
- * operation.
+ * Metadata returned for the
+ * [Environments.RunContinuousTest][google.cloud.dialogflow.cx.v3.Environments.RunContinuousTest]
+ * long running operation.
*
*
* Protobuf type {@code google.cloud.dialogflow.cx.v3.RunContinuousTestMetadata}
@@ -338,6 +342,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
@java.lang.Override
public Builder clear() {
super.clear();
+ bitField0_ = 0;
if (errorsBuilder_ == null) {
errors_ = java.util.Collections.emptyList();
} else {
@@ -372,7 +377,16 @@ public com.google.cloud.dialogflow.cx.v3.RunContinuousTestMetadata build() {
public com.google.cloud.dialogflow.cx.v3.RunContinuousTestMetadata buildPartial() {
com.google.cloud.dialogflow.cx.v3.RunContinuousTestMetadata result =
new com.google.cloud.dialogflow.cx.v3.RunContinuousTestMetadata(this);
- int from_bitField0_ = bitField0_;
+ buildPartialRepeatedFields(result);
+ if (bitField0_ != 0) {
+ buildPartial0(result);
+ }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartialRepeatedFields(
+ com.google.cloud.dialogflow.cx.v3.RunContinuousTestMetadata result) {
if (errorsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
errors_ = java.util.Collections.unmodifiableList(errors_);
@@ -382,8 +396,10 @@ public com.google.cloud.dialogflow.cx.v3.RunContinuousTestMetadata buildPartial(
} else {
result.errors_ = errorsBuilder_.build();
}
- onBuilt();
- return result;
+ }
+
+ private void buildPartial0(com.google.cloud.dialogflow.cx.v3.RunContinuousTestMetadata result) {
+ int from_bitField0_ = bitField0_;
}
@java.lang.Override
diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/RunContinuousTestRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/RunContinuousTestRequest.java
index 9ef935e1a689..1a94e7b86230 100644
--- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/RunContinuousTestRequest.java
+++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/RunContinuousTestRequest.java
@@ -22,7 +22,8 @@
*
*
*
- * The request message for [Environments.RunContinuousTest][google.cloud.dialogflow.cx.v3.Environments.RunContinuousTest].
+ * The request message for
+ * [Environments.RunContinuousTest][google.cloud.dialogflow.cx.v3.Environments.RunContinuousTest].
*
*
* Protobuf type {@code google.cloud.dialogflow.cx.v3.RunContinuousTestRequest}
@@ -68,13 +69,15 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
public static final int ENVIRONMENT_FIELD_NUMBER = 1;
- private volatile java.lang.Object environment_;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object environment_ = "";
/**
*
*
*
- * Required. Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
- * ID>/environments/<Environment ID>`.
+ * Required. Format: `projects/<Project ID>/locations/<Location
+ * ID>/agents/<Agent ID>/environments/<Environment ID>`.
*
*
*
@@ -99,8 +102,8 @@ public java.lang.String getEnvironment() {
*
*
*
- * Required. Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
- * ID>/environments/<Environment ID>`.
+ * Required. Format: `projects/<Project ID>/locations/<Location
+ * ID>/agents/<Agent ID>/environments/<Environment ID>`.
*
*
*
@@ -286,7 +289,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
*
*
*
- * The request message for [Environments.RunContinuousTest][google.cloud.dialogflow.cx.v3.Environments.RunContinuousTest].
+ * The request message for
+ * [Environments.RunContinuousTest][google.cloud.dialogflow.cx.v3.Environments.RunContinuousTest].
*
*
* Protobuf type {@code google.cloud.dialogflow.cx.v3.RunContinuousTestRequest}
@@ -320,8 +324,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
@java.lang.Override
public Builder clear() {
super.clear();
+ bitField0_ = 0;
environment_ = "";
-
return this;
}
@@ -349,11 +353,20 @@ public com.google.cloud.dialogflow.cx.v3.RunContinuousTestRequest build() {
public com.google.cloud.dialogflow.cx.v3.RunContinuousTestRequest buildPartial() {
com.google.cloud.dialogflow.cx.v3.RunContinuousTestRequest result =
new com.google.cloud.dialogflow.cx.v3.RunContinuousTestRequest(this);
- result.environment_ = environment_;
+ if (bitField0_ != 0) {
+ buildPartial0(result);
+ }
onBuilt();
return result;
}
+ private void buildPartial0(com.google.cloud.dialogflow.cx.v3.RunContinuousTestRequest result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.environment_ = environment_;
+ }
+ }
+
@java.lang.Override
public Builder clone() {
return super.clone();
@@ -402,6 +415,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.RunContinuousTestRequ
return this;
if (!other.getEnvironment().isEmpty()) {
environment_ = other.environment_;
+ bitField0_ |= 0x00000001;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
@@ -433,7 +447,7 @@ public Builder mergeFrom(
case 10:
{
environment_ = input.readStringRequireUtf8();
-
+ bitField0_ |= 0x00000001;
break;
} // case 10
default:
@@ -453,13 +467,15 @@ public Builder mergeFrom(
return this;
}
+ private int bitField0_;
+
private java.lang.Object environment_ = "";
/**
*
*
*
- * Required. Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
- * ID>/environments/<Environment ID>`.
+ * Required. Format: `projects/<Project ID>/locations/<Location
+ * ID>/agents/<Agent ID>/environments/<Environment ID>`.
*
*
*
@@ -483,8 +499,8 @@ public java.lang.String getEnvironment() {
*
*
*
- * Required. Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
- * ID>/environments/<Environment ID>`.
+ * Required. Format: `projects/<Project ID>/locations/<Location
+ * ID>/agents/<Agent ID>/environments/<Environment ID>`.
*
*
*
@@ -508,8 +524,8 @@ public com.google.protobuf.ByteString getEnvironmentBytes() {
*
*
*
- * Required. Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
- * ID>/environments/<Environment ID>`.
+ * Required. Format: `projects/<Project ID>/locations/<Location
+ * ID>/agents/<Agent ID>/environments/<Environment ID>`.
*
*
*
@@ -523,8 +539,8 @@ public Builder setEnvironment(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
-
environment_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -532,8 +548,8 @@ public Builder setEnvironment(java.lang.String value) {
*
*
*
- * Required. Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
- * ID>/environments/<Environment ID>`.
+ * Required. Format: `projects/<Project ID>/locations/<Location
+ * ID>/agents/<Agent ID>/environments/<Environment ID>`.
*
*
*
@@ -543,8 +559,8 @@ public Builder setEnvironment(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearEnvironment() {
-
environment_ = getDefaultInstance().getEnvironment();
+ bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
@@ -552,8 +568,8 @@ public Builder clearEnvironment() {
*
*
*
- * Required. Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
- * ID>/environments/<Environment ID>`.
+ * Required. Format: `projects/<Project ID>/locations/<Location
+ * ID>/agents/<Agent ID>/environments/<Environment ID>`.
*
*
*
@@ -568,8 +584,8 @@ public Builder setEnvironmentBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
-
environment_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/RunContinuousTestRequestOrBuilder.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/RunContinuousTestRequestOrBuilder.java
index e4e56e6531aa..83fc6ec1d9f4 100644
--- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/RunContinuousTestRequestOrBuilder.java
+++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/RunContinuousTestRequestOrBuilder.java
@@ -27,8 +27,8 @@ public interface RunContinuousTestRequestOrBuilder
*
*
*
- * Required. Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
- * ID>/environments/<Environment ID>`.
+ * Required. Format: `projects/<Project ID>/locations/<Location
+ * ID>/agents/<Agent ID>/environments/<Environment ID>`.
*
*
*
@@ -42,8 +42,8 @@ public interface RunContinuousTestRequestOrBuilder
*
*
*
- * Required. Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
- * ID>/environments/<Environment ID>`.
+ * Required. Format: `projects/<Project ID>/locations/<Location
+ * ID>/agents/<Agent ID>/environments/<Environment ID>`.
*
*
*
diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/RunContinuousTestResponse.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/RunContinuousTestResponse.java
index a6ba8491e810..15a831f6e7a1 100644
--- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/RunContinuousTestResponse.java
+++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/RunContinuousTestResponse.java
@@ -22,7 +22,8 @@
*
*
*
- * The response message for [Environments.RunContinuousTest][google.cloud.dialogflow.cx.v3.Environments.RunContinuousTest].
+ * The response message for
+ * [Environments.RunContinuousTest][google.cloud.dialogflow.cx.v3.Environments.RunContinuousTest].
*
*
* Protobuf type {@code google.cloud.dialogflow.cx.v3.RunContinuousTestResponse}
@@ -111,7 +112,9 @@ public com.google.cloud.dialogflow.cx.v3.ContinuousTestResult getContinuousTestR
@java.lang.Override
public com.google.cloud.dialogflow.cx.v3.ContinuousTestResultOrBuilder
getContinuousTestResultOrBuilder() {
- return getContinuousTestResult();
+ return continuousTestResult_ == null
+ ? com.google.cloud.dialogflow.cx.v3.ContinuousTestResult.getDefaultInstance()
+ : continuousTestResult_;
}
private byte memoizedIsInitialized = -1;
@@ -284,7 +287,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
*
*
*
- * The response message for [Environments.RunContinuousTest][google.cloud.dialogflow.cx.v3.Environments.RunContinuousTest].
+ * The response message for
+ * [Environments.RunContinuousTest][google.cloud.dialogflow.cx.v3.Environments.RunContinuousTest].
*
*
* Protobuf type {@code google.cloud.dialogflow.cx.v3.RunContinuousTestResponse}
@@ -318,10 +322,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
@java.lang.Override
public Builder clear() {
super.clear();
- if (continuousTestResultBuilder_ == null) {
- continuousTestResult_ = null;
- } else {
- continuousTestResult_ = null;
+ bitField0_ = 0;
+ continuousTestResult_ = null;
+ if (continuousTestResultBuilder_ != null) {
+ continuousTestResultBuilder_.dispose();
continuousTestResultBuilder_ = null;
}
return this;
@@ -351,15 +355,23 @@ public com.google.cloud.dialogflow.cx.v3.RunContinuousTestResponse build() {
public com.google.cloud.dialogflow.cx.v3.RunContinuousTestResponse buildPartial() {
com.google.cloud.dialogflow.cx.v3.RunContinuousTestResponse result =
new com.google.cloud.dialogflow.cx.v3.RunContinuousTestResponse(this);
- if (continuousTestResultBuilder_ == null) {
- result.continuousTestResult_ = continuousTestResult_;
- } else {
- result.continuousTestResult_ = continuousTestResultBuilder_.build();
+ if (bitField0_ != 0) {
+ buildPartial0(result);
}
onBuilt();
return result;
}
+ private void buildPartial0(com.google.cloud.dialogflow.cx.v3.RunContinuousTestResponse result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.continuousTestResult_ =
+ continuousTestResultBuilder_ == null
+ ? continuousTestResult_
+ : continuousTestResultBuilder_.build();
+ }
+ }
+
@java.lang.Override
public Builder clone() {
return super.clone();
@@ -439,7 +451,7 @@ public Builder mergeFrom(
{
input.readMessage(
getContinuousTestResultFieldBuilder().getBuilder(), extensionRegistry);
-
+ bitField0_ |= 0x00000001;
break;
} // case 10
default:
@@ -459,6 +471,8 @@ public Builder mergeFrom(
return this;
}
+ private int bitField0_;
+
private com.google.cloud.dialogflow.cx.v3.ContinuousTestResult continuousTestResult_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.dialogflow.cx.v3.ContinuousTestResult,
@@ -477,7 +491,7 @@ public Builder mergeFrom(
* @return Whether the continuousTestResult field is set.
*/
public boolean hasContinuousTestResult() {
- return continuousTestResultBuilder_ != null || continuousTestResult_ != null;
+ return ((bitField0_ & 0x00000001) != 0);
}
/**
*
@@ -515,11 +529,11 @@ public Builder setContinuousTestResult(
throw new NullPointerException();
}
continuousTestResult_ = value;
- onChanged();
} else {
continuousTestResultBuilder_.setMessage(value);
}
-
+ bitField0_ |= 0x00000001;
+ onChanged();
return this;
}
/**
@@ -535,11 +549,11 @@ public Builder setContinuousTestResult(
com.google.cloud.dialogflow.cx.v3.ContinuousTestResult.Builder builderForValue) {
if (continuousTestResultBuilder_ == null) {
continuousTestResult_ = builderForValue.build();
- onChanged();
} else {
continuousTestResultBuilder_.setMessage(builderForValue.build());
}
-
+ bitField0_ |= 0x00000001;
+ onChanged();
return this;
}
/**
@@ -554,20 +568,19 @@ public Builder setContinuousTestResult(
public Builder mergeContinuousTestResult(
com.google.cloud.dialogflow.cx.v3.ContinuousTestResult value) {
if (continuousTestResultBuilder_ == null) {
- if (continuousTestResult_ != null) {
- continuousTestResult_ =
- com.google.cloud.dialogflow.cx.v3.ContinuousTestResult.newBuilder(
- continuousTestResult_)
- .mergeFrom(value)
- .buildPartial();
+ if (((bitField0_ & 0x00000001) != 0)
+ && continuousTestResult_ != null
+ && continuousTestResult_
+ != com.google.cloud.dialogflow.cx.v3.ContinuousTestResult.getDefaultInstance()) {
+ getContinuousTestResultBuilder().mergeFrom(value);
} else {
continuousTestResult_ = value;
}
- onChanged();
} else {
continuousTestResultBuilder_.mergeFrom(value);
}
-
+ bitField0_ |= 0x00000001;
+ onChanged();
return this;
}
/**
@@ -580,14 +593,13 @@ public Builder mergeContinuousTestResult(
* .google.cloud.dialogflow.cx.v3.ContinuousTestResult continuous_test_result = 1;
*/
public Builder clearContinuousTestResult() {
- if (continuousTestResultBuilder_ == null) {
- continuousTestResult_ = null;
- onChanged();
- } else {
- continuousTestResult_ = null;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ continuousTestResult_ = null;
+ if (continuousTestResultBuilder_ != null) {
+ continuousTestResultBuilder_.dispose();
continuousTestResultBuilder_ = null;
}
-
+ onChanged();
return this;
}
/**
@@ -601,7 +613,7 @@ public Builder clearContinuousTestResult() {
*/
public com.google.cloud.dialogflow.cx.v3.ContinuousTestResult.Builder
getContinuousTestResultBuilder() {
-
+ bitField0_ |= 0x00000001;
onChanged();
return getContinuousTestResultFieldBuilder().getBuilder();
}
diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/RunTestCaseMetadata.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/RunTestCaseMetadata.java
index 2041e27405fa..ad07ce8fbb7c 100644
--- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/RunTestCaseMetadata.java
+++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/RunTestCaseMetadata.java
@@ -22,8 +22,9 @@
*
*
*
- * Metadata returned for the [TestCases.RunTestCase][google.cloud.dialogflow.cx.v3.TestCases.RunTestCase] long running operation.
- * This message currently has no fields.
+ * Metadata returned for the
+ * [TestCases.RunTestCase][google.cloud.dialogflow.cx.v3.TestCases.RunTestCase]
+ * long running operation. This message currently has no fields.
*
*
* Protobuf type {@code google.cloud.dialogflow.cx.v3.RunTestCaseMetadata}
@@ -221,8 +222,9 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
*
*
*
- * Metadata returned for the [TestCases.RunTestCase][google.cloud.dialogflow.cx.v3.TestCases.RunTestCase] long running operation.
- * This message currently has no fields.
+ * Metadata returned for the
+ * [TestCases.RunTestCase][google.cloud.dialogflow.cx.v3.TestCases.RunTestCase]
+ * long running operation. This message currently has no fields.
*
*
* Protobuf type {@code google.cloud.dialogflow.cx.v3.RunTestCaseMetadata}
diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/RunTestCaseRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/RunTestCaseRequest.java
index 4b8d4b40bc2a..36ad5f79ba4b 100644
--- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/RunTestCaseRequest.java
+++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/RunTestCaseRequest.java
@@ -22,7 +22,8 @@
*
*
*
- * The request message for [TestCases.RunTestCase][google.cloud.dialogflow.cx.v3.TestCases.RunTestCase].
+ * The request message for
+ * [TestCases.RunTestCase][google.cloud.dialogflow.cx.v3.TestCases.RunTestCase].
*
*
* Protobuf type {@code google.cloud.dialogflow.cx.v3.RunTestCaseRequest}
@@ -69,13 +70,15 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
public static final int NAME_FIELD_NUMBER = 1;
- private volatile java.lang.Object name_;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object name_ = "";
/**
*
*
*
- * Required. Format of test case name to run: `projects/<Project ID>/locations/
- * <Location ID>/agents/<AgentID>/testCases/<TestCase ID>`.
+ * Required. Format of test case name to run: `projects/<Project
+ * ID>/locations/ <Location ID>/agents/<AgentID>/testCases/<TestCase ID>`.
*
*
*
@@ -100,8 +103,8 @@ public java.lang.String getName() {
*
*
*
- * Required. Format of test case name to run: `projects/<Project ID>/locations/
- * <Location ID>/agents/<AgentID>/testCases/<TestCase ID>`.
+ * Required. Format of test case name to run: `projects/<Project
+ * ID>/locations/ <Location ID>/agents/<AgentID>/testCases/<TestCase ID>`.
*
*
*
@@ -124,7 +127,9 @@ public com.google.protobuf.ByteString getNameBytes() {
}
public static final int ENVIRONMENT_FIELD_NUMBER = 2;
- private volatile java.lang.Object environment_;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object environment_ = "";
/**
*
*
@@ -352,7 +357,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
*
*
*
- * The request message for [TestCases.RunTestCase][google.cloud.dialogflow.cx.v3.TestCases.RunTestCase].
+ * The request message for
+ * [TestCases.RunTestCase][google.cloud.dialogflow.cx.v3.TestCases.RunTestCase].
*
*
* Protobuf type {@code google.cloud.dialogflow.cx.v3.RunTestCaseRequest}
@@ -386,10 +392,9 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
@java.lang.Override
public Builder clear() {
super.clear();
+ bitField0_ = 0;
name_ = "";
-
environment_ = "";
-
return this;
}
@@ -417,12 +422,23 @@ public com.google.cloud.dialogflow.cx.v3.RunTestCaseRequest build() {
public com.google.cloud.dialogflow.cx.v3.RunTestCaseRequest buildPartial() {
com.google.cloud.dialogflow.cx.v3.RunTestCaseRequest result =
new com.google.cloud.dialogflow.cx.v3.RunTestCaseRequest(this);
- result.name_ = name_;
- result.environment_ = environment_;
+ if (bitField0_ != 0) {
+ buildPartial0(result);
+ }
onBuilt();
return result;
}
+ private void buildPartial0(com.google.cloud.dialogflow.cx.v3.RunTestCaseRequest result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.name_ = name_;
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.environment_ = environment_;
+ }
+ }
+
@java.lang.Override
public Builder clone() {
return super.clone();
@@ -471,10 +487,12 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.RunTestCaseRequest ot
return this;
if (!other.getName().isEmpty()) {
name_ = other.name_;
+ bitField0_ |= 0x00000001;
onChanged();
}
if (!other.getEnvironment().isEmpty()) {
environment_ = other.environment_;
+ bitField0_ |= 0x00000002;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
@@ -506,13 +524,13 @@ public Builder mergeFrom(
case 10:
{
name_ = input.readStringRequireUtf8();
-
+ bitField0_ |= 0x00000001;
break;
} // case 10
case 18:
{
environment_ = input.readStringRequireUtf8();
-
+ bitField0_ |= 0x00000002;
break;
} // case 18
default:
@@ -532,13 +550,15 @@ public Builder mergeFrom(
return this;
}
+ private int bitField0_;
+
private java.lang.Object name_ = "";
/**
*
*
*
- * Required. Format of test case name to run: `projects/<Project ID>/locations/
- * <Location ID>/agents/<AgentID>/testCases/<TestCase ID>`.
+ * Required. Format of test case name to run: `projects/<Project
+ * ID>/locations/ <Location ID>/agents/<AgentID>/testCases/<TestCase ID>`.
*
*
*
@@ -562,8 +582,8 @@ public java.lang.String getName() {
*
*
*
- * Required. Format of test case name to run: `projects/<Project ID>/locations/
- * <Location ID>/agents/<AgentID>/testCases/<TestCase ID>`.
+ * Required. Format of test case name to run: `projects/<Project
+ * ID>/locations/ <Location ID>/agents/<AgentID>/testCases/<TestCase ID>`.
*
*
*
@@ -587,8 +607,8 @@ public com.google.protobuf.ByteString getNameBytes() {
*
*
*
- * Required. Format of test case name to run: `projects/<Project ID>/locations/
- * <Location ID>/agents/<AgentID>/testCases/<TestCase ID>`.
+ * Required. Format of test case name to run: `projects/<Project
+ * ID>/locations/ <Location ID>/agents/<AgentID>/testCases/<TestCase ID>`.
*
*
*
@@ -602,8 +622,8 @@ public Builder setName(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
-
name_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -611,8 +631,8 @@ public Builder setName(java.lang.String value) {
*
*
*
- * Required. Format of test case name to run: `projects/<Project ID>/locations/
- * <Location ID>/agents/<AgentID>/testCases/<TestCase ID>`.
+ * Required. Format of test case name to run: `projects/<Project
+ * ID>/locations/ <Location ID>/agents/<AgentID>/testCases/<TestCase ID>`.
*
*
*
@@ -622,8 +642,8 @@ public Builder setName(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearName() {
-
name_ = getDefaultInstance().getName();
+ bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
@@ -631,8 +651,8 @@ public Builder clearName() {
*
*
*
- * Required. Format of test case name to run: `projects/<Project ID>/locations/
- * <Location ID>/agents/<AgentID>/testCases/<TestCase ID>`.
+ * Required. Format of test case name to run: `projects/<Project
+ * ID>/locations/ <Location ID>/agents/<AgentID>/testCases/<TestCase ID>`.
*
*
*
@@ -647,8 +667,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
-
name_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -726,8 +746,8 @@ public Builder setEnvironment(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
-
environment_ = value;
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -747,8 +767,8 @@ public Builder setEnvironment(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearEnvironment() {
-
environment_ = getDefaultInstance().getEnvironment();
+ bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
@@ -773,8 +793,8 @@ public Builder setEnvironmentBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
-
environment_ = value;
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/RunTestCaseRequestOrBuilder.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/RunTestCaseRequestOrBuilder.java
index c458ce12ecca..2badd4a874aa 100644
--- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/RunTestCaseRequestOrBuilder.java
+++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/RunTestCaseRequestOrBuilder.java
@@ -27,8 +27,8 @@ public interface RunTestCaseRequestOrBuilder
*
*
*
- * Required. Format of test case name to run: `projects/<Project ID>/locations/
- * <Location ID>/agents/<AgentID>/testCases/<TestCase ID>`.
+ * Required. Format of test case name to run: `projects/<Project
+ * ID>/locations/ <Location ID>/agents/<AgentID>/testCases/<TestCase ID>`.
*
*
*
@@ -42,8 +42,8 @@ public interface RunTestCaseRequestOrBuilder
*
*
*
- * Required. Format of test case name to run: `projects/<Project ID>/locations/
- * <Location ID>/agents/<AgentID>/testCases/<TestCase ID>`.
+ * Required. Format of test case name to run: `projects/<Project
+ * ID>/locations/ <Location ID>/agents/<AgentID>/testCases/<TestCase ID>`.
*
*
*
diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/RunTestCaseResponse.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/RunTestCaseResponse.java
index 6f94f92d9134..53159ed430e5 100644
--- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/RunTestCaseResponse.java
+++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/RunTestCaseResponse.java
@@ -22,7 +22,8 @@
*
*
*
- * The response message for [TestCases.RunTestCase][google.cloud.dialogflow.cx.v3.TestCases.RunTestCase].
+ * The response message for
+ * [TestCases.RunTestCase][google.cloud.dialogflow.cx.v3.TestCases.RunTestCase].
*
*
* Protobuf type {@code google.cloud.dialogflow.cx.v3.RunTestCaseResponse}
@@ -110,7 +111,9 @@ public com.google.cloud.dialogflow.cx.v3.TestCaseResult getResult() {
*/
@java.lang.Override
public com.google.cloud.dialogflow.cx.v3.TestCaseResultOrBuilder getResultOrBuilder() {
- return getResult();
+ return result_ == null
+ ? com.google.cloud.dialogflow.cx.v3.TestCaseResult.getDefaultInstance()
+ : result_;
}
private byte memoizedIsInitialized = -1;
@@ -282,7 +285,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
*
*
*
- * The response message for [TestCases.RunTestCase][google.cloud.dialogflow.cx.v3.TestCases.RunTestCase].
+ * The response message for
+ * [TestCases.RunTestCase][google.cloud.dialogflow.cx.v3.TestCases.RunTestCase].
*
*
* Protobuf type {@code google.cloud.dialogflow.cx.v3.RunTestCaseResponse}
@@ -316,10 +320,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
@java.lang.Override
public Builder clear() {
super.clear();
- if (resultBuilder_ == null) {
- result_ = null;
- } else {
- result_ = null;
+ bitField0_ = 0;
+ result_ = null;
+ if (resultBuilder_ != null) {
+ resultBuilder_.dispose();
resultBuilder_ = null;
}
return this;
@@ -349,15 +353,20 @@ public com.google.cloud.dialogflow.cx.v3.RunTestCaseResponse build() {
public com.google.cloud.dialogflow.cx.v3.RunTestCaseResponse buildPartial() {
com.google.cloud.dialogflow.cx.v3.RunTestCaseResponse result =
new com.google.cloud.dialogflow.cx.v3.RunTestCaseResponse(this);
- if (resultBuilder_ == null) {
- result.result_ = result_;
- } else {
- result.result_ = resultBuilder_.build();
+ if (bitField0_ != 0) {
+ buildPartial0(result);
}
onBuilt();
return result;
}
+ private void buildPartial0(com.google.cloud.dialogflow.cx.v3.RunTestCaseResponse result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.result_ = resultBuilder_ == null ? result_ : resultBuilder_.build();
+ }
+ }
+
@java.lang.Override
public Builder clone() {
return super.clone();
@@ -436,7 +445,7 @@ public Builder mergeFrom(
case 18:
{
input.readMessage(getResultFieldBuilder().getBuilder(), extensionRegistry);
-
+ bitField0_ |= 0x00000001;
break;
} // case 18
default:
@@ -456,6 +465,8 @@ public Builder mergeFrom(
return this;
}
+ private int bitField0_;
+
private com.google.cloud.dialogflow.cx.v3.TestCaseResult result_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.dialogflow.cx.v3.TestCaseResult,
@@ -474,7 +485,7 @@ public Builder mergeFrom(
* @return Whether the result field is set.
*/
public boolean hasResult() {
- return resultBuilder_ != null || result_ != null;
+ return ((bitField0_ & 0x00000001) != 0);
}
/**
*
@@ -511,11 +522,11 @@ public Builder setResult(com.google.cloud.dialogflow.cx.v3.TestCaseResult value)
throw new NullPointerException();
}
result_ = value;
- onChanged();
} else {
resultBuilder_.setMessage(value);
}
-
+ bitField0_ |= 0x00000001;
+ onChanged();
return this;
}
/**
@@ -531,11 +542,11 @@ public Builder setResult(
com.google.cloud.dialogflow.cx.v3.TestCaseResult.Builder builderForValue) {
if (resultBuilder_ == null) {
result_ = builderForValue.build();
- onChanged();
} else {
resultBuilder_.setMessage(builderForValue.build());
}
-
+ bitField0_ |= 0x00000001;
+ onChanged();
return this;
}
/**
@@ -549,19 +560,18 @@ public Builder setResult(
*/
public Builder mergeResult(com.google.cloud.dialogflow.cx.v3.TestCaseResult value) {
if (resultBuilder_ == null) {
- if (result_ != null) {
- result_ =
- com.google.cloud.dialogflow.cx.v3.TestCaseResult.newBuilder(result_)
- .mergeFrom(value)
- .buildPartial();
+ if (((bitField0_ & 0x00000001) != 0)
+ && result_ != null
+ && result_ != com.google.cloud.dialogflow.cx.v3.TestCaseResult.getDefaultInstance()) {
+ getResultBuilder().mergeFrom(value);
} else {
result_ = value;
}
- onChanged();
} else {
resultBuilder_.mergeFrom(value);
}
-
+ bitField0_ |= 0x00000001;
+ onChanged();
return this;
}
/**
@@ -574,14 +584,13 @@ public Builder mergeResult(com.google.cloud.dialogflow.cx.v3.TestCaseResult valu
* .google.cloud.dialogflow.cx.v3.TestCaseResult result = 2;
*/
public Builder clearResult() {
- if (resultBuilder_ == null) {
- result_ = null;
- onChanged();
- } else {
- result_ = null;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ result_ = null;
+ if (resultBuilder_ != null) {
+ resultBuilder_.dispose();
resultBuilder_ = null;
}
-
+ onChanged();
return this;
}
/**
@@ -594,7 +603,7 @@ public Builder clearResult() {
* .google.cloud.dialogflow.cx.v3.TestCaseResult result = 2;
*/
public com.google.cloud.dialogflow.cx.v3.TestCaseResult.Builder getResultBuilder() {
-
+ bitField0_ |= 0x00000001;
onChanged();
return getResultFieldBuilder().getBuilder();
}
diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SecuritySettings.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SecuritySettings.java
index 3f675a33c98d..a3fd75988956 100644
--- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SecuritySettings.java
+++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SecuritySettings.java
@@ -839,7 +839,9 @@ private AudioFormat(int value) {
}
public static final int GCS_BUCKET_FIELD_NUMBER = 1;
- private volatile java.lang.Object gcsBucket_;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object gcsBucket_ = "";
/**
*
*
@@ -896,7 +898,9 @@ public com.google.protobuf.ByteString getGcsBucketBytes() {
}
public static final int AUDIO_EXPORT_PATTERN_FIELD_NUMBER = 2;
- private volatile java.lang.Object audioExportPattern_;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object audioExportPattern_ = "";
/**
*
*
@@ -945,7 +949,7 @@ public com.google.protobuf.ByteString getAudioExportPatternBytes() {
}
public static final int ENABLE_AUDIO_REDACTION_FIELD_NUMBER = 3;
- private boolean enableAudioRedaction_;
+ private boolean enableAudioRedaction_ = false;
/**
*
*
@@ -963,7 +967,7 @@ public boolean getEnableAudioRedaction() {
}
public static final int AUDIO_FORMAT_FIELD_NUMBER = 4;
- private int audioFormat_;
+ private int audioFormat_ = 0;
/**
*
*
@@ -999,10 +1003,9 @@ public int getAudioFormatValue() {
@java.lang.Override
public com.google.cloud.dialogflow.cx.v3.SecuritySettings.AudioExportSettings.AudioFormat
getAudioFormat() {
- @SuppressWarnings("deprecation")
com.google.cloud.dialogflow.cx.v3.SecuritySettings.AudioExportSettings.AudioFormat result =
com.google.cloud.dialogflow.cx.v3.SecuritySettings.AudioExportSettings.AudioFormat
- .valueOf(audioFormat_);
+ .forNumber(audioFormat_);
return result == null
? com.google.cloud.dialogflow.cx.v3.SecuritySettings.AudioExportSettings.AudioFormat
.UNRECOGNIZED
@@ -1246,14 +1249,11 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
@java.lang.Override
public Builder clear() {
super.clear();
+ bitField0_ = 0;
gcsBucket_ = "";
-
audioExportPattern_ = "";
-
enableAudioRedaction_ = false;
-
audioFormat_ = 0;
-
return this;
}
@@ -1284,14 +1284,30 @@ public com.google.cloud.dialogflow.cx.v3.SecuritySettings.AudioExportSettings bu
public com.google.cloud.dialogflow.cx.v3.SecuritySettings.AudioExportSettings buildPartial() {
com.google.cloud.dialogflow.cx.v3.SecuritySettings.AudioExportSettings result =
new com.google.cloud.dialogflow.cx.v3.SecuritySettings.AudioExportSettings(this);
- result.gcsBucket_ = gcsBucket_;
- result.audioExportPattern_ = audioExportPattern_;
- result.enableAudioRedaction_ = enableAudioRedaction_;
- result.audioFormat_ = audioFormat_;
+ if (bitField0_ != 0) {
+ buildPartial0(result);
+ }
onBuilt();
return result;
}
+ private void buildPartial0(
+ com.google.cloud.dialogflow.cx.v3.SecuritySettings.AudioExportSettings result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.gcsBucket_ = gcsBucket_;
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.audioExportPattern_ = audioExportPattern_;
+ }
+ if (((from_bitField0_ & 0x00000004) != 0)) {
+ result.enableAudioRedaction_ = enableAudioRedaction_;
+ }
+ if (((from_bitField0_ & 0x00000008) != 0)) {
+ result.audioFormat_ = audioFormat_;
+ }
+ }
+
@java.lang.Override
public Builder clone() {
return super.clone();
@@ -1346,10 +1362,12 @@ public Builder mergeFrom(
.getDefaultInstance()) return this;
if (!other.getGcsBucket().isEmpty()) {
gcsBucket_ = other.gcsBucket_;
+ bitField0_ |= 0x00000001;
onChanged();
}
if (!other.getAudioExportPattern().isEmpty()) {
audioExportPattern_ = other.audioExportPattern_;
+ bitField0_ |= 0x00000002;
onChanged();
}
if (other.getEnableAudioRedaction() != false) {
@@ -1387,25 +1405,25 @@ public Builder mergeFrom(
case 10:
{
gcsBucket_ = input.readStringRequireUtf8();
-
+ bitField0_ |= 0x00000001;
break;
} // case 10
case 18:
{
audioExportPattern_ = input.readStringRequireUtf8();
-
+ bitField0_ |= 0x00000002;
break;
} // case 18
case 24:
{
enableAudioRedaction_ = input.readBool();
-
+ bitField0_ |= 0x00000004;
break;
} // case 24
case 32:
{
audioFormat_ = input.readEnum();
-
+ bitField0_ |= 0x00000008;
break;
} // case 32
default:
@@ -1425,6 +1443,8 @@ public Builder mergeFrom(
return this;
}
+ private int bitField0_;
+
private java.lang.Object gcsBucket_ = "";
/**
*
@@ -1498,8 +1518,8 @@ public Builder setGcsBucket(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
-
gcsBucket_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -1519,8 +1539,8 @@ public Builder setGcsBucket(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearGcsBucket() {
-
gcsBucket_ = getDefaultInstance().getGcsBucket();
+ bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
@@ -1545,8 +1565,8 @@ public Builder setGcsBucketBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
-
gcsBucket_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -1612,8 +1632,8 @@ public Builder setAudioExportPattern(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
-
audioExportPattern_ = value;
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -1629,8 +1649,8 @@ public Builder setAudioExportPattern(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearAudioExportPattern() {
-
audioExportPattern_ = getDefaultInstance().getAudioExportPattern();
+ bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
@@ -1651,8 +1671,8 @@ public Builder setAudioExportPatternBytes(com.google.protobuf.ByteString value)
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
-
audioExportPattern_ = value;
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -1688,6 +1708,7 @@ public boolean getEnableAudioRedaction() {
public Builder setEnableAudioRedaction(boolean value) {
enableAudioRedaction_ = value;
+ bitField0_ |= 0x00000004;
onChanged();
return this;
}
@@ -1703,7 +1724,7 @@ public Builder setEnableAudioRedaction(boolean value) {
* @return This builder for chaining.
*/
public Builder clearEnableAudioRedaction() {
-
+ bitField0_ = (bitField0_ & ~0x00000004);
enableAudioRedaction_ = false;
onChanged();
return this;
@@ -1744,8 +1765,8 @@ public int getAudioFormatValue() {
* @return This builder for chaining.
*/
public Builder setAudioFormatValue(int value) {
-
audioFormat_ = value;
+ bitField0_ |= 0x00000008;
onChanged();
return this;
}
@@ -1766,10 +1787,9 @@ public Builder setAudioFormatValue(int value) {
@java.lang.Override
public com.google.cloud.dialogflow.cx.v3.SecuritySettings.AudioExportSettings.AudioFormat
getAudioFormat() {
- @SuppressWarnings("deprecation")
com.google.cloud.dialogflow.cx.v3.SecuritySettings.AudioExportSettings.AudioFormat result =
com.google.cloud.dialogflow.cx.v3.SecuritySettings.AudioExportSettings.AudioFormat
- .valueOf(audioFormat_);
+ .forNumber(audioFormat_);
return result == null
? com.google.cloud.dialogflow.cx.v3.SecuritySettings.AudioExportSettings.AudioFormat
.UNRECOGNIZED
@@ -1796,7 +1816,7 @@ public Builder setAudioFormat(
if (value == null) {
throw new NullPointerException();
}
-
+ bitField0_ |= 0x00000008;
audioFormat_ = value.getNumber();
onChanged();
return this;
@@ -1816,7 +1836,7 @@ public Builder setAudioFormat(
* @return This builder for chaining.
*/
public Builder clearAudioFormat() {
-
+ bitField0_ = (bitField0_ & ~0x00000008);
audioFormat_ = 0;
onChanged();
return this;
@@ -1959,7 +1979,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
public static final int ENABLE_INSIGHTS_EXPORT_FIELD_NUMBER = 1;
- private boolean enableInsightsExport_;
+ private boolean enableInsightsExport_ = false;
/**
*
*
@@ -2187,8 +2207,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
@java.lang.Override
public Builder clear() {
super.clear();
+ bitField0_ = 0;
enableInsightsExport_ = false;
-
return this;
}
@@ -2220,11 +2240,21 @@ public com.google.cloud.dialogflow.cx.v3.SecuritySettings.InsightsExportSettings
buildPartial() {
com.google.cloud.dialogflow.cx.v3.SecuritySettings.InsightsExportSettings result =
new com.google.cloud.dialogflow.cx.v3.SecuritySettings.InsightsExportSettings(this);
- result.enableInsightsExport_ = enableInsightsExport_;
+ if (bitField0_ != 0) {
+ buildPartial0(result);
+ }
onBuilt();
return result;
}
+ private void buildPartial0(
+ com.google.cloud.dialogflow.cx.v3.SecuritySettings.InsightsExportSettings result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.enableInsightsExport_ = enableInsightsExport_;
+ }
+ }
+
@java.lang.Override
public Builder clone() {
return super.clone();
@@ -2309,7 +2339,7 @@ public Builder mergeFrom(
case 8:
{
enableInsightsExport_ = input.readBool();
-
+ bitField0_ |= 0x00000001;
break;
} // case 8
default:
@@ -2329,6 +2359,8 @@ public Builder mergeFrom(
return this;
}
+ private int bitField0_;
+
private boolean enableInsightsExport_;
/**
*
@@ -2362,6 +2394,7 @@ public boolean getEnableInsightsExport() {
public Builder setEnableInsightsExport(boolean value) {
enableInsightsExport_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -2378,7 +2411,7 @@ public Builder setEnableInsightsExport(boolean value) {
* @return This builder for chaining.
*/
public Builder clearEnableInsightsExport() {
-
+ bitField0_ = (bitField0_ & ~0x00000001);
enableInsightsExport_ = false;
onChanged();
return this;
@@ -2497,17 +2530,20 @@ public DataRetentionCase getDataRetentionCase() {
}
public static final int NAME_FIELD_NUMBER = 1;
- private volatile java.lang.Object name_;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object name_ = "";
/**
*
*
*
* Resource name of the settings.
- * Required for the [SecuritySettingsService.UpdateSecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettingsService.UpdateSecuritySettings] method.
- * [SecuritySettingsService.CreateSecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettingsService.CreateSecuritySettings] populates the name
- * automatically.
- * Format: `projects/<Project ID>/locations/<Location
- * ID>/securitySettings/<Security Settings ID>`.
+ * Required for the
+ * [SecuritySettingsService.UpdateSecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettingsService.UpdateSecuritySettings]
+ * method.
+ * [SecuritySettingsService.CreateSecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettingsService.CreateSecuritySettings]
+ * populates the name automatically. Format: `projects/<Project
+ * ID>/locations/<Location ID>/securitySettings/<Security Settings ID>`.
*
*
* string name = 1;
@@ -2531,11 +2567,12 @@ public java.lang.String getName() {
*
*
* Resource name of the settings.
- * Required for the [SecuritySettingsService.UpdateSecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettingsService.UpdateSecuritySettings] method.
- * [SecuritySettingsService.CreateSecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettingsService.CreateSecuritySettings] populates the name
- * automatically.
- * Format: `projects/<Project ID>/locations/<Location
- * ID>/securitySettings/<Security Settings ID>`.
+ * Required for the
+ * [SecuritySettingsService.UpdateSecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettingsService.UpdateSecuritySettings]
+ * method.
+ * [SecuritySettingsService.CreateSecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettingsService.CreateSecuritySettings]
+ * populates the name automatically. Format: `projects/<Project
+ * ID>/locations/<Location ID>/securitySettings/<Security Settings ID>`.
*
*
* string name = 1;
@@ -2556,13 +2593,15 @@ public com.google.protobuf.ByteString getNameBytes() {
}
public static final int DISPLAY_NAME_FIELD_NUMBER = 2;
- private volatile java.lang.Object displayName_;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object displayName_ = "";
/**
*
*
*
- * Required. The human-readable name of the security settings, unique within the
- * location.
+ * Required. The human-readable name of the security settings, unique within
+ * the location.
*
*
* string display_name = 2 [(.google.api.field_behavior) = REQUIRED];
@@ -2585,8 +2624,8 @@ public java.lang.String getDisplayName() {
*
*
*
- * Required. The human-readable name of the security settings, unique within the
- * location.
+ * Required. The human-readable name of the security settings, unique within
+ * the location.
*
*
* string display_name = 2 [(.google.api.field_behavior) = REQUIRED];
@@ -2607,7 +2646,7 @@ public com.google.protobuf.ByteString getDisplayNameBytes() {
}
public static final int REDACTION_STRATEGY_FIELD_NUMBER = 3;
- private int redactionStrategy_;
+ private int redactionStrategy_ = 0;
/**
*
*
@@ -2639,9 +2678,8 @@ public int getRedactionStrategyValue() {
@java.lang.Override
public com.google.cloud.dialogflow.cx.v3.SecuritySettings.RedactionStrategy
getRedactionStrategy() {
- @SuppressWarnings("deprecation")
com.google.cloud.dialogflow.cx.v3.SecuritySettings.RedactionStrategy result =
- com.google.cloud.dialogflow.cx.v3.SecuritySettings.RedactionStrategy.valueOf(
+ com.google.cloud.dialogflow.cx.v3.SecuritySettings.RedactionStrategy.forNumber(
redactionStrategy_);
return result == null
? com.google.cloud.dialogflow.cx.v3.SecuritySettings.RedactionStrategy.UNRECOGNIZED
@@ -2649,7 +2687,7 @@ public int getRedactionStrategyValue() {
}
public static final int REDACTION_SCOPE_FIELD_NUMBER = 4;
- private int redactionScope_;
+ private int redactionScope_ = 0;
/**
*
*
@@ -2684,16 +2722,18 @@ public int getRedactionScopeValue() {
*/
@java.lang.Override
public com.google.cloud.dialogflow.cx.v3.SecuritySettings.RedactionScope getRedactionScope() {
- @SuppressWarnings("deprecation")
com.google.cloud.dialogflow.cx.v3.SecuritySettings.RedactionScope result =
- com.google.cloud.dialogflow.cx.v3.SecuritySettings.RedactionScope.valueOf(redactionScope_);
+ com.google.cloud.dialogflow.cx.v3.SecuritySettings.RedactionScope.forNumber(
+ redactionScope_);
return result == null
? com.google.cloud.dialogflow.cx.v3.SecuritySettings.RedactionScope.UNRECOGNIZED
: result;
}
public static final int INSPECT_TEMPLATE_FIELD_NUMBER = 9;
- private volatile java.lang.Object inspectTemplate_;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object inspectTemplate_ = "";
/**
*
*
@@ -2766,7 +2806,9 @@ public com.google.protobuf.ByteString getInspectTemplateBytes() {
}
public static final int DEIDENTIFY_TEMPLATE_FIELD_NUMBER = 17;
- private volatile java.lang.Object deidentifyTemplate_;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object deidentifyTemplate_ = "";
/**
*
*
@@ -2882,7 +2924,10 @@ public int getRetentionWindowDays() {
}
public static final int PURGE_DATA_TYPES_FIELD_NUMBER = 8;
+
+ @SuppressWarnings("serial")
private java.util.List purgeDataTypes_;
+
private static final com.google.protobuf.Internal.ListAdapter.Converter<
java.lang.Integer, com.google.cloud.dialogflow.cx.v3.SecuritySettings.PurgeDataType>
purgeDataTypes_converter_ =
@@ -2891,9 +2936,8 @@ public int getRetentionWindowDays() {
com.google.cloud.dialogflow.cx.v3.SecuritySettings.PurgeDataType>() {
public com.google.cloud.dialogflow.cx.v3.SecuritySettings.PurgeDataType convert(
java.lang.Integer from) {
- @SuppressWarnings("deprecation")
com.google.cloud.dialogflow.cx.v3.SecuritySettings.PurgeDataType result =
- com.google.cloud.dialogflow.cx.v3.SecuritySettings.PurgeDataType.valueOf(from);
+ com.google.cloud.dialogflow.cx.v3.SecuritySettings.PurgeDataType.forNumber(from);
return result == null
? com.google.cloud.dialogflow.cx.v3.SecuritySettings.PurgeDataType.UNRECOGNIZED
: result;
@@ -3003,13 +3047,17 @@ public int getPurgeDataTypesValue(int index) {
* Controls audio export settings for post-conversation analytics when
* ingesting audio to conversations via [Participants.AnalyzeContent][] or
* [Participants.StreamingAnalyzeContent][].
- * If [retention_strategy][google.cloud.dialogflow.cx.v3.SecuritySettings.retention_strategy] is set to REMOVE_AFTER_CONVERSATION or
- * [audio_export_settings.gcs_bucket][] is empty, audio export is disabled.
+ * If
+ * [retention_strategy][google.cloud.dialogflow.cx.v3.SecuritySettings.retention_strategy]
+ * is set to REMOVE_AFTER_CONVERSATION or [audio_export_settings.gcs_bucket][]
+ * is empty, audio export is disabled.
* If audio export is enabled, audio is recorded and saved to
* [audio_export_settings.gcs_bucket][], subject to retention policy of
* [audio_export_settings.gcs_bucket][].
* This setting won't effect audio input for implicit sessions via
- * [Sessions.DetectIntent][google.cloud.dialogflow.cx.v3.Sessions.DetectIntent] or [Sessions.StreamingDetectIntent][google.cloud.dialogflow.cx.v3.Sessions.StreamingDetectIntent].
+ * [Sessions.DetectIntent][google.cloud.dialogflow.cx.v3.Sessions.DetectIntent]
+ * or
+ * [Sessions.StreamingDetectIntent][google.cloud.dialogflow.cx.v3.Sessions.StreamingDetectIntent].
*
*
*
@@ -3029,13 +3077,17 @@ public boolean hasAudioExportSettings() {
* Controls audio export settings for post-conversation analytics when
* ingesting audio to conversations via [Participants.AnalyzeContent][] or
* [Participants.StreamingAnalyzeContent][].
- * If [retention_strategy][google.cloud.dialogflow.cx.v3.SecuritySettings.retention_strategy] is set to REMOVE_AFTER_CONVERSATION or
- * [audio_export_settings.gcs_bucket][] is empty, audio export is disabled.
+ * If
+ * [retention_strategy][google.cloud.dialogflow.cx.v3.SecuritySettings.retention_strategy]
+ * is set to REMOVE_AFTER_CONVERSATION or [audio_export_settings.gcs_bucket][]
+ * is empty, audio export is disabled.
* If audio export is enabled, audio is recorded and saved to
* [audio_export_settings.gcs_bucket][], subject to retention policy of
* [audio_export_settings.gcs_bucket][].
* This setting won't effect audio input for implicit sessions via
- * [Sessions.DetectIntent][google.cloud.dialogflow.cx.v3.Sessions.DetectIntent] or [Sessions.StreamingDetectIntent][google.cloud.dialogflow.cx.v3.Sessions.StreamingDetectIntent].
+ * [Sessions.DetectIntent][google.cloud.dialogflow.cx.v3.Sessions.DetectIntent]
+ * or
+ * [Sessions.StreamingDetectIntent][google.cloud.dialogflow.cx.v3.Sessions.StreamingDetectIntent].
*
*
*
@@ -3059,13 +3111,17 @@ public boolean hasAudioExportSettings() {
* Controls audio export settings for post-conversation analytics when
* ingesting audio to conversations via [Participants.AnalyzeContent][] or
* [Participants.StreamingAnalyzeContent][].
- * If [retention_strategy][google.cloud.dialogflow.cx.v3.SecuritySettings.retention_strategy] is set to REMOVE_AFTER_CONVERSATION or
- * [audio_export_settings.gcs_bucket][] is empty, audio export is disabled.
+ * If
+ * [retention_strategy][google.cloud.dialogflow.cx.v3.SecuritySettings.retention_strategy]
+ * is set to REMOVE_AFTER_CONVERSATION or [audio_export_settings.gcs_bucket][]
+ * is empty, audio export is disabled.
* If audio export is enabled, audio is recorded and saved to
* [audio_export_settings.gcs_bucket][], subject to retention policy of
* [audio_export_settings.gcs_bucket][].
* This setting won't effect audio input for implicit sessions via
- * [Sessions.DetectIntent][google.cloud.dialogflow.cx.v3.Sessions.DetectIntent] or [Sessions.StreamingDetectIntent][google.cloud.dialogflow.cx.v3.Sessions.StreamingDetectIntent].
+ * [Sessions.DetectIntent][google.cloud.dialogflow.cx.v3.Sessions.DetectIntent]
+ * or
+ * [Sessions.StreamingDetectIntent][google.cloud.dialogflow.cx.v3.Sessions.StreamingDetectIntent].
*
*
*
@@ -3075,7 +3131,10 @@ public boolean hasAudioExportSettings() {
@java.lang.Override
public com.google.cloud.dialogflow.cx.v3.SecuritySettings.AudioExportSettingsOrBuilder
getAudioExportSettingsOrBuilder() {
- return getAudioExportSettings();
+ return audioExportSettings_ == null
+ ? com.google.cloud.dialogflow.cx.v3.SecuritySettings.AudioExportSettings
+ .getDefaultInstance()
+ : audioExportSettings_;
}
public static final int INSIGHTS_EXPORT_SETTINGS_FIELD_NUMBER = 13;
@@ -3087,8 +3146,10 @@ public boolean hasAudioExportSettings() {
*
* Controls conversation exporting settings to Insights after conversation is
* completed.
- * If [retention_strategy][google.cloud.dialogflow.cx.v3.SecuritySettings.retention_strategy] is set to REMOVE_AFTER_CONVERSATION,
- * Insights export is disabled no matter what you configure here.
+ * If
+ * [retention_strategy][google.cloud.dialogflow.cx.v3.SecuritySettings.retention_strategy]
+ * is set to REMOVE_AFTER_CONVERSATION, Insights export is disabled no matter
+ * what you configure here.
*
*
*
@@ -3107,8 +3168,10 @@ public boolean hasInsightsExportSettings() {
*
* Controls conversation exporting settings to Insights after conversation is
* completed.
- * If [retention_strategy][google.cloud.dialogflow.cx.v3.SecuritySettings.retention_strategy] is set to REMOVE_AFTER_CONVERSATION,
- * Insights export is disabled no matter what you configure here.
+ * If
+ * [retention_strategy][google.cloud.dialogflow.cx.v3.SecuritySettings.retention_strategy]
+ * is set to REMOVE_AFTER_CONVERSATION, Insights export is disabled no matter
+ * what you configure here.
*
*
*
@@ -3131,8 +3194,10 @@ public boolean hasInsightsExportSettings() {
*
* Controls conversation exporting settings to Insights after conversation is
* completed.
- * If [retention_strategy][google.cloud.dialogflow.cx.v3.SecuritySettings.retention_strategy] is set to REMOVE_AFTER_CONVERSATION,
- * Insights export is disabled no matter what you configure here.
+ * If
+ * [retention_strategy][google.cloud.dialogflow.cx.v3.SecuritySettings.retention_strategy]
+ * is set to REMOVE_AFTER_CONVERSATION, Insights export is disabled no matter
+ * what you configure here.
*
*
*
@@ -3142,7 +3207,10 @@ public boolean hasInsightsExportSettings() {
@java.lang.Override
public com.google.cloud.dialogflow.cx.v3.SecuritySettings.InsightsExportSettingsOrBuilder
getInsightsExportSettingsOrBuilder() {
- return getInsightsExportSettings();
+ return insightsExportSettings_ == null
+ ? com.google.cloud.dialogflow.cx.v3.SecuritySettings.InsightsExportSettings
+ .getDefaultInstance()
+ : insightsExportSettings_;
}
private byte memoizedIsInitialized = -1;
@@ -3481,30 +3549,23 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
@java.lang.Override
public Builder clear() {
super.clear();
+ bitField0_ = 0;
name_ = "";
-
displayName_ = "";
-
redactionStrategy_ = 0;
-
redactionScope_ = 0;
-
inspectTemplate_ = "";
-
deidentifyTemplate_ = "";
-
purgeDataTypes_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000001);
- if (audioExportSettingsBuilder_ == null) {
- audioExportSettings_ = null;
- } else {
- audioExportSettings_ = null;
+ bitField0_ = (bitField0_ & ~0x00000080);
+ audioExportSettings_ = null;
+ if (audioExportSettingsBuilder_ != null) {
+ audioExportSettingsBuilder_.dispose();
audioExportSettingsBuilder_ = null;
}
- if (insightsExportSettingsBuilder_ == null) {
- insightsExportSettings_ = null;
- } else {
- insightsExportSettings_ = null;
+ insightsExportSettings_ = null;
+ if (insightsExportSettingsBuilder_ != null) {
+ insightsExportSettingsBuilder_.dispose();
insightsExportSettingsBuilder_ = null;
}
dataRetentionCase_ = 0;
@@ -3536,34 +3597,61 @@ public com.google.cloud.dialogflow.cx.v3.SecuritySettings build() {
public com.google.cloud.dialogflow.cx.v3.SecuritySettings buildPartial() {
com.google.cloud.dialogflow.cx.v3.SecuritySettings result =
new com.google.cloud.dialogflow.cx.v3.SecuritySettings(this);
- int from_bitField0_ = bitField0_;
- result.name_ = name_;
- result.displayName_ = displayName_;
- result.redactionStrategy_ = redactionStrategy_;
- result.redactionScope_ = redactionScope_;
- result.inspectTemplate_ = inspectTemplate_;
- result.deidentifyTemplate_ = deidentifyTemplate_;
- if (dataRetentionCase_ == 6) {
- result.dataRetention_ = dataRetention_;
+ buildPartialRepeatedFields(result);
+ if (bitField0_ != 0) {
+ buildPartial0(result);
}
- if (((bitField0_ & 0x00000001) != 0)) {
+ buildPartialOneofs(result);
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartialRepeatedFields(
+ com.google.cloud.dialogflow.cx.v3.SecuritySettings result) {
+ if (((bitField0_ & 0x00000080) != 0)) {
purgeDataTypes_ = java.util.Collections.unmodifiableList(purgeDataTypes_);
- bitField0_ = (bitField0_ & ~0x00000001);
+ bitField0_ = (bitField0_ & ~0x00000080);
}
result.purgeDataTypes_ = purgeDataTypes_;
- if (audioExportSettingsBuilder_ == null) {
- result.audioExportSettings_ = audioExportSettings_;
- } else {
- result.audioExportSettings_ = audioExportSettingsBuilder_.build();
+ }
+
+ private void buildPartial0(com.google.cloud.dialogflow.cx.v3.SecuritySettings result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.name_ = name_;
}
- if (insightsExportSettingsBuilder_ == null) {
- result.insightsExportSettings_ = insightsExportSettings_;
- } else {
- result.insightsExportSettings_ = insightsExportSettingsBuilder_.build();
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.displayName_ = displayName_;
+ }
+ if (((from_bitField0_ & 0x00000004) != 0)) {
+ result.redactionStrategy_ = redactionStrategy_;
+ }
+ if (((from_bitField0_ & 0x00000008) != 0)) {
+ result.redactionScope_ = redactionScope_;
}
+ if (((from_bitField0_ & 0x00000010) != 0)) {
+ result.inspectTemplate_ = inspectTemplate_;
+ }
+ if (((from_bitField0_ & 0x00000020) != 0)) {
+ result.deidentifyTemplate_ = deidentifyTemplate_;
+ }
+ if (((from_bitField0_ & 0x00000100) != 0)) {
+ result.audioExportSettings_ =
+ audioExportSettingsBuilder_ == null
+ ? audioExportSettings_
+ : audioExportSettingsBuilder_.build();
+ }
+ if (((from_bitField0_ & 0x00000200) != 0)) {
+ result.insightsExportSettings_ =
+ insightsExportSettingsBuilder_ == null
+ ? insightsExportSettings_
+ : insightsExportSettingsBuilder_.build();
+ }
+ }
+
+ private void buildPartialOneofs(com.google.cloud.dialogflow.cx.v3.SecuritySettings result) {
result.dataRetentionCase_ = dataRetentionCase_;
- onBuilt();
- return result;
+ result.dataRetention_ = this.dataRetention_;
}
@java.lang.Override
@@ -3614,10 +3702,12 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.SecuritySettings othe
return this;
if (!other.getName().isEmpty()) {
name_ = other.name_;
+ bitField0_ |= 0x00000001;
onChanged();
}
if (!other.getDisplayName().isEmpty()) {
displayName_ = other.displayName_;
+ bitField0_ |= 0x00000002;
onChanged();
}
if (other.redactionStrategy_ != 0) {
@@ -3628,16 +3718,18 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.SecuritySettings othe
}
if (!other.getInspectTemplate().isEmpty()) {
inspectTemplate_ = other.inspectTemplate_;
+ bitField0_ |= 0x00000010;
onChanged();
}
if (!other.getDeidentifyTemplate().isEmpty()) {
deidentifyTemplate_ = other.deidentifyTemplate_;
+ bitField0_ |= 0x00000020;
onChanged();
}
if (!other.purgeDataTypes_.isEmpty()) {
if (purgeDataTypes_.isEmpty()) {
purgeDataTypes_ = other.purgeDataTypes_;
- bitField0_ = (bitField0_ & ~0x00000001);
+ bitField0_ = (bitField0_ & ~0x00000080);
} else {
ensurePurgeDataTypesIsMutable();
purgeDataTypes_.addAll(other.purgeDataTypes_);
@@ -3690,25 +3782,25 @@ public Builder mergeFrom(
case 10:
{
name_ = input.readStringRequireUtf8();
-
+ bitField0_ |= 0x00000001;
break;
} // case 10
case 18:
{
displayName_ = input.readStringRequireUtf8();
-
+ bitField0_ |= 0x00000002;
break;
} // case 18
case 24:
{
redactionStrategy_ = input.readEnum();
-
+ bitField0_ |= 0x00000004;
break;
} // case 24
case 32:
{
redactionScope_ = input.readEnum();
-
+ bitField0_ |= 0x00000008;
break;
} // case 32
case 48:
@@ -3739,27 +3831,27 @@ public Builder mergeFrom(
case 74:
{
inspectTemplate_ = input.readStringRequireUtf8();
-
+ bitField0_ |= 0x00000010;
break;
} // case 74
case 98:
{
input.readMessage(
getAudioExportSettingsFieldBuilder().getBuilder(), extensionRegistry);
-
+ bitField0_ |= 0x00000100;
break;
} // case 98
case 106:
{
input.readMessage(
getInsightsExportSettingsFieldBuilder().getBuilder(), extensionRegistry);
-
+ bitField0_ |= 0x00000200;
break;
} // case 106
case 138:
{
deidentifyTemplate_ = input.readStringRequireUtf8();
-
+ bitField0_ |= 0x00000020;
break;
} // case 138
default:
@@ -3801,11 +3893,12 @@ public Builder clearDataRetention() {
*
*
* Resource name of the settings.
- * Required for the [SecuritySettingsService.UpdateSecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettingsService.UpdateSecuritySettings] method.
- * [SecuritySettingsService.CreateSecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettingsService.CreateSecuritySettings] populates the name
- * automatically.
- * Format: `projects/<Project ID>/locations/<Location
- * ID>/securitySettings/<Security Settings ID>`.
+ * Required for the
+ * [SecuritySettingsService.UpdateSecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettingsService.UpdateSecuritySettings]
+ * method.
+ * [SecuritySettingsService.CreateSecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettingsService.CreateSecuritySettings]
+ * populates the name automatically. Format: `projects/<Project
+ * ID>/locations/<Location ID>/securitySettings/<Security Settings ID>`.
*
*
* string name = 1;
@@ -3828,11 +3921,12 @@ public java.lang.String getName() {
*
*
* Resource name of the settings.
- * Required for the [SecuritySettingsService.UpdateSecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettingsService.UpdateSecuritySettings] method.
- * [SecuritySettingsService.CreateSecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettingsService.CreateSecuritySettings] populates the name
- * automatically.
- * Format: `projects/<Project ID>/locations/<Location
- * ID>/securitySettings/<Security Settings ID>`.
+ * Required for the
+ * [SecuritySettingsService.UpdateSecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettingsService.UpdateSecuritySettings]
+ * method.
+ * [SecuritySettingsService.CreateSecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettingsService.CreateSecuritySettings]
+ * populates the name automatically. Format: `projects/<Project
+ * ID>/locations/<Location ID>/securitySettings/<Security Settings ID>`.
*
*
* string name = 1;
@@ -3855,11 +3949,12 @@ public com.google.protobuf.ByteString getNameBytes() {
*
*
* Resource name of the settings.
- * Required for the [SecuritySettingsService.UpdateSecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettingsService.UpdateSecuritySettings] method.
- * [SecuritySettingsService.CreateSecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettingsService.CreateSecuritySettings] populates the name
- * automatically.
- * Format: `projects/<Project ID>/locations/<Location
- * ID>/securitySettings/<Security Settings ID>`.
+ * Required for the
+ * [SecuritySettingsService.UpdateSecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettingsService.UpdateSecuritySettings]
+ * method.
+ * [SecuritySettingsService.CreateSecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettingsService.CreateSecuritySettings]
+ * populates the name automatically. Format: `projects/<Project
+ * ID>/locations/<Location ID>/securitySettings/<Security Settings ID>`.
*
*
* string name = 1;
@@ -3871,8 +3966,8 @@ public Builder setName(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
-
name_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -3881,11 +3976,12 @@ public Builder setName(java.lang.String value) {
*
*
* Resource name of the settings.
- * Required for the [SecuritySettingsService.UpdateSecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettingsService.UpdateSecuritySettings] method.
- * [SecuritySettingsService.CreateSecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettingsService.CreateSecuritySettings] populates the name
- * automatically.
- * Format: `projects/<Project ID>/locations/<Location
- * ID>/securitySettings/<Security Settings ID>`.
+ * Required for the
+ * [SecuritySettingsService.UpdateSecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettingsService.UpdateSecuritySettings]
+ * method.
+ * [SecuritySettingsService.CreateSecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettingsService.CreateSecuritySettings]
+ * populates the name automatically. Format: `projects/<Project
+ * ID>/locations/<Location ID>/securitySettings/<Security Settings ID>`.
*
*
* string name = 1;
@@ -3893,8 +3989,8 @@ public Builder setName(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearName() {
-
name_ = getDefaultInstance().getName();
+ bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
@@ -3903,11 +3999,12 @@ public Builder clearName() {
*
*
* Resource name of the settings.
- * Required for the [SecuritySettingsService.UpdateSecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettingsService.UpdateSecuritySettings] method.
- * [SecuritySettingsService.CreateSecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettingsService.CreateSecuritySettings] populates the name
- * automatically.
- * Format: `projects/<Project ID>/locations/<Location
- * ID>/securitySettings/<Security Settings ID>`.
+ * Required for the
+ * [SecuritySettingsService.UpdateSecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettingsService.UpdateSecuritySettings]
+ * method.
+ * [SecuritySettingsService.CreateSecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettingsService.CreateSecuritySettings]
+ * populates the name automatically. Format: `projects/<Project
+ * ID>/locations/<Location ID>/securitySettings/<Security Settings ID>`.
*
*
* string name = 1;
@@ -3920,8 +4017,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
-
name_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -3931,8 +4028,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
*
*
*
- * Required. The human-readable name of the security settings, unique within the
- * location.
+ * Required. The human-readable name of the security settings, unique within
+ * the location.
*
*
* string display_name = 2 [(.google.api.field_behavior) = REQUIRED];
@@ -3954,8 +4051,8 @@ public java.lang.String getDisplayName() {
*
*
*
- * Required. The human-readable name of the security settings, unique within the
- * location.
+ * Required. The human-readable name of the security settings, unique within
+ * the location.
*
*
* string display_name = 2 [(.google.api.field_behavior) = REQUIRED];
@@ -3977,8 +4074,8 @@ public com.google.protobuf.ByteString getDisplayNameBytes() {
*
*
*
- * Required. The human-readable name of the security settings, unique within the
- * location.
+ * Required. The human-readable name of the security settings, unique within
+ * the location.
*
*
* string display_name = 2 [(.google.api.field_behavior) = REQUIRED];
@@ -3990,8 +4087,8 @@ public Builder setDisplayName(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
-
displayName_ = value;
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -3999,8 +4096,8 @@ public Builder setDisplayName(java.lang.String value) {
*
*
*
- * Required. The human-readable name of the security settings, unique within the
- * location.
+ * Required. The human-readable name of the security settings, unique within
+ * the location.
*
*
* string display_name = 2 [(.google.api.field_behavior) = REQUIRED];
@@ -4008,8 +4105,8 @@ public Builder setDisplayName(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearDisplayName() {
-
displayName_ = getDefaultInstance().getDisplayName();
+ bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
@@ -4017,8 +4114,8 @@ public Builder clearDisplayName() {
*
*
*
- * Required. The human-readable name of the security settings, unique within the
- * location.
+ * Required. The human-readable name of the security settings, unique within
+ * the location.
*
*
* string display_name = 2 [(.google.api.field_behavior) = REQUIRED];
@@ -4031,8 +4128,8 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
-
displayName_ = value;
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -4070,8 +4167,8 @@ public int getRedactionStrategyValue() {
* @return This builder for chaining.
*/
public Builder setRedactionStrategyValue(int value) {
-
redactionStrategy_ = value;
+ bitField0_ |= 0x00000004;
onChanged();
return this;
}
@@ -4091,9 +4188,8 @@ public Builder setRedactionStrategyValue(int value) {
@java.lang.Override
public com.google.cloud.dialogflow.cx.v3.SecuritySettings.RedactionStrategy
getRedactionStrategy() {
- @SuppressWarnings("deprecation")
com.google.cloud.dialogflow.cx.v3.SecuritySettings.RedactionStrategy result =
- com.google.cloud.dialogflow.cx.v3.SecuritySettings.RedactionStrategy.valueOf(
+ com.google.cloud.dialogflow.cx.v3.SecuritySettings.RedactionStrategy.forNumber(
redactionStrategy_);
return result == null
? com.google.cloud.dialogflow.cx.v3.SecuritySettings.RedactionStrategy.UNRECOGNIZED
@@ -4118,7 +4214,7 @@ public Builder setRedactionStrategy(
if (value == null) {
throw new NullPointerException();
}
-
+ bitField0_ |= 0x00000004;
redactionStrategy_ = value.getNumber();
onChanged();
return this;
@@ -4137,7 +4233,7 @@ public Builder setRedactionStrategy(
* @return This builder for chaining.
*/
public Builder clearRedactionStrategy() {
-
+ bitField0_ = (bitField0_ & ~0x00000004);
redactionStrategy_ = 0;
onChanged();
return this;
@@ -4178,8 +4274,8 @@ public int getRedactionScopeValue() {
* @return This builder for chaining.
*/
public Builder setRedactionScopeValue(int value) {
-
redactionScope_ = value;
+ bitField0_ |= 0x00000008;
onChanged();
return this;
}
@@ -4199,9 +4295,8 @@ public Builder setRedactionScopeValue(int value) {
*/
@java.lang.Override
public com.google.cloud.dialogflow.cx.v3.SecuritySettings.RedactionScope getRedactionScope() {
- @SuppressWarnings("deprecation")
com.google.cloud.dialogflow.cx.v3.SecuritySettings.RedactionScope result =
- com.google.cloud.dialogflow.cx.v3.SecuritySettings.RedactionScope.valueOf(
+ com.google.cloud.dialogflow.cx.v3.SecuritySettings.RedactionScope.forNumber(
redactionScope_);
return result == null
? com.google.cloud.dialogflow.cx.v3.SecuritySettings.RedactionScope.UNRECOGNIZED
@@ -4227,7 +4322,7 @@ public Builder setRedactionScope(
if (value == null) {
throw new NullPointerException();
}
-
+ bitField0_ |= 0x00000008;
redactionScope_ = value.getNumber();
onChanged();
return this;
@@ -4247,7 +4342,7 @@ public Builder setRedactionScope(
* @return This builder for chaining.
*/
public Builder clearRedactionScope() {
-
+ bitField0_ = (bitField0_ & ~0x00000008);
redactionScope_ = 0;
onChanged();
return this;
@@ -4350,8 +4445,8 @@ public Builder setInspectTemplate(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
-
inspectTemplate_ = value;
+ bitField0_ |= 0x00000010;
onChanged();
return this;
}
@@ -4379,8 +4474,8 @@ public Builder setInspectTemplate(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearInspectTemplate() {
-
inspectTemplate_ = getDefaultInstance().getInspectTemplate();
+ bitField0_ = (bitField0_ & ~0x00000010);
onChanged();
return this;
}
@@ -4413,8 +4508,8 @@ public Builder setInspectTemplateBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
-
inspectTemplate_ = value;
+ bitField0_ |= 0x00000010;
onChanged();
return this;
}
@@ -4516,8 +4611,8 @@ public Builder setDeidentifyTemplate(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
-
deidentifyTemplate_ = value;
+ bitField0_ |= 0x00000020;
onChanged();
return this;
}
@@ -4545,8 +4640,8 @@ public Builder setDeidentifyTemplate(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearDeidentifyTemplate() {
-
deidentifyTemplate_ = getDefaultInstance().getDeidentifyTemplate();
+ bitField0_ = (bitField0_ & ~0x00000020);
onChanged();
return this;
}
@@ -4579,8 +4674,8 @@ public Builder setDeidentifyTemplateBytes(com.google.protobuf.ByteString value)
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
-
deidentifyTemplate_ = value;
+ bitField0_ |= 0x00000020;
onChanged();
return this;
}
@@ -4641,6 +4736,7 @@ public int getRetentionWindowDays() {
* @return This builder for chaining.
*/
public Builder setRetentionWindowDays(int value) {
+
dataRetentionCase_ = 6;
dataRetention_ = value;
onChanged();
@@ -4673,9 +4769,9 @@ public Builder clearRetentionWindowDays() {
private java.util.List purgeDataTypes_ = java.util.Collections.emptyList();
private void ensurePurgeDataTypesIsMutable() {
- if (!((bitField0_ & 0x00000001) != 0)) {
+ if (!((bitField0_ & 0x00000080) != 0)) {
purgeDataTypes_ = new java.util.ArrayList(purgeDataTypes_);
- bitField0_ |= 0x00000001;
+ bitField0_ |= 0x00000080;
}
}
/**
@@ -4820,7 +4916,7 @@ public Builder addAllPurgeDataTypes(
*/
public Builder clearPurgeDataTypes() {
purgeDataTypes_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000001);
+ bitField0_ = (bitField0_ & ~0x00000080);
onChanged();
return this;
}
@@ -4935,13 +5031,17 @@ public Builder addAllPurgeDataTypesValue(java.lang.Iterable v
* Controls audio export settings for post-conversation analytics when
* ingesting audio to conversations via [Participants.AnalyzeContent][] or
* [Participants.StreamingAnalyzeContent][].
- * If [retention_strategy][google.cloud.dialogflow.cx.v3.SecuritySettings.retention_strategy] is set to REMOVE_AFTER_CONVERSATION or
- * [audio_export_settings.gcs_bucket][] is empty, audio export is disabled.
+ * If
+ * [retention_strategy][google.cloud.dialogflow.cx.v3.SecuritySettings.retention_strategy]
+ * is set to REMOVE_AFTER_CONVERSATION or [audio_export_settings.gcs_bucket][]
+ * is empty, audio export is disabled.
* If audio export is enabled, audio is recorded and saved to
* [audio_export_settings.gcs_bucket][], subject to retention policy of
* [audio_export_settings.gcs_bucket][].
* This setting won't effect audio input for implicit sessions via
- * [Sessions.DetectIntent][google.cloud.dialogflow.cx.v3.Sessions.DetectIntent] or [Sessions.StreamingDetectIntent][google.cloud.dialogflow.cx.v3.Sessions.StreamingDetectIntent].
+ * [Sessions.DetectIntent][google.cloud.dialogflow.cx.v3.Sessions.DetectIntent]
+ * or
+ * [Sessions.StreamingDetectIntent][google.cloud.dialogflow.cx.v3.Sessions.StreamingDetectIntent].
*
*
*
@@ -4951,7 +5051,7 @@ public Builder addAllPurgeDataTypesValue(java.lang.Iterable v
* @return Whether the audioExportSettings field is set.
*/
public boolean hasAudioExportSettings() {
- return audioExportSettingsBuilder_ != null || audioExportSettings_ != null;
+ return ((bitField0_ & 0x00000100) != 0);
}
/**
*
@@ -4960,13 +5060,17 @@ public boolean hasAudioExportSettings() {
* Controls audio export settings for post-conversation analytics when
* ingesting audio to conversations via [Participants.AnalyzeContent][] or
* [Participants.StreamingAnalyzeContent][].
- * If [retention_strategy][google.cloud.dialogflow.cx.v3.SecuritySettings.retention_strategy] is set to REMOVE_AFTER_CONVERSATION or
- * [audio_export_settings.gcs_bucket][] is empty, audio export is disabled.
+ * If
+ * [retention_strategy][google.cloud.dialogflow.cx.v3.SecuritySettings.retention_strategy]
+ * is set to REMOVE_AFTER_CONVERSATION or [audio_export_settings.gcs_bucket][]
+ * is empty, audio export is disabled.
* If audio export is enabled, audio is recorded and saved to
* [audio_export_settings.gcs_bucket][], subject to retention policy of
* [audio_export_settings.gcs_bucket][].
* This setting won't effect audio input for implicit sessions via
- * [Sessions.DetectIntent][google.cloud.dialogflow.cx.v3.Sessions.DetectIntent] or [Sessions.StreamingDetectIntent][google.cloud.dialogflow.cx.v3.Sessions.StreamingDetectIntent].
+ * [Sessions.DetectIntent][google.cloud.dialogflow.cx.v3.Sessions.DetectIntent]
+ * or
+ * [Sessions.StreamingDetectIntent][google.cloud.dialogflow.cx.v3.Sessions.StreamingDetectIntent].
*
*
*
@@ -4993,13 +5097,17 @@ public boolean hasAudioExportSettings() {
* Controls audio export settings for post-conversation analytics when
* ingesting audio to conversations via [Participants.AnalyzeContent][] or
* [Participants.StreamingAnalyzeContent][].
- * If [retention_strategy][google.cloud.dialogflow.cx.v3.SecuritySettings.retention_strategy] is set to REMOVE_AFTER_CONVERSATION or
- * [audio_export_settings.gcs_bucket][] is empty, audio export is disabled.
+ * If
+ * [retention_strategy][google.cloud.dialogflow.cx.v3.SecuritySettings.retention_strategy]
+ * is set to REMOVE_AFTER_CONVERSATION or [audio_export_settings.gcs_bucket][]
+ * is empty, audio export is disabled.
* If audio export is enabled, audio is recorded and saved to
* [audio_export_settings.gcs_bucket][], subject to retention policy of
* [audio_export_settings.gcs_bucket][].
* This setting won't effect audio input for implicit sessions via
- * [Sessions.DetectIntent][google.cloud.dialogflow.cx.v3.Sessions.DetectIntent] or [Sessions.StreamingDetectIntent][google.cloud.dialogflow.cx.v3.Sessions.StreamingDetectIntent].
+ * [Sessions.DetectIntent][google.cloud.dialogflow.cx.v3.Sessions.DetectIntent]
+ * or
+ * [Sessions.StreamingDetectIntent][google.cloud.dialogflow.cx.v3.Sessions.StreamingDetectIntent].
*
*
*
@@ -5013,11 +5121,11 @@ public Builder setAudioExportSettings(
throw new NullPointerException();
}
audioExportSettings_ = value;
- onChanged();
} else {
audioExportSettingsBuilder_.setMessage(value);
}
-
+ bitField0_ |= 0x00000100;
+ onChanged();
return this;
}
/**
@@ -5027,13 +5135,17 @@ public Builder setAudioExportSettings(
* Controls audio export settings for post-conversation analytics when
* ingesting audio to conversations via [Participants.AnalyzeContent][] or
* [Participants.StreamingAnalyzeContent][].
- * If [retention_strategy][google.cloud.dialogflow.cx.v3.SecuritySettings.retention_strategy] is set to REMOVE_AFTER_CONVERSATION or
- * [audio_export_settings.gcs_bucket][] is empty, audio export is disabled.
+ * If
+ * [retention_strategy][google.cloud.dialogflow.cx.v3.SecuritySettings.retention_strategy]
+ * is set to REMOVE_AFTER_CONVERSATION or [audio_export_settings.gcs_bucket][]
+ * is empty, audio export is disabled.
* If audio export is enabled, audio is recorded and saved to
* [audio_export_settings.gcs_bucket][], subject to retention policy of
* [audio_export_settings.gcs_bucket][].
* This setting won't effect audio input for implicit sessions via
- * [Sessions.DetectIntent][google.cloud.dialogflow.cx.v3.Sessions.DetectIntent] or [Sessions.StreamingDetectIntent][google.cloud.dialogflow.cx.v3.Sessions.StreamingDetectIntent].
+ * [Sessions.DetectIntent][google.cloud.dialogflow.cx.v3.Sessions.DetectIntent]
+ * or
+ * [Sessions.StreamingDetectIntent][google.cloud.dialogflow.cx.v3.Sessions.StreamingDetectIntent].
*
*
*
@@ -5045,11 +5157,11 @@ public Builder setAudioExportSettings(
builderForValue) {
if (audioExportSettingsBuilder_ == null) {
audioExportSettings_ = builderForValue.build();
- onChanged();
} else {
audioExportSettingsBuilder_.setMessage(builderForValue.build());
}
-
+ bitField0_ |= 0x00000100;
+ onChanged();
return this;
}
/**
@@ -5059,13 +5171,17 @@ public Builder setAudioExportSettings(
* Controls audio export settings for post-conversation analytics when
* ingesting audio to conversations via [Participants.AnalyzeContent][] or
* [Participants.StreamingAnalyzeContent][].
- * If [retention_strategy][google.cloud.dialogflow.cx.v3.SecuritySettings.retention_strategy] is set to REMOVE_AFTER_CONVERSATION or
- * [audio_export_settings.gcs_bucket][] is empty, audio export is disabled.
+ * If
+ * [retention_strategy][google.cloud.dialogflow.cx.v3.SecuritySettings.retention_strategy]
+ * is set to REMOVE_AFTER_CONVERSATION or [audio_export_settings.gcs_bucket][]
+ * is empty, audio export is disabled.
* If audio export is enabled, audio is recorded and saved to
* [audio_export_settings.gcs_bucket][], subject to retention policy of
* [audio_export_settings.gcs_bucket][].
* This setting won't effect audio input for implicit sessions via
- * [Sessions.DetectIntent][google.cloud.dialogflow.cx.v3.Sessions.DetectIntent] or [Sessions.StreamingDetectIntent][google.cloud.dialogflow.cx.v3.Sessions.StreamingDetectIntent].
+ * [Sessions.DetectIntent][google.cloud.dialogflow.cx.v3.Sessions.DetectIntent]
+ * or
+ * [Sessions.StreamingDetectIntent][google.cloud.dialogflow.cx.v3.Sessions.StreamingDetectIntent].
*
*
*
@@ -5075,20 +5191,20 @@ public Builder setAudioExportSettings(
public Builder mergeAudioExportSettings(
com.google.cloud.dialogflow.cx.v3.SecuritySettings.AudioExportSettings value) {
if (audioExportSettingsBuilder_ == null) {
- if (audioExportSettings_ != null) {
- audioExportSettings_ =
- com.google.cloud.dialogflow.cx.v3.SecuritySettings.AudioExportSettings.newBuilder(
- audioExportSettings_)
- .mergeFrom(value)
- .buildPartial();
+ if (((bitField0_ & 0x00000100) != 0)
+ && audioExportSettings_ != null
+ && audioExportSettings_
+ != com.google.cloud.dialogflow.cx.v3.SecuritySettings.AudioExportSettings
+ .getDefaultInstance()) {
+ getAudioExportSettingsBuilder().mergeFrom(value);
} else {
audioExportSettings_ = value;
}
- onChanged();
} else {
audioExportSettingsBuilder_.mergeFrom(value);
}
-
+ bitField0_ |= 0x00000100;
+ onChanged();
return this;
}
/**
@@ -5098,13 +5214,17 @@ public Builder mergeAudioExportSettings(
* Controls audio export settings for post-conversation analytics when
* ingesting audio to conversations via [Participants.AnalyzeContent][] or
* [Participants.StreamingAnalyzeContent][].
- * If [retention_strategy][google.cloud.dialogflow.cx.v3.SecuritySettings.retention_strategy] is set to REMOVE_AFTER_CONVERSATION or
- * [audio_export_settings.gcs_bucket][] is empty, audio export is disabled.
+ * If
+ * [retention_strategy][google.cloud.dialogflow.cx.v3.SecuritySettings.retention_strategy]
+ * is set to REMOVE_AFTER_CONVERSATION or [audio_export_settings.gcs_bucket][]
+ * is empty, audio export is disabled.
* If audio export is enabled, audio is recorded and saved to
* [audio_export_settings.gcs_bucket][], subject to retention policy of
* [audio_export_settings.gcs_bucket][].
* This setting won't effect audio input for implicit sessions via
- * [Sessions.DetectIntent][google.cloud.dialogflow.cx.v3.Sessions.DetectIntent] or [Sessions.StreamingDetectIntent][google.cloud.dialogflow.cx.v3.Sessions.StreamingDetectIntent].
+ * [Sessions.DetectIntent][google.cloud.dialogflow.cx.v3.Sessions.DetectIntent]
+ * or
+ * [Sessions.StreamingDetectIntent][google.cloud.dialogflow.cx.v3.Sessions.StreamingDetectIntent].
*
*
*
@@ -5112,14 +5232,13 @@ public Builder mergeAudioExportSettings(
*
*/
public Builder clearAudioExportSettings() {
- if (audioExportSettingsBuilder_ == null) {
- audioExportSettings_ = null;
- onChanged();
- } else {
- audioExportSettings_ = null;
+ bitField0_ = (bitField0_ & ~0x00000100);
+ audioExportSettings_ = null;
+ if (audioExportSettingsBuilder_ != null) {
+ audioExportSettingsBuilder_.dispose();
audioExportSettingsBuilder_ = null;
}
-
+ onChanged();
return this;
}
/**
@@ -5129,13 +5248,17 @@ public Builder clearAudioExportSettings() {
* Controls audio export settings for post-conversation analytics when
* ingesting audio to conversations via [Participants.AnalyzeContent][] or
* [Participants.StreamingAnalyzeContent][].
- * If [retention_strategy][google.cloud.dialogflow.cx.v3.SecuritySettings.retention_strategy] is set to REMOVE_AFTER_CONVERSATION or
- * [audio_export_settings.gcs_bucket][] is empty, audio export is disabled.
+ * If
+ * [retention_strategy][google.cloud.dialogflow.cx.v3.SecuritySettings.retention_strategy]
+ * is set to REMOVE_AFTER_CONVERSATION or [audio_export_settings.gcs_bucket][]
+ * is empty, audio export is disabled.
* If audio export is enabled, audio is recorded and saved to
* [audio_export_settings.gcs_bucket][], subject to retention policy of
* [audio_export_settings.gcs_bucket][].
* This setting won't effect audio input for implicit sessions via
- * [Sessions.DetectIntent][google.cloud.dialogflow.cx.v3.Sessions.DetectIntent] or [Sessions.StreamingDetectIntent][google.cloud.dialogflow.cx.v3.Sessions.StreamingDetectIntent].
+ * [Sessions.DetectIntent][google.cloud.dialogflow.cx.v3.Sessions.DetectIntent]
+ * or
+ * [Sessions.StreamingDetectIntent][google.cloud.dialogflow.cx.v3.Sessions.StreamingDetectIntent].
*
*
*
@@ -5144,7 +5267,7 @@ public Builder clearAudioExportSettings() {
*/
public com.google.cloud.dialogflow.cx.v3.SecuritySettings.AudioExportSettings.Builder
getAudioExportSettingsBuilder() {
-
+ bitField0_ |= 0x00000100;
onChanged();
return getAudioExportSettingsFieldBuilder().getBuilder();
}
@@ -5155,13 +5278,17 @@ public Builder clearAudioExportSettings() {
* Controls audio export settings for post-conversation analytics when
* ingesting audio to conversations via [Participants.AnalyzeContent][] or
* [Participants.StreamingAnalyzeContent][].
- * If [retention_strategy][google.cloud.dialogflow.cx.v3.SecuritySettings.retention_strategy] is set to REMOVE_AFTER_CONVERSATION or
- * [audio_export_settings.gcs_bucket][] is empty, audio export is disabled.
+ * If
+ * [retention_strategy][google.cloud.dialogflow.cx.v3.SecuritySettings.retention_strategy]
+ * is set to REMOVE_AFTER_CONVERSATION or [audio_export_settings.gcs_bucket][]
+ * is empty, audio export is disabled.
* If audio export is enabled, audio is recorded and saved to
* [audio_export_settings.gcs_bucket][], subject to retention policy of
* [audio_export_settings.gcs_bucket][].
* This setting won't effect audio input for implicit sessions via
- * [Sessions.DetectIntent][google.cloud.dialogflow.cx.v3.Sessions.DetectIntent] or [Sessions.StreamingDetectIntent][google.cloud.dialogflow.cx.v3.Sessions.StreamingDetectIntent].
+ * [Sessions.DetectIntent][google.cloud.dialogflow.cx.v3.Sessions.DetectIntent]
+ * or
+ * [Sessions.StreamingDetectIntent][google.cloud.dialogflow.cx.v3.Sessions.StreamingDetectIntent].
*
*
*
@@ -5186,13 +5313,17 @@ public Builder clearAudioExportSettings() {
* Controls audio export settings for post-conversation analytics when
* ingesting audio to conversations via [Participants.AnalyzeContent][] or
* [Participants.StreamingAnalyzeContent][].
- * If [retention_strategy][google.cloud.dialogflow.cx.v3.SecuritySettings.retention_strategy] is set to REMOVE_AFTER_CONVERSATION or
- * [audio_export_settings.gcs_bucket][] is empty, audio export is disabled.
+ * If
+ * [retention_strategy][google.cloud.dialogflow.cx.v3.SecuritySettings.retention_strategy]
+ * is set to REMOVE_AFTER_CONVERSATION or [audio_export_settings.gcs_bucket][]
+ * is empty, audio export is disabled.
* If audio export is enabled, audio is recorded and saved to
* [audio_export_settings.gcs_bucket][], subject to retention policy of
* [audio_export_settings.gcs_bucket][].
* This setting won't effect audio input for implicit sessions via
- * [Sessions.DetectIntent][google.cloud.dialogflow.cx.v3.Sessions.DetectIntent] or [Sessions.StreamingDetectIntent][google.cloud.dialogflow.cx.v3.Sessions.StreamingDetectIntent].
+ * [Sessions.DetectIntent][google.cloud.dialogflow.cx.v3.Sessions.DetectIntent]
+ * or
+ * [Sessions.StreamingDetectIntent][google.cloud.dialogflow.cx.v3.Sessions.StreamingDetectIntent].
*
*
*
@@ -5229,8 +5360,10 @@ public Builder clearAudioExportSettings() {
*
* Controls conversation exporting settings to Insights after conversation is
* completed.
- * If [retention_strategy][google.cloud.dialogflow.cx.v3.SecuritySettings.retention_strategy] is set to REMOVE_AFTER_CONVERSATION,
- * Insights export is disabled no matter what you configure here.
+ * If
+ * [retention_strategy][google.cloud.dialogflow.cx.v3.SecuritySettings.retention_strategy]
+ * is set to REMOVE_AFTER_CONVERSATION, Insights export is disabled no matter
+ * what you configure here.
*
*
*
@@ -5240,7 +5373,7 @@ public Builder clearAudioExportSettings() {
* @return Whether the insightsExportSettings field is set.
*/
public boolean hasInsightsExportSettings() {
- return insightsExportSettingsBuilder_ != null || insightsExportSettings_ != null;
+ return ((bitField0_ & 0x00000200) != 0);
}
/**
*
@@ -5248,8 +5381,10 @@ public boolean hasInsightsExportSettings() {
*
* Controls conversation exporting settings to Insights after conversation is
* completed.
- * If [retention_strategy][google.cloud.dialogflow.cx.v3.SecuritySettings.retention_strategy] is set to REMOVE_AFTER_CONVERSATION,
- * Insights export is disabled no matter what you configure here.
+ * If
+ * [retention_strategy][google.cloud.dialogflow.cx.v3.SecuritySettings.retention_strategy]
+ * is set to REMOVE_AFTER_CONVERSATION, Insights export is disabled no matter
+ * what you configure here.
*
*
*
@@ -5275,8 +5410,10 @@ public boolean hasInsightsExportSettings() {
*
* Controls conversation exporting settings to Insights after conversation is
* completed.
- * If [retention_strategy][google.cloud.dialogflow.cx.v3.SecuritySettings.retention_strategy] is set to REMOVE_AFTER_CONVERSATION,
- * Insights export is disabled no matter what you configure here.
+ * If
+ * [retention_strategy][google.cloud.dialogflow.cx.v3.SecuritySettings.retention_strategy]
+ * is set to REMOVE_AFTER_CONVERSATION, Insights export is disabled no matter
+ * what you configure here.
*
*
*
@@ -5290,11 +5427,11 @@ public Builder setInsightsExportSettings(
throw new NullPointerException();
}
insightsExportSettings_ = value;
- onChanged();
} else {
insightsExportSettingsBuilder_.setMessage(value);
}
-
+ bitField0_ |= 0x00000200;
+ onChanged();
return this;
}
/**
@@ -5303,8 +5440,10 @@ public Builder setInsightsExportSettings(
*
* Controls conversation exporting settings to Insights after conversation is
* completed.
- * If [retention_strategy][google.cloud.dialogflow.cx.v3.SecuritySettings.retention_strategy] is set to REMOVE_AFTER_CONVERSATION,
- * Insights export is disabled no matter what you configure here.
+ * If
+ * [retention_strategy][google.cloud.dialogflow.cx.v3.SecuritySettings.retention_strategy]
+ * is set to REMOVE_AFTER_CONVERSATION, Insights export is disabled no matter
+ * what you configure here.
*
*
*
@@ -5316,11 +5455,11 @@ public Builder setInsightsExportSettings(
builderForValue) {
if (insightsExportSettingsBuilder_ == null) {
insightsExportSettings_ = builderForValue.build();
- onChanged();
} else {
insightsExportSettingsBuilder_.setMessage(builderForValue.build());
}
-
+ bitField0_ |= 0x00000200;
+ onChanged();
return this;
}
/**
@@ -5329,8 +5468,10 @@ public Builder setInsightsExportSettings(
*
* Controls conversation exporting settings to Insights after conversation is
* completed.
- * If [retention_strategy][google.cloud.dialogflow.cx.v3.SecuritySettings.retention_strategy] is set to REMOVE_AFTER_CONVERSATION,
- * Insights export is disabled no matter what you configure here.
+ * If
+ * [retention_strategy][google.cloud.dialogflow.cx.v3.SecuritySettings.retention_strategy]
+ * is set to REMOVE_AFTER_CONVERSATION, Insights export is disabled no matter
+ * what you configure here.
*
*
*
@@ -5340,20 +5481,20 @@ public Builder setInsightsExportSettings(
public Builder mergeInsightsExportSettings(
com.google.cloud.dialogflow.cx.v3.SecuritySettings.InsightsExportSettings value) {
if (insightsExportSettingsBuilder_ == null) {
- if (insightsExportSettings_ != null) {
- insightsExportSettings_ =
- com.google.cloud.dialogflow.cx.v3.SecuritySettings.InsightsExportSettings.newBuilder(
- insightsExportSettings_)
- .mergeFrom(value)
- .buildPartial();
+ if (((bitField0_ & 0x00000200) != 0)
+ && insightsExportSettings_ != null
+ && insightsExportSettings_
+ != com.google.cloud.dialogflow.cx.v3.SecuritySettings.InsightsExportSettings
+ .getDefaultInstance()) {
+ getInsightsExportSettingsBuilder().mergeFrom(value);
} else {
insightsExportSettings_ = value;
}
- onChanged();
} else {
insightsExportSettingsBuilder_.mergeFrom(value);
}
-
+ bitField0_ |= 0x00000200;
+ onChanged();
return this;
}
/**
@@ -5362,8 +5503,10 @@ public Builder mergeInsightsExportSettings(
*
* Controls conversation exporting settings to Insights after conversation is
* completed.
- * If [retention_strategy][google.cloud.dialogflow.cx.v3.SecuritySettings.retention_strategy] is set to REMOVE_AFTER_CONVERSATION,
- * Insights export is disabled no matter what you configure here.
+ * If
+ * [retention_strategy][google.cloud.dialogflow.cx.v3.SecuritySettings.retention_strategy]
+ * is set to REMOVE_AFTER_CONVERSATION, Insights export is disabled no matter
+ * what you configure here.
*
*
*
@@ -5371,14 +5514,13 @@ public Builder mergeInsightsExportSettings(
*
*/
public Builder clearInsightsExportSettings() {
- if (insightsExportSettingsBuilder_ == null) {
- insightsExportSettings_ = null;
- onChanged();
- } else {
- insightsExportSettings_ = null;
+ bitField0_ = (bitField0_ & ~0x00000200);
+ insightsExportSettings_ = null;
+ if (insightsExportSettingsBuilder_ != null) {
+ insightsExportSettingsBuilder_.dispose();
insightsExportSettingsBuilder_ = null;
}
-
+ onChanged();
return this;
}
/**
@@ -5387,8 +5529,10 @@ public Builder clearInsightsExportSettings() {
*
* Controls conversation exporting settings to Insights after conversation is
* completed.
- * If [retention_strategy][google.cloud.dialogflow.cx.v3.SecuritySettings.retention_strategy] is set to REMOVE_AFTER_CONVERSATION,
- * Insights export is disabled no matter what you configure here.
+ * If
+ * [retention_strategy][google.cloud.dialogflow.cx.v3.SecuritySettings.retention_strategy]
+ * is set to REMOVE_AFTER_CONVERSATION, Insights export is disabled no matter
+ * what you configure here.
*
*
*
@@ -5397,7 +5541,7 @@ public Builder clearInsightsExportSettings() {
*/
public com.google.cloud.dialogflow.cx.v3.SecuritySettings.InsightsExportSettings.Builder
getInsightsExportSettingsBuilder() {
-
+ bitField0_ |= 0x00000200;
onChanged();
return getInsightsExportSettingsFieldBuilder().getBuilder();
}
@@ -5407,8 +5551,10 @@ public Builder clearInsightsExportSettings() {
*
* Controls conversation exporting settings to Insights after conversation is
* completed.
- * If [retention_strategy][google.cloud.dialogflow.cx.v3.SecuritySettings.retention_strategy] is set to REMOVE_AFTER_CONVERSATION,
- * Insights export is disabled no matter what you configure here.
+ * If
+ * [retention_strategy][google.cloud.dialogflow.cx.v3.SecuritySettings.retention_strategy]
+ * is set to REMOVE_AFTER_CONVERSATION, Insights export is disabled no matter
+ * what you configure here.
*
*
*
@@ -5432,8 +5578,10 @@ public Builder clearInsightsExportSettings() {
*
* Controls conversation exporting settings to Insights after conversation is
* completed.
- * If [retention_strategy][google.cloud.dialogflow.cx.v3.SecuritySettings.retention_strategy] is set to REMOVE_AFTER_CONVERSATION,
- * Insights export is disabled no matter what you configure here.
+ * If
+ * [retention_strategy][google.cloud.dialogflow.cx.v3.SecuritySettings.retention_strategy]
+ * is set to REMOVE_AFTER_CONVERSATION, Insights export is disabled no matter
+ * what you configure here.
*
*
*
diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SecuritySettingsOrBuilder.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SecuritySettingsOrBuilder.java
index af81bc651593..5ea1018d4ebb 100644
--- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SecuritySettingsOrBuilder.java
+++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SecuritySettingsOrBuilder.java
@@ -28,11 +28,12 @@ public interface SecuritySettingsOrBuilder
*
*
* Resource name of the settings.
- * Required for the [SecuritySettingsService.UpdateSecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettingsService.UpdateSecuritySettings] method.
- * [SecuritySettingsService.CreateSecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettingsService.CreateSecuritySettings] populates the name
- * automatically.
- * Format: `projects/<Project ID>/locations/<Location
- * ID>/securitySettings/<Security Settings ID>`.
+ * Required for the
+ * [SecuritySettingsService.UpdateSecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettingsService.UpdateSecuritySettings]
+ * method.
+ * [SecuritySettingsService.CreateSecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettingsService.CreateSecuritySettings]
+ * populates the name automatically. Format: `projects/<Project
+ * ID>/locations/<Location ID>/securitySettings/<Security Settings ID>`.
*
*
* string name = 1;
@@ -45,11 +46,12 @@ public interface SecuritySettingsOrBuilder
*
*
* Resource name of the settings.
- * Required for the [SecuritySettingsService.UpdateSecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettingsService.UpdateSecuritySettings] method.
- * [SecuritySettingsService.CreateSecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettingsService.CreateSecuritySettings] populates the name
- * automatically.
- * Format: `projects/<Project ID>/locations/<Location
- * ID>/securitySettings/<Security Settings ID>`.
+ * Required for the
+ * [SecuritySettingsService.UpdateSecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettingsService.UpdateSecuritySettings]
+ * method.
+ * [SecuritySettingsService.CreateSecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettingsService.CreateSecuritySettings]
+ * populates the name automatically. Format: `projects/<Project
+ * ID>/locations/<Location ID>/securitySettings/<Security Settings ID>`.
*
*
* string name = 1;
@@ -62,8 +64,8 @@ public interface SecuritySettingsOrBuilder
*
*
*
- * Required. The human-readable name of the security settings, unique within the
- * location.
+ * Required. The human-readable name of the security settings, unique within
+ * the location.
*
*
* string display_name = 2 [(.google.api.field_behavior) = REQUIRED];
@@ -75,8 +77,8 @@ public interface SecuritySettingsOrBuilder
*
*
*
- * Required. The human-readable name of the security settings, unique within the
- * location.
+ * Required. The human-readable name of the security settings, unique within
+ * the location.
*
*
* string display_name = 2 [(.google.api.field_behavior) = REQUIRED];
@@ -355,13 +357,17 @@ public interface SecuritySettingsOrBuilder
* Controls audio export settings for post-conversation analytics when
* ingesting audio to conversations via [Participants.AnalyzeContent][] or
* [Participants.StreamingAnalyzeContent][].
- * If [retention_strategy][google.cloud.dialogflow.cx.v3.SecuritySettings.retention_strategy] is set to REMOVE_AFTER_CONVERSATION or
- * [audio_export_settings.gcs_bucket][] is empty, audio export is disabled.
+ * If
+ * [retention_strategy][google.cloud.dialogflow.cx.v3.SecuritySettings.retention_strategy]
+ * is set to REMOVE_AFTER_CONVERSATION or [audio_export_settings.gcs_bucket][]
+ * is empty, audio export is disabled.
* If audio export is enabled, audio is recorded and saved to
* [audio_export_settings.gcs_bucket][], subject to retention policy of
* [audio_export_settings.gcs_bucket][].
* This setting won't effect audio input for implicit sessions via
- * [Sessions.DetectIntent][google.cloud.dialogflow.cx.v3.Sessions.DetectIntent] or [Sessions.StreamingDetectIntent][google.cloud.dialogflow.cx.v3.Sessions.StreamingDetectIntent].
+ * [Sessions.DetectIntent][google.cloud.dialogflow.cx.v3.Sessions.DetectIntent]
+ * or
+ * [Sessions.StreamingDetectIntent][google.cloud.dialogflow.cx.v3.Sessions.StreamingDetectIntent].
*
*
*
@@ -378,13 +384,17 @@ public interface SecuritySettingsOrBuilder
* Controls audio export settings for post-conversation analytics when
* ingesting audio to conversations via [Participants.AnalyzeContent][] or
* [Participants.StreamingAnalyzeContent][].
- * If [retention_strategy][google.cloud.dialogflow.cx.v3.SecuritySettings.retention_strategy] is set to REMOVE_AFTER_CONVERSATION or
- * [audio_export_settings.gcs_bucket][] is empty, audio export is disabled.
+ * If
+ * [retention_strategy][google.cloud.dialogflow.cx.v3.SecuritySettings.retention_strategy]
+ * is set to REMOVE_AFTER_CONVERSATION or [audio_export_settings.gcs_bucket][]
+ * is empty, audio export is disabled.
* If audio export is enabled, audio is recorded and saved to
* [audio_export_settings.gcs_bucket][], subject to retention policy of
* [audio_export_settings.gcs_bucket][].
* This setting won't effect audio input for implicit sessions via
- * [Sessions.DetectIntent][google.cloud.dialogflow.cx.v3.Sessions.DetectIntent] or [Sessions.StreamingDetectIntent][google.cloud.dialogflow.cx.v3.Sessions.StreamingDetectIntent].
+ * [Sessions.DetectIntent][google.cloud.dialogflow.cx.v3.Sessions.DetectIntent]
+ * or
+ * [Sessions.StreamingDetectIntent][google.cloud.dialogflow.cx.v3.Sessions.StreamingDetectIntent].
*
*
*
@@ -401,13 +411,17 @@ public interface SecuritySettingsOrBuilder
* Controls audio export settings for post-conversation analytics when
* ingesting audio to conversations via [Participants.AnalyzeContent][] or
* [Participants.StreamingAnalyzeContent][].
- * If [retention_strategy][google.cloud.dialogflow.cx.v3.SecuritySettings.retention_strategy] is set to REMOVE_AFTER_CONVERSATION or
- * [audio_export_settings.gcs_bucket][] is empty, audio export is disabled.
+ * If
+ * [retention_strategy][google.cloud.dialogflow.cx.v3.SecuritySettings.retention_strategy]
+ * is set to REMOVE_AFTER_CONVERSATION or [audio_export_settings.gcs_bucket][]
+ * is empty, audio export is disabled.
* If audio export is enabled, audio is recorded and saved to
* [audio_export_settings.gcs_bucket][], subject to retention policy of
* [audio_export_settings.gcs_bucket][].
* This setting won't effect audio input for implicit sessions via
- * [Sessions.DetectIntent][google.cloud.dialogflow.cx.v3.Sessions.DetectIntent] or [Sessions.StreamingDetectIntent][google.cloud.dialogflow.cx.v3.Sessions.StreamingDetectIntent].
+ * [Sessions.DetectIntent][google.cloud.dialogflow.cx.v3.Sessions.DetectIntent]
+ * or
+ * [Sessions.StreamingDetectIntent][google.cloud.dialogflow.cx.v3.Sessions.StreamingDetectIntent].
*
*
*
@@ -423,8 +437,10 @@ public interface SecuritySettingsOrBuilder
*
* Controls conversation exporting settings to Insights after conversation is
* completed.
- * If [retention_strategy][google.cloud.dialogflow.cx.v3.SecuritySettings.retention_strategy] is set to REMOVE_AFTER_CONVERSATION,
- * Insights export is disabled no matter what you configure here.
+ * If
+ * [retention_strategy][google.cloud.dialogflow.cx.v3.SecuritySettings.retention_strategy]
+ * is set to REMOVE_AFTER_CONVERSATION, Insights export is disabled no matter
+ * what you configure here.
*
*
*
@@ -440,8 +456,10 @@ public interface SecuritySettingsOrBuilder
*
* Controls conversation exporting settings to Insights after conversation is
* completed.
- * If [retention_strategy][google.cloud.dialogflow.cx.v3.SecuritySettings.retention_strategy] is set to REMOVE_AFTER_CONVERSATION,
- * Insights export is disabled no matter what you configure here.
+ * If
+ * [retention_strategy][google.cloud.dialogflow.cx.v3.SecuritySettings.retention_strategy]
+ * is set to REMOVE_AFTER_CONVERSATION, Insights export is disabled no matter
+ * what you configure here.
*
*
*
@@ -458,8 +476,10 @@ public interface SecuritySettingsOrBuilder
*
* Controls conversation exporting settings to Insights after conversation is
* completed.
- * If [retention_strategy][google.cloud.dialogflow.cx.v3.SecuritySettings.retention_strategy] is set to REMOVE_AFTER_CONVERSATION,
- * Insights export is disabled no matter what you configure here.
+ * If
+ * [retention_strategy][google.cloud.dialogflow.cx.v3.SecuritySettings.retention_strategy]
+ * is set to REMOVE_AFTER_CONVERSATION, Insights export is disabled no matter
+ * what you configure here.
*
*
*
diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SecuritySettingsProto.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SecuritySettingsProto.java
index 7fa5bcb2f40c..a3e369af39af 100644
--- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SecuritySettingsProto.java
+++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SecuritySettingsProto.java
@@ -166,23 +166,23 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "tySettings/*}\332A\004name\032x\312A\031dialogflow.goog"
+ "leapis.com\322AYhttps://www.googleapis.com/"
+ "auth/cloud-platform,https://www.googleap"
- + "is.com/auth/dialogflowB\360\004\n!com.google.cl"
+ + "is.com/auth/dialogflowB\342\004\n!com.google.cl"
+ "oud.dialogflow.cx.v3B\025SecuritySettingsPr"
- + "otoP\001Z?google.golang.org/genproto/google"
- + "apis/cloud/dialogflow/cx/v3;cx\370\001\001\242\002\002DF\252\002"
- + "\035Google.Cloud.Dialogflow.Cx.V3\352\002!Google:"
- + ":Cloud::Dialogflow::CX::V3\352A\310\001\n\"dlp.goog"
- + "leapis.com/InspectTemplate\022Uorganization"
- + "s/{organization}/locations/{location}/in"
- + "spectTemplates/{inspect_template}\022Kproje"
- + "cts/{project}/locations/{location}/inspe"
- + "ctTemplates/{inspect_template}\352A\327\001\n%dlp."
- + "googleapis.com/DeidentifyTemplate\022[organ"
- + "izations/{organization}/locations/{locat"
- + "ion}/deidentifyTemplates/{deidentify_tem"
- + "plate}\022Qprojects/{project}/locations/{lo"
- + "cation}/deidentifyTemplates/{deidentify_"
- + "template}b\006proto3"
+ + "otoP\001Z1cloud.google.com/go/dialogflow/cx"
+ + "/apiv3/cxpb;cxpb\370\001\001\242\002\002DF\252\002\035Google.Cloud."
+ + "Dialogflow.Cx.V3\352\002!Google::Cloud::Dialog"
+ + "flow::CX::V3\352A\310\001\n\"dlp.googleapis.com/Ins"
+ + "pectTemplate\022Uorganizations/{organizatio"
+ + "n}/locations/{location}/inspectTemplates"
+ + "/{inspect_template}\022Kprojects/{project}/"
+ + "locations/{location}/inspectTemplates/{i"
+ + "nspect_template}\352A\327\001\n%dlp.googleapis.com"
+ + "/DeidentifyTemplate\022[organizations/{orga"
+ + "nization}/locations/{location}/deidentif"
+ + "yTemplates/{deidentify_template}\022Qprojec"
+ + "ts/{project}/locations/{location}/deiden"
+ + "tifyTemplates/{deidentify_template}b\006pro"
+ + "to3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SentimentAnalysisResult.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SentimentAnalysisResult.java
index c2991cf01554..0ed0ccc28dde 100644
--- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SentimentAnalysisResult.java
+++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SentimentAnalysisResult.java
@@ -68,7 +68,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
public static final int SCORE_FIELD_NUMBER = 1;
- private float score_;
+ private float score_ = 0F;
/**
*
*
@@ -87,7 +87,7 @@ public float getScore() {
}
public static final int MAGNITUDE_FIELD_NUMBER = 2;
- private float magnitude_;
+ private float magnitude_ = 0F;
/**
*
*
@@ -316,10 +316,9 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
@java.lang.Override
public Builder clear() {
super.clear();
+ bitField0_ = 0;
score_ = 0F;
-
magnitude_ = 0F;
-
return this;
}
@@ -347,12 +346,23 @@ public com.google.cloud.dialogflow.cx.v3.SentimentAnalysisResult build() {
public com.google.cloud.dialogflow.cx.v3.SentimentAnalysisResult buildPartial() {
com.google.cloud.dialogflow.cx.v3.SentimentAnalysisResult result =
new com.google.cloud.dialogflow.cx.v3.SentimentAnalysisResult(this);
- result.score_ = score_;
- result.magnitude_ = magnitude_;
+ if (bitField0_ != 0) {
+ buildPartial0(result);
+ }
onBuilt();
return result;
}
+ private void buildPartial0(com.google.cloud.dialogflow.cx.v3.SentimentAnalysisResult result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.score_ = score_;
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.magnitude_ = magnitude_;
+ }
+ }
+
@java.lang.Override
public Builder clone() {
return super.clone();
@@ -434,13 +444,13 @@ public Builder mergeFrom(
case 13:
{
score_ = input.readFloat();
-
+ bitField0_ |= 0x00000001;
break;
} // case 13
case 21:
{
magnitude_ = input.readFloat();
-
+ bitField0_ |= 0x00000002;
break;
} // case 21
default:
@@ -460,6 +470,8 @@ public Builder mergeFrom(
return this;
}
+ private int bitField0_;
+
private float score_;
/**
*
@@ -493,6 +505,7 @@ public float getScore() {
public Builder setScore(float value) {
score_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -509,7 +522,7 @@ public Builder setScore(float value) {
* @return This builder for chaining.
*/
public Builder clearScore() {
-
+ bitField0_ = (bitField0_ & ~0x00000001);
score_ = 0F;
onChanged();
return this;
@@ -548,6 +561,7 @@ public float getMagnitude() {
public Builder setMagnitude(float value) {
magnitude_ = value;
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -564,7 +578,7 @@ public Builder setMagnitude(float value) {
* @return This builder for chaining.
*/
public Builder clearMagnitude() {
-
+ bitField0_ = (bitField0_ & ~0x00000002);
magnitude_ = 0F;
onChanged();
return this;
diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SessionEntityType.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SessionEntityType.java
index ec4fabb63a42..61f0b28411e3 100644
--- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SessionEntityType.java
+++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SessionEntityType.java
@@ -26,9 +26,9 @@
* entities that are built for an individual user such as favorites,
* preferences, playlists, and so on.
* You can redefine a session entity type at the session level to extend or
- * replace a [custom entity type][google.cloud.dialogflow.cx.v3.EntityType] at the user session level (we
- * refer to the entity types defined at the agent level as "custom entity
- * types").
+ * replace a [custom entity type][google.cloud.dialogflow.cx.v3.EntityType] at
+ * the user session level (we refer to the entity types defined at the agent
+ * level as "custom entity types").
* Note: session entity types apply to all queries, regardless of the language.
* For more information about entity types, see the [Dialogflow
* documentation](https://cloud.google.com/dialogflow/docs/entities-overview).
@@ -119,8 +119,9 @@ public enum EntityOverrideMode implements com.google.protobuf.ProtocolMessageEnu
* `GetSessionEntityType`, `CreateSessionEntityType` and
* `UpdateSessionEntityType` only return the additional entities added in
* this session entity type. If you want to get the supplemented list,
- * please call [EntityTypes.GetEntityType][google.cloud.dialogflow.cx.v3.EntityTypes.GetEntityType] on the custom entity type
- * and merge.
+ * please call
+ * [EntityTypes.GetEntityType][google.cloud.dialogflow.cx.v3.EntityTypes.GetEntityType]
+ * on the custom entity type and merge.
*
*
* ENTITY_OVERRIDE_MODE_SUPPLEMENT = 2;
@@ -160,8 +161,9 @@ public enum EntityOverrideMode implements com.google.protobuf.ProtocolMessageEnu
* `GetSessionEntityType`, `CreateSessionEntityType` and
* `UpdateSessionEntityType` only return the additional entities added in
* this session entity type. If you want to get the supplemented list,
- * please call [EntityTypes.GetEntityType][google.cloud.dialogflow.cx.v3.EntityTypes.GetEntityType] on the custom entity type
- * and merge.
+ * please call
+ * [EntityTypes.GetEntityType][google.cloud.dialogflow.cx.v3.EntityTypes.GetEntityType]
+ * on the custom entity type and merge.
*
*
* ENTITY_OVERRIDE_MODE_SUPPLEMENT = 2;
@@ -257,7 +259,9 @@ private EntityOverrideMode(int value) {
}
public static final int NAME_FIELD_NUMBER = 1;
- private volatile java.lang.Object name_;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object name_ = "";
/**
*
*
@@ -318,13 +322,13 @@ public com.google.protobuf.ByteString getNameBytes() {
}
public static final int ENTITY_OVERRIDE_MODE_FIELD_NUMBER = 3;
- private int entityOverrideMode_;
+ private int entityOverrideMode_ = 0;
/**
*
*
*
- * Required. Indicates whether the additional data should override or supplement the
- * custom entity type definition.
+ * Required. Indicates whether the additional data should override or
+ * supplement the custom entity type definition.
*
*
*
@@ -341,8 +345,8 @@ public int getEntityOverrideModeValue() {
*
*
*
- * Required. Indicates whether the additional data should override or supplement the
- * custom entity type definition.
+ * Required. Indicates whether the additional data should override or
+ * supplement the custom entity type definition.
*
*
*
@@ -354,9 +358,8 @@ public int getEntityOverrideModeValue() {
@java.lang.Override
public com.google.cloud.dialogflow.cx.v3.SessionEntityType.EntityOverrideMode
getEntityOverrideMode() {
- @SuppressWarnings("deprecation")
com.google.cloud.dialogflow.cx.v3.SessionEntityType.EntityOverrideMode result =
- com.google.cloud.dialogflow.cx.v3.SessionEntityType.EntityOverrideMode.valueOf(
+ com.google.cloud.dialogflow.cx.v3.SessionEntityType.EntityOverrideMode.forNumber(
entityOverrideMode_);
return result == null
? com.google.cloud.dialogflow.cx.v3.SessionEntityType.EntityOverrideMode.UNRECOGNIZED
@@ -364,13 +367,15 @@ public int getEntityOverrideModeValue() {
}
public static final int ENTITIES_FIELD_NUMBER = 4;
+
+ @SuppressWarnings("serial")
private java.util.List entities_;
/**
*
*
*
- * Required. The collection of entities to override or supplement the custom entity
- * type.
+ * Required. The collection of entities to override or supplement the custom
+ * entity type.
*
*
*
@@ -385,8 +390,8 @@ public java.util.List getEn
*
*
*
- * Required. The collection of entities to override or supplement the custom entity
- * type.
+ * Required. The collection of entities to override or supplement the custom
+ * entity type.
*
*
*
@@ -402,8 +407,8 @@ public java.util.List getEn
*
*
*
- * Required. The collection of entities to override or supplement the custom entity
- * type.
+ * Required. The collection of entities to override or supplement the custom
+ * entity type.
*
*
*
@@ -418,8 +423,8 @@ public int getEntitiesCount() {
*
*
*
- * Required. The collection of entities to override or supplement the custom entity
- * type.
+ * Required. The collection of entities to override or supplement the custom
+ * entity type.
*
*
*
@@ -434,8 +439,8 @@ public com.google.cloud.dialogflow.cx.v3.EntityType.Entity getEntities(int index
*
*
*
- * Required. The collection of entities to override or supplement the custom entity
- * type.
+ * Required. The collection of entities to override or supplement the custom
+ * entity type.
*
*
*
@@ -641,9 +646,9 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
* entities that are built for an individual user such as favorites,
* preferences, playlists, and so on.
* You can redefine a session entity type at the session level to extend or
- * replace a [custom entity type][google.cloud.dialogflow.cx.v3.EntityType] at the user session level (we
- * refer to the entity types defined at the agent level as "custom entity
- * types").
+ * replace a [custom entity type][google.cloud.dialogflow.cx.v3.EntityType] at
+ * the user session level (we refer to the entity types defined at the agent
+ * level as "custom entity types").
* Note: session entity types apply to all queries, regardless of the language.
* For more information about entity types, see the [Dialogflow
* documentation](https://cloud.google.com/dialogflow/docs/entities-overview).
@@ -680,17 +685,16 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
@java.lang.Override
public Builder clear() {
super.clear();
+ bitField0_ = 0;
name_ = "";
-
entityOverrideMode_ = 0;
-
if (entitiesBuilder_ == null) {
entities_ = java.util.Collections.emptyList();
} else {
entities_ = null;
entitiesBuilder_.clear();
}
- bitField0_ = (bitField0_ & ~0x00000001);
+ bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
@@ -718,20 +722,35 @@ public com.google.cloud.dialogflow.cx.v3.SessionEntityType build() {
public com.google.cloud.dialogflow.cx.v3.SessionEntityType buildPartial() {
com.google.cloud.dialogflow.cx.v3.SessionEntityType result =
new com.google.cloud.dialogflow.cx.v3.SessionEntityType(this);
- int from_bitField0_ = bitField0_;
- result.name_ = name_;
- result.entityOverrideMode_ = entityOverrideMode_;
+ buildPartialRepeatedFields(result);
+ if (bitField0_ != 0) {
+ buildPartial0(result);
+ }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartialRepeatedFields(
+ com.google.cloud.dialogflow.cx.v3.SessionEntityType result) {
if (entitiesBuilder_ == null) {
- if (((bitField0_ & 0x00000001) != 0)) {
+ if (((bitField0_ & 0x00000004) != 0)) {
entities_ = java.util.Collections.unmodifiableList(entities_);
- bitField0_ = (bitField0_ & ~0x00000001);
+ bitField0_ = (bitField0_ & ~0x00000004);
}
result.entities_ = entities_;
} else {
result.entities_ = entitiesBuilder_.build();
}
- onBuilt();
- return result;
+ }
+
+ private void buildPartial0(com.google.cloud.dialogflow.cx.v3.SessionEntityType result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.name_ = name_;
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.entityOverrideMode_ = entityOverrideMode_;
+ }
}
@java.lang.Override
@@ -782,6 +801,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.SessionEntityType oth
return this;
if (!other.getName().isEmpty()) {
name_ = other.name_;
+ bitField0_ |= 0x00000001;
onChanged();
}
if (other.entityOverrideMode_ != 0) {
@@ -791,7 +811,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.SessionEntityType oth
if (!other.entities_.isEmpty()) {
if (entities_.isEmpty()) {
entities_ = other.entities_;
- bitField0_ = (bitField0_ & ~0x00000001);
+ bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensureEntitiesIsMutable();
entities_.addAll(other.entities_);
@@ -804,7 +824,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.SessionEntityType oth
entitiesBuilder_.dispose();
entitiesBuilder_ = null;
entities_ = other.entities_;
- bitField0_ = (bitField0_ & ~0x00000001);
+ bitField0_ = (bitField0_ & ~0x00000004);
entitiesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
? getEntitiesFieldBuilder()
@@ -843,13 +863,13 @@ public Builder mergeFrom(
case 10:
{
name_ = input.readStringRequireUtf8();
-
+ bitField0_ |= 0x00000001;
break;
} // case 10
case 24:
{
entityOverrideMode_ = input.readEnum();
-
+ bitField0_ |= 0x00000002;
break;
} // case 24
case 34:
@@ -964,8 +984,8 @@ public Builder setName(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
-
name_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -987,8 +1007,8 @@ public Builder setName(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearName() {
-
name_ = getDefaultInstance().getName();
+ bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
@@ -1015,8 +1035,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
-
name_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -1026,8 +1046,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
*
*
*
- * Required. Indicates whether the additional data should override or supplement the
- * custom entity type definition.
+ * Required. Indicates whether the additional data should override or
+ * supplement the custom entity type definition.
*
*
*
@@ -1044,8 +1064,8 @@ public int getEntityOverrideModeValue() {
*
*
*
- * Required. Indicates whether the additional data should override or supplement the
- * custom entity type definition.
+ * Required. Indicates whether the additional data should override or
+ * supplement the custom entity type definition.
*
*
*
@@ -1056,8 +1076,8 @@ public int getEntityOverrideModeValue() {
* @return This builder for chaining.
*/
public Builder setEntityOverrideModeValue(int value) {
-
entityOverrideMode_ = value;
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -1065,8 +1085,8 @@ public Builder setEntityOverrideModeValue(int value) {
*
*
*
- * Required. Indicates whether the additional data should override or supplement the
- * custom entity type definition.
+ * Required. Indicates whether the additional data should override or
+ * supplement the custom entity type definition.
*
*
*
@@ -1078,9 +1098,8 @@ public Builder setEntityOverrideModeValue(int value) {
@java.lang.Override
public com.google.cloud.dialogflow.cx.v3.SessionEntityType.EntityOverrideMode
getEntityOverrideMode() {
- @SuppressWarnings("deprecation")
com.google.cloud.dialogflow.cx.v3.SessionEntityType.EntityOverrideMode result =
- com.google.cloud.dialogflow.cx.v3.SessionEntityType.EntityOverrideMode.valueOf(
+ com.google.cloud.dialogflow.cx.v3.SessionEntityType.EntityOverrideMode.forNumber(
entityOverrideMode_);
return result == null
? com.google.cloud.dialogflow.cx.v3.SessionEntityType.EntityOverrideMode.UNRECOGNIZED
@@ -1090,8 +1109,8 @@ public Builder setEntityOverrideModeValue(int value) {
*
*
*
- * Required. Indicates whether the additional data should override or supplement the
- * custom entity type definition.
+ * Required. Indicates whether the additional data should override or
+ * supplement the custom entity type definition.
*
*
*
@@ -1106,7 +1125,7 @@ public Builder setEntityOverrideMode(
if (value == null) {
throw new NullPointerException();
}
-
+ bitField0_ |= 0x00000002;
entityOverrideMode_ = value.getNumber();
onChanged();
return this;
@@ -1115,8 +1134,8 @@ public Builder setEntityOverrideMode(
*
*
*
- * Required. Indicates whether the additional data should override or supplement the
- * custom entity type definition.
+ * Required. Indicates whether the additional data should override or
+ * supplement the custom entity type definition.
*
*
*
@@ -1126,7 +1145,7 @@ public Builder setEntityOverrideMode(
* @return This builder for chaining.
*/
public Builder clearEntityOverrideMode() {
-
+ bitField0_ = (bitField0_ & ~0x00000002);
entityOverrideMode_ = 0;
onChanged();
return this;
@@ -1136,10 +1155,10 @@ public Builder clearEntityOverrideMode() {
java.util.Collections.emptyList();
private void ensureEntitiesIsMutable() {
- if (!((bitField0_ & 0x00000001) != 0)) {
+ if (!((bitField0_ & 0x00000004) != 0)) {
entities_ =
new java.util.ArrayList(entities_);
- bitField0_ |= 0x00000001;
+ bitField0_ |= 0x00000004;
}
}
@@ -1153,8 +1172,8 @@ private void ensureEntitiesIsMutable() {
*
*
*
- * Required. The collection of entities to override or supplement the custom entity
- * type.
+ * Required. The collection of entities to override or supplement the custom
+ * entity type.
*
*
*
@@ -1172,8 +1191,8 @@ public java.util.List getEn
*
*
*
- * Required. The collection of entities to override or supplement the custom entity
- * type.
+ * Required. The collection of entities to override or supplement the custom
+ * entity type.
*
*
*
@@ -1191,8 +1210,8 @@ public int getEntitiesCount() {
*
*
*
- * Required. The collection of entities to override or supplement the custom entity
- * type.
+ * Required. The collection of entities to override or supplement the custom
+ * entity type.
*
*
*
@@ -1210,8 +1229,8 @@ public com.google.cloud.dialogflow.cx.v3.EntityType.Entity getEntities(int index
*
*
*
- * Required. The collection of entities to override or supplement the custom entity
- * type.
+ * Required. The collection of entities to override or supplement the custom
+ * entity type.
*
*
*
@@ -1236,8 +1255,8 @@ public Builder setEntities(
*
*
*
- * Required. The collection of entities to override or supplement the custom entity
- * type.
+ * Required. The collection of entities to override or supplement the custom
+ * entity type.
*
*
*
@@ -1259,8 +1278,8 @@ public Builder setEntities(
*
*
*
- * Required. The collection of entities to override or supplement the custom entity
- * type.
+ * Required. The collection of entities to override or supplement the custom
+ * entity type.
*
*
*
@@ -1284,8 +1303,8 @@ public Builder addEntities(com.google.cloud.dialogflow.cx.v3.EntityType.Entity v
*
*
*
- * Required. The collection of entities to override or supplement the custom entity
- * type.
+ * Required. The collection of entities to override or supplement the custom
+ * entity type.
*
*
*
@@ -1310,8 +1329,8 @@ public Builder addEntities(
*
*
*
- * Required. The collection of entities to override or supplement the custom entity
- * type.
+ * Required. The collection of entities to override or supplement the custom
+ * entity type.
*
*
*
@@ -1333,8 +1352,8 @@ public Builder addEntities(
*
*
*
- * Required. The collection of entities to override or supplement the custom entity
- * type.
+ * Required. The collection of entities to override or supplement the custom
+ * entity type.
*
*
*
@@ -1356,8 +1375,8 @@ public Builder addEntities(
*
*
*
- * Required. The collection of entities to override or supplement the custom entity
- * type.
+ * Required. The collection of entities to override or supplement the custom
+ * entity type.
*
*
*
@@ -1379,8 +1398,8 @@ public Builder addAllEntities(
*
*
*
- * Required. The collection of entities to override or supplement the custom entity
- * type.
+ * Required. The collection of entities to override or supplement the custom
+ * entity type.
*
*
*
@@ -1390,7 +1409,7 @@ public Builder addAllEntities(
public Builder clearEntities() {
if (entitiesBuilder_ == null) {
entities_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000001);
+ bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
} else {
entitiesBuilder_.clear();
@@ -1401,8 +1420,8 @@ public Builder clearEntities() {
*
*
*
- * Required. The collection of entities to override or supplement the custom entity
- * type.
+ * Required. The collection of entities to override or supplement the custom
+ * entity type.
*
*
*
@@ -1423,8 +1442,8 @@ public Builder removeEntities(int index) {
*
*
*
- * Required. The collection of entities to override or supplement the custom entity
- * type.
+ * Required. The collection of entities to override or supplement the custom
+ * entity type.
*
*
*
@@ -1439,8 +1458,8 @@ public com.google.cloud.dialogflow.cx.v3.EntityType.Entity.Builder getEntitiesBu
*
*
*
- * Required. The collection of entities to override or supplement the custom entity
- * type.
+ * Required. The collection of entities to override or supplement the custom
+ * entity type.
*
*
*
@@ -1459,8 +1478,8 @@ public com.google.cloud.dialogflow.cx.v3.EntityType.EntityOrBuilder getEntitiesO
*
*
*
- * Required. The collection of entities to override or supplement the custom entity
- * type.
+ * Required. The collection of entities to override or supplement the custom
+ * entity type.
*
*
*
@@ -1479,8 +1498,8 @@ public com.google.cloud.dialogflow.cx.v3.EntityType.EntityOrBuilder getEntitiesO
*
*
*
- * Required. The collection of entities to override or supplement the custom entity
- * type.
+ * Required. The collection of entities to override or supplement the custom
+ * entity type.
*
*
*
@@ -1495,8 +1514,8 @@ public com.google.cloud.dialogflow.cx.v3.EntityType.Entity.Builder addEntitiesBu
*
*
*
- * Required. The collection of entities to override or supplement the custom entity
- * type.
+ * Required. The collection of entities to override or supplement the custom
+ * entity type.
*
*
*
@@ -1513,8 +1532,8 @@ public com.google.cloud.dialogflow.cx.v3.EntityType.Entity.Builder addEntitiesBu
*
*
*
- * Required. The collection of entities to override or supplement the custom entity
- * type.
+ * Required. The collection of entities to override or supplement the custom
+ * entity type.
*
*
*
@@ -1537,7 +1556,7 @@ public com.google.cloud.dialogflow.cx.v3.EntityType.Entity.Builder addEntitiesBu
com.google.cloud.dialogflow.cx.v3.EntityType.Entity,
com.google.cloud.dialogflow.cx.v3.EntityType.Entity.Builder,
com.google.cloud.dialogflow.cx.v3.EntityType.EntityOrBuilder>(
- entities_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
+ entities_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean());
entities_ = null;
}
return entitiesBuilder_;
diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SessionEntityTypeOrBuilder.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SessionEntityTypeOrBuilder.java
index 393f70f9bb78..025cfa9382e1 100644
--- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SessionEntityTypeOrBuilder.java
+++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SessionEntityTypeOrBuilder.java
@@ -64,8 +64,8 @@ public interface SessionEntityTypeOrBuilder
*
*
*
- * Required. Indicates whether the additional data should override or supplement the
- * custom entity type definition.
+ * Required. Indicates whether the additional data should override or
+ * supplement the custom entity type definition.
*
*
*
@@ -79,8 +79,8 @@ public interface SessionEntityTypeOrBuilder
*
*
*
- * Required. Indicates whether the additional data should override or supplement the
- * custom entity type definition.
+ * Required. Indicates whether the additional data should override or
+ * supplement the custom entity type definition.
*
*
*
@@ -95,8 +95,8 @@ public interface SessionEntityTypeOrBuilder
*
*
*
- * Required. The collection of entities to override or supplement the custom entity
- * type.
+ * Required. The collection of entities to override or supplement the custom
+ * entity type.
*
*
*
@@ -108,8 +108,8 @@ public interface SessionEntityTypeOrBuilder
*
*
*
- * Required. The collection of entities to override or supplement the custom entity
- * type.
+ * Required. The collection of entities to override or supplement the custom
+ * entity type.
*
*
*
@@ -121,8 +121,8 @@ public interface SessionEntityTypeOrBuilder
*
*
*
- * Required. The collection of entities to override or supplement the custom entity
- * type.
+ * Required. The collection of entities to override or supplement the custom
+ * entity type.
*
*
*
@@ -134,8 +134,8 @@ public interface SessionEntityTypeOrBuilder
*
*
*
- * Required. The collection of entities to override or supplement the custom entity
- * type.
+ * Required. The collection of entities to override or supplement the custom
+ * entity type.
*
*
*
@@ -148,8 +148,8 @@ public interface SessionEntityTypeOrBuilder
*
*
*
- * Required. The collection of entities to override or supplement the custom entity
- * type.
+ * Required. The collection of entities to override or supplement the custom
+ * entity type.
*
*
*
diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SessionEntityTypeProto.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SessionEntityTypeProto.java
index 0844329de765..b996b0c8f2ae 100644
--- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SessionEntityTypeProto.java
+++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SessionEntityTypeProto.java
@@ -155,12 +155,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "A\004name\032x\312A\031dialogflow.googleapis.com\322AYh"
+ "ttps://www.googleapis.com/auth/cloud-pla"
+ "tform,https://www.googleapis.com/auth/di"
- + "alogflowB\312\001\n!com.google.cloud.dialogflow"
- + ".cx.v3B\026SessionEntityTypeProtoP\001Z?google"
- + ".golang.org/genproto/googleapis/cloud/di"
- + "alogflow/cx/v3;cx\370\001\001\242\002\002DF\252\002\035Google.Cloud"
- + ".Dialogflow.Cx.V3\352\002!Google::Cloud::Dialo"
- + "gflow::CX::V3b\006proto3"
+ + "alogflowB\274\001\n!com.google.cloud.dialogflow"
+ + ".cx.v3B\026SessionEntityTypeProtoP\001Z1cloud."
+ + "google.com/go/dialogflow/cx/apiv3/cxpb;c"
+ + "xpb\370\001\001\242\002\002DF\252\002\035Google.Cloud.Dialogflow.Cx"
+ + ".V3\352\002!Google::Cloud::Dialogflow::CX::V3b"
+ + "\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SessionInfo.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SessionInfo.java
index efbdbce9b0d5..14781c500d64 100644
--- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SessionInfo.java
+++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SessionInfo.java
@@ -79,13 +79,18 @@ protected com.google.protobuf.MapField internalGetMapField(int number) {
}
public static final int SESSION_FIELD_NUMBER = 1;
- private volatile java.lang.Object session_;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object session_ = "";
/**
*
*
*
- * Always present for [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Ignored for [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
- * The unique identifier of the [session][google.cloud.dialogflow.cx.v3.DetectIntentRequest.session]. This
+ * Always present for
+ * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Ignored for
+ * [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. The
+ * unique identifier of the
+ * [session][google.cloud.dialogflow.cx.v3.DetectIntentRequest.session]. This
* field can be used by the webhook to identify a session.
* Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
* ID>/sessions/<Session ID>` or `projects/<Project ID>/locations/<Location
@@ -113,8 +118,11 @@ public java.lang.String getSession() {
*
*
*
- * Always present for [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Ignored for [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
- * The unique identifier of the [session][google.cloud.dialogflow.cx.v3.DetectIntentRequest.session]. This
+ * Always present for
+ * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Ignored for
+ * [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. The
+ * unique identifier of the
+ * [session][google.cloud.dialogflow.cx.v3.DetectIntentRequest.session]. This
* field can be used by the webhook to identify a session.
* Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
* ID>/sessions/<Session ID>` or `projects/<Project ID>/locations/<Location
@@ -154,6 +162,7 @@ private static final class ParametersDefaultEntryHolder {
com.google.protobuf.Value.getDefaultInstance());
}
+ @SuppressWarnings("serial")
private com.google.protobuf.MapField parameters_;
private com.google.protobuf.MapField
@@ -171,12 +180,14 @@ public int getParametersCount() {
*
*
*
- * Optional for [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Optional for [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
- * All parameters collected from forms and intents during the session.
- * Parameters can be created, updated, or removed by the webhook. To remove a
- * parameter from the session, the webhook should explicitly set the parameter
- * value to null in [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. The map is keyed by parameters'
- * display names.
+ * Optional for
+ * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Optional
+ * for [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. All
+ * parameters collected from forms and intents during the session. Parameters
+ * can be created, updated, or removed by the webhook. To remove a parameter
+ * from the session, the webhook should explicitly set the parameter value to
+ * null in [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
+ * The map is keyed by parameters' display names.
*
*
* map<string, .google.protobuf.Value> parameters = 2;
@@ -198,12 +209,14 @@ public java.util.Map getParameters(
*
*
*
- * Optional for [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Optional for [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
- * All parameters collected from forms and intents during the session.
- * Parameters can be created, updated, or removed by the webhook. To remove a
- * parameter from the session, the webhook should explicitly set the parameter
- * value to null in [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. The map is keyed by parameters'
- * display names.
+ * Optional for
+ * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Optional
+ * for [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. All
+ * parameters collected from forms and intents during the session. Parameters
+ * can be created, updated, or removed by the webhook. To remove a parameter
+ * from the session, the webhook should explicitly set the parameter value to
+ * null in [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
+ * The map is keyed by parameters' display names.
*
*
* map<string, .google.protobuf.Value> parameters = 2;
@@ -216,19 +229,23 @@ public java.util.Map getParametersM
*
*
*
- * Optional for [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Optional for [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
- * All parameters collected from forms and intents during the session.
- * Parameters can be created, updated, or removed by the webhook. To remove a
- * parameter from the session, the webhook should explicitly set the parameter
- * value to null in [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. The map is keyed by parameters'
- * display names.
+ * Optional for
+ * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Optional
+ * for [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. All
+ * parameters collected from forms and intents during the session. Parameters
+ * can be created, updated, or removed by the webhook. To remove a parameter
+ * from the session, the webhook should explicitly set the parameter value to
+ * null in [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
+ * The map is keyed by parameters' display names.
*
*
* map<string, .google.protobuf.Value> parameters = 2;
*/
@java.lang.Override
- public com.google.protobuf.Value getParametersOrDefault(
- java.lang.String key, com.google.protobuf.Value defaultValue) {
+ public /* nullable */ com.google.protobuf.Value getParametersOrDefault(
+ java.lang.String key,
+ /* nullable */
+ com.google.protobuf.Value defaultValue) {
if (key == null) {
throw new NullPointerException("map key");
}
@@ -240,12 +257,14 @@ public com.google.protobuf.Value getParametersOrDefault(
*
*
*
- * Optional for [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Optional for [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
- * All parameters collected from forms and intents during the session.
- * Parameters can be created, updated, or removed by the webhook. To remove a
- * parameter from the session, the webhook should explicitly set the parameter
- * value to null in [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. The map is keyed by parameters'
- * display names.
+ * Optional for
+ * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Optional
+ * for [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. All
+ * parameters collected from forms and intents during the session. Parameters
+ * can be created, updated, or removed by the webhook. To remove a parameter
+ * from the session, the webhook should explicitly set the parameter value to
+ * null in [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
+ * The map is keyed by parameters' display names.
*
*
* map<string, .google.protobuf.Value> parameters = 2;
@@ -497,8 +516,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
@java.lang.Override
public Builder clear() {
super.clear();
+ bitField0_ = 0;
session_ = "";
-
internalGetMutableParameters().clear();
return this;
}
@@ -527,14 +546,24 @@ public com.google.cloud.dialogflow.cx.v3.SessionInfo build() {
public com.google.cloud.dialogflow.cx.v3.SessionInfo buildPartial() {
com.google.cloud.dialogflow.cx.v3.SessionInfo result =
new com.google.cloud.dialogflow.cx.v3.SessionInfo(this);
- int from_bitField0_ = bitField0_;
- result.session_ = session_;
- result.parameters_ = internalGetParameters();
- result.parameters_.makeImmutable();
+ if (bitField0_ != 0) {
+ buildPartial0(result);
+ }
onBuilt();
return result;
}
+ private void buildPartial0(com.google.cloud.dialogflow.cx.v3.SessionInfo result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.session_ = session_;
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.parameters_ = internalGetParameters();
+ result.parameters_.makeImmutable();
+ }
+ }
+
@java.lang.Override
public Builder clone() {
return super.clone();
@@ -582,9 +611,11 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.SessionInfo other) {
if (other == com.google.cloud.dialogflow.cx.v3.SessionInfo.getDefaultInstance()) return this;
if (!other.getSession().isEmpty()) {
session_ = other.session_;
+ bitField0_ |= 0x00000001;
onChanged();
}
internalGetMutableParameters().mergeFrom(other.internalGetParameters());
+ bitField0_ |= 0x00000002;
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
@@ -614,7 +645,7 @@ public Builder mergeFrom(
case 10:
{
session_ = input.readStringRequireUtf8();
-
+ bitField0_ |= 0x00000001;
break;
} // case 10
case 18:
@@ -627,6 +658,7 @@ public Builder mergeFrom(
internalGetMutableParameters()
.getMutableMap()
.put(parameters__.getKey(), parameters__.getValue());
+ bitField0_ |= 0x00000002;
break;
} // case 18
default:
@@ -653,8 +685,11 @@ public Builder mergeFrom(
*
*
*
- * Always present for [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Ignored for [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
- * The unique identifier of the [session][google.cloud.dialogflow.cx.v3.DetectIntentRequest.session]. This
+ * Always present for
+ * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Ignored for
+ * [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. The
+ * unique identifier of the
+ * [session][google.cloud.dialogflow.cx.v3.DetectIntentRequest.session]. This
* field can be used by the webhook to identify a session.
* Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
* ID>/sessions/<Session ID>` or `projects/<Project ID>/locations/<Location
@@ -681,8 +716,11 @@ public java.lang.String getSession() {
*
*
*
- * Always present for [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Ignored for [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
- * The unique identifier of the [session][google.cloud.dialogflow.cx.v3.DetectIntentRequest.session]. This
+ * Always present for
+ * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Ignored for
+ * [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. The
+ * unique identifier of the
+ * [session][google.cloud.dialogflow.cx.v3.DetectIntentRequest.session]. This
* field can be used by the webhook to identify a session.
* Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
* ID>/sessions/<Session ID>` or `projects/<Project ID>/locations/<Location
@@ -709,8 +747,11 @@ public com.google.protobuf.ByteString getSessionBytes() {
*
*
*
- * Always present for [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Ignored for [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
- * The unique identifier of the [session][google.cloud.dialogflow.cx.v3.DetectIntentRequest.session]. This
+ * Always present for
+ * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Ignored for
+ * [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. The
+ * unique identifier of the
+ * [session][google.cloud.dialogflow.cx.v3.DetectIntentRequest.session]. This
* field can be used by the webhook to identify a session.
* Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
* ID>/sessions/<Session ID>` or `projects/<Project ID>/locations/<Location
@@ -727,8 +768,8 @@ public Builder setSession(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
-
session_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -736,8 +777,11 @@ public Builder setSession(java.lang.String value) {
*
*
*
- * Always present for [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Ignored for [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
- * The unique identifier of the [session][google.cloud.dialogflow.cx.v3.DetectIntentRequest.session]. This
+ * Always present for
+ * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Ignored for
+ * [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. The
+ * unique identifier of the
+ * [session][google.cloud.dialogflow.cx.v3.DetectIntentRequest.session]. This
* field can be used by the webhook to identify a session.
* Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
* ID>/sessions/<Session ID>` or `projects/<Project ID>/locations/<Location
@@ -750,8 +794,8 @@ public Builder setSession(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearSession() {
-
session_ = getDefaultInstance().getSession();
+ bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
@@ -759,8 +803,11 @@ public Builder clearSession() {
*
*
*
- * Always present for [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Ignored for [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
- * The unique identifier of the [session][google.cloud.dialogflow.cx.v3.DetectIntentRequest.session]. This
+ * Always present for
+ * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Ignored for
+ * [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. The
+ * unique identifier of the
+ * [session][google.cloud.dialogflow.cx.v3.DetectIntentRequest.session]. This
* field can be used by the webhook to identify a session.
* Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
* ID>/sessions/<Session ID>` or `projects/<Project ID>/locations/<Location
@@ -778,8 +825,8 @@ public Builder setSessionBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
-
session_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -797,8 +844,6 @@ public Builder setSessionBytes(com.google.protobuf.ByteString value) {
private com.google.protobuf.MapField
internalGetMutableParameters() {
- onChanged();
- ;
if (parameters_ == null) {
parameters_ =
com.google.protobuf.MapField.newMapField(ParametersDefaultEntryHolder.defaultEntry);
@@ -806,6 +851,8 @@ public Builder setSessionBytes(com.google.protobuf.ByteString value) {
if (!parameters_.isMutable()) {
parameters_ = parameters_.copy();
}
+ bitField0_ |= 0x00000002;
+ onChanged();
return parameters_;
}
@@ -816,12 +863,14 @@ public int getParametersCount() {
*
*
*
- * Optional for [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Optional for [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
- * All parameters collected from forms and intents during the session.
- * Parameters can be created, updated, or removed by the webhook. To remove a
- * parameter from the session, the webhook should explicitly set the parameter
- * value to null in [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. The map is keyed by parameters'
- * display names.
+ * Optional for
+ * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Optional
+ * for [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. All
+ * parameters collected from forms and intents during the session. Parameters
+ * can be created, updated, or removed by the webhook. To remove a parameter
+ * from the session, the webhook should explicitly set the parameter value to
+ * null in [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
+ * The map is keyed by parameters' display names.
*
*
* map<string, .google.protobuf.Value> parameters = 2;
@@ -843,12 +892,14 @@ public java.util.Map getParameters(
*
*
*
- * Optional for [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Optional for [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
- * All parameters collected from forms and intents during the session.
- * Parameters can be created, updated, or removed by the webhook. To remove a
- * parameter from the session, the webhook should explicitly set the parameter
- * value to null in [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. The map is keyed by parameters'
- * display names.
+ * Optional for
+ * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Optional
+ * for [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. All
+ * parameters collected from forms and intents during the session. Parameters
+ * can be created, updated, or removed by the webhook. To remove a parameter
+ * from the session, the webhook should explicitly set the parameter value to
+ * null in [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
+ * The map is keyed by parameters' display names.
*
*
* map<string, .google.protobuf.Value> parameters = 2;
@@ -861,19 +912,23 @@ public java.util.Map getParametersM
*
*
*
- * Optional for [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Optional for [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
- * All parameters collected from forms and intents during the session.
- * Parameters can be created, updated, or removed by the webhook. To remove a
- * parameter from the session, the webhook should explicitly set the parameter
- * value to null in [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. The map is keyed by parameters'
- * display names.
+ * Optional for
+ * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Optional
+ * for [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. All
+ * parameters collected from forms and intents during the session. Parameters
+ * can be created, updated, or removed by the webhook. To remove a parameter
+ * from the session, the webhook should explicitly set the parameter value to
+ * null in [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
+ * The map is keyed by parameters' display names.
*
*
* map<string, .google.protobuf.Value> parameters = 2;
*/
@java.lang.Override
- public com.google.protobuf.Value getParametersOrDefault(
- java.lang.String key, com.google.protobuf.Value defaultValue) {
+ public /* nullable */ com.google.protobuf.Value getParametersOrDefault(
+ java.lang.String key,
+ /* nullable */
+ com.google.protobuf.Value defaultValue) {
if (key == null) {
throw new NullPointerException("map key");
}
@@ -885,12 +940,14 @@ public com.google.protobuf.Value getParametersOrDefault(
*
*
*
- * Optional for [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Optional for [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
- * All parameters collected from forms and intents during the session.
- * Parameters can be created, updated, or removed by the webhook. To remove a
- * parameter from the session, the webhook should explicitly set the parameter
- * value to null in [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. The map is keyed by parameters'
- * display names.
+ * Optional for
+ * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Optional
+ * for [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. All
+ * parameters collected from forms and intents during the session. Parameters
+ * can be created, updated, or removed by the webhook. To remove a parameter
+ * from the session, the webhook should explicitly set the parameter value to
+ * null in [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
+ * The map is keyed by parameters' display names.
*
*
* map<string, .google.protobuf.Value> parameters = 2;
@@ -909,6 +966,7 @@ public com.google.protobuf.Value getParametersOrThrow(java.lang.String key) {
}
public Builder clearParameters() {
+ bitField0_ = (bitField0_ & ~0x00000002);
internalGetMutableParameters().getMutableMap().clear();
return this;
}
@@ -916,12 +974,14 @@ public Builder clearParameters() {
*
*
*
- * Optional for [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Optional for [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
- * All parameters collected from forms and intents during the session.
- * Parameters can be created, updated, or removed by the webhook. To remove a
- * parameter from the session, the webhook should explicitly set the parameter
- * value to null in [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. The map is keyed by parameters'
- * display names.
+ * Optional for
+ * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Optional
+ * for [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. All
+ * parameters collected from forms and intents during the session. Parameters
+ * can be created, updated, or removed by the webhook. To remove a parameter
+ * from the session, the webhook should explicitly set the parameter value to
+ * null in [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
+ * The map is keyed by parameters' display names.
*
*
* map<string, .google.protobuf.Value> parameters = 2;
@@ -936,18 +996,21 @@ public Builder removeParameters(java.lang.String key) {
/** Use alternate mutation accessors instead. */
@java.lang.Deprecated
public java.util.Map getMutableParameters() {
+ bitField0_ |= 0x00000002;
return internalGetMutableParameters().getMutableMap();
}
/**
*
*
*
- * Optional for [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Optional for [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
- * All parameters collected from forms and intents during the session.
- * Parameters can be created, updated, or removed by the webhook. To remove a
- * parameter from the session, the webhook should explicitly set the parameter
- * value to null in [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. The map is keyed by parameters'
- * display names.
+ * Optional for
+ * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Optional
+ * for [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. All
+ * parameters collected from forms and intents during the session. Parameters
+ * can be created, updated, or removed by the webhook. To remove a parameter
+ * from the session, the webhook should explicitly set the parameter value to
+ * null in [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
+ * The map is keyed by parameters' display names.
*
*
* map<string, .google.protobuf.Value> parameters = 2;
@@ -959,20 +1022,22 @@ public Builder putParameters(java.lang.String key, com.google.protobuf.Value val
if (value == null) {
throw new NullPointerException("map value");
}
-
internalGetMutableParameters().getMutableMap().put(key, value);
+ bitField0_ |= 0x00000002;
return this;
}
/**
*
*
*
- * Optional for [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Optional for [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
- * All parameters collected from forms and intents during the session.
- * Parameters can be created, updated, or removed by the webhook. To remove a
- * parameter from the session, the webhook should explicitly set the parameter
- * value to null in [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. The map is keyed by parameters'
- * display names.
+ * Optional for
+ * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Optional
+ * for [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. All
+ * parameters collected from forms and intents during the session. Parameters
+ * can be created, updated, or removed by the webhook. To remove a parameter
+ * from the session, the webhook should explicitly set the parameter value to
+ * null in [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
+ * The map is keyed by parameters' display names.
*
*
* map<string, .google.protobuf.Value> parameters = 2;
@@ -980,6 +1045,7 @@ public Builder putParameters(java.lang.String key, com.google.protobuf.Value val
public Builder putAllParameters(
java.util.Map values) {
internalGetMutableParameters().getMutableMap().putAll(values);
+ bitField0_ |= 0x00000002;
return this;
}
diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SessionInfoOrBuilder.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SessionInfoOrBuilder.java
index b8cdac21a2e7..33d8adec8cd5 100644
--- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SessionInfoOrBuilder.java
+++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SessionInfoOrBuilder.java
@@ -27,8 +27,11 @@ public interface SessionInfoOrBuilder
*
*
*
- * Always present for [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Ignored for [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
- * The unique identifier of the [session][google.cloud.dialogflow.cx.v3.DetectIntentRequest.session]. This
+ * Always present for
+ * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Ignored for
+ * [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. The
+ * unique identifier of the
+ * [session][google.cloud.dialogflow.cx.v3.DetectIntentRequest.session]. This
* field can be used by the webhook to identify a session.
* Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
* ID>/sessions/<Session ID>` or `projects/<Project ID>/locations/<Location
@@ -45,8 +48,11 @@ public interface SessionInfoOrBuilder
*
*
*
- * Always present for [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Ignored for [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
- * The unique identifier of the [session][google.cloud.dialogflow.cx.v3.DetectIntentRequest.session]. This
+ * Always present for
+ * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Ignored for
+ * [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. The
+ * unique identifier of the
+ * [session][google.cloud.dialogflow.cx.v3.DetectIntentRequest.session]. This
* field can be used by the webhook to identify a session.
* Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
* ID>/sessions/<Session ID>` or `projects/<Project ID>/locations/<Location
@@ -64,12 +70,14 @@ public interface SessionInfoOrBuilder
*
*
*
- * Optional for [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Optional for [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
- * All parameters collected from forms and intents during the session.
- * Parameters can be created, updated, or removed by the webhook. To remove a
- * parameter from the session, the webhook should explicitly set the parameter
- * value to null in [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. The map is keyed by parameters'
- * display names.
+ * Optional for
+ * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Optional
+ * for [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. All
+ * parameters collected from forms and intents during the session. Parameters
+ * can be created, updated, or removed by the webhook. To remove a parameter
+ * from the session, the webhook should explicitly set the parameter value to
+ * null in [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
+ * The map is keyed by parameters' display names.
*
*
* map<string, .google.protobuf.Value> parameters = 2;
@@ -79,12 +87,14 @@ public interface SessionInfoOrBuilder
*
*
*
- * Optional for [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Optional for [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
- * All parameters collected from forms and intents during the session.
- * Parameters can be created, updated, or removed by the webhook. To remove a
- * parameter from the session, the webhook should explicitly set the parameter
- * value to null in [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. The map is keyed by parameters'
- * display names.
+ * Optional for
+ * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Optional
+ * for [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. All
+ * parameters collected from forms and intents during the session. Parameters
+ * can be created, updated, or removed by the webhook. To remove a parameter
+ * from the session, the webhook should explicitly set the parameter value to
+ * null in [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
+ * The map is keyed by parameters' display names.
*
*
* map<string, .google.protobuf.Value> parameters = 2;
@@ -97,12 +107,14 @@ public interface SessionInfoOrBuilder
*
*
*
- * Optional for [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Optional for [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
- * All parameters collected from forms and intents during the session.
- * Parameters can be created, updated, or removed by the webhook. To remove a
- * parameter from the session, the webhook should explicitly set the parameter
- * value to null in [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. The map is keyed by parameters'
- * display names.
+ * Optional for
+ * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Optional
+ * for [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. All
+ * parameters collected from forms and intents during the session. Parameters
+ * can be created, updated, or removed by the webhook. To remove a parameter
+ * from the session, the webhook should explicitly set the parameter value to
+ * null in [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
+ * The map is keyed by parameters' display names.
*
*
* map<string, .google.protobuf.Value> parameters = 2;
@@ -112,17 +124,18 @@ public interface SessionInfoOrBuilder
*
*
*
- * Optional for [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Optional for [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
- * All parameters collected from forms and intents during the session.
- * Parameters can be created, updated, or removed by the webhook. To remove a
- * parameter from the session, the webhook should explicitly set the parameter
- * value to null in [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. The map is keyed by parameters'
- * display names.
+ * Optional for
+ * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Optional
+ * for [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. All
+ * parameters collected from forms and intents during the session. Parameters
+ * can be created, updated, or removed by the webhook. To remove a parameter
+ * from the session, the webhook should explicitly set the parameter value to
+ * null in [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
+ * The map is keyed by parameters' display names.
*
*
* map<string, .google.protobuf.Value> parameters = 2;
*/
-
/* nullable */
com.google.protobuf.Value getParametersOrDefault(
java.lang.String key,
@@ -132,12 +145,14 @@ com.google.protobuf.Value getParametersOrDefault(
*
*
*
- * Optional for [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Optional for [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
- * All parameters collected from forms and intents during the session.
- * Parameters can be created, updated, or removed by the webhook. To remove a
- * parameter from the session, the webhook should explicitly set the parameter
- * value to null in [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. The map is keyed by parameters'
- * display names.
+ * Optional for
+ * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Optional
+ * for [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. All
+ * parameters collected from forms and intents during the session. Parameters
+ * can be created, updated, or removed by the webhook. To remove a parameter
+ * from the session, the webhook should explicitly set the parameter value to
+ * null in [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
+ * The map is keyed by parameters' display names.
*
*
* map<string, .google.protobuf.Value> parameters = 2;
diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SessionProto.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SessionProto.java
index 6e1c3e794319..ae6b78e1ee29 100644
--- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SessionProto.java
+++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SessionProto.java
@@ -172,7 +172,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ ".google.protobuf.Duration\022\025\n\rlanguage_co"
+ "de\030\n \001(\t\"X\n\013MessageType\022\034\n\030MESSAGE_TYPE_"
+ "UNSPECIFIED\020\000\022\016\n\nTRANSCRIPT\020\001\022\033\n\027END_OF_"
- + "SINGLE_UTTERANCE\020\002\"\303\004\n\017QueryParameters\022\021"
+ + "SINGLE_UTTERANCE\020\002\"\324\004\n\017QueryParameters\022\021"
+ "\n\ttime_zone\030\001 \001(\t\022)\n\014geo_location\030\002 \001(\0132"
+ "\023.google.type.LatLng\022N\n\024session_entity_t"
+ "ypes\030\003 \003(\01320.google.cloud.dialogflow.cx."
@@ -185,120 +185,120 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "_headers\030\n \003(\0132B.google.cloud.dialogflow"
+ ".cx.v3.QueryParameters.WebhookHeadersEnt"
+ "ry\022=\n\rflow_versions\030\016 \003(\tB&\372A#\n!dialogfl"
- + "ow.googleapis.com/Version\0325\n\023WebhookHead"
- + "ersEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001"
- + "\"\333\002\n\nQueryInput\0228\n\004text\030\002 \001(\0132(.google.c"
- + "loud.dialogflow.cx.v3.TextInputH\000\022<\n\006int"
- + "ent\030\003 \001(\0132*.google.cloud.dialogflow.cx.v"
- + "3.IntentInputH\000\022:\n\005audio\030\005 \001(\0132).google."
- + "cloud.dialogflow.cx.v3.AudioInputH\000\022:\n\005e"
- + "vent\030\006 \001(\0132).google.cloud.dialogflow.cx."
- + "v3.EventInputH\000\0228\n\004dtmf\030\007 \001(\0132(.google.c"
- + "loud.dialogflow.cx.v3.DtmfInputH\000\022\032\n\rlan"
- + "guage_code\030\004 \001(\tB\003\340A\002B\007\n\005input\"\241\006\n\013Query"
- + "Result\022\016\n\004text\030\001 \001(\tH\000\022?\n\016trigger_intent"
- + "\030\013 \001(\tB%\372A\"\n dialogflow.googleapis.com/I"
- + "ntentH\000\022\024\n\ntranscript\030\014 \001(\tH\000\022\027\n\rtrigger"
- + "_event\030\016 \001(\tH\000\0228\n\004dtmf\030\027 \001(\0132(.google.cl"
- + "oud.dialogflow.cx.v3.DtmfInputH\000\022\025\n\rlang"
- + "uage_code\030\002 \001(\t\022+\n\nparameters\030\003 \001(\0132\027.go"
- + "ogle.protobuf.Struct\022I\n\021response_message"
- + "s\030\004 \003(\0132..google.cloud.dialogflow.cx.v3."
- + "ResponseMessage\022,\n\020webhook_statuses\030\r \003("
- + "\0132\022.google.rpc.Status\0221\n\020webhook_payload"
- + "s\030\006 \003(\0132\027.google.protobuf.Struct\0229\n\014curr"
- + "ent_page\030\007 \001(\0132#.google.cloud.dialogflow"
- + ".cx.v3.Page\0229\n\006intent\030\010 \001(\0132%.google.clo"
- + "ud.dialogflow.cx.v3.IntentB\002\030\001\022\'\n\033intent"
- + "_detection_confidence\030\t \001(\002B\002\030\001\0223\n\005match"
- + "\030\017 \001(\0132$.google.cloud.dialogflow.cx.v3.M"
- + "atch\0220\n\017diagnostic_info\030\n \001(\0132\027.google.p"
- + "rotobuf.Struct\022Y\n\031sentiment_analysis_res"
- + "ult\030\021 \001(\01326.google.cloud.dialogflow.cx.v"
- + "3.SentimentAnalysisResultB\007\n\005query\"\036\n\tTe"
- + "xtInput\022\021\n\004text\030\001 \001(\tB\003\340A\002\"G\n\013IntentInpu"
- + "t\0228\n\006intent\030\001 \001(\tB(\340A\002\372A\"\n dialogflow.go"
- + "ogleapis.com/Intent\"a\n\nAudioInput\022D\n\006con"
- + "fig\030\001 \001(\0132/.google.cloud.dialogflow.cx.v"
- + "3.InputAudioConfigB\003\340A\002\022\r\n\005audio\030\002 \001(\014\"\033"
- + "\n\nEventInput\022\r\n\005event\030\001 \001(\t\"1\n\tDtmfInput"
- + "\022\016\n\006digits\030\001 \001(\t\022\024\n\014finish_digit\030\002 \001(\t\"\361"
- + "\002\n\005Match\0225\n\006intent\030\001 \001(\0132%.google.cloud."
- + "dialogflow.cx.v3.Intent\022\r\n\005event\030\006 \001(\t\022+"
- + "\n\nparameters\030\002 \001(\0132\027.google.protobuf.Str"
- + "uct\022\026\n\016resolved_input\030\003 \001(\t\022B\n\nmatch_typ"
- + "e\030\004 \001(\0162..google.cloud.dialogflow.cx.v3."
- + "Match.MatchType\022\022\n\nconfidence\030\005 \001(\002\"\204\001\n\t"
- + "MatchType\022\032\n\026MATCH_TYPE_UNSPECIFIED\020\000\022\n\n"
- + "\006INTENT\020\001\022\021\n\rDIRECT_INTENT\020\002\022\025\n\021PARAMETE"
- + "R_FILLING\020\003\022\014\n\010NO_MATCH\020\004\022\014\n\010NO_INPUT\020\005\022"
- + "\t\n\005EVENT\020\006\"\333\001\n\022MatchIntentRequest\022:\n\007ses"
- + "sion\030\001 \001(\tB)\340A\002\372A#\n!dialogflow.googleapi"
- + "s.com/Session\022D\n\014query_params\030\002 \001(\0132..go"
- + "ogle.cloud.dialogflow.cx.v3.QueryParamet"
- + "ers\022C\n\013query_input\030\003 \001(\0132).google.cloud."
- + "dialogflow.cx.v3.QueryInputB\003\340A\002\"\220\002\n\023Mat"
- + "chIntentResponse\022\016\n\004text\030\001 \001(\tH\000\022?\n\016trig"
- + "ger_intent\030\002 \001(\tB%\372A\"\n dialogflow.google"
- + "apis.com/IntentH\000\022\024\n\ntranscript\030\003 \001(\tH\000\022"
- + "\027\n\rtrigger_event\030\006 \001(\tH\000\0225\n\007matches\030\004 \003("
- + "\0132$.google.cloud.dialogflow.cx.v3.Match\022"
- + "9\n\014current_page\030\005 \001(\0132#.google.cloud.dia"
- + "logflow.cx.v3.PageB\007\n\005query\"\353\001\n\024FulfillI"
- + "ntentRequest\022O\n\024match_intent_request\030\001 \001"
- + "(\01321.google.cloud.dialogflow.cx.v3.Match"
- + "IntentRequest\0223\n\005match\030\002 \001(\0132$.google.cl"
- + "oud.dialogflow.cx.v3.Match\022M\n\023output_aud"
- + "io_config\030\003 \001(\01320.google.cloud.dialogflo"
- + "w.cx.v3.OutputAudioConfig\"\323\001\n\025FulfillInt"
- + "entResponse\022\023\n\013response_id\030\001 \001(\t\022@\n\014quer"
- + "y_result\030\002 \001(\0132*.google.cloud.dialogflow"
- + ".cx.v3.QueryResult\022\024\n\014output_audio\030\003 \001(\014"
- + "\022M\n\023output_audio_config\030\004 \001(\01320.google.c"
- + "loud.dialogflow.cx.v3.OutputAudioConfig\""
- + ";\n\027SentimentAnalysisResult\022\r\n\005score\030\001 \001("
- + "\002\022\021\n\tmagnitude\030\002 \001(\0022\304\t\n\010Sessions\022\246\002\n\014De"
- + "tectIntent\0222.google.cloud.dialogflow.cx."
- + "v3.DetectIntentRequest\0323.google.cloud.di"
- + "alogflow.cx.v3.DetectIntentResponse\"\254\001\202\323"
- + "\344\223\002\245\001\"E/v3/{session=projects/*/locations"
- + "/*/agents/*/sessions/*}:detectIntent:\001*Z"
- + "Y\"T/v3/{session=projects/*/locations/*/a"
- + "gents/*/environments/*/sessions/*}:detec"
- + "tIntent:\001*\022\230\001\n\025StreamingDetectIntent\022;.g"
- + "oogle.cloud.dialogflow.cx.v3.StreamingDe"
- + "tectIntentRequest\032<.google.cloud.dialogf"
- + "low.cx.v3.StreamingDetectIntentResponse\""
- + "\000(\0010\001\022\241\002\n\013MatchIntent\0221.google.cloud.dia"
- + "logflow.cx.v3.MatchIntentRequest\0322.googl"
- + "e.cloud.dialogflow.cx.v3.MatchIntentResp"
- + "onse\"\252\001\202\323\344\223\002\243\001\"D/v3/{session=projects/*/"
- + "locations/*/agents/*/sessions/*}:matchIn"
- + "tent:\001*ZX\"S/v3/{session=projects/*/locat"
- + "ions/*/agents/*/environments/*/sessions/"
- + "*}:matchIntent:\001*\022\325\002\n\rFulfillIntent\0223.go"
- + "ogle.cloud.dialogflow.cx.v3.FulfillInten"
- + "tRequest\0324.google.cloud.dialogflow.cx.v3"
- + ".FulfillIntentResponse\"\330\001\202\323\344\223\002\321\001\"[/v3/{m"
- + "atch_intent_request.session=projects/*/l"
- + "ocations/*/agents/*/sessions/*}:fulfillI"
- + "ntent:\001*Zo\"j/v3/{match_intent_request.se"
- + "ssion=projects/*/locations/*/agents/*/en"
- + "vironments/*/sessions/*}:fulfillIntent:\001"
- + "*\032x\312A\031dialogflow.googleapis.com\322AYhttps:"
- + "//www.googleapis.com/auth/cloud-platform"
- + ",https://www.googleapis.com/auth/dialogf"
- + "lowB\230\003\n!com.google.cloud.dialogflow.cx.v"
- + "3B\014SessionProtoP\001Z?google.golang.org/gen"
- + "proto/googleapis/cloud/dialogflow/cx/v3;"
- + "cx\370\001\001\242\002\002DF\252\002\035Google.Cloud.Dialogflow.Cx."
- + "V3\352\002!Google::Cloud::Dialogflow::CX::V3\352A"
- + "\324\001\n!dialogflow.googleapis.com/Session\022Ip"
- + "rojects/{project}/locations/{location}/a"
- + "gents/{agent}/sessions/{session}\022dprojec"
- + "ts/{project}/locations/{location}/agents"
- + "/{agent}/environments/{environment}/sess"
- + "ions/{session}b\006proto3"
+ + "ow.googleapis.com/Version\022\017\n\007channel\030\017 \001"
+ + "(\t\0325\n\023WebhookHeadersEntry\022\013\n\003key\030\001 \001(\t\022\r"
+ + "\n\005value\030\002 \001(\t:\0028\001\"\333\002\n\nQueryInput\0228\n\004text"
+ + "\030\002 \001(\0132(.google.cloud.dialogflow.cx.v3.T"
+ + "extInputH\000\022<\n\006intent\030\003 \001(\0132*.google.clou"
+ + "d.dialogflow.cx.v3.IntentInputH\000\022:\n\005audi"
+ + "o\030\005 \001(\0132).google.cloud.dialogflow.cx.v3."
+ + "AudioInputH\000\022:\n\005event\030\006 \001(\0132).google.clo"
+ + "ud.dialogflow.cx.v3.EventInputH\000\0228\n\004dtmf"
+ + "\030\007 \001(\0132(.google.cloud.dialogflow.cx.v3.D"
+ + "tmfInputH\000\022\032\n\rlanguage_code\030\004 \001(\tB\003\340A\002B\007"
+ + "\n\005input\"\241\006\n\013QueryResult\022\016\n\004text\030\001 \001(\tH\000\022"
+ + "?\n\016trigger_intent\030\013 \001(\tB%\372A\"\n dialogflow"
+ + ".googleapis.com/IntentH\000\022\024\n\ntranscript\030\014"
+ + " \001(\tH\000\022\027\n\rtrigger_event\030\016 \001(\tH\000\0228\n\004dtmf\030"
+ + "\027 \001(\0132(.google.cloud.dialogflow.cx.v3.Dt"
+ + "mfInputH\000\022\025\n\rlanguage_code\030\002 \001(\t\022+\n\npara"
+ + "meters\030\003 \001(\0132\027.google.protobuf.Struct\022I\n"
+ + "\021response_messages\030\004 \003(\0132..google.cloud."
+ + "dialogflow.cx.v3.ResponseMessage\022,\n\020webh"
+ + "ook_statuses\030\r \003(\0132\022.google.rpc.Status\0221"
+ + "\n\020webhook_payloads\030\006 \003(\0132\027.google.protob"
+ + "uf.Struct\0229\n\014current_page\030\007 \001(\0132#.google"
+ + ".cloud.dialogflow.cx.v3.Page\0229\n\006intent\030\010"
+ + " \001(\0132%.google.cloud.dialogflow.cx.v3.Int"
+ + "entB\002\030\001\022\'\n\033intent_detection_confidence\030\t"
+ + " \001(\002B\002\030\001\0223\n\005match\030\017 \001(\0132$.google.cloud.d"
+ + "ialogflow.cx.v3.Match\0220\n\017diagnostic_info"
+ + "\030\n \001(\0132\027.google.protobuf.Struct\022Y\n\031senti"
+ + "ment_analysis_result\030\021 \001(\01326.google.clou"
+ + "d.dialogflow.cx.v3.SentimentAnalysisResu"
+ + "ltB\007\n\005query\"\036\n\tTextInput\022\021\n\004text\030\001 \001(\tB\003"
+ + "\340A\002\"G\n\013IntentInput\0228\n\006intent\030\001 \001(\tB(\340A\002\372"
+ + "A\"\n dialogflow.googleapis.com/Intent\"a\n\n"
+ + "AudioInput\022D\n\006config\030\001 \001(\0132/.google.clou"
+ + "d.dialogflow.cx.v3.InputAudioConfigB\003\340A\002"
+ + "\022\r\n\005audio\030\002 \001(\014\"\033\n\nEventInput\022\r\n\005event\030\001"
+ + " \001(\t\"1\n\tDtmfInput\022\016\n\006digits\030\001 \001(\t\022\024\n\014fin"
+ + "ish_digit\030\002 \001(\t\"\361\002\n\005Match\0225\n\006intent\030\001 \001("
+ + "\0132%.google.cloud.dialogflow.cx.v3.Intent"
+ + "\022\r\n\005event\030\006 \001(\t\022+\n\nparameters\030\002 \001(\0132\027.go"
+ + "ogle.protobuf.Struct\022\026\n\016resolved_input\030\003"
+ + " \001(\t\022B\n\nmatch_type\030\004 \001(\0162..google.cloud."
+ + "dialogflow.cx.v3.Match.MatchType\022\022\n\nconf"
+ + "idence\030\005 \001(\002\"\204\001\n\tMatchType\022\032\n\026MATCH_TYPE"
+ + "_UNSPECIFIED\020\000\022\n\n\006INTENT\020\001\022\021\n\rDIRECT_INT"
+ + "ENT\020\002\022\025\n\021PARAMETER_FILLING\020\003\022\014\n\010NO_MATCH"
+ + "\020\004\022\014\n\010NO_INPUT\020\005\022\t\n\005EVENT\020\006\"\333\001\n\022MatchInt"
+ + "entRequest\022:\n\007session\030\001 \001(\tB)\340A\002\372A#\n!dia"
+ + "logflow.googleapis.com/Session\022D\n\014query_"
+ + "params\030\002 \001(\0132..google.cloud.dialogflow.c"
+ + "x.v3.QueryParameters\022C\n\013query_input\030\003 \001("
+ + "\0132).google.cloud.dialogflow.cx.v3.QueryI"
+ + "nputB\003\340A\002\"\220\002\n\023MatchIntentResponse\022\016\n\004tex"
+ + "t\030\001 \001(\tH\000\022?\n\016trigger_intent\030\002 \001(\tB%\372A\"\n "
+ + "dialogflow.googleapis.com/IntentH\000\022\024\n\ntr"
+ + "anscript\030\003 \001(\tH\000\022\027\n\rtrigger_event\030\006 \001(\tH"
+ + "\000\0225\n\007matches\030\004 \003(\0132$.google.cloud.dialog"
+ + "flow.cx.v3.Match\0229\n\014current_page\030\005 \001(\0132#"
+ + ".google.cloud.dialogflow.cx.v3.PageB\007\n\005q"
+ + "uery\"\353\001\n\024FulfillIntentRequest\022O\n\024match_i"
+ + "ntent_request\030\001 \001(\01321.google.cloud.dialo"
+ + "gflow.cx.v3.MatchIntentRequest\0223\n\005match\030"
+ + "\002 \001(\0132$.google.cloud.dialogflow.cx.v3.Ma"
+ + "tch\022M\n\023output_audio_config\030\003 \001(\01320.googl"
+ + "e.cloud.dialogflow.cx.v3.OutputAudioConf"
+ + "ig\"\323\001\n\025FulfillIntentResponse\022\023\n\013response"
+ + "_id\030\001 \001(\t\022@\n\014query_result\030\002 \001(\0132*.google"
+ + ".cloud.dialogflow.cx.v3.QueryResult\022\024\n\014o"
+ + "utput_audio\030\003 \001(\014\022M\n\023output_audio_config"
+ + "\030\004 \001(\01320.google.cloud.dialogflow.cx.v3.O"
+ + "utputAudioConfig\";\n\027SentimentAnalysisRes"
+ + "ult\022\r\n\005score\030\001 \001(\002\022\021\n\tmagnitude\030\002 \001(\0022\304\t"
+ + "\n\010Sessions\022\246\002\n\014DetectIntent\0222.google.clo"
+ + "ud.dialogflow.cx.v3.DetectIntentRequest\032"
+ + "3.google.cloud.dialogflow.cx.v3.DetectIn"
+ + "tentResponse\"\254\001\202\323\344\223\002\245\001\"E/v3/{session=pro"
+ + "jects/*/locations/*/agents/*/sessions/*}"
+ + ":detectIntent:\001*ZY\"T/v3/{session=project"
+ + "s/*/locations/*/agents/*/environments/*/"
+ + "sessions/*}:detectIntent:\001*\022\230\001\n\025Streamin"
+ + "gDetectIntent\022;.google.cloud.dialogflow."
+ + "cx.v3.StreamingDetectIntentRequest\032<.goo"
+ + "gle.cloud.dialogflow.cx.v3.StreamingDete"
+ + "ctIntentResponse\"\000(\0010\001\022\241\002\n\013MatchIntent\0221"
+ + ".google.cloud.dialogflow.cx.v3.MatchInte"
+ + "ntRequest\0322.google.cloud.dialogflow.cx.v"
+ + "3.MatchIntentResponse\"\252\001\202\323\344\223\002\243\001\"D/v3/{se"
+ + "ssion=projects/*/locations/*/agents/*/se"
+ + "ssions/*}:matchIntent:\001*ZX\"S/v3/{session"
+ + "=projects/*/locations/*/agents/*/environ"
+ + "ments/*/sessions/*}:matchIntent:\001*\022\325\002\n\rF"
+ + "ulfillIntent\0223.google.cloud.dialogflow.c"
+ + "x.v3.FulfillIntentRequest\0324.google.cloud"
+ + ".dialogflow.cx.v3.FulfillIntentResponse\""
+ + "\330\001\202\323\344\223\002\321\001\"[/v3/{match_intent_request.ses"
+ + "sion=projects/*/locations/*/agents/*/ses"
+ + "sions/*}:fulfillIntent:\001*Zo\"j/v3/{match_"
+ + "intent_request.session=projects/*/locati"
+ + "ons/*/agents/*/environments/*/sessions/*"
+ + "}:fulfillIntent:\001*\032x\312A\031dialogflow.google"
+ + "apis.com\322AYhttps://www.googleapis.com/au"
+ + "th/cloud-platform,https://www.googleapis"
+ + ".com/auth/dialogflowB\212\003\n!com.google.clou"
+ + "d.dialogflow.cx.v3B\014SessionProtoP\001Z1clou"
+ + "d.google.com/go/dialogflow/cx/apiv3/cxpb"
+ + ";cxpb\370\001\001\242\002\002DF\252\002\035Google.Cloud.Dialogflow."
+ + "Cx.V3\352\002!Google::Cloud::Dialogflow::CX::V"
+ + "3\352A\324\001\n!dialogflow.googleapis.com/Session"
+ + "\022Iprojects/{project}/locations/{location"
+ + "}/agents/{agent}/sessions/{session}\022dpro"
+ + "jects/{project}/locations/{location}/age"
+ + "nts/{agent}/environments/{environment}/s"
+ + "essions/{session}b\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
@@ -386,6 +386,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"AnalyzeQueryTextSentiment",
"WebhookHeaders",
"FlowVersions",
+ "Channel",
});
internal_static_google_cloud_dialogflow_cx_v3_QueryParameters_WebhookHeadersEntry_descriptor =
internal_static_google_cloud_dialogflow_cx_v3_QueryParameters_descriptor
diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SpeechModelVariant.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SpeechModelVariant.java
index 79464acf36de..5bdee29d6c63 100644
--- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SpeechModelVariant.java
+++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SpeechModelVariant.java
@@ -22,7 +22,8 @@
*
*
*
- * Variant of the specified [Speech model][google.cloud.dialogflow.cx.v3.InputAudioConfig.model] to use.
+ * Variant of the specified [Speech
+ * model][google.cloud.dialogflow.cx.v3.InputAudioConfig.model] to use.
* See the [Cloud Speech
* documentation](https://cloud.google.com/speech-to-text/docs/enhanced-models)
* for which models have different variants. For example, the "phone_call" model
@@ -77,8 +78,8 @@ public enum SpeechModelVariant implements com.google.protobuf.ProtocolMessageEnu
*
* Use an enhanced model variant:
* * If an enhanced variant does not exist for the given
- * [model][google.cloud.dialogflow.cx.v3.InputAudioConfig.model] and request language, Dialogflow falls
- * back to the standard variant.
+ * [model][google.cloud.dialogflow.cx.v3.InputAudioConfig.model] and request
+ * language, Dialogflow falls back to the standard variant.
* The [Cloud Speech
* documentation](https://cloud.google.com/speech-to-text/docs/enhanced-models)
* describes which models have enhanced variants.
@@ -138,8 +139,8 @@ public enum SpeechModelVariant implements com.google.protobuf.ProtocolMessageEnu
*
* Use an enhanced model variant:
* * If an enhanced variant does not exist for the given
- * [model][google.cloud.dialogflow.cx.v3.InputAudioConfig.model] and request language, Dialogflow falls
- * back to the standard variant.
+ * [model][google.cloud.dialogflow.cx.v3.InputAudioConfig.model] and request
+ * language, Dialogflow falls back to the standard variant.
* The [Cloud Speech
* documentation](https://cloud.google.com/speech-to-text/docs/enhanced-models)
* describes which models have enhanced variants.
diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SpeechToTextSettings.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SpeechToTextSettings.java
index aa8285a3e093..f4c5652028c6 100644
--- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SpeechToTextSettings.java
+++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SpeechToTextSettings.java
@@ -66,7 +66,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
public static final int ENABLE_SPEECH_ADAPTATION_FIELD_NUMBER = 1;
- private boolean enableSpeechAdaptation_;
+ private boolean enableSpeechAdaptation_ = false;
/**
*
*
@@ -281,8 +281,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
@java.lang.Override
public Builder clear() {
super.clear();
+ bitField0_ = 0;
enableSpeechAdaptation_ = false;
-
return this;
}
@@ -310,11 +310,20 @@ public com.google.cloud.dialogflow.cx.v3.SpeechToTextSettings build() {
public com.google.cloud.dialogflow.cx.v3.SpeechToTextSettings buildPartial() {
com.google.cloud.dialogflow.cx.v3.SpeechToTextSettings result =
new com.google.cloud.dialogflow.cx.v3.SpeechToTextSettings(this);
- result.enableSpeechAdaptation_ = enableSpeechAdaptation_;
+ if (bitField0_ != 0) {
+ buildPartial0(result);
+ }
onBuilt();
return result;
}
+ private void buildPartial0(com.google.cloud.dialogflow.cx.v3.SpeechToTextSettings result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.enableSpeechAdaptation_ = enableSpeechAdaptation_;
+ }
+ }
+
@java.lang.Override
public Builder clone() {
return super.clone();
@@ -393,7 +402,7 @@ public Builder mergeFrom(
case 8:
{
enableSpeechAdaptation_ = input.readBool();
-
+ bitField0_ |= 0x00000001;
break;
} // case 8
default:
@@ -413,6 +422,8 @@ public Builder mergeFrom(
return this;
}
+ private int bitField0_;
+
private boolean enableSpeechAdaptation_;
/**
*
@@ -444,6 +455,7 @@ public boolean getEnableSpeechAdaptation() {
public Builder setEnableSpeechAdaptation(boolean value) {
enableSpeechAdaptation_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -459,7 +471,7 @@ public Builder setEnableSpeechAdaptation(boolean value) {
* @return This builder for chaining.
*/
public Builder clearEnableSpeechAdaptation() {
-
+ bitField0_ = (bitField0_ & ~0x00000001);
enableSpeechAdaptation_ = false;
onChanged();
return this;
diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SpeechWordInfo.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SpeechWordInfo.java
index 1b85d5026eff..c9e2643f199a 100644
--- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SpeechWordInfo.java
+++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SpeechWordInfo.java
@@ -68,7 +68,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
public static final int WORD_FIELD_NUMBER = 3;
- private volatile java.lang.Object word_;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object word_ = "";
/**
*
*
@@ -165,7 +167,7 @@ public com.google.protobuf.Duration getStartOffset() {
*/
@java.lang.Override
public com.google.protobuf.DurationOrBuilder getStartOffsetOrBuilder() {
- return getStartOffset();
+ return startOffset_ == null ? com.google.protobuf.Duration.getDefaultInstance() : startOffset_;
}
public static final int END_OFFSET_FIELD_NUMBER = 2;
@@ -217,11 +219,11 @@ public com.google.protobuf.Duration getEndOffset() {
*/
@java.lang.Override
public com.google.protobuf.DurationOrBuilder getEndOffsetOrBuilder() {
- return getEndOffset();
+ return endOffset_ == null ? com.google.protobuf.Duration.getDefaultInstance() : endOffset_;
}
public static final int CONFIDENCE_FIELD_NUMBER = 4;
- private float confidence_;
+ private float confidence_ = 0F;
/**
*
*
@@ -478,22 +480,19 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
@java.lang.Override
public Builder clear() {
super.clear();
+ bitField0_ = 0;
word_ = "";
-
- if (startOffsetBuilder_ == null) {
- startOffset_ = null;
- } else {
- startOffset_ = null;
+ startOffset_ = null;
+ if (startOffsetBuilder_ != null) {
+ startOffsetBuilder_.dispose();
startOffsetBuilder_ = null;
}
- if (endOffsetBuilder_ == null) {
- endOffset_ = null;
- } else {
- endOffset_ = null;
+ endOffset_ = null;
+ if (endOffsetBuilder_ != null) {
+ endOffsetBuilder_.dispose();
endOffsetBuilder_ = null;
}
confidence_ = 0F;
-
return this;
}
@@ -521,22 +520,30 @@ public com.google.cloud.dialogflow.cx.v3.SpeechWordInfo build() {
public com.google.cloud.dialogflow.cx.v3.SpeechWordInfo buildPartial() {
com.google.cloud.dialogflow.cx.v3.SpeechWordInfo result =
new com.google.cloud.dialogflow.cx.v3.SpeechWordInfo(this);
- result.word_ = word_;
- if (startOffsetBuilder_ == null) {
- result.startOffset_ = startOffset_;
- } else {
- result.startOffset_ = startOffsetBuilder_.build();
- }
- if (endOffsetBuilder_ == null) {
- result.endOffset_ = endOffset_;
- } else {
- result.endOffset_ = endOffsetBuilder_.build();
+ if (bitField0_ != 0) {
+ buildPartial0(result);
}
- result.confidence_ = confidence_;
onBuilt();
return result;
}
+ private void buildPartial0(com.google.cloud.dialogflow.cx.v3.SpeechWordInfo result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.word_ = word_;
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.startOffset_ =
+ startOffsetBuilder_ == null ? startOffset_ : startOffsetBuilder_.build();
+ }
+ if (((from_bitField0_ & 0x00000004) != 0)) {
+ result.endOffset_ = endOffsetBuilder_ == null ? endOffset_ : endOffsetBuilder_.build();
+ }
+ if (((from_bitField0_ & 0x00000008) != 0)) {
+ result.confidence_ = confidence_;
+ }
+ }
+
@java.lang.Override
public Builder clone() {
return super.clone();
@@ -585,6 +592,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.SpeechWordInfo other)
return this;
if (!other.getWord().isEmpty()) {
word_ = other.word_;
+ bitField0_ |= 0x00000001;
onChanged();
}
if (other.hasStartOffset()) {
@@ -625,25 +633,25 @@ public Builder mergeFrom(
case 10:
{
input.readMessage(getStartOffsetFieldBuilder().getBuilder(), extensionRegistry);
-
+ bitField0_ |= 0x00000002;
break;
} // case 10
case 18:
{
input.readMessage(getEndOffsetFieldBuilder().getBuilder(), extensionRegistry);
-
+ bitField0_ |= 0x00000004;
break;
} // case 18
case 26:
{
word_ = input.readStringRequireUtf8();
-
+ bitField0_ |= 0x00000001;
break;
} // case 26
case 37:
{
confidence_ = input.readFloat();
-
+ bitField0_ |= 0x00000008;
break;
} // case 37
default:
@@ -663,6 +671,8 @@ public Builder mergeFrom(
return this;
}
+ private int bitField0_;
+
private java.lang.Object word_ = "";
/**
*
@@ -724,8 +734,8 @@ public Builder setWord(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
-
word_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -741,8 +751,8 @@ public Builder setWord(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearWord() {
-
word_ = getDefaultInstance().getWord();
+ bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
@@ -763,8 +773,8 @@ public Builder setWordBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
-
word_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -789,7 +799,7 @@ public Builder setWordBytes(com.google.protobuf.ByteString value) {
* @return Whether the startOffset field is set.
*/
public boolean hasStartOffset() {
- return startOffsetBuilder_ != null || startOffset_ != null;
+ return ((bitField0_ & 0x00000002) != 0);
}
/**
*
@@ -830,11 +840,11 @@ public Builder setStartOffset(com.google.protobuf.Duration value) {
throw new NullPointerException();
}
startOffset_ = value;
- onChanged();
} else {
startOffsetBuilder_.setMessage(value);
}
-
+ bitField0_ |= 0x00000002;
+ onChanged();
return this;
}
/**
@@ -851,11 +861,11 @@ public Builder setStartOffset(com.google.protobuf.Duration value) {
public Builder setStartOffset(com.google.protobuf.Duration.Builder builderForValue) {
if (startOffsetBuilder_ == null) {
startOffset_ = builderForValue.build();
- onChanged();
} else {
startOffsetBuilder_.setMessage(builderForValue.build());
}
-
+ bitField0_ |= 0x00000002;
+ onChanged();
return this;
}
/**
@@ -871,17 +881,18 @@ public Builder setStartOffset(com.google.protobuf.Duration.Builder builderForVal
*/
public Builder mergeStartOffset(com.google.protobuf.Duration value) {
if (startOffsetBuilder_ == null) {
- if (startOffset_ != null) {
- startOffset_ =
- com.google.protobuf.Duration.newBuilder(startOffset_).mergeFrom(value).buildPartial();
+ if (((bitField0_ & 0x00000002) != 0)
+ && startOffset_ != null
+ && startOffset_ != com.google.protobuf.Duration.getDefaultInstance()) {
+ getStartOffsetBuilder().mergeFrom(value);
} else {
startOffset_ = value;
}
- onChanged();
} else {
startOffsetBuilder_.mergeFrom(value);
}
-
+ bitField0_ |= 0x00000002;
+ onChanged();
return this;
}
/**
@@ -896,14 +907,13 @@ public Builder mergeStartOffset(com.google.protobuf.Duration value) {
* .google.protobuf.Duration start_offset = 1;
*/
public Builder clearStartOffset() {
- if (startOffsetBuilder_ == null) {
- startOffset_ = null;
- onChanged();
- } else {
- startOffset_ = null;
+ bitField0_ = (bitField0_ & ~0x00000002);
+ startOffset_ = null;
+ if (startOffsetBuilder_ != null) {
+ startOffsetBuilder_.dispose();
startOffsetBuilder_ = null;
}
-
+ onChanged();
return this;
}
/**
@@ -918,7 +928,7 @@ public Builder clearStartOffset() {
* .google.protobuf.Duration start_offset = 1;
*/
public com.google.protobuf.Duration.Builder getStartOffsetBuilder() {
-
+ bitField0_ |= 0x00000002;
onChanged();
return getStartOffsetFieldBuilder().getBuilder();
}
@@ -990,7 +1000,7 @@ public com.google.protobuf.DurationOrBuilder getStartOffsetOrBuilder() {
* @return Whether the endOffset field is set.
*/
public boolean hasEndOffset() {
- return endOffsetBuilder_ != null || endOffset_ != null;
+ return ((bitField0_ & 0x00000004) != 0);
}
/**
*
@@ -1029,11 +1039,11 @@ public Builder setEndOffset(com.google.protobuf.Duration value) {
throw new NullPointerException();
}
endOffset_ = value;
- onChanged();
} else {
endOffsetBuilder_.setMessage(value);
}
-
+ bitField0_ |= 0x00000004;
+ onChanged();
return this;
}
/**
@@ -1050,11 +1060,11 @@ public Builder setEndOffset(com.google.protobuf.Duration value) {
public Builder setEndOffset(com.google.protobuf.Duration.Builder builderForValue) {
if (endOffsetBuilder_ == null) {
endOffset_ = builderForValue.build();
- onChanged();
} else {
endOffsetBuilder_.setMessage(builderForValue.build());
}
-
+ bitField0_ |= 0x00000004;
+ onChanged();
return this;
}
/**
@@ -1070,17 +1080,18 @@ public Builder setEndOffset(com.google.protobuf.Duration.Builder builderForValue
*/
public Builder mergeEndOffset(com.google.protobuf.Duration value) {
if (endOffsetBuilder_ == null) {
- if (endOffset_ != null) {
- endOffset_ =
- com.google.protobuf.Duration.newBuilder(endOffset_).mergeFrom(value).buildPartial();
+ if (((bitField0_ & 0x00000004) != 0)
+ && endOffset_ != null
+ && endOffset_ != com.google.protobuf.Duration.getDefaultInstance()) {
+ getEndOffsetBuilder().mergeFrom(value);
} else {
endOffset_ = value;
}
- onChanged();
} else {
endOffsetBuilder_.mergeFrom(value);
}
-
+ bitField0_ |= 0x00000004;
+ onChanged();
return this;
}
/**
@@ -1095,14 +1106,13 @@ public Builder mergeEndOffset(com.google.protobuf.Duration value) {
* .google.protobuf.Duration end_offset = 2;
*/
public Builder clearEndOffset() {
- if (endOffsetBuilder_ == null) {
- endOffset_ = null;
- onChanged();
- } else {
- endOffset_ = null;
+ bitField0_ = (bitField0_ & ~0x00000004);
+ endOffset_ = null;
+ if (endOffsetBuilder_ != null) {
+ endOffsetBuilder_.dispose();
endOffsetBuilder_ = null;
}
-
+ onChanged();
return this;
}
/**
@@ -1117,7 +1127,7 @@ public Builder clearEndOffset() {
* .google.protobuf.Duration end_offset = 2;
*/
public com.google.protobuf.Duration.Builder getEndOffsetBuilder() {
-
+ bitField0_ |= 0x00000004;
onChanged();
return getEndOffsetFieldBuilder().getBuilder();
}
@@ -1208,6 +1218,7 @@ public float getConfidence() {
public Builder setConfidence(float value) {
confidence_ = value;
+ bitField0_ |= 0x00000008;
onChanged();
return this;
}
@@ -1228,7 +1239,7 @@ public Builder setConfidence(float value) {
* @return This builder for chaining.
*/
public Builder clearConfidence() {
-
+ bitField0_ = (bitField0_ & ~0x00000008);
confidence_ = 0F;
onChanged();
return this;
diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/StartExperimentRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/StartExperimentRequest.java
index e566543c5782..57567d1c02af 100644
--- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/StartExperimentRequest.java
+++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/StartExperimentRequest.java
@@ -22,7 +22,8 @@
*
*
*
- * The request message for [Experiments.StartExperiment][google.cloud.dialogflow.cx.v3.Experiments.StartExperiment].
+ * The request message for
+ * [Experiments.StartExperiment][google.cloud.dialogflow.cx.v3.Experiments.StartExperiment].
*
*
* Protobuf type {@code google.cloud.dialogflow.cx.v3.StartExperimentRequest}
@@ -68,7 +69,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
public static final int NAME_FIELD_NUMBER = 1;
- private volatile java.lang.Object name_;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object name_ = "";
/**
*
*
@@ -288,7 +291,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
*
*
*
- * The request message for [Experiments.StartExperiment][google.cloud.dialogflow.cx.v3.Experiments.StartExperiment].
+ * The request message for
+ * [Experiments.StartExperiment][google.cloud.dialogflow.cx.v3.Experiments.StartExperiment].
*
*
* Protobuf type {@code google.cloud.dialogflow.cx.v3.StartExperimentRequest}
@@ -322,8 +326,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
@java.lang.Override
public Builder clear() {
super.clear();
+ bitField0_ = 0;
name_ = "";
-
return this;
}
@@ -351,11 +355,20 @@ public com.google.cloud.dialogflow.cx.v3.StartExperimentRequest build() {
public com.google.cloud.dialogflow.cx.v3.StartExperimentRequest buildPartial() {
com.google.cloud.dialogflow.cx.v3.StartExperimentRequest result =
new com.google.cloud.dialogflow.cx.v3.StartExperimentRequest(this);
- result.name_ = name_;
+ if (bitField0_ != 0) {
+ buildPartial0(result);
+ }
onBuilt();
return result;
}
+ private void buildPartial0(com.google.cloud.dialogflow.cx.v3.StartExperimentRequest result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.name_ = name_;
+ }
+ }
+
@java.lang.Override
public Builder clone() {
return super.clone();
@@ -404,6 +417,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.StartExperimentReques
return this;
if (!other.getName().isEmpty()) {
name_ = other.name_;
+ bitField0_ |= 0x00000001;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
@@ -435,7 +449,7 @@ public Builder mergeFrom(
case 10:
{
name_ = input.readStringRequireUtf8();
-
+ bitField0_ |= 0x00000001;
break;
} // case 10
default:
@@ -455,6 +469,8 @@ public Builder mergeFrom(
return this;
}
+ private int bitField0_;
+
private java.lang.Object name_ = "";
/**
*
@@ -528,8 +544,8 @@ public Builder setName(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
-
name_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -549,8 +565,8 @@ public Builder setName(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearName() {
-
name_ = getDefaultInstance().getName();
+ bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
@@ -575,8 +591,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
-
name_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/StopExperimentRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/StopExperimentRequest.java
index 063322f527ec..b033f943dff2 100644
--- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/StopExperimentRequest.java
+++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/StopExperimentRequest.java
@@ -22,7 +22,8 @@
*
*
*
- * The request message for [Experiments.StopExperiment][google.cloud.dialogflow.cx.v3.Experiments.StopExperiment].
+ * The request message for
+ * [Experiments.StopExperiment][google.cloud.dialogflow.cx.v3.Experiments.StopExperiment].
*
*
* Protobuf type {@code google.cloud.dialogflow.cx.v3.StopExperimentRequest}
@@ -68,7 +69,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
public static final int NAME_FIELD_NUMBER = 1;
- private volatile java.lang.Object name_;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object name_ = "";
/**
*
*
@@ -288,7 +291,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
*
*
*
- * The request message for [Experiments.StopExperiment][google.cloud.dialogflow.cx.v3.Experiments.StopExperiment].
+ * The request message for
+ * [Experiments.StopExperiment][google.cloud.dialogflow.cx.v3.Experiments.StopExperiment].
*
*
* Protobuf type {@code google.cloud.dialogflow.cx.v3.StopExperimentRequest}
@@ -322,8 +326,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
@java.lang.Override
public Builder clear() {
super.clear();
+ bitField0_ = 0;
name_ = "";
-
return this;
}
@@ -351,11 +355,20 @@ public com.google.cloud.dialogflow.cx.v3.StopExperimentRequest build() {
public com.google.cloud.dialogflow.cx.v3.StopExperimentRequest buildPartial() {
com.google.cloud.dialogflow.cx.v3.StopExperimentRequest result =
new com.google.cloud.dialogflow.cx.v3.StopExperimentRequest(this);
- result.name_ = name_;
+ if (bitField0_ != 0) {
+ buildPartial0(result);
+ }
onBuilt();
return result;
}
+ private void buildPartial0(com.google.cloud.dialogflow.cx.v3.StopExperimentRequest result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.name_ = name_;
+ }
+ }
+
@java.lang.Override
public Builder clone() {
return super.clone();
@@ -404,6 +417,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.StopExperimentRequest
return this;
if (!other.getName().isEmpty()) {
name_ = other.name_;
+ bitField0_ |= 0x00000001;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
@@ -435,7 +449,7 @@ public Builder mergeFrom(
case 10:
{
name_ = input.readStringRequireUtf8();
-
+ bitField0_ |= 0x00000001;
break;
} // case 10
default:
@@ -455,6 +469,8 @@ public Builder mergeFrom(
return this;
}
+ private int bitField0_;
+
private java.lang.Object name_ = "";
/**
*
@@ -528,8 +544,8 @@ public Builder setName(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
-
name_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -549,8 +565,8 @@ public Builder setName(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearName() {
-
name_ = getDefaultInstance().getName();
+ bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
@@ -575,8 +591,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
-
name_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/StreamingDetectIntentRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/StreamingDetectIntentRequest.java
index 7b079fd8d490..7b464e3fc8ac 100644
--- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/StreamingDetectIntentRequest.java
+++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/StreamingDetectIntentRequest.java
@@ -23,21 +23,26 @@
*
*
* The top-level message sent by the client to the
- * [Sessions.StreamingDetectIntent][google.cloud.dialogflow.cx.v3.Sessions.StreamingDetectIntent] method.
+ * [Sessions.StreamingDetectIntent][google.cloud.dialogflow.cx.v3.Sessions.StreamingDetectIntent]
+ * method.
* Multiple request messages should be sent in order:
* 1. The first message must contain
* [session][google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest.session],
- * [query_input][google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest.query_input] plus optionally
- * [query_params][google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest.query_params]. If the client
- * wants to receive an audio response, it should also contain
+ * [query_input][google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest.query_input]
+ * plus optionally
+ * [query_params][google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest.query_params].
+ * If the client wants to receive an audio response, it should also contain
* [output_audio_config][google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest.output_audio_config].
- * 2. If [query_input][google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest.query_input] was set to
- * [query_input.audio.config][google.cloud.dialogflow.cx.v3.AudioInput.config], all subsequent messages
- * must contain [query_input.audio.audio][google.cloud.dialogflow.cx.v3.AudioInput.audio] to continue with
- * Speech recognition.
- * If you decide to rather detect an intent from text
- * input after you already started Speech recognition, please send a message
- * with [query_input.text][google.cloud.dialogflow.cx.v3.QueryInput.text].
+ * 2. If
+ * [query_input][google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest.query_input]
+ * was set to
+ * [query_input.audio.config][google.cloud.dialogflow.cx.v3.AudioInput.config],
+ * all subsequent messages must contain
+ * [query_input.audio.audio][google.cloud.dialogflow.cx.v3.AudioInput.audio]
+ * to continue with Speech recognition. If you decide to rather detect an
+ * intent from text input after you already started Speech recognition,
+ * please send a message with
+ * [query_input.text][google.cloud.dialogflow.cx.v3.QueryInput.text].
* However, note that:
* * Dialogflow will bill you for the audio duration so far.
* * Dialogflow discards all Speech recognition results in favor of the
@@ -89,7 +94,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
public static final int SESSION_FIELD_NUMBER = 1;
- private volatile java.lang.Object session_;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object session_ = "";
/**
*
*
@@ -210,7 +217,9 @@ public com.google.cloud.dialogflow.cx.v3.QueryParameters getQueryParams() {
*/
@java.lang.Override
public com.google.cloud.dialogflow.cx.v3.QueryParametersOrBuilder getQueryParamsOrBuilder() {
- return getQueryParams();
+ return queryParams_ == null
+ ? com.google.cloud.dialogflow.cx.v3.QueryParameters.getDefaultInstance()
+ : queryParams_;
}
public static final int QUERY_INPUT_FIELD_NUMBER = 3;
@@ -264,7 +273,9 @@ public com.google.cloud.dialogflow.cx.v3.QueryInput getQueryInput() {
*/
@java.lang.Override
public com.google.cloud.dialogflow.cx.v3.QueryInputOrBuilder getQueryInputOrBuilder() {
- return getQueryInput();
+ return queryInput_ == null
+ ? com.google.cloud.dialogflow.cx.v3.QueryInput.getDefaultInstance()
+ : queryInput_;
}
public static final int OUTPUT_AUDIO_CONFIG_FIELD_NUMBER = 4;
@@ -313,11 +324,13 @@ public com.google.cloud.dialogflow.cx.v3.OutputAudioConfig getOutputAudioConfig(
@java.lang.Override
public com.google.cloud.dialogflow.cx.v3.OutputAudioConfigOrBuilder
getOutputAudioConfigOrBuilder() {
- return getOutputAudioConfig();
+ return outputAudioConfig_ == null
+ ? com.google.cloud.dialogflow.cx.v3.OutputAudioConfig.getDefaultInstance()
+ : outputAudioConfig_;
}
public static final int ENABLE_PARTIAL_RESPONSE_FIELD_NUMBER = 5;
- private boolean enablePartialResponse_;
+ private boolean enablePartialResponse_ = false;
/**
*
*
@@ -553,21 +566,26 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
*
*
* The top-level message sent by the client to the
- * [Sessions.StreamingDetectIntent][google.cloud.dialogflow.cx.v3.Sessions.StreamingDetectIntent] method.
+ * [Sessions.StreamingDetectIntent][google.cloud.dialogflow.cx.v3.Sessions.StreamingDetectIntent]
+ * method.
* Multiple request messages should be sent in order:
* 1. The first message must contain
* [session][google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest.session],
- * [query_input][google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest.query_input] plus optionally
- * [query_params][google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest.query_params]. If the client
- * wants to receive an audio response, it should also contain
+ * [query_input][google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest.query_input]
+ * plus optionally
+ * [query_params][google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest.query_params].
+ * If the client wants to receive an audio response, it should also contain
* [output_audio_config][google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest.output_audio_config].
- * 2. If [query_input][google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest.query_input] was set to
- * [query_input.audio.config][google.cloud.dialogflow.cx.v3.AudioInput.config], all subsequent messages
- * must contain [query_input.audio.audio][google.cloud.dialogflow.cx.v3.AudioInput.audio] to continue with
- * Speech recognition.
- * If you decide to rather detect an intent from text
- * input after you already started Speech recognition, please send a message
- * with [query_input.text][google.cloud.dialogflow.cx.v3.QueryInput.text].
+ * 2. If
+ * [query_input][google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest.query_input]
+ * was set to
+ * [query_input.audio.config][google.cloud.dialogflow.cx.v3.AudioInput.config],
+ * all subsequent messages must contain
+ * [query_input.audio.audio][google.cloud.dialogflow.cx.v3.AudioInput.audio]
+ * to continue with Speech recognition. If you decide to rather detect an
+ * intent from text input after you already started Speech recognition,
+ * please send a message with
+ * [query_input.text][google.cloud.dialogflow.cx.v3.QueryInput.text].
* However, note that:
* * Dialogflow will bill you for the audio duration so far.
* * Dialogflow discards all Speech recognition results in favor of the
@@ -607,28 +625,24 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
@java.lang.Override
public Builder clear() {
super.clear();
+ bitField0_ = 0;
session_ = "";
-
- if (queryParamsBuilder_ == null) {
- queryParams_ = null;
- } else {
- queryParams_ = null;
+ queryParams_ = null;
+ if (queryParamsBuilder_ != null) {
+ queryParamsBuilder_.dispose();
queryParamsBuilder_ = null;
}
- if (queryInputBuilder_ == null) {
- queryInput_ = null;
- } else {
- queryInput_ = null;
+ queryInput_ = null;
+ if (queryInputBuilder_ != null) {
+ queryInputBuilder_.dispose();
queryInputBuilder_ = null;
}
- if (outputAudioConfigBuilder_ == null) {
- outputAudioConfig_ = null;
- } else {
- outputAudioConfig_ = null;
+ outputAudioConfig_ = null;
+ if (outputAudioConfigBuilder_ != null) {
+ outputAudioConfigBuilder_.dispose();
outputAudioConfigBuilder_ = null;
}
enablePartialResponse_ = false;
-
return this;
}
@@ -657,27 +671,37 @@ public com.google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest build() {
public com.google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest buildPartial() {
com.google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest result =
new com.google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest(this);
- result.session_ = session_;
- if (queryParamsBuilder_ == null) {
- result.queryParams_ = queryParams_;
- } else {
- result.queryParams_ = queryParamsBuilder_.build();
+ if (bitField0_ != 0) {
+ buildPartial0(result);
}
- if (queryInputBuilder_ == null) {
- result.queryInput_ = queryInput_;
- } else {
- result.queryInput_ = queryInputBuilder_.build();
- }
- if (outputAudioConfigBuilder_ == null) {
- result.outputAudioConfig_ = outputAudioConfig_;
- } else {
- result.outputAudioConfig_ = outputAudioConfigBuilder_.build();
- }
- result.enablePartialResponse_ = enablePartialResponse_;
onBuilt();
return result;
}
+ private void buildPartial0(
+ com.google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.session_ = session_;
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.queryParams_ =
+ queryParamsBuilder_ == null ? queryParams_ : queryParamsBuilder_.build();
+ }
+ if (((from_bitField0_ & 0x00000004) != 0)) {
+ result.queryInput_ = queryInputBuilder_ == null ? queryInput_ : queryInputBuilder_.build();
+ }
+ if (((from_bitField0_ & 0x00000008) != 0)) {
+ result.outputAudioConfig_ =
+ outputAudioConfigBuilder_ == null
+ ? outputAudioConfig_
+ : outputAudioConfigBuilder_.build();
+ }
+ if (((from_bitField0_ & 0x00000010) != 0)) {
+ result.enablePartialResponse_ = enablePartialResponse_;
+ }
+ }
+
@java.lang.Override
public Builder clone() {
return super.clone();
@@ -727,6 +751,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.StreamingDetectIntent
return this;
if (!other.getSession().isEmpty()) {
session_ = other.session_;
+ bitField0_ |= 0x00000001;
onChanged();
}
if (other.hasQueryParams()) {
@@ -770,32 +795,32 @@ public Builder mergeFrom(
case 10:
{
session_ = input.readStringRequireUtf8();
-
+ bitField0_ |= 0x00000001;
break;
} // case 10
case 18:
{
input.readMessage(getQueryParamsFieldBuilder().getBuilder(), extensionRegistry);
-
+ bitField0_ |= 0x00000002;
break;
} // case 18
case 26:
{
input.readMessage(getQueryInputFieldBuilder().getBuilder(), extensionRegistry);
-
+ bitField0_ |= 0x00000004;
break;
} // case 26
case 34:
{
input.readMessage(
getOutputAudioConfigFieldBuilder().getBuilder(), extensionRegistry);
-
+ bitField0_ |= 0x00000008;
break;
} // case 34
case 40:
{
enablePartialResponse_ = input.readBool();
-
+ bitField0_ |= 0x00000010;
break;
} // case 40
default:
@@ -815,6 +840,8 @@ public Builder mergeFrom(
return this;
}
+ private int bitField0_;
+
private java.lang.Object session_ = "";
/**
*
@@ -918,8 +945,8 @@ public Builder setSession(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
-
session_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -949,8 +976,8 @@ public Builder setSession(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearSession() {
-
session_ = getDefaultInstance().getSession();
+ bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
@@ -985,8 +1012,8 @@ public Builder setSessionBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
-
session_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -1009,7 +1036,7 @@ public Builder setSessionBytes(com.google.protobuf.ByteString value) {
* @return Whether the queryParams field is set.
*/
public boolean hasQueryParams() {
- return queryParamsBuilder_ != null || queryParams_ != null;
+ return ((bitField0_ & 0x00000002) != 0);
}
/**
*
@@ -1046,11 +1073,11 @@ public Builder setQueryParams(com.google.cloud.dialogflow.cx.v3.QueryParameters
throw new NullPointerException();
}
queryParams_ = value;
- onChanged();
} else {
queryParamsBuilder_.setMessage(value);
}
-
+ bitField0_ |= 0x00000002;
+ onChanged();
return this;
}
/**
@@ -1066,11 +1093,11 @@ public Builder setQueryParams(
com.google.cloud.dialogflow.cx.v3.QueryParameters.Builder builderForValue) {
if (queryParamsBuilder_ == null) {
queryParams_ = builderForValue.build();
- onChanged();
} else {
queryParamsBuilder_.setMessage(builderForValue.build());
}
-
+ bitField0_ |= 0x00000002;
+ onChanged();
return this;
}
/**
@@ -1084,19 +1111,19 @@ public Builder setQueryParams(
*/
public Builder mergeQueryParams(com.google.cloud.dialogflow.cx.v3.QueryParameters value) {
if (queryParamsBuilder_ == null) {
- if (queryParams_ != null) {
- queryParams_ =
- com.google.cloud.dialogflow.cx.v3.QueryParameters.newBuilder(queryParams_)
- .mergeFrom(value)
- .buildPartial();
+ if (((bitField0_ & 0x00000002) != 0)
+ && queryParams_ != null
+ && queryParams_
+ != com.google.cloud.dialogflow.cx.v3.QueryParameters.getDefaultInstance()) {
+ getQueryParamsBuilder().mergeFrom(value);
} else {
queryParams_ = value;
}
- onChanged();
} else {
queryParamsBuilder_.mergeFrom(value);
}
-
+ bitField0_ |= 0x00000002;
+ onChanged();
return this;
}
/**
@@ -1109,14 +1136,13 @@ public Builder mergeQueryParams(com.google.cloud.dialogflow.cx.v3.QueryParameter
* .google.cloud.dialogflow.cx.v3.QueryParameters query_params = 2;
*/
public Builder clearQueryParams() {
- if (queryParamsBuilder_ == null) {
- queryParams_ = null;
- onChanged();
- } else {
- queryParams_ = null;
+ bitField0_ = (bitField0_ & ~0x00000002);
+ queryParams_ = null;
+ if (queryParamsBuilder_ != null) {
+ queryParamsBuilder_.dispose();
queryParamsBuilder_ = null;
}
-
+ onChanged();
return this;
}
/**
@@ -1129,7 +1155,7 @@ public Builder clearQueryParams() {
* .google.cloud.dialogflow.cx.v3.QueryParameters query_params = 2;
*/
public com.google.cloud.dialogflow.cx.v3.QueryParameters.Builder getQueryParamsBuilder() {
-
+ bitField0_ |= 0x00000002;
onChanged();
return getQueryParamsFieldBuilder().getBuilder();
}
@@ -1197,7 +1223,7 @@ public com.google.cloud.dialogflow.cx.v3.QueryParametersOrBuilder getQueryParams
* @return Whether the queryInput field is set.
*/
public boolean hasQueryInput() {
- return queryInputBuilder_ != null || queryInput_ != null;
+ return ((bitField0_ & 0x00000004) != 0);
}
/**
*
@@ -1238,11 +1264,11 @@ public Builder setQueryInput(com.google.cloud.dialogflow.cx.v3.QueryInput value)
throw new NullPointerException();
}
queryInput_ = value;
- onChanged();
} else {
queryInputBuilder_.setMessage(value);
}
-
+ bitField0_ |= 0x00000004;
+ onChanged();
return this;
}
/**
@@ -1260,11 +1286,11 @@ public Builder setQueryInput(
com.google.cloud.dialogflow.cx.v3.QueryInput.Builder builderForValue) {
if (queryInputBuilder_ == null) {
queryInput_ = builderForValue.build();
- onChanged();
} else {
queryInputBuilder_.setMessage(builderForValue.build());
}
-
+ bitField0_ |= 0x00000004;
+ onChanged();
return this;
}
/**
@@ -1280,19 +1306,18 @@ public Builder setQueryInput(
*/
public Builder mergeQueryInput(com.google.cloud.dialogflow.cx.v3.QueryInput value) {
if (queryInputBuilder_ == null) {
- if (queryInput_ != null) {
- queryInput_ =
- com.google.cloud.dialogflow.cx.v3.QueryInput.newBuilder(queryInput_)
- .mergeFrom(value)
- .buildPartial();
+ if (((bitField0_ & 0x00000004) != 0)
+ && queryInput_ != null
+ && queryInput_ != com.google.cloud.dialogflow.cx.v3.QueryInput.getDefaultInstance()) {
+ getQueryInputBuilder().mergeFrom(value);
} else {
queryInput_ = value;
}
- onChanged();
} else {
queryInputBuilder_.mergeFrom(value);
}
-
+ bitField0_ |= 0x00000004;
+ onChanged();
return this;
}
/**
@@ -1307,14 +1332,13 @@ public Builder mergeQueryInput(com.google.cloud.dialogflow.cx.v3.QueryInput valu
*
*/
public Builder clearQueryInput() {
- if (queryInputBuilder_ == null) {
- queryInput_ = null;
- onChanged();
- } else {
- queryInput_ = null;
+ bitField0_ = (bitField0_ & ~0x00000004);
+ queryInput_ = null;
+ if (queryInputBuilder_ != null) {
+ queryInputBuilder_.dispose();
queryInputBuilder_ = null;
}
-
+ onChanged();
return this;
}
/**
@@ -1329,7 +1353,7 @@ public Builder clearQueryInput() {
*
*/
public com.google.cloud.dialogflow.cx.v3.QueryInput.Builder getQueryInputBuilder() {
-
+ bitField0_ |= 0x00000004;
onChanged();
return getQueryInputFieldBuilder().getBuilder();
}
@@ -1399,7 +1423,7 @@ public com.google.cloud.dialogflow.cx.v3.QueryInputOrBuilder getQueryInputOrBuil
* @return Whether the outputAudioConfig field is set.
*/
public boolean hasOutputAudioConfig() {
- return outputAudioConfigBuilder_ != null || outputAudioConfig_ != null;
+ return ((bitField0_ & 0x00000008) != 0);
}
/**
*
@@ -1436,11 +1460,11 @@ public Builder setOutputAudioConfig(com.google.cloud.dialogflow.cx.v3.OutputAudi
throw new NullPointerException();
}
outputAudioConfig_ = value;
- onChanged();
} else {
outputAudioConfigBuilder_.setMessage(value);
}
-
+ bitField0_ |= 0x00000008;
+ onChanged();
return this;
}
/**
@@ -1456,11 +1480,11 @@ public Builder setOutputAudioConfig(
com.google.cloud.dialogflow.cx.v3.OutputAudioConfig.Builder builderForValue) {
if (outputAudioConfigBuilder_ == null) {
outputAudioConfig_ = builderForValue.build();
- onChanged();
} else {
outputAudioConfigBuilder_.setMessage(builderForValue.build());
}
-
+ bitField0_ |= 0x00000008;
+ onChanged();
return this;
}
/**
@@ -1475,19 +1499,19 @@ public Builder setOutputAudioConfig(
public Builder mergeOutputAudioConfig(
com.google.cloud.dialogflow.cx.v3.OutputAudioConfig value) {
if (outputAudioConfigBuilder_ == null) {
- if (outputAudioConfig_ != null) {
- outputAudioConfig_ =
- com.google.cloud.dialogflow.cx.v3.OutputAudioConfig.newBuilder(outputAudioConfig_)
- .mergeFrom(value)
- .buildPartial();
+ if (((bitField0_ & 0x00000008) != 0)
+ && outputAudioConfig_ != null
+ && outputAudioConfig_
+ != com.google.cloud.dialogflow.cx.v3.OutputAudioConfig.getDefaultInstance()) {
+ getOutputAudioConfigBuilder().mergeFrom(value);
} else {
outputAudioConfig_ = value;
}
- onChanged();
} else {
outputAudioConfigBuilder_.mergeFrom(value);
}
-
+ bitField0_ |= 0x00000008;
+ onChanged();
return this;
}
/**
@@ -1500,14 +1524,13 @@ public Builder mergeOutputAudioConfig(
* .google.cloud.dialogflow.cx.v3.OutputAudioConfig output_audio_config = 4;
*/
public Builder clearOutputAudioConfig() {
- if (outputAudioConfigBuilder_ == null) {
- outputAudioConfig_ = null;
- onChanged();
- } else {
- outputAudioConfig_ = null;
+ bitField0_ = (bitField0_ & ~0x00000008);
+ outputAudioConfig_ = null;
+ if (outputAudioConfigBuilder_ != null) {
+ outputAudioConfigBuilder_.dispose();
outputAudioConfigBuilder_ = null;
}
-
+ onChanged();
return this;
}
/**
@@ -1521,7 +1544,7 @@ public Builder clearOutputAudioConfig() {
*/
public com.google.cloud.dialogflow.cx.v3.OutputAudioConfig.Builder
getOutputAudioConfigBuilder() {
-
+ bitField0_ |= 0x00000008;
onChanged();
return getOutputAudioConfigFieldBuilder().getBuilder();
}
@@ -1607,6 +1630,7 @@ public boolean getEnablePartialResponse() {
public Builder setEnablePartialResponse(boolean value) {
enablePartialResponse_ = value;
+ bitField0_ |= 0x00000010;
onChanged();
return this;
}
@@ -1625,7 +1649,7 @@ public Builder setEnablePartialResponse(boolean value) {
* @return This builder for chaining.
*/
public Builder clearEnablePartialResponse() {
-
+ bitField0_ = (bitField0_ & ~0x00000010);
enablePartialResponse_ = false;
onChanged();
return this;
diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/StreamingDetectIntentResponse.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/StreamingDetectIntentResponse.java
index 53953cbcad5d..e3124b01cb69 100644
--- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/StreamingDetectIntentResponse.java
+++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/StreamingDetectIntentResponse.java
@@ -23,7 +23,8 @@
*
*
* The top-level message returned from the
- * [StreamingDetectIntent][google.cloud.dialogflow.cx.v3.Sessions.StreamingDetectIntent] method.
+ * [StreamingDetectIntent][google.cloud.dialogflow.cx.v3.Sessions.StreamingDetectIntent]
+ * method.
* Multiple response messages (N) can be returned in order.
* The first (N-1) responses set either the `recognition_result` or
* `detect_intent_response` field, depending on the request:
@@ -31,15 +32,19 @@
* set, and the `StreamingDetectIntentRequest.enable_partial_response`
* field was false, the `recognition_result` field is populated for each
* of the (N-1) responses.
- * See the [StreamingRecognitionResult][google.cloud.dialogflow.cx.v3.StreamingRecognitionResult] message for details
- * about the result message sequence.
+ * See the
+ * [StreamingRecognitionResult][google.cloud.dialogflow.cx.v3.StreamingRecognitionResult]
+ * message for details about the result message sequence.
* * If the `StreamingDetectIntentRequest.enable_partial_response` field was
* true, the `detect_intent_response` field is populated for each
* of the (N-1) responses, where 1 <= N <= 4.
- * These responses set the [DetectIntentResponse.response_type][google.cloud.dialogflow.cx.v3.DetectIntentResponse.response_type] field
- * to `PARTIAL`.
+ * These responses set the
+ * [DetectIntentResponse.response_type][google.cloud.dialogflow.cx.v3.DetectIntentResponse.response_type]
+ * field to `PARTIAL`.
* For the final Nth response message, the `detect_intent_response` is fully
- * populated, and [DetectIntentResponse.response_type][google.cloud.dialogflow.cx.v3.DetectIntentResponse.response_type] is set to `FINAL`.
+ * populated, and
+ * [DetectIntentResponse.response_type][google.cloud.dialogflow.cx.v3.DetectIntentResponse.response_type]
+ * is set to `FINAL`.
*
*
* Protobuf type {@code google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse}
@@ -429,7 +434,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
*
*
* The top-level message returned from the
- * [StreamingDetectIntent][google.cloud.dialogflow.cx.v3.Sessions.StreamingDetectIntent] method.
+ * [StreamingDetectIntent][google.cloud.dialogflow.cx.v3.Sessions.StreamingDetectIntent]
+ * method.
* Multiple response messages (N) can be returned in order.
* The first (N-1) responses set either the `recognition_result` or
* `detect_intent_response` field, depending on the request:
@@ -437,15 +443,19 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
* set, and the `StreamingDetectIntentRequest.enable_partial_response`
* field was false, the `recognition_result` field is populated for each
* of the (N-1) responses.
- * See the [StreamingRecognitionResult][google.cloud.dialogflow.cx.v3.StreamingRecognitionResult] message for details
- * about the result message sequence.
+ * See the
+ * [StreamingRecognitionResult][google.cloud.dialogflow.cx.v3.StreamingRecognitionResult]
+ * message for details about the result message sequence.
* * If the `StreamingDetectIntentRequest.enable_partial_response` field was
* true, the `detect_intent_response` field is populated for each
* of the (N-1) responses, where 1 <= N <= 4.
- * These responses set the [DetectIntentResponse.response_type][google.cloud.dialogflow.cx.v3.DetectIntentResponse.response_type] field
- * to `PARTIAL`.
+ * These responses set the
+ * [DetectIntentResponse.response_type][google.cloud.dialogflow.cx.v3.DetectIntentResponse.response_type]
+ * field to `PARTIAL`.
* For the final Nth response message, the `detect_intent_response` is fully
- * populated, and [DetectIntentResponse.response_type][google.cloud.dialogflow.cx.v3.DetectIntentResponse.response_type] is set to `FINAL`.
+ * populated, and
+ * [DetectIntentResponse.response_type][google.cloud.dialogflow.cx.v3.DetectIntentResponse.response_type]
+ * is set to `FINAL`.
*
*
* Protobuf type {@code google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse}
@@ -479,6 +489,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
@java.lang.Override
public Builder clear() {
super.clear();
+ bitField0_ = 0;
if (recognitionResultBuilder_ != null) {
recognitionResultBuilder_.clear();
}
@@ -515,25 +526,31 @@ public com.google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse build() {
public com.google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse buildPartial() {
com.google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse result =
new com.google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse(this);
- if (responseCase_ == 1) {
- if (recognitionResultBuilder_ == null) {
- result.response_ = response_;
- } else {
- result.response_ = recognitionResultBuilder_.build();
- }
+ if (bitField0_ != 0) {
+ buildPartial0(result);
}
- if (responseCase_ == 2) {
- if (detectIntentResponseBuilder_ == null) {
- result.response_ = response_;
- } else {
- result.response_ = detectIntentResponseBuilder_.build();
- }
- }
- result.responseCase_ = responseCase_;
+ buildPartialOneofs(result);
onBuilt();
return result;
}
+ private void buildPartial0(
+ com.google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse result) {
+ int from_bitField0_ = bitField0_;
+ }
+
+ private void buildPartialOneofs(
+ com.google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse result) {
+ result.responseCase_ = responseCase_;
+ result.response_ = this.response_;
+ if (responseCase_ == 1 && recognitionResultBuilder_ != null) {
+ result.response_ = recognitionResultBuilder_.build();
+ }
+ if (responseCase_ == 2 && detectIntentResponseBuilder_ != null) {
+ result.response_ = detectIntentResponseBuilder_.build();
+ }
+ }
+
@java.lang.Override
public Builder clone() {
return super.clone();
@@ -669,6 +686,8 @@ public Builder clearResponse() {
return this;
}
+ private int bitField0_;
+
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.dialogflow.cx.v3.StreamingRecognitionResult,
com.google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.Builder,
@@ -891,7 +910,6 @@ public Builder clearRecognitionResult() {
}
responseCase_ = 1;
onChanged();
- ;
return recognitionResultBuilder_;
}
@@ -1106,7 +1124,6 @@ public Builder clearDetectIntentResponse() {
}
responseCase_ = 2;
onChanged();
- ;
return detectIntentResponseBuilder_;
}
diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/StreamingRecognitionResult.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/StreamingRecognitionResult.java
index 81a066c97e7a..995f74770f25 100644
--- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/StreamingRecognitionResult.java
+++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/StreamingRecognitionResult.java
@@ -140,8 +140,8 @@ public enum MessageType implements com.google.protobuf.ProtocolMessageEnum {
* additional results). The client should stop sending additional audio
* data, half-close the gRPC connection, and wait for any additional results
* until the server closes the gRPC connection. This message is only sent if
- * [`single_utterance`][google.cloud.dialogflow.cx.v3.InputAudioConfig.single_utterance] was set to
- * `true`, and is not used otherwise.
+ * [`single_utterance`][google.cloud.dialogflow.cx.v3.InputAudioConfig.single_utterance]
+ * was set to `true`, and is not used otherwise.
*
*
* END_OF_SINGLE_UTTERANCE = 2;
@@ -180,8 +180,8 @@ public enum MessageType implements com.google.protobuf.ProtocolMessageEnum {
* additional results). The client should stop sending additional audio
* data, half-close the gRPC connection, and wait for any additional results
* until the server closes the gRPC connection. This message is only sent if
- * [`single_utterance`][google.cloud.dialogflow.cx.v3.InputAudioConfig.single_utterance] was set to
- * `true`, and is not used otherwise.
+ * [`single_utterance`][google.cloud.dialogflow.cx.v3.InputAudioConfig.single_utterance]
+ * was set to `true`, and is not used otherwise.
*
*
* END_OF_SINGLE_UTTERANCE = 2;
@@ -274,7 +274,7 @@ private MessageType(int value) {
}
public static final int MESSAGE_TYPE_FIELD_NUMBER = 1;
- private int messageType_;
+ private int messageType_ = 0;
/**
*
*
@@ -305,9 +305,8 @@ public int getMessageTypeValue() {
*/
@java.lang.Override
public com.google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.MessageType getMessageType() {
- @SuppressWarnings("deprecation")
com.google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.MessageType result =
- com.google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.MessageType.valueOf(
+ com.google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.MessageType.forNumber(
messageType_);
return result == null
? com.google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.MessageType.UNRECOGNIZED
@@ -315,7 +314,9 @@ public com.google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.MessageType
}
public static final int TRANSCRIPT_FIELD_NUMBER = 2;
- private volatile java.lang.Object transcript_;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object transcript_ = "";
/**
*
*
@@ -366,7 +367,7 @@ public com.google.protobuf.ByteString getTranscriptBytes() {
}
public static final int IS_FINAL_FIELD_NUMBER = 3;
- private boolean isFinal_;
+ private boolean isFinal_ = false;
/**
*
*
@@ -387,7 +388,7 @@ public boolean getIsFinal() {
}
public static final int CONFIDENCE_FIELD_NUMBER = 4;
- private float confidence_;
+ private float confidence_ = 0F;
/**
*
*
@@ -410,7 +411,7 @@ public float getConfidence() {
}
public static final int STABILITY_FIELD_NUMBER = 6;
- private float stability_;
+ private float stability_ = 0F;
/**
*
*
@@ -434,13 +435,16 @@ public float getStability() {
}
public static final int SPEECH_WORD_INFO_FIELD_NUMBER = 7;
+
+ @SuppressWarnings("serial")
private java.util.List speechWordInfo_;
/**
*
*
*
* Word-specific information for the words recognized by Speech in
- * [transcript][google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.transcript]. Populated if and only if `message_type` = `TRANSCRIPT` and
+ * [transcript][google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.transcript].
+ * Populated if and only if `message_type` = `TRANSCRIPT` and
* [InputAudioConfig.enable_word_info] is set.
*
*
@@ -455,7 +459,8 @@ public java.util.List getSpeec
*
*
* Word-specific information for the words recognized by Speech in
- * [transcript][google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.transcript]. Populated if and only if `message_type` = `TRANSCRIPT` and
+ * [transcript][google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.transcript].
+ * Populated if and only if `message_type` = `TRANSCRIPT` and
* [InputAudioConfig.enable_word_info] is set.
*
*
@@ -471,7 +476,8 @@ public java.util.List getSpeec
*
*
* Word-specific information for the words recognized by Speech in
- * [transcript][google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.transcript]. Populated if and only if `message_type` = `TRANSCRIPT` and
+ * [transcript][google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.transcript].
+ * Populated if and only if `message_type` = `TRANSCRIPT` and
* [InputAudioConfig.enable_word_info] is set.
*
*
@@ -486,7 +492,8 @@ public int getSpeechWordInfoCount() {
*
*
* Word-specific information for the words recognized by Speech in
- * [transcript][google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.transcript]. Populated if and only if `message_type` = `TRANSCRIPT` and
+ * [transcript][google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.transcript].
+ * Populated if and only if `message_type` = `TRANSCRIPT` and
* [InputAudioConfig.enable_word_info] is set.
*
*
@@ -501,7 +508,8 @@ public com.google.cloud.dialogflow.cx.v3.SpeechWordInfo getSpeechWordInfo(int in
*
*
* Word-specific information for the words recognized by Speech in
- * [transcript][google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.transcript]. Populated if and only if `message_type` = `TRANSCRIPT` and
+ * [transcript][google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.transcript].
+ * Populated if and only if `message_type` = `TRANSCRIPT` and
* [InputAudioConfig.enable_word_info] is set.
*
*
@@ -564,11 +572,15 @@ public com.google.protobuf.Duration getSpeechEndOffset() {
*/
@java.lang.Override
public com.google.protobuf.DurationOrBuilder getSpeechEndOffsetOrBuilder() {
- return getSpeechEndOffset();
+ return speechEndOffset_ == null
+ ? com.google.protobuf.Duration.getDefaultInstance()
+ : speechEndOffset_;
}
public static final int LANGUAGE_CODE_FIELD_NUMBER = 10;
- private volatile java.lang.Object languageCode_;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object languageCode_ = "";
/**
*
*
@@ -922,31 +934,25 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
@java.lang.Override
public Builder clear() {
super.clear();
+ bitField0_ = 0;
messageType_ = 0;
-
transcript_ = "";
-
isFinal_ = false;
-
confidence_ = 0F;
-
stability_ = 0F;
-
if (speechWordInfoBuilder_ == null) {
speechWordInfo_ = java.util.Collections.emptyList();
} else {
speechWordInfo_ = null;
speechWordInfoBuilder_.clear();
}
- bitField0_ = (bitField0_ & ~0x00000001);
- if (speechEndOffsetBuilder_ == null) {
- speechEndOffset_ = null;
- } else {
- speechEndOffset_ = null;
+ bitField0_ = (bitField0_ & ~0x00000020);
+ speechEndOffset_ = null;
+ if (speechEndOffsetBuilder_ != null) {
+ speechEndOffsetBuilder_.dispose();
speechEndOffsetBuilder_ = null;
}
languageCode_ = "";
-
return this;
}
@@ -975,29 +981,52 @@ public com.google.cloud.dialogflow.cx.v3.StreamingRecognitionResult build() {
public com.google.cloud.dialogflow.cx.v3.StreamingRecognitionResult buildPartial() {
com.google.cloud.dialogflow.cx.v3.StreamingRecognitionResult result =
new com.google.cloud.dialogflow.cx.v3.StreamingRecognitionResult(this);
- int from_bitField0_ = bitField0_;
- result.messageType_ = messageType_;
- result.transcript_ = transcript_;
- result.isFinal_ = isFinal_;
- result.confidence_ = confidence_;
- result.stability_ = stability_;
+ buildPartialRepeatedFields(result);
+ if (bitField0_ != 0) {
+ buildPartial0(result);
+ }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartialRepeatedFields(
+ com.google.cloud.dialogflow.cx.v3.StreamingRecognitionResult result) {
if (speechWordInfoBuilder_ == null) {
- if (((bitField0_ & 0x00000001) != 0)) {
+ if (((bitField0_ & 0x00000020) != 0)) {
speechWordInfo_ = java.util.Collections.unmodifiableList(speechWordInfo_);
- bitField0_ = (bitField0_ & ~0x00000001);
+ bitField0_ = (bitField0_ & ~0x00000020);
}
result.speechWordInfo_ = speechWordInfo_;
} else {
result.speechWordInfo_ = speechWordInfoBuilder_.build();
}
- if (speechEndOffsetBuilder_ == null) {
- result.speechEndOffset_ = speechEndOffset_;
- } else {
- result.speechEndOffset_ = speechEndOffsetBuilder_.build();
+ }
+
+ private void buildPartial0(
+ com.google.cloud.dialogflow.cx.v3.StreamingRecognitionResult result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.messageType_ = messageType_;
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.transcript_ = transcript_;
+ }
+ if (((from_bitField0_ & 0x00000004) != 0)) {
+ result.isFinal_ = isFinal_;
+ }
+ if (((from_bitField0_ & 0x00000008) != 0)) {
+ result.confidence_ = confidence_;
+ }
+ if (((from_bitField0_ & 0x00000010) != 0)) {
+ result.stability_ = stability_;
+ }
+ if (((from_bitField0_ & 0x00000040) != 0)) {
+ result.speechEndOffset_ =
+ speechEndOffsetBuilder_ == null ? speechEndOffset_ : speechEndOffsetBuilder_.build();
+ }
+ if (((from_bitField0_ & 0x00000080) != 0)) {
+ result.languageCode_ = languageCode_;
}
- result.languageCode_ = languageCode_;
- onBuilt();
- return result;
}
@java.lang.Override
@@ -1052,6 +1081,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.StreamingRecognitionR
}
if (!other.getTranscript().isEmpty()) {
transcript_ = other.transcript_;
+ bitField0_ |= 0x00000002;
onChanged();
}
if (other.getIsFinal() != false) {
@@ -1067,7 +1097,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.StreamingRecognitionR
if (!other.speechWordInfo_.isEmpty()) {
if (speechWordInfo_.isEmpty()) {
speechWordInfo_ = other.speechWordInfo_;
- bitField0_ = (bitField0_ & ~0x00000001);
+ bitField0_ = (bitField0_ & ~0x00000020);
} else {
ensureSpeechWordInfoIsMutable();
speechWordInfo_.addAll(other.speechWordInfo_);
@@ -1080,7 +1110,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.StreamingRecognitionR
speechWordInfoBuilder_.dispose();
speechWordInfoBuilder_ = null;
speechWordInfo_ = other.speechWordInfo_;
- bitField0_ = (bitField0_ & ~0x00000001);
+ bitField0_ = (bitField0_ & ~0x00000020);
speechWordInfoBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
? getSpeechWordInfoFieldBuilder()
@@ -1095,6 +1125,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.StreamingRecognitionR
}
if (!other.getLanguageCode().isEmpty()) {
languageCode_ = other.languageCode_;
+ bitField0_ |= 0x00000080;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
@@ -1126,31 +1157,31 @@ public Builder mergeFrom(
case 8:
{
messageType_ = input.readEnum();
-
+ bitField0_ |= 0x00000001;
break;
} // case 8
case 18:
{
transcript_ = input.readStringRequireUtf8();
-
+ bitField0_ |= 0x00000002;
break;
} // case 18
case 24:
{
isFinal_ = input.readBool();
-
+ bitField0_ |= 0x00000004;
break;
} // case 24
case 37:
{
confidence_ = input.readFloat();
-
+ bitField0_ |= 0x00000008;
break;
} // case 37
case 53:
{
stability_ = input.readFloat();
-
+ bitField0_ |= 0x00000010;
break;
} // case 53
case 58:
@@ -1170,13 +1201,13 @@ public Builder mergeFrom(
case 66:
{
input.readMessage(getSpeechEndOffsetFieldBuilder().getBuilder(), extensionRegistry);
-
+ bitField0_ |= 0x00000040;
break;
} // case 66
case 82:
{
languageCode_ = input.readStringRequireUtf8();
-
+ bitField0_ |= 0x00000080;
break;
} // case 82
default:
@@ -1229,8 +1260,8 @@ public int getMessageTypeValue() {
* @return This builder for chaining.
*/
public Builder setMessageTypeValue(int value) {
-
messageType_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -1249,9 +1280,8 @@ public Builder setMessageTypeValue(int value) {
@java.lang.Override
public com.google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.MessageType
getMessageType() {
- @SuppressWarnings("deprecation")
com.google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.MessageType result =
- com.google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.MessageType.valueOf(
+ com.google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.MessageType.forNumber(
messageType_);
return result == null
? com.google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.MessageType.UNRECOGNIZED
@@ -1275,7 +1305,7 @@ public Builder setMessageType(
if (value == null) {
throw new NullPointerException();
}
-
+ bitField0_ |= 0x00000001;
messageType_ = value.getNumber();
onChanged();
return this;
@@ -1293,7 +1323,7 @@ public Builder setMessageType(
* @return This builder for chaining.
*/
public Builder clearMessageType() {
-
+ bitField0_ = (bitField0_ & ~0x00000001);
messageType_ = 0;
onChanged();
return this;
@@ -1363,8 +1393,8 @@ public Builder setTranscript(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
-
transcript_ = value;
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -1381,8 +1411,8 @@ public Builder setTranscript(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearTranscript() {
-
transcript_ = getDefaultInstance().getTranscript();
+ bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
@@ -1404,8 +1434,8 @@ public Builder setTranscriptBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
-
transcript_ = value;
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -1447,6 +1477,7 @@ public boolean getIsFinal() {
public Builder setIsFinal(boolean value) {
isFinal_ = value;
+ bitField0_ |= 0x00000004;
onChanged();
return this;
}
@@ -1465,7 +1496,7 @@ public Builder setIsFinal(boolean value) {
* @return This builder for chaining.
*/
public Builder clearIsFinal() {
-
+ bitField0_ = (bitField0_ & ~0x00000004);
isFinal_ = false;
onChanged();
return this;
@@ -1512,6 +1543,7 @@ public float getConfidence() {
public Builder setConfidence(float value) {
confidence_ = value;
+ bitField0_ |= 0x00000008;
onChanged();
return this;
}
@@ -1532,7 +1564,7 @@ public Builder setConfidence(float value) {
* @return This builder for chaining.
*/
public Builder clearConfidence() {
-
+ bitField0_ = (bitField0_ & ~0x00000008);
confidence_ = 0F;
onChanged();
return this;
@@ -1581,6 +1613,7 @@ public float getStability() {
public Builder setStability(float value) {
stability_ = value;
+ bitField0_ |= 0x00000010;
onChanged();
return this;
}
@@ -1602,7 +1635,7 @@ public Builder setStability(float value) {
* @return This builder for chaining.
*/
public Builder clearStability() {
-
+ bitField0_ = (bitField0_ & ~0x00000010);
stability_ = 0F;
onChanged();
return this;
@@ -1612,11 +1645,11 @@ public Builder clearStability() {
java.util.Collections.emptyList();
private void ensureSpeechWordInfoIsMutable() {
- if (!((bitField0_ & 0x00000001) != 0)) {
+ if (!((bitField0_ & 0x00000020) != 0)) {
speechWordInfo_ =
new java.util.ArrayList(
speechWordInfo_);
- bitField0_ |= 0x00000001;
+ bitField0_ |= 0x00000020;
}
}
@@ -1631,7 +1664,8 @@ private void ensureSpeechWordInfoIsMutable() {
*
*
* Word-specific information for the words recognized by Speech in
- * [transcript][google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.transcript]. Populated if and only if `message_type` = `TRANSCRIPT` and
+ * [transcript][google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.transcript].
+ * Populated if and only if `message_type` = `TRANSCRIPT` and
* [InputAudioConfig.enable_word_info] is set.
*
*
@@ -1650,7 +1684,8 @@ private void ensureSpeechWordInfoIsMutable() {
*
*
* Word-specific information for the words recognized by Speech in
- * [transcript][google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.transcript]. Populated if and only if `message_type` = `TRANSCRIPT` and
+ * [transcript][google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.transcript].
+ * Populated if and only if `message_type` = `TRANSCRIPT` and
* [InputAudioConfig.enable_word_info] is set.
*
*
@@ -1668,7 +1703,8 @@ public int getSpeechWordInfoCount() {
*
*
* Word-specific information for the words recognized by Speech in
- * [transcript][google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.transcript]. Populated if and only if `message_type` = `TRANSCRIPT` and
+ * [transcript][google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.transcript].
+ * Populated if and only if `message_type` = `TRANSCRIPT` and
* [InputAudioConfig.enable_word_info] is set.
*
*
@@ -1686,7 +1722,8 @@ public com.google.cloud.dialogflow.cx.v3.SpeechWordInfo getSpeechWordInfo(int in
*
*
* Word-specific information for the words recognized by Speech in
- * [transcript][google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.transcript]. Populated if and only if `message_type` = `TRANSCRIPT` and
+ * [transcript][google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.transcript].
+ * Populated if and only if `message_type` = `TRANSCRIPT` and
* [InputAudioConfig.enable_word_info] is set.
*
*
@@ -1711,7 +1748,8 @@ public Builder setSpeechWordInfo(
*
*
* Word-specific information for the words recognized by Speech in
- * [transcript][google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.transcript]. Populated if and only if `message_type` = `TRANSCRIPT` and
+ * [transcript][google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.transcript].
+ * Populated if and only if `message_type` = `TRANSCRIPT` and
* [InputAudioConfig.enable_word_info] is set.
*
*
@@ -1733,7 +1771,8 @@ public Builder setSpeechWordInfo(
*
*
* Word-specific information for the words recognized by Speech in
- * [transcript][google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.transcript]. Populated if and only if `message_type` = `TRANSCRIPT` and
+ * [transcript][google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.transcript].
+ * Populated if and only if `message_type` = `TRANSCRIPT` and
* [InputAudioConfig.enable_word_info] is set.
*
*
@@ -1757,7 +1796,8 @@ public Builder addSpeechWordInfo(com.google.cloud.dialogflow.cx.v3.SpeechWordInf
*
*
* Word-specific information for the words recognized by Speech in
- * [transcript][google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.transcript]. Populated if and only if `message_type` = `TRANSCRIPT` and
+ * [transcript][google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.transcript].
+ * Populated if and only if `message_type` = `TRANSCRIPT` and
* [InputAudioConfig.enable_word_info] is set.
*
*
@@ -1782,7 +1822,8 @@ public Builder addSpeechWordInfo(
*
*
* Word-specific information for the words recognized by Speech in
- * [transcript][google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.transcript]. Populated if and only if `message_type` = `TRANSCRIPT` and
+ * [transcript][google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.transcript].
+ * Populated if and only if `message_type` = `TRANSCRIPT` and
* [InputAudioConfig.enable_word_info] is set.
*
*
@@ -1804,7 +1845,8 @@ public Builder addSpeechWordInfo(
*
*
* Word-specific information for the words recognized by Speech in
- * [transcript][google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.transcript]. Populated if and only if `message_type` = `TRANSCRIPT` and
+ * [transcript][google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.transcript].
+ * Populated if and only if `message_type` = `TRANSCRIPT` and
* [InputAudioConfig.enable_word_info] is set.
*
*
@@ -1826,7 +1868,8 @@ public Builder addSpeechWordInfo(
*
*
* Word-specific information for the words recognized by Speech in
- * [transcript][google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.transcript]. Populated if and only if `message_type` = `TRANSCRIPT` and
+ * [transcript][google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.transcript].
+ * Populated if and only if `message_type` = `TRANSCRIPT` and
* [InputAudioConfig.enable_word_info] is set.
*
*
@@ -1848,7 +1891,8 @@ public Builder addAllSpeechWordInfo(
*
*
* Word-specific information for the words recognized by Speech in
- * [transcript][google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.transcript]. Populated if and only if `message_type` = `TRANSCRIPT` and
+ * [transcript][google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.transcript].
+ * Populated if and only if `message_type` = `TRANSCRIPT` and
* [InputAudioConfig.enable_word_info] is set.
*
*
@@ -1857,7 +1901,7 @@ public Builder addAllSpeechWordInfo(
public Builder clearSpeechWordInfo() {
if (speechWordInfoBuilder_ == null) {
speechWordInfo_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000001);
+ bitField0_ = (bitField0_ & ~0x00000020);
onChanged();
} else {
speechWordInfoBuilder_.clear();
@@ -1869,7 +1913,8 @@ public Builder clearSpeechWordInfo() {
*
*
* Word-specific information for the words recognized by Speech in
- * [transcript][google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.transcript]. Populated if and only if `message_type` = `TRANSCRIPT` and
+ * [transcript][google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.transcript].
+ * Populated if and only if `message_type` = `TRANSCRIPT` and
* [InputAudioConfig.enable_word_info] is set.
*
*
@@ -1890,7 +1935,8 @@ public Builder removeSpeechWordInfo(int index) {
*
*
* Word-specific information for the words recognized by Speech in
- * [transcript][google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.transcript]. Populated if and only if `message_type` = `TRANSCRIPT` and
+ * [transcript][google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.transcript].
+ * Populated if and only if `message_type` = `TRANSCRIPT` and
* [InputAudioConfig.enable_word_info] is set.
*
*
@@ -1905,7 +1951,8 @@ public com.google.cloud.dialogflow.cx.v3.SpeechWordInfo.Builder getSpeechWordInf
*
*
* Word-specific information for the words recognized by Speech in
- * [transcript][google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.transcript]. Populated if and only if `message_type` = `TRANSCRIPT` and
+ * [transcript][google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.transcript].
+ * Populated if and only if `message_type` = `TRANSCRIPT` and
* [InputAudioConfig.enable_word_info] is set.
*
*
@@ -1924,7 +1971,8 @@ public com.google.cloud.dialogflow.cx.v3.SpeechWordInfoOrBuilder getSpeechWordIn
*
*
* Word-specific information for the words recognized by Speech in
- * [transcript][google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.transcript]. Populated if and only if `message_type` = `TRANSCRIPT` and
+ * [transcript][google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.transcript].
+ * Populated if and only if `message_type` = `TRANSCRIPT` and
* [InputAudioConfig.enable_word_info] is set.
*
*
@@ -1943,7 +1991,8 @@ public com.google.cloud.dialogflow.cx.v3.SpeechWordInfoOrBuilder getSpeechWordIn
*
*
* Word-specific information for the words recognized by Speech in
- * [transcript][google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.transcript]. Populated if and only if `message_type` = `TRANSCRIPT` and
+ * [transcript][google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.transcript].
+ * Populated if and only if `message_type` = `TRANSCRIPT` and
* [InputAudioConfig.enable_word_info] is set.
*
*
@@ -1958,7 +2007,8 @@ public com.google.cloud.dialogflow.cx.v3.SpeechWordInfo.Builder addSpeechWordInf
*
*
* Word-specific information for the words recognized by Speech in
- * [transcript][google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.transcript]. Populated if and only if `message_type` = `TRANSCRIPT` and
+ * [transcript][google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.transcript].
+ * Populated if and only if `message_type` = `TRANSCRIPT` and
* [InputAudioConfig.enable_word_info] is set.
*
*
@@ -1974,7 +2024,8 @@ public com.google.cloud.dialogflow.cx.v3.SpeechWordInfo.Builder addSpeechWordInf
*
*
* Word-specific information for the words recognized by Speech in
- * [transcript][google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.transcript]. Populated if and only if `message_type` = `TRANSCRIPT` and
+ * [transcript][google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.transcript].
+ * Populated if and only if `message_type` = `TRANSCRIPT` and
* [InputAudioConfig.enable_word_info] is set.
*
*
@@ -1997,7 +2048,7 @@ public com.google.cloud.dialogflow.cx.v3.SpeechWordInfo.Builder addSpeechWordInf
com.google.cloud.dialogflow.cx.v3.SpeechWordInfo.Builder,
com.google.cloud.dialogflow.cx.v3.SpeechWordInfoOrBuilder>(
speechWordInfo_,
- ((bitField0_ & 0x00000001) != 0),
+ ((bitField0_ & 0x00000020) != 0),
getParentForChildren(),
isClean());
speechWordInfo_ = null;
@@ -2025,7 +2076,7 @@ public com.google.cloud.dialogflow.cx.v3.SpeechWordInfo.Builder addSpeechWordInf
* @return Whether the speechEndOffset field is set.
*/
public boolean hasSpeechEndOffset() {
- return speechEndOffsetBuilder_ != null || speechEndOffset_ != null;
+ return ((bitField0_ & 0x00000040) != 0);
}
/**
*
@@ -2066,11 +2117,11 @@ public Builder setSpeechEndOffset(com.google.protobuf.Duration value) {
throw new NullPointerException();
}
speechEndOffset_ = value;
- onChanged();
} else {
speechEndOffsetBuilder_.setMessage(value);
}
-
+ bitField0_ |= 0x00000040;
+ onChanged();
return this;
}
/**
@@ -2087,11 +2138,11 @@ public Builder setSpeechEndOffset(com.google.protobuf.Duration value) {
public Builder setSpeechEndOffset(com.google.protobuf.Duration.Builder builderForValue) {
if (speechEndOffsetBuilder_ == null) {
speechEndOffset_ = builderForValue.build();
- onChanged();
} else {
speechEndOffsetBuilder_.setMessage(builderForValue.build());
}
-
+ bitField0_ |= 0x00000040;
+ onChanged();
return this;
}
/**
@@ -2107,19 +2158,18 @@ public Builder setSpeechEndOffset(com.google.protobuf.Duration.Builder builderFo
*/
public Builder mergeSpeechEndOffset(com.google.protobuf.Duration value) {
if (speechEndOffsetBuilder_ == null) {
- if (speechEndOffset_ != null) {
- speechEndOffset_ =
- com.google.protobuf.Duration.newBuilder(speechEndOffset_)
- .mergeFrom(value)
- .buildPartial();
+ if (((bitField0_ & 0x00000040) != 0)
+ && speechEndOffset_ != null
+ && speechEndOffset_ != com.google.protobuf.Duration.getDefaultInstance()) {
+ getSpeechEndOffsetBuilder().mergeFrom(value);
} else {
speechEndOffset_ = value;
}
- onChanged();
} else {
speechEndOffsetBuilder_.mergeFrom(value);
}
-
+ bitField0_ |= 0x00000040;
+ onChanged();
return this;
}
/**
@@ -2134,14 +2184,13 @@ public Builder mergeSpeechEndOffset(com.google.protobuf.Duration value) {
* .google.protobuf.Duration speech_end_offset = 8;
*/
public Builder clearSpeechEndOffset() {
- if (speechEndOffsetBuilder_ == null) {
- speechEndOffset_ = null;
- onChanged();
- } else {
- speechEndOffset_ = null;
+ bitField0_ = (bitField0_ & ~0x00000040);
+ speechEndOffset_ = null;
+ if (speechEndOffsetBuilder_ != null) {
+ speechEndOffsetBuilder_.dispose();
speechEndOffsetBuilder_ = null;
}
-
+ onChanged();
return this;
}
/**
@@ -2156,7 +2205,7 @@ public Builder clearSpeechEndOffset() {
* .google.protobuf.Duration speech_end_offset = 8;
*/
public com.google.protobuf.Duration.Builder getSpeechEndOffsetBuilder() {
-
+ bitField0_ |= 0x00000040;
onChanged();
return getSpeechEndOffsetFieldBuilder().getBuilder();
}
@@ -2269,8 +2318,8 @@ public Builder setLanguageCode(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
-
languageCode_ = value;
+ bitField0_ |= 0x00000080;
onChanged();
return this;
}
@@ -2286,8 +2335,8 @@ public Builder setLanguageCode(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearLanguageCode() {
-
languageCode_ = getDefaultInstance().getLanguageCode();
+ bitField0_ = (bitField0_ & ~0x00000080);
onChanged();
return this;
}
@@ -2308,8 +2357,8 @@ public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
-
languageCode_ = value;
+ bitField0_ |= 0x00000080;
onChanged();
return this;
}
diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/StreamingRecognitionResultOrBuilder.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/StreamingRecognitionResultOrBuilder.java
index a7d740fb7859..0d255c754546 100644
--- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/StreamingRecognitionResultOrBuilder.java
+++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/StreamingRecognitionResultOrBuilder.java
@@ -135,7 +135,8 @@ public interface StreamingRecognitionResultOrBuilder
*
*
* Word-specific information for the words recognized by Speech in
- * [transcript][google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.transcript]. Populated if and only if `message_type` = `TRANSCRIPT` and
+ * [transcript][google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.transcript].
+ * Populated if and only if `message_type` = `TRANSCRIPT` and
* [InputAudioConfig.enable_word_info] is set.
*
*
@@ -147,7 +148,8 @@ public interface StreamingRecognitionResultOrBuilder
*
*
* Word-specific information for the words recognized by Speech in
- * [transcript][google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.transcript]. Populated if and only if `message_type` = `TRANSCRIPT` and
+ * [transcript][google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.transcript].
+ * Populated if and only if `message_type` = `TRANSCRIPT` and
* [InputAudioConfig.enable_word_info] is set.
*
*
@@ -159,7 +161,8 @@ public interface StreamingRecognitionResultOrBuilder
*
*
* Word-specific information for the words recognized by Speech in
- * [transcript][google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.transcript]. Populated if and only if `message_type` = `TRANSCRIPT` and
+ * [transcript][google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.transcript].
+ * Populated if and only if `message_type` = `TRANSCRIPT` and
* [InputAudioConfig.enable_word_info] is set.
*
*
@@ -171,7 +174,8 @@ public interface StreamingRecognitionResultOrBuilder
*
*
* Word-specific information for the words recognized by Speech in
- * [transcript][google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.transcript]. Populated if and only if `message_type` = `TRANSCRIPT` and
+ * [transcript][google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.transcript].
+ * Populated if and only if `message_type` = `TRANSCRIPT` and
* [InputAudioConfig.enable_word_info] is set.
*
*
@@ -184,7 +188,8 @@ public interface StreamingRecognitionResultOrBuilder
*
*
* Word-specific information for the words recognized by Speech in
- * [transcript][google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.transcript]. Populated if and only if `message_type` = `TRANSCRIPT` and
+ * [transcript][google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.transcript].
+ * Populated if and only if `message_type` = `TRANSCRIPT` and
* [InputAudioConfig.enable_word_info] is set.
*
*
diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SynthesizeSpeechConfig.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SynthesizeSpeechConfig.java
index a62c88901619..c5d930448e38 100644
--- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SynthesizeSpeechConfig.java
+++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SynthesizeSpeechConfig.java
@@ -68,7 +68,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
public static final int SPEAKING_RATE_FIELD_NUMBER = 1;
- private double speakingRate_;
+ private double speakingRate_ = 0D;
/**
*
*
@@ -89,7 +89,7 @@ public double getSpeakingRate() {
}
public static final int PITCH_FIELD_NUMBER = 2;
- private double pitch_;
+ private double pitch_ = 0D;
/**
*
*
@@ -109,7 +109,7 @@ public double getPitch() {
}
public static final int VOLUME_GAIN_DB_FIELD_NUMBER = 3;
- private double volumeGainDb_;
+ private double volumeGainDb_ = 0D;
/**
*
*
@@ -134,6 +134,8 @@ public double getVolumeGainDb() {
}
public static final int EFFECTS_PROFILE_ID_FIELD_NUMBER = 5;
+
+ @SuppressWarnings("serial")
private com.google.protobuf.LazyStringList effectsProfileId_;
/**
*
@@ -247,7 +249,9 @@ public com.google.cloud.dialogflow.cx.v3.VoiceSelectionParams getVoice() {
*/
@java.lang.Override
public com.google.cloud.dialogflow.cx.v3.VoiceSelectionParamsOrBuilder getVoiceOrBuilder() {
- return getVoice();
+ return voice_ == null
+ ? com.google.cloud.dialogflow.cx.v3.VoiceSelectionParams.getDefaultInstance()
+ : voice_;
}
private byte memoizedIsInitialized = -1;
@@ -507,18 +511,15 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
@java.lang.Override
public Builder clear() {
super.clear();
+ bitField0_ = 0;
speakingRate_ = 0D;
-
pitch_ = 0D;
-
volumeGainDb_ = 0D;
-
effectsProfileId_ = com.google.protobuf.LazyStringArrayList.EMPTY;
- bitField0_ = (bitField0_ & ~0x00000001);
- if (voiceBuilder_ == null) {
- voice_ = null;
- } else {
- voice_ = null;
+ bitField0_ = (bitField0_ & ~0x00000008);
+ voice_ = null;
+ if (voiceBuilder_ != null) {
+ voiceBuilder_.dispose();
voiceBuilder_ = null;
}
return this;
@@ -548,22 +549,37 @@ public com.google.cloud.dialogflow.cx.v3.SynthesizeSpeechConfig build() {
public com.google.cloud.dialogflow.cx.v3.SynthesizeSpeechConfig buildPartial() {
com.google.cloud.dialogflow.cx.v3.SynthesizeSpeechConfig result =
new com.google.cloud.dialogflow.cx.v3.SynthesizeSpeechConfig(this);
- int from_bitField0_ = bitField0_;
- result.speakingRate_ = speakingRate_;
- result.pitch_ = pitch_;
- result.volumeGainDb_ = volumeGainDb_;
- if (((bitField0_ & 0x00000001) != 0)) {
+ buildPartialRepeatedFields(result);
+ if (bitField0_ != 0) {
+ buildPartial0(result);
+ }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartialRepeatedFields(
+ com.google.cloud.dialogflow.cx.v3.SynthesizeSpeechConfig result) {
+ if (((bitField0_ & 0x00000008) != 0)) {
effectsProfileId_ = effectsProfileId_.getUnmodifiableView();
- bitField0_ = (bitField0_ & ~0x00000001);
+ bitField0_ = (bitField0_ & ~0x00000008);
}
result.effectsProfileId_ = effectsProfileId_;
- if (voiceBuilder_ == null) {
- result.voice_ = voice_;
- } else {
- result.voice_ = voiceBuilder_.build();
+ }
+
+ private void buildPartial0(com.google.cloud.dialogflow.cx.v3.SynthesizeSpeechConfig result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.speakingRate_ = speakingRate_;
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.pitch_ = pitch_;
+ }
+ if (((from_bitField0_ & 0x00000004) != 0)) {
+ result.volumeGainDb_ = volumeGainDb_;
+ }
+ if (((from_bitField0_ & 0x00000010) != 0)) {
+ result.voice_ = voiceBuilder_ == null ? voice_ : voiceBuilder_.build();
}
- onBuilt();
- return result;
}
@java.lang.Override
@@ -624,7 +640,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.SynthesizeSpeechConfi
if (!other.effectsProfileId_.isEmpty()) {
if (effectsProfileId_.isEmpty()) {
effectsProfileId_ = other.effectsProfileId_;
- bitField0_ = (bitField0_ & ~0x00000001);
+ bitField0_ = (bitField0_ & ~0x00000008);
} else {
ensureEffectsProfileIdIsMutable();
effectsProfileId_.addAll(other.effectsProfileId_);
@@ -663,25 +679,25 @@ public Builder mergeFrom(
case 9:
{
speakingRate_ = input.readDouble();
-
+ bitField0_ |= 0x00000001;
break;
} // case 9
case 17:
{
pitch_ = input.readDouble();
-
+ bitField0_ |= 0x00000002;
break;
} // case 17
case 25:
{
volumeGainDb_ = input.readDouble();
-
+ bitField0_ |= 0x00000004;
break;
} // case 25
case 34:
{
input.readMessage(getVoiceFieldBuilder().getBuilder(), extensionRegistry);
-
+ bitField0_ |= 0x00000010;
break;
} // case 34
case 42:
@@ -747,6 +763,7 @@ public double getSpeakingRate() {
public Builder setSpeakingRate(double value) {
speakingRate_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -765,7 +782,7 @@ public Builder setSpeakingRate(double value) {
* @return This builder for chaining.
*/
public Builder clearSpeakingRate() {
-
+ bitField0_ = (bitField0_ & ~0x00000001);
speakingRate_ = 0D;
onChanged();
return this;
@@ -806,6 +823,7 @@ public double getPitch() {
public Builder setPitch(double value) {
pitch_ = value;
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -823,7 +841,7 @@ public Builder setPitch(double value) {
* @return This builder for chaining.
*/
public Builder clearPitch() {
-
+ bitField0_ = (bitField0_ & ~0x00000002);
pitch_ = 0D;
onChanged();
return this;
@@ -874,6 +892,7 @@ public double getVolumeGainDb() {
public Builder setVolumeGainDb(double value) {
volumeGainDb_ = value;
+ bitField0_ |= 0x00000004;
onChanged();
return this;
}
@@ -896,7 +915,7 @@ public Builder setVolumeGainDb(double value) {
* @return This builder for chaining.
*/
public Builder clearVolumeGainDb() {
-
+ bitField0_ = (bitField0_ & ~0x00000004);
volumeGainDb_ = 0D;
onChanged();
return this;
@@ -906,9 +925,9 @@ public Builder clearVolumeGainDb() {
com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureEffectsProfileIdIsMutable() {
- if (!((bitField0_ & 0x00000001) != 0)) {
+ if (!((bitField0_ & 0x00000008) != 0)) {
effectsProfileId_ = new com.google.protobuf.LazyStringArrayList(effectsProfileId_);
- bitField0_ |= 0x00000001;
+ bitField0_ |= 0x00000008;
}
}
/**
@@ -1059,7 +1078,7 @@ public Builder addAllEffectsProfileId(java.lang.Iterable value
*/
public Builder clearEffectsProfileId() {
effectsProfileId_ = com.google.protobuf.LazyStringArrayList.EMPTY;
- bitField0_ = (bitField0_ & ~0x00000001);
+ bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
return this;
}
@@ -1106,7 +1125,7 @@ public Builder addEffectsProfileIdBytes(com.google.protobuf.ByteString value) {
* @return Whether the voice field is set.
*/
public boolean hasVoice() {
- return voiceBuilder_ != null || voice_ != null;
+ return ((bitField0_ & 0x00000010) != 0);
}
/**
*
@@ -1143,11 +1162,11 @@ public Builder setVoice(com.google.cloud.dialogflow.cx.v3.VoiceSelectionParams v
throw new NullPointerException();
}
voice_ = value;
- onChanged();
} else {
voiceBuilder_.setMessage(value);
}
-
+ bitField0_ |= 0x00000010;
+ onChanged();
return this;
}
/**
@@ -1163,11 +1182,11 @@ public Builder setVoice(
com.google.cloud.dialogflow.cx.v3.VoiceSelectionParams.Builder builderForValue) {
if (voiceBuilder_ == null) {
voice_ = builderForValue.build();
- onChanged();
} else {
voiceBuilder_.setMessage(builderForValue.build());
}
-
+ bitField0_ |= 0x00000010;
+ onChanged();
return this;
}
/**
@@ -1181,19 +1200,19 @@ public Builder setVoice(
*/
public Builder mergeVoice(com.google.cloud.dialogflow.cx.v3.VoiceSelectionParams value) {
if (voiceBuilder_ == null) {
- if (voice_ != null) {
- voice_ =
- com.google.cloud.dialogflow.cx.v3.VoiceSelectionParams.newBuilder(voice_)
- .mergeFrom(value)
- .buildPartial();
+ if (((bitField0_ & 0x00000010) != 0)
+ && voice_ != null
+ && voice_
+ != com.google.cloud.dialogflow.cx.v3.VoiceSelectionParams.getDefaultInstance()) {
+ getVoiceBuilder().mergeFrom(value);
} else {
voice_ = value;
}
- onChanged();
} else {
voiceBuilder_.mergeFrom(value);
}
-
+ bitField0_ |= 0x00000010;
+ onChanged();
return this;
}
/**
@@ -1206,14 +1225,13 @@ public Builder mergeVoice(com.google.cloud.dialogflow.cx.v3.VoiceSelectionParams
* .google.cloud.dialogflow.cx.v3.VoiceSelectionParams voice = 4;
*/
public Builder clearVoice() {
- if (voiceBuilder_ == null) {
- voice_ = null;
- onChanged();
- } else {
- voice_ = null;
+ bitField0_ = (bitField0_ & ~0x00000010);
+ voice_ = null;
+ if (voiceBuilder_ != null) {
+ voiceBuilder_.dispose();
voiceBuilder_ = null;
}
-
+ onChanged();
return this;
}
/**
@@ -1226,7 +1244,7 @@ public Builder clearVoice() {
* .google.cloud.dialogflow.cx.v3.VoiceSelectionParams voice = 4;
*/
public com.google.cloud.dialogflow.cx.v3.VoiceSelectionParams.Builder getVoiceBuilder() {
-
+ bitField0_ |= 0x00000010;
onChanged();
return getVoiceFieldBuilder().getBuilder();
}
diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TestCase.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TestCase.java
index 8c4d0226e52d..dacf94d13925 100644
--- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TestCase.java
+++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TestCase.java
@@ -72,14 +72,17 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
public static final int NAME_FIELD_NUMBER = 1;
- private volatile java.lang.Object name_;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object name_ = "";
/**
*
*
*
* The unique identifier of the test case.
- * [TestCases.CreateTestCase][google.cloud.dialogflow.cx.v3.TestCases.CreateTestCase] will populate the name automatically.
- * Otherwise use format: `projects/<Project ID>/locations/<LocationID>/agents/
+ * [TestCases.CreateTestCase][google.cloud.dialogflow.cx.v3.TestCases.CreateTestCase]
+ * will populate the name automatically. Otherwise use format:
+ * `projects/<Project ID>/locations/<LocationID>/agents/
* <AgentID>/testCases/<TestCase ID>`.
*
*
@@ -104,8 +107,9 @@ public java.lang.String getName() {
*
*
* The unique identifier of the test case.
- * [TestCases.CreateTestCase][google.cloud.dialogflow.cx.v3.TestCases.CreateTestCase] will populate the name automatically.
- * Otherwise use format: `projects/<Project ID>/locations/<LocationID>/agents/
+ * [TestCases.CreateTestCase][google.cloud.dialogflow.cx.v3.TestCases.CreateTestCase]
+ * will populate the name automatically. Otherwise use format:
+ * `projects/<Project ID>/locations/<LocationID>/agents/
* <AgentID>/testCases/<TestCase ID>`.
*
*
@@ -127,6 +131,8 @@ public com.google.protobuf.ByteString getNameBytes() {
}
public static final int TAGS_FIELD_NUMBER = 2;
+
+ @SuppressWarnings("serial")
private com.google.protobuf.LazyStringList tags_;
/**
*
@@ -196,13 +202,15 @@ public com.google.protobuf.ByteString getTagsBytes(int index) {
}
public static final int DISPLAY_NAME_FIELD_NUMBER = 3;
- private volatile java.lang.Object displayName_;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object displayName_ = "";
/**
*
*
*
- * Required. The human-readable name of the test case, unique within the agent. Limit of
- * 200 characters.
+ * Required. The human-readable name of the test case, unique within the
+ * agent. Limit of 200 characters.
*
*
* string display_name = 3 [(.google.api.field_behavior) = REQUIRED];
@@ -225,8 +233,8 @@ public java.lang.String getDisplayName() {
*
*
*
- * Required. The human-readable name of the test case, unique within the agent. Limit of
- * 200 characters.
+ * Required. The human-readable name of the test case, unique within the
+ * agent. Limit of 200 characters.
*
*
* string display_name = 3 [(.google.api.field_behavior) = REQUIRED];
@@ -247,7 +255,9 @@ public com.google.protobuf.ByteString getDisplayNameBytes() {
}
public static final int NOTES_FIELD_NUMBER = 4;
- private volatile java.lang.Object notes_;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object notes_ = "";
/**
*
*
@@ -340,10 +350,14 @@ public com.google.cloud.dialogflow.cx.v3.TestConfig getTestConfig() {
*/
@java.lang.Override
public com.google.cloud.dialogflow.cx.v3.TestConfigOrBuilder getTestConfigOrBuilder() {
- return getTestConfig();
+ return testConfig_ == null
+ ? com.google.cloud.dialogflow.cx.v3.TestConfig.getDefaultInstance()
+ : testConfig_;
}
public static final int TEST_CASE_CONVERSATION_TURNS_FIELD_NUMBER = 5;
+
+ @SuppressWarnings("serial")
private java.util.List
testCaseConversationTurns_;
/**
@@ -487,7 +501,9 @@ public com.google.protobuf.Timestamp getCreationTime() {
*/
@java.lang.Override
public com.google.protobuf.TimestampOrBuilder getCreationTimeOrBuilder() {
- return getCreationTime();
+ return creationTime_ == null
+ ? com.google.protobuf.Timestamp.getDefaultInstance()
+ : creationTime_;
}
public static final int LAST_TEST_RESULT_FIELD_NUMBER = 12;
@@ -535,7 +551,9 @@ public com.google.cloud.dialogflow.cx.v3.TestCaseResult getLastTestResult() {
*/
@java.lang.Override
public com.google.cloud.dialogflow.cx.v3.TestCaseResultOrBuilder getLastTestResultOrBuilder() {
- return getLastTestResult();
+ return lastTestResult_ == null
+ ? com.google.cloud.dialogflow.cx.v3.TestCaseResult.getDefaultInstance()
+ : lastTestResult_;
}
private byte memoizedIsInitialized = -1;
@@ -825,18 +843,15 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
@java.lang.Override
public Builder clear() {
super.clear();
+ bitField0_ = 0;
name_ = "";
-
tags_ = com.google.protobuf.LazyStringArrayList.EMPTY;
- bitField0_ = (bitField0_ & ~0x00000001);
+ bitField0_ = (bitField0_ & ~0x00000002);
displayName_ = "";
-
notes_ = "";
-
- if (testConfigBuilder_ == null) {
- testConfig_ = null;
- } else {
- testConfig_ = null;
+ testConfig_ = null;
+ if (testConfigBuilder_ != null) {
+ testConfigBuilder_.dispose();
testConfigBuilder_ = null;
}
if (testCaseConversationTurnsBuilder_ == null) {
@@ -845,17 +860,15 @@ public Builder clear() {
testCaseConversationTurns_ = null;
testCaseConversationTurnsBuilder_.clear();
}
- bitField0_ = (bitField0_ & ~0x00000002);
- if (creationTimeBuilder_ == null) {
- creationTime_ = null;
- } else {
- creationTime_ = null;
+ bitField0_ = (bitField0_ & ~0x00000020);
+ creationTime_ = null;
+ if (creationTimeBuilder_ != null) {
+ creationTimeBuilder_.dispose();
creationTimeBuilder_ = null;
}
- if (lastTestResultBuilder_ == null) {
- lastTestResult_ = null;
- } else {
- lastTestResult_ = null;
+ lastTestResult_ = null;
+ if (lastTestResultBuilder_ != null) {
+ lastTestResultBuilder_.dispose();
lastTestResultBuilder_ = null;
}
return this;
@@ -885,42 +898,54 @@ public com.google.cloud.dialogflow.cx.v3.TestCase build() {
public com.google.cloud.dialogflow.cx.v3.TestCase buildPartial() {
com.google.cloud.dialogflow.cx.v3.TestCase result =
new com.google.cloud.dialogflow.cx.v3.TestCase(this);
- int from_bitField0_ = bitField0_;
- result.name_ = name_;
- if (((bitField0_ & 0x00000001) != 0)) {
+ buildPartialRepeatedFields(result);
+ if (bitField0_ != 0) {
+ buildPartial0(result);
+ }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartialRepeatedFields(com.google.cloud.dialogflow.cx.v3.TestCase result) {
+ if (((bitField0_ & 0x00000002) != 0)) {
tags_ = tags_.getUnmodifiableView();
- bitField0_ = (bitField0_ & ~0x00000001);
+ bitField0_ = (bitField0_ & ~0x00000002);
}
result.tags_ = tags_;
- result.displayName_ = displayName_;
- result.notes_ = notes_;
- if (testConfigBuilder_ == null) {
- result.testConfig_ = testConfig_;
- } else {
- result.testConfig_ = testConfigBuilder_.build();
- }
if (testCaseConversationTurnsBuilder_ == null) {
- if (((bitField0_ & 0x00000002) != 0)) {
+ if (((bitField0_ & 0x00000020) != 0)) {
testCaseConversationTurns_ =
java.util.Collections.unmodifiableList(testCaseConversationTurns_);
- bitField0_ = (bitField0_ & ~0x00000002);
+ bitField0_ = (bitField0_ & ~0x00000020);
}
result.testCaseConversationTurns_ = testCaseConversationTurns_;
} else {
result.testCaseConversationTurns_ = testCaseConversationTurnsBuilder_.build();
}
- if (creationTimeBuilder_ == null) {
- result.creationTime_ = creationTime_;
- } else {
- result.creationTime_ = creationTimeBuilder_.build();
+ }
+
+ private void buildPartial0(com.google.cloud.dialogflow.cx.v3.TestCase result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.name_ = name_;
}
- if (lastTestResultBuilder_ == null) {
- result.lastTestResult_ = lastTestResult_;
- } else {
- result.lastTestResult_ = lastTestResultBuilder_.build();
+ if (((from_bitField0_ & 0x00000004) != 0)) {
+ result.displayName_ = displayName_;
+ }
+ if (((from_bitField0_ & 0x00000008) != 0)) {
+ result.notes_ = notes_;
+ }
+ if (((from_bitField0_ & 0x00000010) != 0)) {
+ result.testConfig_ = testConfigBuilder_ == null ? testConfig_ : testConfigBuilder_.build();
+ }
+ if (((from_bitField0_ & 0x00000040) != 0)) {
+ result.creationTime_ =
+ creationTimeBuilder_ == null ? creationTime_ : creationTimeBuilder_.build();
+ }
+ if (((from_bitField0_ & 0x00000080) != 0)) {
+ result.lastTestResult_ =
+ lastTestResultBuilder_ == null ? lastTestResult_ : lastTestResultBuilder_.build();
}
- onBuilt();
- return result;
}
@java.lang.Override
@@ -970,12 +995,13 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.TestCase other) {
if (other == com.google.cloud.dialogflow.cx.v3.TestCase.getDefaultInstance()) return this;
if (!other.getName().isEmpty()) {
name_ = other.name_;
+ bitField0_ |= 0x00000001;
onChanged();
}
if (!other.tags_.isEmpty()) {
if (tags_.isEmpty()) {
tags_ = other.tags_;
- bitField0_ = (bitField0_ & ~0x00000001);
+ bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureTagsIsMutable();
tags_.addAll(other.tags_);
@@ -984,10 +1010,12 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.TestCase other) {
}
if (!other.getDisplayName().isEmpty()) {
displayName_ = other.displayName_;
+ bitField0_ |= 0x00000004;
onChanged();
}
if (!other.getNotes().isEmpty()) {
notes_ = other.notes_;
+ bitField0_ |= 0x00000008;
onChanged();
}
if (other.hasTestConfig()) {
@@ -997,7 +1025,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.TestCase other) {
if (!other.testCaseConversationTurns_.isEmpty()) {
if (testCaseConversationTurns_.isEmpty()) {
testCaseConversationTurns_ = other.testCaseConversationTurns_;
- bitField0_ = (bitField0_ & ~0x00000002);
+ bitField0_ = (bitField0_ & ~0x00000020);
} else {
ensureTestCaseConversationTurnsIsMutable();
testCaseConversationTurns_.addAll(other.testCaseConversationTurns_);
@@ -1010,7 +1038,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.TestCase other) {
testCaseConversationTurnsBuilder_.dispose();
testCaseConversationTurnsBuilder_ = null;
testCaseConversationTurns_ = other.testCaseConversationTurns_;
- bitField0_ = (bitField0_ & ~0x00000002);
+ bitField0_ = (bitField0_ & ~0x00000020);
testCaseConversationTurnsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
? getTestCaseConversationTurnsFieldBuilder()
@@ -1055,7 +1083,7 @@ public Builder mergeFrom(
case 10:
{
name_ = input.readStringRequireUtf8();
-
+ bitField0_ |= 0x00000001;
break;
} // case 10
case 18:
@@ -1068,13 +1096,13 @@ public Builder mergeFrom(
case 26:
{
displayName_ = input.readStringRequireUtf8();
-
+ bitField0_ |= 0x00000004;
break;
} // case 26
case 34:
{
notes_ = input.readStringRequireUtf8();
-
+ bitField0_ |= 0x00000008;
break;
} // case 34
case 42:
@@ -1094,19 +1122,19 @@ public Builder mergeFrom(
case 82:
{
input.readMessage(getCreationTimeFieldBuilder().getBuilder(), extensionRegistry);
-
+ bitField0_ |= 0x00000040;
break;
} // case 82
case 98:
{
input.readMessage(getLastTestResultFieldBuilder().getBuilder(), extensionRegistry);
-
+ bitField0_ |= 0x00000080;
break;
} // case 98
case 106:
{
input.readMessage(getTestConfigFieldBuilder().getBuilder(), extensionRegistry);
-
+ bitField0_ |= 0x00000010;
break;
} // case 106
default:
@@ -1134,8 +1162,9 @@ public Builder mergeFrom(
*
*
* The unique identifier of the test case.
- * [TestCases.CreateTestCase][google.cloud.dialogflow.cx.v3.TestCases.CreateTestCase] will populate the name automatically.
- * Otherwise use format: `projects/<Project ID>/locations/<LocationID>/agents/
+ * [TestCases.CreateTestCase][google.cloud.dialogflow.cx.v3.TestCases.CreateTestCase]
+ * will populate the name automatically. Otherwise use format:
+ * `projects/<Project ID>/locations/<LocationID>/agents/
* <AgentID>/testCases/<TestCase ID>`.
*
*
@@ -1159,8 +1188,9 @@ public java.lang.String getName() {
*
*
* The unique identifier of the test case.
- * [TestCases.CreateTestCase][google.cloud.dialogflow.cx.v3.TestCases.CreateTestCase] will populate the name automatically.
- * Otherwise use format: `projects/<Project ID>/locations/<LocationID>/agents/
+ * [TestCases.CreateTestCase][google.cloud.dialogflow.cx.v3.TestCases.CreateTestCase]
+ * will populate the name automatically. Otherwise use format:
+ * `projects/<Project ID>/locations/<LocationID>/agents/
* <AgentID>/testCases/<TestCase ID>`.
*
*
@@ -1184,8 +1214,9 @@ public com.google.protobuf.ByteString getNameBytes() {
*
*
* The unique identifier of the test case.
- * [TestCases.CreateTestCase][google.cloud.dialogflow.cx.v3.TestCases.CreateTestCase] will populate the name automatically.
- * Otherwise use format: `projects/<Project ID>/locations/<LocationID>/agents/
+ * [TestCases.CreateTestCase][google.cloud.dialogflow.cx.v3.TestCases.CreateTestCase]
+ * will populate the name automatically. Otherwise use format:
+ * `projects/<Project ID>/locations/<LocationID>/agents/
* <AgentID>/testCases/<TestCase ID>`.
*
*
@@ -1198,8 +1229,8 @@ public Builder setName(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
-
name_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -1208,8 +1239,9 @@ public Builder setName(java.lang.String value) {
*
*
* The unique identifier of the test case.
- * [TestCases.CreateTestCase][google.cloud.dialogflow.cx.v3.TestCases.CreateTestCase] will populate the name automatically.
- * Otherwise use format: `projects/<Project ID>/locations/<LocationID>/agents/
+ * [TestCases.CreateTestCase][google.cloud.dialogflow.cx.v3.TestCases.CreateTestCase]
+ * will populate the name automatically. Otherwise use format:
+ * `projects/<Project ID>/locations/<LocationID>/agents/
* <AgentID>/testCases/<TestCase ID>`.
*
*
@@ -1218,8 +1250,8 @@ public Builder setName(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearName() {
-
name_ = getDefaultInstance().getName();
+ bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
@@ -1228,8 +1260,9 @@ public Builder clearName() {
*
*
* The unique identifier of the test case.
- * [TestCases.CreateTestCase][google.cloud.dialogflow.cx.v3.TestCases.CreateTestCase] will populate the name automatically.
- * Otherwise use format: `projects/<Project ID>/locations/<LocationID>/agents/
+ * [TestCases.CreateTestCase][google.cloud.dialogflow.cx.v3.TestCases.CreateTestCase]
+ * will populate the name automatically. Otherwise use format:
+ * `projects/<Project ID>/locations/<LocationID>/agents/
* <AgentID>/testCases/<TestCase ID>`.
*
*
@@ -1243,8 +1276,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
-
name_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -1253,9 +1286,9 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureTagsIsMutable() {
- if (!((bitField0_ & 0x00000001) != 0)) {
+ if (!((bitField0_ & 0x00000002) != 0)) {
tags_ = new com.google.protobuf.LazyStringArrayList(tags_);
- bitField0_ |= 0x00000001;
+ bitField0_ |= 0x00000002;
}
}
/**
@@ -1406,7 +1439,7 @@ public Builder addAllTags(java.lang.Iterable values) {
*/
public Builder clearTags() {
tags_ = com.google.protobuf.LazyStringArrayList.EMPTY;
- bitField0_ = (bitField0_ & ~0x00000001);
+ bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
@@ -1440,8 +1473,8 @@ public Builder addTagsBytes(com.google.protobuf.ByteString value) {
*
*
*
- * Required. The human-readable name of the test case, unique within the agent. Limit of
- * 200 characters.
+ * Required. The human-readable name of the test case, unique within the
+ * agent. Limit of 200 characters.
*
*
* string display_name = 3 [(.google.api.field_behavior) = REQUIRED];
@@ -1463,8 +1496,8 @@ public java.lang.String getDisplayName() {
*
*
*
- * Required. The human-readable name of the test case, unique within the agent. Limit of
- * 200 characters.
+ * Required. The human-readable name of the test case, unique within the
+ * agent. Limit of 200 characters.
*
*
* string display_name = 3 [(.google.api.field_behavior) = REQUIRED];
@@ -1486,8 +1519,8 @@ public com.google.protobuf.ByteString getDisplayNameBytes() {
*
*
*
- * Required. The human-readable name of the test case, unique within the agent. Limit of
- * 200 characters.
+ * Required. The human-readable name of the test case, unique within the
+ * agent. Limit of 200 characters.
*
*
* string display_name = 3 [(.google.api.field_behavior) = REQUIRED];
@@ -1499,8 +1532,8 @@ public Builder setDisplayName(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
-
displayName_ = value;
+ bitField0_ |= 0x00000004;
onChanged();
return this;
}
@@ -1508,8 +1541,8 @@ public Builder setDisplayName(java.lang.String value) {
*
*
*
- * Required. The human-readable name of the test case, unique within the agent. Limit of
- * 200 characters.
+ * Required. The human-readable name of the test case, unique within the
+ * agent. Limit of 200 characters.
*
*
* string display_name = 3 [(.google.api.field_behavior) = REQUIRED];
@@ -1517,8 +1550,8 @@ public Builder setDisplayName(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearDisplayName() {
-
displayName_ = getDefaultInstance().getDisplayName();
+ bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
@@ -1526,8 +1559,8 @@ public Builder clearDisplayName() {
*
*
*
- * Required. The human-readable name of the test case, unique within the agent. Limit of
- * 200 characters.
+ * Required. The human-readable name of the test case, unique within the
+ * agent. Limit of 200 characters.
*
*
* string display_name = 3 [(.google.api.field_behavior) = REQUIRED];
@@ -1540,8 +1573,8 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
-
displayName_ = value;
+ bitField0_ |= 0x00000004;
onChanged();
return this;
}
@@ -1607,8 +1640,8 @@ public Builder setNotes(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
-
notes_ = value;
+ bitField0_ |= 0x00000008;
onChanged();
return this;
}
@@ -1624,8 +1657,8 @@ public Builder setNotes(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearNotes() {
-
notes_ = getDefaultInstance().getNotes();
+ bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
return this;
}
@@ -1646,8 +1679,8 @@ public Builder setNotesBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
-
notes_ = value;
+ bitField0_ |= 0x00000008;
onChanged();
return this;
}
@@ -1670,7 +1703,7 @@ public Builder setNotesBytes(com.google.protobuf.ByteString value) {
* @return Whether the testConfig field is set.
*/
public boolean hasTestConfig() {
- return testConfigBuilder_ != null || testConfig_ != null;
+ return ((bitField0_ & 0x00000010) != 0);
}
/**
*
@@ -1707,11 +1740,11 @@ public Builder setTestConfig(com.google.cloud.dialogflow.cx.v3.TestConfig value)
throw new NullPointerException();
}
testConfig_ = value;
- onChanged();
} else {
testConfigBuilder_.setMessage(value);
}
-
+ bitField0_ |= 0x00000010;
+ onChanged();
return this;
}
/**
@@ -1727,11 +1760,11 @@ public Builder setTestConfig(
com.google.cloud.dialogflow.cx.v3.TestConfig.Builder builderForValue) {
if (testConfigBuilder_ == null) {
testConfig_ = builderForValue.build();
- onChanged();
} else {
testConfigBuilder_.setMessage(builderForValue.build());
}
-
+ bitField0_ |= 0x00000010;
+ onChanged();
return this;
}
/**
@@ -1745,19 +1778,18 @@ public Builder setTestConfig(
*/
public Builder mergeTestConfig(com.google.cloud.dialogflow.cx.v3.TestConfig value) {
if (testConfigBuilder_ == null) {
- if (testConfig_ != null) {
- testConfig_ =
- com.google.cloud.dialogflow.cx.v3.TestConfig.newBuilder(testConfig_)
- .mergeFrom(value)
- .buildPartial();
+ if (((bitField0_ & 0x00000010) != 0)
+ && testConfig_ != null
+ && testConfig_ != com.google.cloud.dialogflow.cx.v3.TestConfig.getDefaultInstance()) {
+ getTestConfigBuilder().mergeFrom(value);
} else {
testConfig_ = value;
}
- onChanged();
} else {
testConfigBuilder_.mergeFrom(value);
}
-
+ bitField0_ |= 0x00000010;
+ onChanged();
return this;
}
/**
@@ -1770,14 +1802,13 @@ public Builder mergeTestConfig(com.google.cloud.dialogflow.cx.v3.TestConfig valu
* .google.cloud.dialogflow.cx.v3.TestConfig test_config = 13;
*/
public Builder clearTestConfig() {
- if (testConfigBuilder_ == null) {
- testConfig_ = null;
- onChanged();
- } else {
- testConfig_ = null;
+ bitField0_ = (bitField0_ & ~0x00000010);
+ testConfig_ = null;
+ if (testConfigBuilder_ != null) {
+ testConfigBuilder_.dispose();
testConfigBuilder_ = null;
}
-
+ onChanged();
return this;
}
/**
@@ -1790,7 +1821,7 @@ public Builder clearTestConfig() {
* .google.cloud.dialogflow.cx.v3.TestConfig test_config = 13;
*/
public com.google.cloud.dialogflow.cx.v3.TestConfig.Builder getTestConfigBuilder() {
-
+ bitField0_ |= 0x00000010;
onChanged();
return getTestConfigFieldBuilder().getBuilder();
}
@@ -1842,11 +1873,11 @@ public com.google.cloud.dialogflow.cx.v3.TestConfigOrBuilder getTestConfigOrBuil
testCaseConversationTurns_ = java.util.Collections.emptyList();
private void ensureTestCaseConversationTurnsIsMutable() {
- if (!((bitField0_ & 0x00000002) != 0)) {
+ if (!((bitField0_ & 0x00000020) != 0)) {
testCaseConversationTurns_ =
new java.util.ArrayList(
testCaseConversationTurns_);
- bitField0_ |= 0x00000002;
+ bitField0_ |= 0x00000020;
}
}
@@ -2111,7 +2142,7 @@ public Builder addAllTestCaseConversationTurns(
public Builder clearTestCaseConversationTurns() {
if (testCaseConversationTurnsBuilder_ == null) {
testCaseConversationTurns_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000002);
+ bitField0_ = (bitField0_ & ~0x00000020);
onChanged();
} else {
testCaseConversationTurnsBuilder_.clear();
@@ -2267,7 +2298,7 @@ public Builder removeTestCaseConversationTurns(int index) {
com.google.cloud.dialogflow.cx.v3.ConversationTurn.Builder,
com.google.cloud.dialogflow.cx.v3.ConversationTurnOrBuilder>(
testCaseConversationTurns_,
- ((bitField0_ & 0x00000002) != 0),
+ ((bitField0_ & 0x00000020) != 0),
getParentForChildren(),
isClean());
testCaseConversationTurns_ = null;
@@ -2295,7 +2326,7 @@ public Builder removeTestCaseConversationTurns(int index) {
* @return Whether the creationTime field is set.
*/
public boolean hasCreationTime() {
- return creationTimeBuilder_ != null || creationTime_ != null;
+ return ((bitField0_ & 0x00000040) != 0);
}
/**
*
@@ -2336,11 +2367,11 @@ public Builder setCreationTime(com.google.protobuf.Timestamp value) {
throw new NullPointerException();
}
creationTime_ = value;
- onChanged();
} else {
creationTimeBuilder_.setMessage(value);
}
-
+ bitField0_ |= 0x00000040;
+ onChanged();
return this;
}
/**
@@ -2357,11 +2388,11 @@ public Builder setCreationTime(com.google.protobuf.Timestamp value) {
public Builder setCreationTime(com.google.protobuf.Timestamp.Builder builderForValue) {
if (creationTimeBuilder_ == null) {
creationTime_ = builderForValue.build();
- onChanged();
} else {
creationTimeBuilder_.setMessage(builderForValue.build());
}
-
+ bitField0_ |= 0x00000040;
+ onChanged();
return this;
}
/**
@@ -2377,19 +2408,18 @@ public Builder setCreationTime(com.google.protobuf.Timestamp.Builder builderForV
*/
public Builder mergeCreationTime(com.google.protobuf.Timestamp value) {
if (creationTimeBuilder_ == null) {
- if (creationTime_ != null) {
- creationTime_ =
- com.google.protobuf.Timestamp.newBuilder(creationTime_)
- .mergeFrom(value)
- .buildPartial();
+ if (((bitField0_ & 0x00000040) != 0)
+ && creationTime_ != null
+ && creationTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
+ getCreationTimeBuilder().mergeFrom(value);
} else {
creationTime_ = value;
}
- onChanged();
} else {
creationTimeBuilder_.mergeFrom(value);
}
-
+ bitField0_ |= 0x00000040;
+ onChanged();
return this;
}
/**
@@ -2404,14 +2434,13 @@ public Builder mergeCreationTime(com.google.protobuf.Timestamp value) {
*
*/
public Builder clearCreationTime() {
- if (creationTimeBuilder_ == null) {
- creationTime_ = null;
- onChanged();
- } else {
- creationTime_ = null;
+ bitField0_ = (bitField0_ & ~0x00000040);
+ creationTime_ = null;
+ if (creationTimeBuilder_ != null) {
+ creationTimeBuilder_.dispose();
creationTimeBuilder_ = null;
}
-
+ onChanged();
return this;
}
/**
@@ -2426,7 +2455,7 @@ public Builder clearCreationTime() {
*
*/
public com.google.protobuf.Timestamp.Builder getCreationTimeBuilder() {
-
+ bitField0_ |= 0x00000040;
onChanged();
return getCreationTimeFieldBuilder().getBuilder();
}
@@ -2496,7 +2525,7 @@ public com.google.protobuf.TimestampOrBuilder getCreationTimeOrBuilder() {
* @return Whether the lastTestResult field is set.
*/
public boolean hasLastTestResult() {
- return lastTestResultBuilder_ != null || lastTestResult_ != null;
+ return ((bitField0_ & 0x00000080) != 0);
}
/**
*
@@ -2533,11 +2562,11 @@ public Builder setLastTestResult(com.google.cloud.dialogflow.cx.v3.TestCaseResul
throw new NullPointerException();
}
lastTestResult_ = value;
- onChanged();
} else {
lastTestResultBuilder_.setMessage(value);
}
-
+ bitField0_ |= 0x00000080;
+ onChanged();
return this;
}
/**
@@ -2553,11 +2582,11 @@ public Builder setLastTestResult(
com.google.cloud.dialogflow.cx.v3.TestCaseResult.Builder builderForValue) {
if (lastTestResultBuilder_ == null) {
lastTestResult_ = builderForValue.build();
- onChanged();
} else {
lastTestResultBuilder_.setMessage(builderForValue.build());
}
-
+ bitField0_ |= 0x00000080;
+ onChanged();
return this;
}
/**
@@ -2571,19 +2600,19 @@ public Builder setLastTestResult(
*/
public Builder mergeLastTestResult(com.google.cloud.dialogflow.cx.v3.TestCaseResult value) {
if (lastTestResultBuilder_ == null) {
- if (lastTestResult_ != null) {
- lastTestResult_ =
- com.google.cloud.dialogflow.cx.v3.TestCaseResult.newBuilder(lastTestResult_)
- .mergeFrom(value)
- .buildPartial();
+ if (((bitField0_ & 0x00000080) != 0)
+ && lastTestResult_ != null
+ && lastTestResult_
+ != com.google.cloud.dialogflow.cx.v3.TestCaseResult.getDefaultInstance()) {
+ getLastTestResultBuilder().mergeFrom(value);
} else {
lastTestResult_ = value;
}
- onChanged();
} else {
lastTestResultBuilder_.mergeFrom(value);
}
-
+ bitField0_ |= 0x00000080;
+ onChanged();
return this;
}
/**
@@ -2596,14 +2625,13 @@ public Builder mergeLastTestResult(com.google.cloud.dialogflow.cx.v3.TestCaseRes
* .google.cloud.dialogflow.cx.v3.TestCaseResult last_test_result = 12;
*/
public Builder clearLastTestResult() {
- if (lastTestResultBuilder_ == null) {
- lastTestResult_ = null;
- onChanged();
- } else {
- lastTestResult_ = null;
+ bitField0_ = (bitField0_ & ~0x00000080);
+ lastTestResult_ = null;
+ if (lastTestResultBuilder_ != null) {
+ lastTestResultBuilder_.dispose();
lastTestResultBuilder_ = null;
}
-
+ onChanged();
return this;
}
/**
@@ -2616,7 +2644,7 @@ public Builder clearLastTestResult() {
* .google.cloud.dialogflow.cx.v3.TestCaseResult last_test_result = 12;
*/
public com.google.cloud.dialogflow.cx.v3.TestCaseResult.Builder getLastTestResultBuilder() {
-
+ bitField0_ |= 0x00000080;
onChanged();
return getLastTestResultFieldBuilder().getBuilder();
}
diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TestCaseError.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TestCaseError.java
index 25bfe8061abf..3d5ed494fa13 100644
--- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TestCaseError.java
+++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TestCaseError.java
@@ -110,7 +110,9 @@ public com.google.cloud.dialogflow.cx.v3.TestCase getTestCase() {
*/
@java.lang.Override
public com.google.cloud.dialogflow.cx.v3.TestCaseOrBuilder getTestCaseOrBuilder() {
- return getTestCase();
+ return testCase_ == null
+ ? com.google.cloud.dialogflow.cx.v3.TestCase.getDefaultInstance()
+ : testCase_;
}
public static final int STATUS_FIELD_NUMBER = 2;
@@ -156,7 +158,7 @@ public com.google.rpc.Status getStatus() {
*/
@java.lang.Override
public com.google.rpc.StatusOrBuilder getStatusOrBuilder() {
- return getStatus();
+ return status_ == null ? com.google.rpc.Status.getDefaultInstance() : status_;
}
private byte memoizedIsInitialized = -1;
@@ -375,16 +377,15 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
@java.lang.Override
public Builder clear() {
super.clear();
- if (testCaseBuilder_ == null) {
- testCase_ = null;
- } else {
- testCase_ = null;
+ bitField0_ = 0;
+ testCase_ = null;
+ if (testCaseBuilder_ != null) {
+ testCaseBuilder_.dispose();
testCaseBuilder_ = null;
}
- if (statusBuilder_ == null) {
- status_ = null;
- } else {
- status_ = null;
+ status_ = null;
+ if (statusBuilder_ != null) {
+ statusBuilder_.dispose();
statusBuilder_ = null;
}
return this;
@@ -414,20 +415,23 @@ public com.google.cloud.dialogflow.cx.v3.TestCaseError build() {
public com.google.cloud.dialogflow.cx.v3.TestCaseError buildPartial() {
com.google.cloud.dialogflow.cx.v3.TestCaseError result =
new com.google.cloud.dialogflow.cx.v3.TestCaseError(this);
- if (testCaseBuilder_ == null) {
- result.testCase_ = testCase_;
- } else {
- result.testCase_ = testCaseBuilder_.build();
- }
- if (statusBuilder_ == null) {
- result.status_ = status_;
- } else {
- result.status_ = statusBuilder_.build();
+ if (bitField0_ != 0) {
+ buildPartial0(result);
}
onBuilt();
return result;
}
+ private void buildPartial0(com.google.cloud.dialogflow.cx.v3.TestCaseError result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.testCase_ = testCaseBuilder_ == null ? testCase_ : testCaseBuilder_.build();
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.status_ = statusBuilder_ == null ? status_ : statusBuilder_.build();
+ }
+ }
+
@java.lang.Override
public Builder clone() {
return super.clone();
@@ -509,13 +513,13 @@ public Builder mergeFrom(
case 10:
{
input.readMessage(getTestCaseFieldBuilder().getBuilder(), extensionRegistry);
-
+ bitField0_ |= 0x00000001;
break;
} // case 10
case 18:
{
input.readMessage(getStatusFieldBuilder().getBuilder(), extensionRegistry);
-
+ bitField0_ |= 0x00000002;
break;
} // case 18
default:
@@ -535,6 +539,8 @@ public Builder mergeFrom(
return this;
}
+ private int bitField0_;
+
private com.google.cloud.dialogflow.cx.v3.TestCase testCase_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.dialogflow.cx.v3.TestCase,
@@ -553,7 +559,7 @@ public Builder mergeFrom(
* @return Whether the testCase field is set.
*/
public boolean hasTestCase() {
- return testCaseBuilder_ != null || testCase_ != null;
+ return ((bitField0_ & 0x00000001) != 0);
}
/**
*
@@ -590,11 +596,11 @@ public Builder setTestCase(com.google.cloud.dialogflow.cx.v3.TestCase value) {
throw new NullPointerException();
}
testCase_ = value;
- onChanged();
} else {
testCaseBuilder_.setMessage(value);
}
-
+ bitField0_ |= 0x00000001;
+ onChanged();
return this;
}
/**
@@ -609,11 +615,11 @@ public Builder setTestCase(com.google.cloud.dialogflow.cx.v3.TestCase value) {
public Builder setTestCase(com.google.cloud.dialogflow.cx.v3.TestCase.Builder builderForValue) {
if (testCaseBuilder_ == null) {
testCase_ = builderForValue.build();
- onChanged();
} else {
testCaseBuilder_.setMessage(builderForValue.build());
}
-
+ bitField0_ |= 0x00000001;
+ onChanged();
return this;
}
/**
@@ -627,19 +633,18 @@ public Builder setTestCase(com.google.cloud.dialogflow.cx.v3.TestCase.Builder bu
*/
public Builder mergeTestCase(com.google.cloud.dialogflow.cx.v3.TestCase value) {
if (testCaseBuilder_ == null) {
- if (testCase_ != null) {
- testCase_ =
- com.google.cloud.dialogflow.cx.v3.TestCase.newBuilder(testCase_)
- .mergeFrom(value)
- .buildPartial();
+ if (((bitField0_ & 0x00000001) != 0)
+ && testCase_ != null
+ && testCase_ != com.google.cloud.dialogflow.cx.v3.TestCase.getDefaultInstance()) {
+ getTestCaseBuilder().mergeFrom(value);
} else {
testCase_ = value;
}
- onChanged();
} else {
testCaseBuilder_.mergeFrom(value);
}
-
+ bitField0_ |= 0x00000001;
+ onChanged();
return this;
}
/**
@@ -652,14 +657,13 @@ public Builder mergeTestCase(com.google.cloud.dialogflow.cx.v3.TestCase value) {
* .google.cloud.dialogflow.cx.v3.TestCase test_case = 1;
*/
public Builder clearTestCase() {
- if (testCaseBuilder_ == null) {
- testCase_ = null;
- onChanged();
- } else {
- testCase_ = null;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ testCase_ = null;
+ if (testCaseBuilder_ != null) {
+ testCaseBuilder_.dispose();
testCaseBuilder_ = null;
}
-
+ onChanged();
return this;
}
/**
@@ -672,7 +676,7 @@ public Builder clearTestCase() {
* .google.cloud.dialogflow.cx.v3.TestCase test_case = 1;
*/
public com.google.cloud.dialogflow.cx.v3.TestCase.Builder getTestCaseBuilder() {
-
+ bitField0_ |= 0x00000001;
onChanged();
return getTestCaseFieldBuilder().getBuilder();
}
@@ -736,7 +740,7 @@ public com.google.cloud.dialogflow.cx.v3.TestCaseOrBuilder getTestCaseOrBuilder(
* @return Whether the status field is set.
*/
public boolean hasStatus() {
- return statusBuilder_ != null || status_ != null;
+ return ((bitField0_ & 0x00000002) != 0);
}
/**
*
@@ -771,11 +775,11 @@ public Builder setStatus(com.google.rpc.Status value) {
throw new NullPointerException();
}
status_ = value;
- onChanged();
} else {
statusBuilder_.setMessage(value);
}
-
+ bitField0_ |= 0x00000002;
+ onChanged();
return this;
}
/**
@@ -790,11 +794,11 @@ public Builder setStatus(com.google.rpc.Status value) {
public Builder setStatus(com.google.rpc.Status.Builder builderForValue) {
if (statusBuilder_ == null) {
status_ = builderForValue.build();
- onChanged();
} else {
statusBuilder_.setMessage(builderForValue.build());
}
-
+ bitField0_ |= 0x00000002;
+ onChanged();
return this;
}
/**
@@ -808,16 +812,18 @@ public Builder setStatus(com.google.rpc.Status.Builder builderForValue) {
*/
public Builder mergeStatus(com.google.rpc.Status value) {
if (statusBuilder_ == null) {
- if (status_ != null) {
- status_ = com.google.rpc.Status.newBuilder(status_).mergeFrom(value).buildPartial();
+ if (((bitField0_ & 0x00000002) != 0)
+ && status_ != null
+ && status_ != com.google.rpc.Status.getDefaultInstance()) {
+ getStatusBuilder().mergeFrom(value);
} else {
status_ = value;
}
- onChanged();
} else {
statusBuilder_.mergeFrom(value);
}
-
+ bitField0_ |= 0x00000002;
+ onChanged();
return this;
}
/**
@@ -830,14 +836,13 @@ public Builder mergeStatus(com.google.rpc.Status value) {
* .google.rpc.Status status = 2;
*/
public Builder clearStatus() {
- if (statusBuilder_ == null) {
- status_ = null;
- onChanged();
- } else {
- status_ = null;
+ bitField0_ = (bitField0_ & ~0x00000002);
+ status_ = null;
+ if (statusBuilder_ != null) {
+ statusBuilder_.dispose();
statusBuilder_ = null;
}
-
+ onChanged();
return this;
}
/**
@@ -850,7 +855,7 @@ public Builder clearStatus() {
* .google.rpc.Status status = 2;
*/
public com.google.rpc.Status.Builder getStatusBuilder() {
-
+ bitField0_ |= 0x00000002;
onChanged();
return getStatusFieldBuilder().getBuilder();
}
diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TestCaseOrBuilder.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TestCaseOrBuilder.java
index 37f92f80c174..2688880c83e6 100644
--- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TestCaseOrBuilder.java
+++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TestCaseOrBuilder.java
@@ -28,8 +28,9 @@ public interface TestCaseOrBuilder
*
*
* The unique identifier of the test case.
- * [TestCases.CreateTestCase][google.cloud.dialogflow.cx.v3.TestCases.CreateTestCase] will populate the name automatically.
- * Otherwise use format: `projects/<Project ID>/locations/<LocationID>/agents/
+ * [TestCases.CreateTestCase][google.cloud.dialogflow.cx.v3.TestCases.CreateTestCase]
+ * will populate the name automatically. Otherwise use format:
+ * `projects/<Project ID>/locations/<LocationID>/agents/
* <AgentID>/testCases/<TestCase ID>`.
*
*
@@ -43,8 +44,9 @@ public interface TestCaseOrBuilder
*
*
* The unique identifier of the test case.
- * [TestCases.CreateTestCase][google.cloud.dialogflow.cx.v3.TestCases.CreateTestCase] will populate the name automatically.
- * Otherwise use format: `projects/<Project ID>/locations/<LocationID>/agents/
+ * [TestCases.CreateTestCase][google.cloud.dialogflow.cx.v3.TestCases.CreateTestCase]
+ * will populate the name automatically. Otherwise use format:
+ * `projects/<Project ID>/locations/<LocationID>/agents/
* <AgentID>/testCases/<TestCase ID>`.
*
*
@@ -117,8 +119,8 @@ public interface TestCaseOrBuilder
*
*
*
- * Required. The human-readable name of the test case, unique within the agent. Limit of
- * 200 characters.
+ * Required. The human-readable name of the test case, unique within the
+ * agent. Limit of 200 characters.
*
*
* string display_name = 3 [(.google.api.field_behavior) = REQUIRED];
@@ -130,8 +132,8 @@ public interface TestCaseOrBuilder
*
*
*
- * Required. The human-readable name of the test case, unique within the agent. Limit of
- * 200 characters.
+ * Required. The human-readable name of the test case, unique within the
+ * agent. Limit of 200 characters.
*
*
* string display_name = 3 [(.google.api.field_behavior) = REQUIRED];
diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TestCaseProto.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TestCaseProto.java
index 54aeb07ea97b..16ed0e3a9362 100644
--- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TestCaseProto.java
+++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TestCaseProto.java
@@ -455,12 +455,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "tCases/*/results/*}\332A\004name\032x\312A\031dialogflo"
+ "w.googleapis.com\322AYhttps://www.googleapi"
+ "s.com/auth/cloud-platform,https://www.go"
- + "ogleapis.com/auth/dialogflowB\301\001\n!com.goo"
+ + "ogleapis.com/auth/dialogflowB\263\001\n!com.goo"
+ "gle.cloud.dialogflow.cx.v3B\rTestCaseProt"
- + "oP\001Z?google.golang.org/genproto/googleap"
- + "is/cloud/dialogflow/cx/v3;cx\370\001\001\242\002\002DF\252\002\035G"
- + "oogle.Cloud.Dialogflow.Cx.V3\352\002!Google::C"
- + "loud::Dialogflow::CX::V3b\006proto3"
+ + "oP\001Z1cloud.google.com/go/dialogflow/cx/a"
+ + "piv3/cxpb;cxpb\370\001\001\242\002\002DF\252\002\035Google.Cloud.Di"
+ + "alogflow.Cx.V3\352\002!Google::Cloud::Dialogfl"
+ + "ow::CX::V3b\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TestCaseResult.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TestCaseResult.java
index ea25030551b9..5b5ab8bce4e2 100644
--- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TestCaseResult.java
+++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TestCaseResult.java
@@ -71,7 +71,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
public static final int NAME_FIELD_NUMBER = 1;
- private volatile java.lang.Object name_;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object name_ = "";
/**
*
*
@@ -124,7 +126,9 @@ public com.google.protobuf.ByteString getNameBytes() {
}
public static final int ENVIRONMENT_FIELD_NUMBER = 2;
- private volatile java.lang.Object environment_;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object environment_ = "";
/**
*
*
@@ -175,6 +179,8 @@ public com.google.protobuf.ByteString getEnvironmentBytes() {
}
public static final int CONVERSATION_TURNS_FIELD_NUMBER = 3;
+
+ @SuppressWarnings("serial")
private java.util.List conversationTurns_;
/**
*
@@ -251,7 +257,7 @@ public com.google.cloud.dialogflow.cx.v3.ConversationTurnOrBuilder getConversati
}
public static final int TEST_RESULT_FIELD_NUMBER = 4;
- private int testResult_;
+ private int testResult_ = 0;
/**
*
*
@@ -280,9 +286,8 @@ public int getTestResultValue() {
*/
@java.lang.Override
public com.google.cloud.dialogflow.cx.v3.TestResult getTestResult() {
- @SuppressWarnings("deprecation")
com.google.cloud.dialogflow.cx.v3.TestResult result =
- com.google.cloud.dialogflow.cx.v3.TestResult.valueOf(testResult_);
+ com.google.cloud.dialogflow.cx.v3.TestResult.forNumber(testResult_);
return result == null ? com.google.cloud.dialogflow.cx.v3.TestResult.UNRECOGNIZED : result;
}
@@ -329,7 +334,7 @@ public com.google.protobuf.Timestamp getTestTime() {
*/
@java.lang.Override
public com.google.protobuf.TimestampOrBuilder getTestTimeOrBuilder() {
- return getTestTime();
+ return testTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : testTime_;
}
private byte memoizedIsInitialized = -1;
@@ -575,23 +580,20 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
@java.lang.Override
public Builder clear() {
super.clear();
+ bitField0_ = 0;
name_ = "";
-
environment_ = "";
-
if (conversationTurnsBuilder_ == null) {
conversationTurns_ = java.util.Collections.emptyList();
} else {
conversationTurns_ = null;
conversationTurnsBuilder_.clear();
}
- bitField0_ = (bitField0_ & ~0x00000001);
+ bitField0_ = (bitField0_ & ~0x00000004);
testResult_ = 0;
-
- if (testTimeBuilder_ == null) {
- testTime_ = null;
- } else {
- testTime_ = null;
+ testTime_ = null;
+ if (testTimeBuilder_ != null) {
+ testTimeBuilder_.dispose();
testTimeBuilder_ = null;
}
return this;
@@ -621,26 +623,41 @@ public com.google.cloud.dialogflow.cx.v3.TestCaseResult build() {
public com.google.cloud.dialogflow.cx.v3.TestCaseResult buildPartial() {
com.google.cloud.dialogflow.cx.v3.TestCaseResult result =
new com.google.cloud.dialogflow.cx.v3.TestCaseResult(this);
- int from_bitField0_ = bitField0_;
- result.name_ = name_;
- result.environment_ = environment_;
+ buildPartialRepeatedFields(result);
+ if (bitField0_ != 0) {
+ buildPartial0(result);
+ }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartialRepeatedFields(
+ com.google.cloud.dialogflow.cx.v3.TestCaseResult result) {
if (conversationTurnsBuilder_ == null) {
- if (((bitField0_ & 0x00000001) != 0)) {
+ if (((bitField0_ & 0x00000004) != 0)) {
conversationTurns_ = java.util.Collections.unmodifiableList(conversationTurns_);
- bitField0_ = (bitField0_ & ~0x00000001);
+ bitField0_ = (bitField0_ & ~0x00000004);
}
result.conversationTurns_ = conversationTurns_;
} else {
result.conversationTurns_ = conversationTurnsBuilder_.build();
}
- result.testResult_ = testResult_;
- if (testTimeBuilder_ == null) {
- result.testTime_ = testTime_;
- } else {
- result.testTime_ = testTimeBuilder_.build();
+ }
+
+ private void buildPartial0(com.google.cloud.dialogflow.cx.v3.TestCaseResult result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.name_ = name_;
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.environment_ = environment_;
+ }
+ if (((from_bitField0_ & 0x00000008) != 0)) {
+ result.testResult_ = testResult_;
+ }
+ if (((from_bitField0_ & 0x00000010) != 0)) {
+ result.testTime_ = testTimeBuilder_ == null ? testTime_ : testTimeBuilder_.build();
}
- onBuilt();
- return result;
}
@java.lang.Override
@@ -691,17 +708,19 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.TestCaseResult other)
return this;
if (!other.getName().isEmpty()) {
name_ = other.name_;
+ bitField0_ |= 0x00000001;
onChanged();
}
if (!other.getEnvironment().isEmpty()) {
environment_ = other.environment_;
+ bitField0_ |= 0x00000002;
onChanged();
}
if (conversationTurnsBuilder_ == null) {
if (!other.conversationTurns_.isEmpty()) {
if (conversationTurns_.isEmpty()) {
conversationTurns_ = other.conversationTurns_;
- bitField0_ = (bitField0_ & ~0x00000001);
+ bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensureConversationTurnsIsMutable();
conversationTurns_.addAll(other.conversationTurns_);
@@ -714,7 +733,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.TestCaseResult other)
conversationTurnsBuilder_.dispose();
conversationTurnsBuilder_ = null;
conversationTurns_ = other.conversationTurns_;
- bitField0_ = (bitField0_ & ~0x00000001);
+ bitField0_ = (bitField0_ & ~0x00000004);
conversationTurnsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
? getConversationTurnsFieldBuilder()
@@ -759,13 +778,13 @@ public Builder mergeFrom(
case 10:
{
name_ = input.readStringRequireUtf8();
-
+ bitField0_ |= 0x00000001;
break;
} // case 10
case 18:
{
environment_ = input.readStringRequireUtf8();
-
+ bitField0_ |= 0x00000002;
break;
} // case 18
case 26:
@@ -785,13 +804,13 @@ public Builder mergeFrom(
case 32:
{
testResult_ = input.readEnum();
-
+ bitField0_ |= 0x00000008;
break;
} // case 32
case 42:
{
input.readMessage(getTestTimeFieldBuilder().getBuilder(), extensionRegistry);
-
+ bitField0_ |= 0x00000010;
break;
} // case 42
default:
@@ -880,8 +899,8 @@ public Builder setName(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
-
name_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -899,8 +918,8 @@ public Builder setName(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearName() {
-
name_ = getDefaultInstance().getName();
+ bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
@@ -923,8 +942,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
-
name_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -993,8 +1012,8 @@ public Builder setEnvironment(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
-
environment_ = value;
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -1011,8 +1030,8 @@ public Builder setEnvironment(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearEnvironment() {
-
environment_ = getDefaultInstance().getEnvironment();
+ bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
@@ -1034,8 +1053,8 @@ public Builder setEnvironmentBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
-
environment_ = value;
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -1044,11 +1063,11 @@ public Builder setEnvironmentBytes(com.google.protobuf.ByteString value) {
java.util.Collections.emptyList();
private void ensureConversationTurnsIsMutable() {
- if (!((bitField0_ & 0x00000001) != 0)) {
+ if (!((bitField0_ & 0x00000004) != 0)) {
conversationTurns_ =
new java.util.ArrayList(
conversationTurns_);
- bitField0_ |= 0x00000001;
+ bitField0_ |= 0x00000004;
}
}
@@ -1278,7 +1297,7 @@ public Builder addAllConversationTurns(
public Builder clearConversationTurns() {
if (conversationTurnsBuilder_ == null) {
conversationTurns_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000001);
+ bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
} else {
conversationTurnsBuilder_.clear();
@@ -1413,7 +1432,7 @@ public com.google.cloud.dialogflow.cx.v3.ConversationTurn.Builder addConversatio
com.google.cloud.dialogflow.cx.v3.ConversationTurn.Builder,
com.google.cloud.dialogflow.cx.v3.ConversationTurnOrBuilder>(
conversationTurns_,
- ((bitField0_ & 0x00000001) != 0),
+ ((bitField0_ & 0x00000004) != 0),
getParentForChildren(),
isClean());
conversationTurns_ = null;
@@ -1450,8 +1469,8 @@ public int getTestResultValue() {
* @return This builder for chaining.
*/
public Builder setTestResultValue(int value) {
-
testResult_ = value;
+ bitField0_ |= 0x00000008;
onChanged();
return this;
}
@@ -1468,9 +1487,8 @@ public Builder setTestResultValue(int value) {
*/
@java.lang.Override
public com.google.cloud.dialogflow.cx.v3.TestResult getTestResult() {
- @SuppressWarnings("deprecation")
com.google.cloud.dialogflow.cx.v3.TestResult result =
- com.google.cloud.dialogflow.cx.v3.TestResult.valueOf(testResult_);
+ com.google.cloud.dialogflow.cx.v3.TestResult.forNumber(testResult_);
return result == null ? com.google.cloud.dialogflow.cx.v3.TestResult.UNRECOGNIZED : result;
}
/**
@@ -1489,7 +1507,7 @@ public Builder setTestResult(com.google.cloud.dialogflow.cx.v3.TestResult value)
if (value == null) {
throw new NullPointerException();
}
-
+ bitField0_ |= 0x00000008;
testResult_ = value.getNumber();
onChanged();
return this;
@@ -1506,7 +1524,7 @@ public Builder setTestResult(com.google.cloud.dialogflow.cx.v3.TestResult value)
* @return This builder for chaining.
*/
public Builder clearTestResult() {
-
+ bitField0_ = (bitField0_ & ~0x00000008);
testResult_ = 0;
onChanged();
return this;
@@ -1530,7 +1548,7 @@ public Builder clearTestResult() {
* @return Whether the testTime field is set.
*/
public boolean hasTestTime() {
- return testTimeBuilder_ != null || testTime_ != null;
+ return ((bitField0_ & 0x00000010) != 0);
}
/**
*
@@ -1565,11 +1583,11 @@ public Builder setTestTime(com.google.protobuf.Timestamp value) {
throw new NullPointerException();
}
testTime_ = value;
- onChanged();
} else {
testTimeBuilder_.setMessage(value);
}
-
+ bitField0_ |= 0x00000010;
+ onChanged();
return this;
}
/**
@@ -1584,11 +1602,11 @@ public Builder setTestTime(com.google.protobuf.Timestamp value) {
public Builder setTestTime(com.google.protobuf.Timestamp.Builder builderForValue) {
if (testTimeBuilder_ == null) {
testTime_ = builderForValue.build();
- onChanged();
} else {
testTimeBuilder_.setMessage(builderForValue.build());
}
-
+ bitField0_ |= 0x00000010;
+ onChanged();
return this;
}
/**
@@ -1602,17 +1620,18 @@ public Builder setTestTime(com.google.protobuf.Timestamp.Builder builderForValue
*/
public Builder mergeTestTime(com.google.protobuf.Timestamp value) {
if (testTimeBuilder_ == null) {
- if (testTime_ != null) {
- testTime_ =
- com.google.protobuf.Timestamp.newBuilder(testTime_).mergeFrom(value).buildPartial();
+ if (((bitField0_ & 0x00000010) != 0)
+ && testTime_ != null
+ && testTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
+ getTestTimeBuilder().mergeFrom(value);
} else {
testTime_ = value;
}
- onChanged();
} else {
testTimeBuilder_.mergeFrom(value);
}
-
+ bitField0_ |= 0x00000010;
+ onChanged();
return this;
}
/**
@@ -1625,14 +1644,13 @@ public Builder mergeTestTime(com.google.protobuf.Timestamp value) {
* .google.protobuf.Timestamp test_time = 5;
*/
public Builder clearTestTime() {
- if (testTimeBuilder_ == null) {
- testTime_ = null;
- onChanged();
- } else {
- testTime_ = null;
+ bitField0_ = (bitField0_ & ~0x00000010);
+ testTime_ = null;
+ if (testTimeBuilder_ != null) {
+ testTimeBuilder_.dispose();
testTimeBuilder_ = null;
}
-
+ onChanged();
return this;
}
/**
@@ -1645,7 +1663,7 @@ public Builder clearTestTime() {
* .google.protobuf.Timestamp test_time = 5;
*/
public com.google.protobuf.Timestamp.Builder getTestTimeBuilder() {
-
+ bitField0_ |= 0x00000010;
onChanged();
return getTestTimeFieldBuilder().getBuilder();
}
diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TestConfig.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TestConfig.java
index efe83b254728..d881c896af5b 100644
--- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TestConfig.java
+++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TestConfig.java
@@ -70,6 +70,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
public static final int TRACKING_PARAMETERS_FIELD_NUMBER = 1;
+
+ @SuppressWarnings("serial")
private com.google.protobuf.LazyStringList trackingParameters_;
/**
*
@@ -131,7 +133,9 @@ public com.google.protobuf.ByteString getTrackingParametersBytes(int index) {
}
public static final int FLOW_FIELD_NUMBER = 2;
- private volatile java.lang.Object flow_;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object flow_ = "";
/**
*
*
@@ -192,7 +196,9 @@ public com.google.protobuf.ByteString getFlowBytes() {
}
public static final int PAGE_FIELD_NUMBER = 3;
- private volatile java.lang.Object page_;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object page_ = "";
/**
*
*
@@ -474,12 +480,11 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
@java.lang.Override
public Builder clear() {
super.clear();
+ bitField0_ = 0;
trackingParameters_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
flow_ = "";
-
page_ = "";
-
return this;
}
@@ -507,16 +512,30 @@ public com.google.cloud.dialogflow.cx.v3.TestConfig build() {
public com.google.cloud.dialogflow.cx.v3.TestConfig buildPartial() {
com.google.cloud.dialogflow.cx.v3.TestConfig result =
new com.google.cloud.dialogflow.cx.v3.TestConfig(this);
- int from_bitField0_ = bitField0_;
+ buildPartialRepeatedFields(result);
+ if (bitField0_ != 0) {
+ buildPartial0(result);
+ }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartialRepeatedFields(com.google.cloud.dialogflow.cx.v3.TestConfig result) {
if (((bitField0_ & 0x00000001) != 0)) {
trackingParameters_ = trackingParameters_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000001);
}
result.trackingParameters_ = trackingParameters_;
- result.flow_ = flow_;
- result.page_ = page_;
- onBuilt();
- return result;
+ }
+
+ private void buildPartial0(com.google.cloud.dialogflow.cx.v3.TestConfig result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.flow_ = flow_;
+ }
+ if (((from_bitField0_ & 0x00000004) != 0)) {
+ result.page_ = page_;
+ }
}
@java.lang.Override
@@ -576,10 +595,12 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.TestConfig other) {
}
if (!other.getFlow().isEmpty()) {
flow_ = other.flow_;
+ bitField0_ |= 0x00000002;
onChanged();
}
if (!other.getPage().isEmpty()) {
page_ = other.page_;
+ bitField0_ |= 0x00000004;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
@@ -618,13 +639,13 @@ public Builder mergeFrom(
case 18:
{
flow_ = input.readStringRequireUtf8();
-
+ bitField0_ |= 0x00000002;
break;
} // case 18
case 26:
{
page_ = input.readStringRequireUtf8();
-
+ bitField0_ |= 0x00000004;
break;
} // case 26
default:
@@ -893,8 +914,8 @@ public Builder setFlow(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
-
flow_ = value;
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -916,8 +937,8 @@ public Builder setFlow(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearFlow() {
-
flow_ = getDefaultInstance().getFlow();
+ bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
@@ -944,8 +965,8 @@ public Builder setFlowBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
-
flow_ = value;
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -1029,8 +1050,8 @@ public Builder setPage(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
-
page_ = value;
+ bitField0_ |= 0x00000004;
onChanged();
return this;
}
@@ -1052,8 +1073,8 @@ public Builder setPage(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearPage() {
-
page_ = getDefaultInstance().getPage();
+ bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
@@ -1080,8 +1101,8 @@ public Builder setPageBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
-
page_ = value;
+ bitField0_ |= 0x00000004;
onChanged();
return this;
}
diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TestError.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TestError.java
index c48e5344bd3f..ce81cd4d524e 100644
--- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TestError.java
+++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TestError.java
@@ -68,7 +68,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
public static final int TEST_CASE_FIELD_NUMBER = 1;
- private volatile java.lang.Object testCase_;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object testCase_ = "";
/**
*
*
@@ -159,7 +161,7 @@ public com.google.rpc.Status getStatus() {
*/
@java.lang.Override
public com.google.rpc.StatusOrBuilder getStatusOrBuilder() {
- return getStatus();
+ return status_ == null ? com.google.rpc.Status.getDefaultInstance() : status_;
}
public static final int TEST_TIME_FIELD_NUMBER = 3;
@@ -205,7 +207,7 @@ public com.google.protobuf.Timestamp getTestTime() {
*/
@java.lang.Override
public com.google.protobuf.TimestampOrBuilder getTestTimeOrBuilder() {
- return getTestTime();
+ return testTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : testTime_;
}
private byte memoizedIsInitialized = -1;
@@ -433,18 +435,16 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
@java.lang.Override
public Builder clear() {
super.clear();
+ bitField0_ = 0;
testCase_ = "";
-
- if (statusBuilder_ == null) {
- status_ = null;
- } else {
- status_ = null;
+ status_ = null;
+ if (statusBuilder_ != null) {
+ statusBuilder_.dispose();
statusBuilder_ = null;
}
- if (testTimeBuilder_ == null) {
- testTime_ = null;
- } else {
- testTime_ = null;
+ testTime_ = null;
+ if (testTimeBuilder_ != null) {
+ testTimeBuilder_.dispose();
testTimeBuilder_ = null;
}
return this;
@@ -474,21 +474,26 @@ public com.google.cloud.dialogflow.cx.v3.TestError build() {
public com.google.cloud.dialogflow.cx.v3.TestError buildPartial() {
com.google.cloud.dialogflow.cx.v3.TestError result =
new com.google.cloud.dialogflow.cx.v3.TestError(this);
- result.testCase_ = testCase_;
- if (statusBuilder_ == null) {
- result.status_ = status_;
- } else {
- result.status_ = statusBuilder_.build();
- }
- if (testTimeBuilder_ == null) {
- result.testTime_ = testTime_;
- } else {
- result.testTime_ = testTimeBuilder_.build();
+ if (bitField0_ != 0) {
+ buildPartial0(result);
}
onBuilt();
return result;
}
+ private void buildPartial0(com.google.cloud.dialogflow.cx.v3.TestError result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.testCase_ = testCase_;
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.status_ = statusBuilder_ == null ? status_ : statusBuilder_.build();
+ }
+ if (((from_bitField0_ & 0x00000004) != 0)) {
+ result.testTime_ = testTimeBuilder_ == null ? testTime_ : testTimeBuilder_.build();
+ }
+ }
+
@java.lang.Override
public Builder clone() {
return super.clone();
@@ -536,6 +541,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.TestError other) {
if (other == com.google.cloud.dialogflow.cx.v3.TestError.getDefaultInstance()) return this;
if (!other.getTestCase().isEmpty()) {
testCase_ = other.testCase_;
+ bitField0_ |= 0x00000001;
onChanged();
}
if (other.hasStatus()) {
@@ -573,19 +579,19 @@ public Builder mergeFrom(
case 10:
{
testCase_ = input.readStringRequireUtf8();
-
+ bitField0_ |= 0x00000001;
break;
} // case 10
case 18:
{
input.readMessage(getStatusFieldBuilder().getBuilder(), extensionRegistry);
-
+ bitField0_ |= 0x00000002;
break;
} // case 18
case 26:
{
input.readMessage(getTestTimeFieldBuilder().getBuilder(), extensionRegistry);
-
+ bitField0_ |= 0x00000004;
break;
} // case 26
default:
@@ -605,6 +611,8 @@ public Builder mergeFrom(
return this;
}
+ private int bitField0_;
+
private java.lang.Object testCase_ = "";
/**
*
@@ -666,8 +674,8 @@ public Builder setTestCase(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
-
testCase_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -683,8 +691,8 @@ public Builder setTestCase(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearTestCase() {
-
testCase_ = getDefaultInstance().getTestCase();
+ bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
@@ -705,8 +713,8 @@ public Builder setTestCaseBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
-
testCase_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -727,7 +735,7 @@ public Builder setTestCaseBytes(com.google.protobuf.ByteString value) {
* @return Whether the status field is set.
*/
public boolean hasStatus() {
- return statusBuilder_ != null || status_ != null;
+ return ((bitField0_ & 0x00000002) != 0);
}
/**
*
@@ -762,11 +770,11 @@ public Builder setStatus(com.google.rpc.Status value) {
throw new NullPointerException();
}
status_ = value;
- onChanged();
} else {
statusBuilder_.setMessage(value);
}
-
+ bitField0_ |= 0x00000002;
+ onChanged();
return this;
}
/**
@@ -781,11 +789,11 @@ public Builder setStatus(com.google.rpc.Status value) {
public Builder setStatus(com.google.rpc.Status.Builder builderForValue) {
if (statusBuilder_ == null) {
status_ = builderForValue.build();
- onChanged();
} else {
statusBuilder_.setMessage(builderForValue.build());
}
-
+ bitField0_ |= 0x00000002;
+ onChanged();
return this;
}
/**
@@ -799,16 +807,18 @@ public Builder setStatus(com.google.rpc.Status.Builder builderForValue) {
*/
public Builder mergeStatus(com.google.rpc.Status value) {
if (statusBuilder_ == null) {
- if (status_ != null) {
- status_ = com.google.rpc.Status.newBuilder(status_).mergeFrom(value).buildPartial();
+ if (((bitField0_ & 0x00000002) != 0)
+ && status_ != null
+ && status_ != com.google.rpc.Status.getDefaultInstance()) {
+ getStatusBuilder().mergeFrom(value);
} else {
status_ = value;
}
- onChanged();
} else {
statusBuilder_.mergeFrom(value);
}
-
+ bitField0_ |= 0x00000002;
+ onChanged();
return this;
}
/**
@@ -821,14 +831,13 @@ public Builder mergeStatus(com.google.rpc.Status value) {
* .google.rpc.Status status = 2;
*/
public Builder clearStatus() {
- if (statusBuilder_ == null) {
- status_ = null;
- onChanged();
- } else {
- status_ = null;
+ bitField0_ = (bitField0_ & ~0x00000002);
+ status_ = null;
+ if (statusBuilder_ != null) {
+ statusBuilder_.dispose();
statusBuilder_ = null;
}
-
+ onChanged();
return this;
}
/**
@@ -841,7 +850,7 @@ public Builder clearStatus() {
* .google.rpc.Status status = 2;
*/
public com.google.rpc.Status.Builder getStatusBuilder() {
-
+ bitField0_ |= 0x00000002;
onChanged();
return getStatusFieldBuilder().getBuilder();
}
@@ -902,7 +911,7 @@ public com.google.rpc.StatusOrBuilder getStatusOrBuilder() {
* @return Whether the testTime field is set.
*/
public boolean hasTestTime() {
- return testTimeBuilder_ != null || testTime_ != null;
+ return ((bitField0_ & 0x00000004) != 0);
}
/**
*
@@ -937,11 +946,11 @@ public Builder setTestTime(com.google.protobuf.Timestamp value) {
throw new NullPointerException();
}
testTime_ = value;
- onChanged();
} else {
testTimeBuilder_.setMessage(value);
}
-
+ bitField0_ |= 0x00000004;
+ onChanged();
return this;
}
/**
@@ -956,11 +965,11 @@ public Builder setTestTime(com.google.protobuf.Timestamp value) {
public Builder setTestTime(com.google.protobuf.Timestamp.Builder builderForValue) {
if (testTimeBuilder_ == null) {
testTime_ = builderForValue.build();
- onChanged();
} else {
testTimeBuilder_.setMessage(builderForValue.build());
}
-
+ bitField0_ |= 0x00000004;
+ onChanged();
return this;
}
/**
@@ -974,17 +983,18 @@ public Builder setTestTime(com.google.protobuf.Timestamp.Builder builderForValue
*/
public Builder mergeTestTime(com.google.protobuf.Timestamp value) {
if (testTimeBuilder_ == null) {
- if (testTime_ != null) {
- testTime_ =
- com.google.protobuf.Timestamp.newBuilder(testTime_).mergeFrom(value).buildPartial();
+ if (((bitField0_ & 0x00000004) != 0)
+ && testTime_ != null
+ && testTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
+ getTestTimeBuilder().mergeFrom(value);
} else {
testTime_ = value;
}
- onChanged();
} else {
testTimeBuilder_.mergeFrom(value);
}
-
+ bitField0_ |= 0x00000004;
+ onChanged();
return this;
}
/**
@@ -997,14 +1007,13 @@ public Builder mergeTestTime(com.google.protobuf.Timestamp value) {
* .google.protobuf.Timestamp test_time = 3;
*/
public Builder clearTestTime() {
- if (testTimeBuilder_ == null) {
- testTime_ = null;
- onChanged();
- } else {
- testTime_ = null;
+ bitField0_ = (bitField0_ & ~0x00000004);
+ testTime_ = null;
+ if (testTimeBuilder_ != null) {
+ testTimeBuilder_.dispose();
testTimeBuilder_ = null;
}
-
+ onChanged();
return this;
}
/**
@@ -1017,7 +1026,7 @@ public Builder clearTestTime() {
* .google.protobuf.Timestamp test_time = 3;
*/
public com.google.protobuf.Timestamp.Builder getTestTimeBuilder() {
-
+ bitField0_ |= 0x00000004;
onChanged();
return getTestTimeFieldBuilder().getBuilder();
}
diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TestRunDifference.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TestRunDifference.java
index 1bfa2019541b..64553b74b227 100644
--- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TestRunDifference.java
+++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TestRunDifference.java
@@ -272,7 +272,7 @@ private DiffType(int value) {
}
public static final int TYPE_FIELD_NUMBER = 1;
- private int type_;
+ private int type_ = 0;
/**
*
*
@@ -301,16 +301,17 @@ public int getTypeValue() {
*/
@java.lang.Override
public com.google.cloud.dialogflow.cx.v3.TestRunDifference.DiffType getType() {
- @SuppressWarnings("deprecation")
com.google.cloud.dialogflow.cx.v3.TestRunDifference.DiffType result =
- com.google.cloud.dialogflow.cx.v3.TestRunDifference.DiffType.valueOf(type_);
+ com.google.cloud.dialogflow.cx.v3.TestRunDifference.DiffType.forNumber(type_);
return result == null
? com.google.cloud.dialogflow.cx.v3.TestRunDifference.DiffType.UNRECOGNIZED
: result;
}
public static final int DESCRIPTION_FIELD_NUMBER = 2;
- private volatile java.lang.Object description_;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object description_ = "";
/**
*
*
@@ -568,10 +569,9 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
@java.lang.Override
public Builder clear() {
super.clear();
+ bitField0_ = 0;
type_ = 0;
-
description_ = "";
-
return this;
}
@@ -599,12 +599,23 @@ public com.google.cloud.dialogflow.cx.v3.TestRunDifference build() {
public com.google.cloud.dialogflow.cx.v3.TestRunDifference buildPartial() {
com.google.cloud.dialogflow.cx.v3.TestRunDifference result =
new com.google.cloud.dialogflow.cx.v3.TestRunDifference(this);
- result.type_ = type_;
- result.description_ = description_;
+ if (bitField0_ != 0) {
+ buildPartial0(result);
+ }
onBuilt();
return result;
}
+ private void buildPartial0(com.google.cloud.dialogflow.cx.v3.TestRunDifference result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.type_ = type_;
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.description_ = description_;
+ }
+ }
+
@java.lang.Override
public Builder clone() {
return super.clone();
@@ -656,6 +667,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.TestRunDifference oth
}
if (!other.getDescription().isEmpty()) {
description_ = other.description_;
+ bitField0_ |= 0x00000002;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
@@ -687,13 +699,13 @@ public Builder mergeFrom(
case 8:
{
type_ = input.readEnum();
-
+ bitField0_ |= 0x00000001;
break;
} // case 8
case 18:
{
description_ = input.readStringRequireUtf8();
-
+ bitField0_ |= 0x00000002;
break;
} // case 18
default:
@@ -713,6 +725,8 @@ public Builder mergeFrom(
return this;
}
+ private int bitField0_;
+
private int type_ = 0;
/**
*
@@ -742,8 +756,8 @@ public int getTypeValue() {
* @return This builder for chaining.
*/
public Builder setTypeValue(int value) {
-
type_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -760,9 +774,8 @@ public Builder setTypeValue(int value) {
*/
@java.lang.Override
public com.google.cloud.dialogflow.cx.v3.TestRunDifference.DiffType getType() {
- @SuppressWarnings("deprecation")
com.google.cloud.dialogflow.cx.v3.TestRunDifference.DiffType result =
- com.google.cloud.dialogflow.cx.v3.TestRunDifference.DiffType.valueOf(type_);
+ com.google.cloud.dialogflow.cx.v3.TestRunDifference.DiffType.forNumber(type_);
return result == null
? com.google.cloud.dialogflow.cx.v3.TestRunDifference.DiffType.UNRECOGNIZED
: result;
@@ -783,7 +796,7 @@ public Builder setType(com.google.cloud.dialogflow.cx.v3.TestRunDifference.DiffT
if (value == null) {
throw new NullPointerException();
}
-
+ bitField0_ |= 0x00000001;
type_ = value.getNumber();
onChanged();
return this;
@@ -800,7 +813,7 @@ public Builder setType(com.google.cloud.dialogflow.cx.v3.TestRunDifference.DiffT
* @return This builder for chaining.
*/
public Builder clearType() {
-
+ bitField0_ = (bitField0_ & ~0x00000001);
type_ = 0;
onChanged();
return this;
@@ -867,8 +880,8 @@ public Builder setDescription(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
-
description_ = value;
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -884,8 +897,8 @@ public Builder setDescription(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearDescription() {
-
description_ = getDefaultInstance().getDescription();
+ bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
@@ -906,8 +919,8 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
-
description_ = value;
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TextInput.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TextInput.java
index 408b56f797d7..8ed6ecbc9fd9 100644
--- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TextInput.java
+++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TextInput.java
@@ -68,13 +68,15 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
public static final int TEXT_FIELD_NUMBER = 1;
- private volatile java.lang.Object text_;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object text_ = "";
/**
*
*
*
- * Required. The UTF-8 encoded natural language text to be processed. Text length must
- * not exceed 256 characters.
+ * Required. The UTF-8 encoded natural language text to be processed. Text
+ * length must not exceed 256 characters.
*
*
* string text = 1 [(.google.api.field_behavior) = REQUIRED];
@@ -97,8 +99,8 @@ public java.lang.String getText() {
*
*
*
- * Required. The UTF-8 encoded natural language text to be processed. Text length must
- * not exceed 256 characters.
+ * Required. The UTF-8 encoded natural language text to be processed. Text
+ * length must not exceed 256 characters.
*
*
* string text = 1 [(.google.api.field_behavior) = REQUIRED];
@@ -315,8 +317,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
@java.lang.Override
public Builder clear() {
super.clear();
+ bitField0_ = 0;
text_ = "";
-
return this;
}
@@ -344,11 +346,20 @@ public com.google.cloud.dialogflow.cx.v3.TextInput build() {
public com.google.cloud.dialogflow.cx.v3.TextInput buildPartial() {
com.google.cloud.dialogflow.cx.v3.TextInput result =
new com.google.cloud.dialogflow.cx.v3.TextInput(this);
- result.text_ = text_;
+ if (bitField0_ != 0) {
+ buildPartial0(result);
+ }
onBuilt();
return result;
}
+ private void buildPartial0(com.google.cloud.dialogflow.cx.v3.TextInput result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.text_ = text_;
+ }
+ }
+
@java.lang.Override
public Builder clone() {
return super.clone();
@@ -396,6 +407,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.TextInput other) {
if (other == com.google.cloud.dialogflow.cx.v3.TextInput.getDefaultInstance()) return this;
if (!other.getText().isEmpty()) {
text_ = other.text_;
+ bitField0_ |= 0x00000001;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
@@ -427,7 +439,7 @@ public Builder mergeFrom(
case 10:
{
text_ = input.readStringRequireUtf8();
-
+ bitField0_ |= 0x00000001;
break;
} // case 10
default:
@@ -447,13 +459,15 @@ public Builder mergeFrom(
return this;
}
+ private int bitField0_;
+
private java.lang.Object text_ = "";
/**
*
*
*
- * Required. The UTF-8 encoded natural language text to be processed. Text length must
- * not exceed 256 characters.
+ * Required. The UTF-8 encoded natural language text to be processed. Text
+ * length must not exceed 256 characters.
*
*
* string text = 1 [(.google.api.field_behavior) = REQUIRED];
@@ -475,8 +489,8 @@ public java.lang.String getText() {
*
*
*
- * Required. The UTF-8 encoded natural language text to be processed. Text length must
- * not exceed 256 characters.
+ * Required. The UTF-8 encoded natural language text to be processed. Text
+ * length must not exceed 256 characters.
*
*
* string text = 1 [(.google.api.field_behavior) = REQUIRED];
@@ -498,8 +512,8 @@ public com.google.protobuf.ByteString getTextBytes() {
*
*
*
- * Required. The UTF-8 encoded natural language text to be processed. Text length must
- * not exceed 256 characters.
+ * Required. The UTF-8 encoded natural language text to be processed. Text
+ * length must not exceed 256 characters.
*
*
* string text = 1 [(.google.api.field_behavior) = REQUIRED];
@@ -511,8 +525,8 @@ public Builder setText(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
-
text_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -520,8 +534,8 @@ public Builder setText(java.lang.String value) {
*
*
*
- * Required. The UTF-8 encoded natural language text to be processed. Text length must
- * not exceed 256 characters.
+ * Required. The UTF-8 encoded natural language text to be processed. Text
+ * length must not exceed 256 characters.
*
*
* string text = 1 [(.google.api.field_behavior) = REQUIRED];
@@ -529,8 +543,8 @@ public Builder setText(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearText() {
-
text_ = getDefaultInstance().getText();
+ bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
@@ -538,8 +552,8 @@ public Builder clearText() {
*
*
*
- * Required. The UTF-8 encoded natural language text to be processed. Text length must
- * not exceed 256 characters.
+ * Required. The UTF-8 encoded natural language text to be processed. Text
+ * length must not exceed 256 characters.
*
*
* string text = 1 [(.google.api.field_behavior) = REQUIRED];
@@ -552,8 +566,8 @@ public Builder setTextBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
-
text_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TextInputOrBuilder.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TextInputOrBuilder.java
index 650d4b3372ca..751d1a8ba90e 100644
--- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TextInputOrBuilder.java
+++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TextInputOrBuilder.java
@@ -27,8 +27,8 @@ public interface TextInputOrBuilder
*
*
*
- * Required. The UTF-8 encoded natural language text to be processed. Text length must
- * not exceed 256 characters.
+ * Required. The UTF-8 encoded natural language text to be processed. Text
+ * length must not exceed 256 characters.
*
*
* string text = 1 [(.google.api.field_behavior) = REQUIRED];
@@ -40,8 +40,8 @@ public interface TextInputOrBuilder
*
*
*
- * Required. The UTF-8 encoded natural language text to be processed. Text length must
- * not exceed 256 characters.
+ * Required. The UTF-8 encoded natural language text to be processed. Text
+ * length must not exceed 256 characters.
*
*
* string text = 1 [(.google.api.field_behavior) = REQUIRED];
diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TrainFlowRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TrainFlowRequest.java
index 343b31bed1a2..d39ece714b3d 100644
--- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TrainFlowRequest.java
+++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TrainFlowRequest.java
@@ -22,7 +22,8 @@
*
*
*
- * The request message for [Flows.TrainFlow][google.cloud.dialogflow.cx.v3.Flows.TrainFlow].
+ * The request message for
+ * [Flows.TrainFlow][google.cloud.dialogflow.cx.v3.Flows.TrainFlow].
*
*
* Protobuf type {@code google.cloud.dialogflow.cx.v3.TrainFlowRequest}
@@ -68,7 +69,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
public static final int NAME_FIELD_NUMBER = 1;
- private volatile java.lang.Object name_;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object name_ = "";
/**
*
*
@@ -287,7 +290,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
*
*
*
- * The request message for [Flows.TrainFlow][google.cloud.dialogflow.cx.v3.Flows.TrainFlow].
+ * The request message for
+ * [Flows.TrainFlow][google.cloud.dialogflow.cx.v3.Flows.TrainFlow].
*
*
* Protobuf type {@code google.cloud.dialogflow.cx.v3.TrainFlowRequest}
@@ -321,8 +325,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
@java.lang.Override
public Builder clear() {
super.clear();
+ bitField0_ = 0;
name_ = "";
-
return this;
}
@@ -350,11 +354,20 @@ public com.google.cloud.dialogflow.cx.v3.TrainFlowRequest build() {
public com.google.cloud.dialogflow.cx.v3.TrainFlowRequest buildPartial() {
com.google.cloud.dialogflow.cx.v3.TrainFlowRequest result =
new com.google.cloud.dialogflow.cx.v3.TrainFlowRequest(this);
- result.name_ = name_;
+ if (bitField0_ != 0) {
+ buildPartial0(result);
+ }
onBuilt();
return result;
}
+ private void buildPartial0(com.google.cloud.dialogflow.cx.v3.TrainFlowRequest result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.name_ = name_;
+ }
+ }
+
@java.lang.Override
public Builder clone() {
return super.clone();
@@ -403,6 +416,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.TrainFlowRequest othe
return this;
if (!other.getName().isEmpty()) {
name_ = other.name_;
+ bitField0_ |= 0x00000001;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
@@ -434,7 +448,7 @@ public Builder mergeFrom(
case 10:
{
name_ = input.readStringRequireUtf8();
-
+ bitField0_ |= 0x00000001;
break;
} // case 10
default:
@@ -454,6 +468,8 @@ public Builder mergeFrom(
return this;
}
+ private int bitField0_;
+
private java.lang.Object name_ = "";
/**
*
@@ -527,8 +543,8 @@ public Builder setName(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
-
name_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -548,8 +564,8 @@ public Builder setName(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearName() {
-
name_ = getDefaultInstance().getName();
+ bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
@@ -574,8 +590,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
-
name_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TransitionCoverage.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TransitionCoverage.java
index 060b0f84e792..8e4fe7a87640 100644
--- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TransitionCoverage.java
+++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TransitionCoverage.java
@@ -78,8 +78,8 @@ public interface TransitionNodeOrBuilder
*
*
*
- * Indicates a transition to a [Page][google.cloud.dialogflow.cx.v3.Page]. Only some fields such as name and
- * displayname will be set.
+ * Indicates a transition to a [Page][google.cloud.dialogflow.cx.v3.Page].
+ * Only some fields such as name and displayname will be set.
*
*
* .google.cloud.dialogflow.cx.v3.Page page = 1;
@@ -91,8 +91,8 @@ public interface TransitionNodeOrBuilder
*
*
*
- * Indicates a transition to a [Page][google.cloud.dialogflow.cx.v3.Page]. Only some fields such as name and
- * displayname will be set.
+ * Indicates a transition to a [Page][google.cloud.dialogflow.cx.v3.Page].
+ * Only some fields such as name and displayname will be set.
*
*
* .google.cloud.dialogflow.cx.v3.Page page = 1;
@@ -104,8 +104,8 @@ public interface TransitionNodeOrBuilder
*
*
*
- * Indicates a transition to a [Page][google.cloud.dialogflow.cx.v3.Page]. Only some fields such as name and
- * displayname will be set.
+ * Indicates a transition to a [Page][google.cloud.dialogflow.cx.v3.Page].
+ * Only some fields such as name and displayname will be set.
*
*
* .google.cloud.dialogflow.cx.v3.Page page = 1;
@@ -116,8 +116,8 @@ public interface TransitionNodeOrBuilder
*
*
*
- * Indicates a transition to a [Flow][google.cloud.dialogflow.cx.v3.Flow]. Only some fields such as name and
- * displayname will be set.
+ * Indicates a transition to a [Flow][google.cloud.dialogflow.cx.v3.Flow].
+ * Only some fields such as name and displayname will be set.
*
*
* .google.cloud.dialogflow.cx.v3.Flow flow = 2;
@@ -129,8 +129,8 @@ public interface TransitionNodeOrBuilder
*
*
*
- * Indicates a transition to a [Flow][google.cloud.dialogflow.cx.v3.Flow]. Only some fields such as name and
- * displayname will be set.
+ * Indicates a transition to a [Flow][google.cloud.dialogflow.cx.v3.Flow].
+ * Only some fields such as name and displayname will be set.
*
*
* .google.cloud.dialogflow.cx.v3.Flow flow = 2;
@@ -142,8 +142,8 @@ public interface TransitionNodeOrBuilder
*
*
*
- * Indicates a transition to a [Flow][google.cloud.dialogflow.cx.v3.Flow]. Only some fields such as name and
- * displayname will be set.
+ * Indicates a transition to a [Flow][google.cloud.dialogflow.cx.v3.Flow].
+ * Only some fields such as name and displayname will be set.
*
*
* .google.cloud.dialogflow.cx.v3.Flow flow = 2;
@@ -252,8 +252,8 @@ public KindCase getKindCase() {
*
*
*
- * Indicates a transition to a [Page][google.cloud.dialogflow.cx.v3.Page]. Only some fields such as name and
- * displayname will be set.
+ * Indicates a transition to a [Page][google.cloud.dialogflow.cx.v3.Page].
+ * Only some fields such as name and displayname will be set.
*
*
* .google.cloud.dialogflow.cx.v3.Page page = 1;
@@ -268,8 +268,8 @@ public boolean hasPage() {
*
*
*
- * Indicates a transition to a [Page][google.cloud.dialogflow.cx.v3.Page]. Only some fields such as name and
- * displayname will be set.
+ * Indicates a transition to a [Page][google.cloud.dialogflow.cx.v3.Page].
+ * Only some fields such as name and displayname will be set.
*
*
* .google.cloud.dialogflow.cx.v3.Page page = 1;
@@ -287,8 +287,8 @@ public com.google.cloud.dialogflow.cx.v3.Page getPage() {
*
*
*
- * Indicates a transition to a [Page][google.cloud.dialogflow.cx.v3.Page]. Only some fields such as name and
- * displayname will be set.
+ * Indicates a transition to a [Page][google.cloud.dialogflow.cx.v3.Page].
+ * Only some fields such as name and displayname will be set.
*
*
* .google.cloud.dialogflow.cx.v3.Page page = 1;
@@ -306,8 +306,8 @@ public com.google.cloud.dialogflow.cx.v3.PageOrBuilder getPageOrBuilder() {
*
*
*
- * Indicates a transition to a [Flow][google.cloud.dialogflow.cx.v3.Flow]. Only some fields such as name and
- * displayname will be set.
+ * Indicates a transition to a [Flow][google.cloud.dialogflow.cx.v3.Flow].
+ * Only some fields such as name and displayname will be set.
*
*
* .google.cloud.dialogflow.cx.v3.Flow flow = 2;
@@ -322,8 +322,8 @@ public boolean hasFlow() {
*
*
*
- * Indicates a transition to a [Flow][google.cloud.dialogflow.cx.v3.Flow]. Only some fields such as name and
- * displayname will be set.
+ * Indicates a transition to a [Flow][google.cloud.dialogflow.cx.v3.Flow].
+ * Only some fields such as name and displayname will be set.
*
*
* .google.cloud.dialogflow.cx.v3.Flow flow = 2;
@@ -341,8 +341,8 @@ public com.google.cloud.dialogflow.cx.v3.Flow getFlow() {
*
*
*
- * Indicates a transition to a [Flow][google.cloud.dialogflow.cx.v3.Flow]. Only some fields such as name and
- * displayname will be set.
+ * Indicates a transition to a [Flow][google.cloud.dialogflow.cx.v3.Flow].
+ * Only some fields such as name and displayname will be set.
*
*
* .google.cloud.dialogflow.cx.v3.Flow flow = 2;
@@ -587,6 +587,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
@java.lang.Override
public Builder clear() {
super.clear();
+ bitField0_ = 0;
if (pageBuilder_ != null) {
pageBuilder_.clear();
}
@@ -624,25 +625,31 @@ public com.google.cloud.dialogflow.cx.v3.TransitionCoverage.TransitionNode build
public com.google.cloud.dialogflow.cx.v3.TransitionCoverage.TransitionNode buildPartial() {
com.google.cloud.dialogflow.cx.v3.TransitionCoverage.TransitionNode result =
new com.google.cloud.dialogflow.cx.v3.TransitionCoverage.TransitionNode(this);
- if (kindCase_ == 1) {
- if (pageBuilder_ == null) {
- result.kind_ = kind_;
- } else {
- result.kind_ = pageBuilder_.build();
- }
- }
- if (kindCase_ == 2) {
- if (flowBuilder_ == null) {
- result.kind_ = kind_;
- } else {
- result.kind_ = flowBuilder_.build();
- }
+ if (bitField0_ != 0) {
+ buildPartial0(result);
}
- result.kindCase_ = kindCase_;
+ buildPartialOneofs(result);
onBuilt();
return result;
}
+ private void buildPartial0(
+ com.google.cloud.dialogflow.cx.v3.TransitionCoverage.TransitionNode result) {
+ int from_bitField0_ = bitField0_;
+ }
+
+ private void buildPartialOneofs(
+ com.google.cloud.dialogflow.cx.v3.TransitionCoverage.TransitionNode result) {
+ result.kindCase_ = kindCase_;
+ result.kind_ = this.kind_;
+ if (kindCase_ == 1 && pageBuilder_ != null) {
+ result.kind_ = pageBuilder_.build();
+ }
+ if (kindCase_ == 2 && flowBuilder_ != null) {
+ result.kind_ = flowBuilder_.build();
+ }
+ }
+
@java.lang.Override
public Builder clone() {
return super.clone();
@@ -779,6 +786,8 @@ public Builder clearKind() {
return this;
}
+ private int bitField0_;
+
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.dialogflow.cx.v3.Page,
com.google.cloud.dialogflow.cx.v3.Page.Builder,
@@ -788,8 +797,8 @@ public Builder clearKind() {
*
*
*
- * Indicates a transition to a [Page][google.cloud.dialogflow.cx.v3.Page]. Only some fields such as name and
- * displayname will be set.
+ * Indicates a transition to a [Page][google.cloud.dialogflow.cx.v3.Page].
+ * Only some fields such as name and displayname will be set.
*
*
* .google.cloud.dialogflow.cx.v3.Page page = 1;
@@ -804,8 +813,8 @@ public boolean hasPage() {
*
*
*
- * Indicates a transition to a [Page][google.cloud.dialogflow.cx.v3.Page]. Only some fields such as name and
- * displayname will be set.
+ * Indicates a transition to a [Page][google.cloud.dialogflow.cx.v3.Page].
+ * Only some fields such as name and displayname will be set.
*
*
* .google.cloud.dialogflow.cx.v3.Page page = 1;
@@ -830,8 +839,8 @@ public com.google.cloud.dialogflow.cx.v3.Page getPage() {
*
*
*
- * Indicates a transition to a [Page][google.cloud.dialogflow.cx.v3.Page]. Only some fields such as name and
- * displayname will be set.
+ * Indicates a transition to a [Page][google.cloud.dialogflow.cx.v3.Page].
+ * Only some fields such as name and displayname will be set.
*
*
* .google.cloud.dialogflow.cx.v3.Page page = 1;
@@ -853,8 +862,8 @@ public Builder setPage(com.google.cloud.dialogflow.cx.v3.Page value) {
*
*
*
- * Indicates a transition to a [Page][google.cloud.dialogflow.cx.v3.Page]. Only some fields such as name and
- * displayname will be set.
+ * Indicates a transition to a [Page][google.cloud.dialogflow.cx.v3.Page].
+ * Only some fields such as name and displayname will be set.
*
*
* .google.cloud.dialogflow.cx.v3.Page page = 1;
@@ -873,8 +882,8 @@ public Builder setPage(com.google.cloud.dialogflow.cx.v3.Page.Builder builderFor
*
*
*
- * Indicates a transition to a [Page][google.cloud.dialogflow.cx.v3.Page]. Only some fields such as name and
- * displayname will be set.
+ * Indicates a transition to a [Page][google.cloud.dialogflow.cx.v3.Page].
+ * Only some fields such as name and displayname will be set.
*
*
* .google.cloud.dialogflow.cx.v3.Page page = 1;
@@ -906,8 +915,8 @@ public Builder mergePage(com.google.cloud.dialogflow.cx.v3.Page value) {
*
*
*
- * Indicates a transition to a [Page][google.cloud.dialogflow.cx.v3.Page]. Only some fields such as name and
- * displayname will be set.
+ * Indicates a transition to a [Page][google.cloud.dialogflow.cx.v3.Page].
+ * Only some fields such as name and displayname will be set.
*
*
* .google.cloud.dialogflow.cx.v3.Page page = 1;
@@ -932,8 +941,8 @@ public Builder clearPage() {
*
*
*
- * Indicates a transition to a [Page][google.cloud.dialogflow.cx.v3.Page]. Only some fields such as name and
- * displayname will be set.
+ * Indicates a transition to a [Page][google.cloud.dialogflow.cx.v3.Page].
+ * Only some fields such as name and displayname will be set.
*
*
* .google.cloud.dialogflow.cx.v3.Page page = 1;
@@ -945,8 +954,8 @@ public com.google.cloud.dialogflow.cx.v3.Page.Builder getPageBuilder() {
*
*
*
- * Indicates a transition to a [Page][google.cloud.dialogflow.cx.v3.Page]. Only some fields such as name and
- * displayname will be set.
+ * Indicates a transition to a [Page][google.cloud.dialogflow.cx.v3.Page].
+ * Only some fields such as name and displayname will be set.
*
*
* .google.cloud.dialogflow.cx.v3.Page page = 1;
@@ -966,8 +975,8 @@ public com.google.cloud.dialogflow.cx.v3.PageOrBuilder getPageOrBuilder() {
*
*
*
- * Indicates a transition to a [Page][google.cloud.dialogflow.cx.v3.Page]. Only some fields such as name and
- * displayname will be set.
+ * Indicates a transition to a [Page][google.cloud.dialogflow.cx.v3.Page].
+ * Only some fields such as name and displayname will be set.
*
*
* .google.cloud.dialogflow.cx.v3.Page page = 1;
@@ -993,7 +1002,6 @@ public com.google.cloud.dialogflow.cx.v3.PageOrBuilder getPageOrBuilder() {
}
kindCase_ = 1;
onChanged();
- ;
return pageBuilder_;
}
@@ -1006,8 +1014,8 @@ public com.google.cloud.dialogflow.cx.v3.PageOrBuilder getPageOrBuilder() {
*
*
*
- * Indicates a transition to a [Flow][google.cloud.dialogflow.cx.v3.Flow]. Only some fields such as name and
- * displayname will be set.
+ * Indicates a transition to a [Flow][google.cloud.dialogflow.cx.v3.Flow].
+ * Only some fields such as name and displayname will be set.
*
*
* .google.cloud.dialogflow.cx.v3.Flow flow = 2;
@@ -1022,8 +1030,8 @@ public boolean hasFlow() {
*
*
*
- * Indicates a transition to a [Flow][google.cloud.dialogflow.cx.v3.Flow]. Only some fields such as name and
- * displayname will be set.
+ * Indicates a transition to a [Flow][google.cloud.dialogflow.cx.v3.Flow].
+ * Only some fields such as name and displayname will be set.
*
*
* .google.cloud.dialogflow.cx.v3.Flow flow = 2;
@@ -1048,8 +1056,8 @@ public com.google.cloud.dialogflow.cx.v3.Flow getFlow() {
*
*
*
- * Indicates a transition to a [Flow][google.cloud.dialogflow.cx.v3.Flow]. Only some fields such as name and
- * displayname will be set.
+ * Indicates a transition to a [Flow][google.cloud.dialogflow.cx.v3.Flow].
+ * Only some fields such as name and displayname will be set.
*
*
* .google.cloud.dialogflow.cx.v3.Flow flow = 2;
@@ -1071,8 +1079,8 @@ public Builder setFlow(com.google.cloud.dialogflow.cx.v3.Flow value) {
*
*
*
- * Indicates a transition to a [Flow][google.cloud.dialogflow.cx.v3.Flow]. Only some fields such as name and
- * displayname will be set.
+ * Indicates a transition to a [Flow][google.cloud.dialogflow.cx.v3.Flow].
+ * Only some fields such as name and displayname will be set.
*
*
* .google.cloud.dialogflow.cx.v3.Flow flow = 2;
@@ -1091,8 +1099,8 @@ public Builder setFlow(com.google.cloud.dialogflow.cx.v3.Flow.Builder builderFor
*
*
*
- * Indicates a transition to a [Flow][google.cloud.dialogflow.cx.v3.Flow]. Only some fields such as name and
- * displayname will be set.
+ * Indicates a transition to a [Flow][google.cloud.dialogflow.cx.v3.Flow].
+ * Only some fields such as name and displayname will be set.
*
*
* .google.cloud.dialogflow.cx.v3.Flow flow = 2;
@@ -1124,8 +1132,8 @@ public Builder mergeFlow(com.google.cloud.dialogflow.cx.v3.Flow value) {
*
*
*
- * Indicates a transition to a [Flow][google.cloud.dialogflow.cx.v3.Flow]. Only some fields such as name and
- * displayname will be set.
+ * Indicates a transition to a [Flow][google.cloud.dialogflow.cx.v3.Flow].
+ * Only some fields such as name and displayname will be set.
*
*
* .google.cloud.dialogflow.cx.v3.Flow flow = 2;
@@ -1150,8 +1158,8 @@ public Builder clearFlow() {
*
*
*
- * Indicates a transition to a [Flow][google.cloud.dialogflow.cx.v3.Flow]. Only some fields such as name and
- * displayname will be set.
+ * Indicates a transition to a [Flow][google.cloud.dialogflow.cx.v3.Flow].
+ * Only some fields such as name and displayname will be set.
*
*
* .google.cloud.dialogflow.cx.v3.Flow flow = 2;
@@ -1163,8 +1171,8 @@ public com.google.cloud.dialogflow.cx.v3.Flow.Builder getFlowBuilder() {
*
*
*
- * Indicates a transition to a [Flow][google.cloud.dialogflow.cx.v3.Flow]. Only some fields such as name and
- * displayname will be set.
+ * Indicates a transition to a [Flow][google.cloud.dialogflow.cx.v3.Flow].
+ * Only some fields such as name and displayname will be set.
*
*
* .google.cloud.dialogflow.cx.v3.Flow flow = 2;
@@ -1184,8 +1192,8 @@ public com.google.cloud.dialogflow.cx.v3.FlowOrBuilder getFlowOrBuilder() {
*
*
*
- * Indicates a transition to a [Flow][google.cloud.dialogflow.cx.v3.Flow]. Only some fields such as name and
- * displayname will be set.
+ * Indicates a transition to a [Flow][google.cloud.dialogflow.cx.v3.Flow].
+ * Only some fields such as name and displayname will be set.
*
*
* .google.cloud.dialogflow.cx.v3.Flow flow = 2;
@@ -1211,7 +1219,6 @@ public com.google.cloud.dialogflow.cx.v3.FlowOrBuilder getFlowOrBuilder() {
}
kindCase_ = 2;
onChanged();
- ;
return flowBuilder_;
}
@@ -1599,11 +1606,13 @@ public com.google.cloud.dialogflow.cx.v3.TransitionCoverage.TransitionNode getSo
@java.lang.Override
public com.google.cloud.dialogflow.cx.v3.TransitionCoverage.TransitionNodeOrBuilder
getSourceOrBuilder() {
- return getSource();
+ return source_ == null
+ ? com.google.cloud.dialogflow.cx.v3.TransitionCoverage.TransitionNode.getDefaultInstance()
+ : source_;
}
public static final int INDEX_FIELD_NUMBER = 4;
- private int index_;
+ private int index_ = 0;
/**
*
*
@@ -1666,11 +1675,13 @@ public com.google.cloud.dialogflow.cx.v3.TransitionCoverage.TransitionNode getTa
@java.lang.Override
public com.google.cloud.dialogflow.cx.v3.TransitionCoverage.TransitionNodeOrBuilder
getTargetOrBuilder() {
- return getTarget();
+ return target_ == null
+ ? com.google.cloud.dialogflow.cx.v3.TransitionCoverage.TransitionNode.getDefaultInstance()
+ : target_;
}
public static final int COVERED_FIELD_NUMBER = 3;
- private boolean covered_;
+ private boolean covered_ = false;
/**
*
*
@@ -2069,22 +2080,19 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
@java.lang.Override
public Builder clear() {
super.clear();
- if (sourceBuilder_ == null) {
- source_ = null;
- } else {
- source_ = null;
+ bitField0_ = 0;
+ source_ = null;
+ if (sourceBuilder_ != null) {
+ sourceBuilder_.dispose();
sourceBuilder_ = null;
}
index_ = 0;
-
- if (targetBuilder_ == null) {
- target_ = null;
- } else {
- target_ = null;
+ target_ = null;
+ if (targetBuilder_ != null) {
+ targetBuilder_.dispose();
targetBuilder_ = null;
}
covered_ = false;
-
if (transitionRouteBuilder_ != null) {
transitionRouteBuilder_.clear();
}
@@ -2121,35 +2129,41 @@ public com.google.cloud.dialogflow.cx.v3.TransitionCoverage.Transition build() {
public com.google.cloud.dialogflow.cx.v3.TransitionCoverage.Transition buildPartial() {
com.google.cloud.dialogflow.cx.v3.TransitionCoverage.Transition result =
new com.google.cloud.dialogflow.cx.v3.TransitionCoverage.Transition(this);
- if (sourceBuilder_ == null) {
- result.source_ = source_;
- } else {
- result.source_ = sourceBuilder_.build();
+ if (bitField0_ != 0) {
+ buildPartial0(result);
}
- result.index_ = index_;
- if (targetBuilder_ == null) {
- result.target_ = target_;
- } else {
- result.target_ = targetBuilder_.build();
+ buildPartialOneofs(result);
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartial0(
+ com.google.cloud.dialogflow.cx.v3.TransitionCoverage.Transition result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.source_ = sourceBuilder_ == null ? source_ : sourceBuilder_.build();
}
- result.covered_ = covered_;
- if (detailCase_ == 5) {
- if (transitionRouteBuilder_ == null) {
- result.detail_ = detail_;
- } else {
- result.detail_ = transitionRouteBuilder_.build();
- }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.index_ = index_;
}
- if (detailCase_ == 6) {
- if (eventHandlerBuilder_ == null) {
- result.detail_ = detail_;
- } else {
- result.detail_ = eventHandlerBuilder_.build();
- }
+ if (((from_bitField0_ & 0x00000004) != 0)) {
+ result.target_ = targetBuilder_ == null ? target_ : targetBuilder_.build();
+ }
+ if (((from_bitField0_ & 0x00000008) != 0)) {
+ result.covered_ = covered_;
}
+ }
+
+ private void buildPartialOneofs(
+ com.google.cloud.dialogflow.cx.v3.TransitionCoverage.Transition result) {
result.detailCase_ = detailCase_;
- onBuilt();
- return result;
+ result.detail_ = this.detail_;
+ if (detailCase_ == 5 && transitionRouteBuilder_ != null) {
+ result.detail_ = transitionRouteBuilder_.build();
+ }
+ if (detailCase_ == 6 && eventHandlerBuilder_ != null) {
+ result.detail_ = eventHandlerBuilder_.build();
+ }
}
@java.lang.Override
@@ -2259,25 +2273,25 @@ public Builder mergeFrom(
case 10:
{
input.readMessage(getSourceFieldBuilder().getBuilder(), extensionRegistry);
-
+ bitField0_ |= 0x00000001;
break;
} // case 10
case 18:
{
input.readMessage(getTargetFieldBuilder().getBuilder(), extensionRegistry);
-
+ bitField0_ |= 0x00000004;
break;
} // case 18
case 24:
{
covered_ = input.readBool();
-
+ bitField0_ |= 0x00000008;
break;
} // case 24
case 32:
{
index_ = input.readInt32();
-
+ bitField0_ |= 0x00000002;
break;
} // case 32
case 42:
@@ -2324,6 +2338,8 @@ public Builder clearDetail() {
return this;
}
+ private int bitField0_;
+
private com.google.cloud.dialogflow.cx.v3.TransitionCoverage.TransitionNode source_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.dialogflow.cx.v3.TransitionCoverage.TransitionNode,
@@ -2342,7 +2358,7 @@ public Builder clearDetail() {
* @return Whether the source field is set.
*/
public boolean hasSource() {
- return sourceBuilder_ != null || source_ != null;
+ return ((bitField0_ & 0x00000001) != 0);
}
/**
*
@@ -2381,11 +2397,11 @@ public Builder setSource(
throw new NullPointerException();
}
source_ = value;
- onChanged();
} else {
sourceBuilder_.setMessage(value);
}
-
+ bitField0_ |= 0x00000001;
+ onChanged();
return this;
}
/**
@@ -2402,11 +2418,11 @@ public Builder setSource(
builderForValue) {
if (sourceBuilder_ == null) {
source_ = builderForValue.build();
- onChanged();
} else {
sourceBuilder_.setMessage(builderForValue.build());
}
-
+ bitField0_ |= 0x00000001;
+ onChanged();
return this;
}
/**
@@ -2421,20 +2437,20 @@ public Builder setSource(
public Builder mergeSource(
com.google.cloud.dialogflow.cx.v3.TransitionCoverage.TransitionNode value) {
if (sourceBuilder_ == null) {
- if (source_ != null) {
- source_ =
- com.google.cloud.dialogflow.cx.v3.TransitionCoverage.TransitionNode.newBuilder(
- source_)
- .mergeFrom(value)
- .buildPartial();
+ if (((bitField0_ & 0x00000001) != 0)
+ && source_ != null
+ && source_
+ != com.google.cloud.dialogflow.cx.v3.TransitionCoverage.TransitionNode
+ .getDefaultInstance()) {
+ getSourceBuilder().mergeFrom(value);
} else {
source_ = value;
}
- onChanged();
} else {
sourceBuilder_.mergeFrom(value);
}
-
+ bitField0_ |= 0x00000001;
+ onChanged();
return this;
}
/**
@@ -2447,14 +2463,13 @@ public Builder mergeSource(
* .google.cloud.dialogflow.cx.v3.TransitionCoverage.TransitionNode source = 1;
*/
public Builder clearSource() {
- if (sourceBuilder_ == null) {
- source_ = null;
- onChanged();
- } else {
- source_ = null;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ source_ = null;
+ if (sourceBuilder_ != null) {
+ sourceBuilder_.dispose();
sourceBuilder_ = null;
}
-
+ onChanged();
return this;
}
/**
@@ -2468,7 +2483,7 @@ public Builder clearSource() {
*/
public com.google.cloud.dialogflow.cx.v3.TransitionCoverage.TransitionNode.Builder
getSourceBuilder() {
-
+ bitField0_ |= 0x00000001;
onChanged();
return getSourceFieldBuilder().getBuilder();
}
@@ -2549,6 +2564,7 @@ public int getIndex() {
public Builder setIndex(int value) {
index_ = value;
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -2564,7 +2580,7 @@ public Builder setIndex(int value) {
* @return This builder for chaining.
*/
public Builder clearIndex() {
-
+ bitField0_ = (bitField0_ & ~0x00000002);
index_ = 0;
onChanged();
return this;
@@ -2588,7 +2604,7 @@ public Builder clearIndex() {
* @return Whether the target field is set.
*/
public boolean hasTarget() {
- return targetBuilder_ != null || target_ != null;
+ return ((bitField0_ & 0x00000004) != 0);
}
/**
*
@@ -2627,11 +2643,11 @@ public Builder setTarget(
throw new NullPointerException();
}
target_ = value;
- onChanged();
} else {
targetBuilder_.setMessage(value);
}
-
+ bitField0_ |= 0x00000004;
+ onChanged();
return this;
}
/**
@@ -2648,11 +2664,11 @@ public Builder setTarget(
builderForValue) {
if (targetBuilder_ == null) {
target_ = builderForValue.build();
- onChanged();
} else {
targetBuilder_.setMessage(builderForValue.build());
}
-
+ bitField0_ |= 0x00000004;
+ onChanged();
return this;
}
/**
@@ -2667,20 +2683,20 @@ public Builder setTarget(
public Builder mergeTarget(
com.google.cloud.dialogflow.cx.v3.TransitionCoverage.TransitionNode value) {
if (targetBuilder_ == null) {
- if (target_ != null) {
- target_ =
- com.google.cloud.dialogflow.cx.v3.TransitionCoverage.TransitionNode.newBuilder(
- target_)
- .mergeFrom(value)
- .buildPartial();
+ if (((bitField0_ & 0x00000004) != 0)
+ && target_ != null
+ && target_
+ != com.google.cloud.dialogflow.cx.v3.TransitionCoverage.TransitionNode
+ .getDefaultInstance()) {
+ getTargetBuilder().mergeFrom(value);
} else {
target_ = value;
}
- onChanged();
} else {
targetBuilder_.mergeFrom(value);
}
-
+ bitField0_ |= 0x00000004;
+ onChanged();
return this;
}
/**
@@ -2693,14 +2709,13 @@ public Builder mergeTarget(
* .google.cloud.dialogflow.cx.v3.TransitionCoverage.TransitionNode target = 2;
*/
public Builder clearTarget() {
- if (targetBuilder_ == null) {
- target_ = null;
- onChanged();
- } else {
- target_ = null;
+ bitField0_ = (bitField0_ & ~0x00000004);
+ target_ = null;
+ if (targetBuilder_ != null) {
+ targetBuilder_.dispose();
targetBuilder_ = null;
}
-
+ onChanged();
return this;
}
/**
@@ -2714,7 +2729,7 @@ public Builder clearTarget() {
*/
public com.google.cloud.dialogflow.cx.v3.TransitionCoverage.TransitionNode.Builder
getTargetBuilder() {
-
+ bitField0_ |= 0x00000004;
onChanged();
return getTargetFieldBuilder().getBuilder();
}
@@ -2797,6 +2812,7 @@ public boolean getCovered() {
public Builder setCovered(boolean value) {
covered_ = value;
+ bitField0_ |= 0x00000008;
onChanged();
return this;
}
@@ -2813,7 +2829,7 @@ public Builder setCovered(boolean value) {
* @return This builder for chaining.
*/
public Builder clearCovered() {
-
+ bitField0_ = (bitField0_ & ~0x00000008);
covered_ = false;
onChanged();
return this;
@@ -3027,7 +3043,6 @@ public com.google.cloud.dialogflow.cx.v3.TransitionRoute.Builder getTransitionRo
}
detailCase_ = 5;
onChanged();
- ;
return transitionRouteBuilder_;
}
@@ -3237,7 +3252,6 @@ public com.google.cloud.dialogflow.cx.v3.EventHandlerOrBuilder getEventHandlerOr
}
detailCase_ = 6;
onChanged();
- ;
return eventHandlerBuilder_;
}
@@ -3309,6 +3323,8 @@ public com.google.protobuf.Parser getParserForType() {
}
public static final int TRANSITIONS_FIELD_NUMBER = 1;
+
+ @SuppressWarnings("serial")
private java.util.List
transitions_;
/**
@@ -3387,7 +3403,7 @@ public com.google.cloud.dialogflow.cx.v3.TransitionCoverage.Transition getTransi
}
public static final int COVERAGE_SCORE_FIELD_NUMBER = 2;
- private float coverageScore_;
+ private float coverageScore_ = 0F;
/**
*
*
@@ -3615,6 +3631,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
@java.lang.Override
public Builder clear() {
super.clear();
+ bitField0_ = 0;
if (transitionsBuilder_ == null) {
transitions_ = java.util.Collections.emptyList();
} else {
@@ -3623,7 +3640,6 @@ public Builder clear() {
}
bitField0_ = (bitField0_ & ~0x00000001);
coverageScore_ = 0F;
-
return this;
}
@@ -3651,7 +3667,16 @@ public com.google.cloud.dialogflow.cx.v3.TransitionCoverage build() {
public com.google.cloud.dialogflow.cx.v3.TransitionCoverage buildPartial() {
com.google.cloud.dialogflow.cx.v3.TransitionCoverage result =
new com.google.cloud.dialogflow.cx.v3.TransitionCoverage(this);
- int from_bitField0_ = bitField0_;
+ buildPartialRepeatedFields(result);
+ if (bitField0_ != 0) {
+ buildPartial0(result);
+ }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartialRepeatedFields(
+ com.google.cloud.dialogflow.cx.v3.TransitionCoverage result) {
if (transitionsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
transitions_ = java.util.Collections.unmodifiableList(transitions_);
@@ -3661,9 +3686,13 @@ public com.google.cloud.dialogflow.cx.v3.TransitionCoverage buildPartial() {
} else {
result.transitions_ = transitionsBuilder_.build();
}
- result.coverageScore_ = coverageScore_;
- onBuilt();
- return result;
+ }
+
+ private void buildPartial0(com.google.cloud.dialogflow.cx.v3.TransitionCoverage result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.coverageScore_ = coverageScore_;
+ }
}
@java.lang.Override
@@ -3785,7 +3814,7 @@ public Builder mergeFrom(
case 21:
{
coverageScore_ = input.readFloat();
-
+ bitField0_ |= 0x00000002;
break;
} // case 21
default:
@@ -4225,6 +4254,7 @@ public float getCoverageScore() {
public Builder setCoverageScore(float value) {
coverageScore_ = value;
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -4240,7 +4270,7 @@ public Builder setCoverageScore(float value) {
* @return This builder for chaining.
*/
public Builder clearCoverageScore() {
-
+ bitField0_ = (bitField0_ & ~0x00000002);
coverageScore_ = 0F;
onChanged();
return this;
diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TransitionRoute.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TransitionRoute.java
index db115c2d0faf..cfd4a07ae8d6 100644
--- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TransitionRoute.java
+++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TransitionRoute.java
@@ -22,16 +22,21 @@
*
*
*
- * A transition route specifies a [intent][google.cloud.dialogflow.cx.v3.Intent] that can be matched and/or a
- * data condition that can be evaluated during a session. When a specified
- * transition is matched, the following actions are taken in order:
+ * A transition route specifies a [intent][google.cloud.dialogflow.cx.v3.Intent]
+ * that can be matched and/or a data condition that can be evaluated during a
+ * session. When a specified transition is matched, the following actions are
+ * taken in order:
* * If there is a
- * [`trigger_fulfillment`][google.cloud.dialogflow.cx.v3.TransitionRoute.trigger_fulfillment] associated with
- * the transition, it will be called.
- * * If there is a [`target_page`][google.cloud.dialogflow.cx.v3.TransitionRoute.target_page] associated
- * with the transition, the session will transition into the specified page.
- * * If there is a [`target_flow`][google.cloud.dialogflow.cx.v3.TransitionRoute.target_flow] associated
- * with the transition, the session will transition into the specified flow.
+ * [`trigger_fulfillment`][google.cloud.dialogflow.cx.v3.TransitionRoute.trigger_fulfillment]
+ * associated with the transition, it will be called.
+ * * If there is a
+ * [`target_page`][google.cloud.dialogflow.cx.v3.TransitionRoute.target_page]
+ * associated with the transition, the session will transition into the
+ * specified page.
+ * * If there is a
+ * [`target_flow`][google.cloud.dialogflow.cx.v3.TransitionRoute.target_flow]
+ * associated with the transition, the session will transition into the
+ * specified flow.
*
*
* Protobuf type {@code google.cloud.dialogflow.cx.v3.TransitionRoute}
@@ -126,7 +131,9 @@ public TargetCase getTargetCase() {
}
public static final int NAME_FIELD_NUMBER = 6;
- private volatile java.lang.Object name_;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object name_ = "";
/**
*
*
@@ -175,7 +182,9 @@ public com.google.protobuf.ByteString getNameBytes() {
}
public static final int INTENT_FIELD_NUMBER = 1;
- private volatile java.lang.Object intent_;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object intent_ = "";
/**
*
*
@@ -238,13 +247,16 @@ public com.google.protobuf.ByteString getIntentBytes() {
}
public static final int CONDITION_FIELD_NUMBER = 2;
- private volatile java.lang.Object condition_;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object condition_ = "";
/**
*
*
*
- * The condition to evaluate against [form parameters][google.cloud.dialogflow.cx.v3.Form.parameters] or
- * [session parameters][google.cloud.dialogflow.cx.v3.SessionInfo.parameters].
+ * The condition to evaluate against [form
+ * parameters][google.cloud.dialogflow.cx.v3.Form.parameters] or [session
+ * parameters][google.cloud.dialogflow.cx.v3.SessionInfo.parameters].
* See the [conditions
* reference](https://cloud.google.com/dialogflow/cx/docs/reference/condition).
* At least one of `intent` or `condition` must be specified. When both
@@ -272,8 +284,9 @@ public java.lang.String getCondition() {
*
*
*
- * The condition to evaluate against [form parameters][google.cloud.dialogflow.cx.v3.Form.parameters] or
- * [session parameters][google.cloud.dialogflow.cx.v3.SessionInfo.parameters].
+ * The condition to evaluate against [form
+ * parameters][google.cloud.dialogflow.cx.v3.Form.parameters] or [session
+ * parameters][google.cloud.dialogflow.cx.v3.SessionInfo.parameters].
* See the [conditions
* reference](https://cloud.google.com/dialogflow/cx/docs/reference/condition).
* At least one of `intent` or `condition` must be specified. When both
@@ -349,7 +362,9 @@ public com.google.cloud.dialogflow.cx.v3.Fulfillment getTriggerFulfillment() {
*/
@java.lang.Override
public com.google.cloud.dialogflow.cx.v3.FulfillmentOrBuilder getTriggerFulfillmentOrBuilder() {
- return getTriggerFulfillment();
+ return triggerFulfillment_ == null
+ ? com.google.cloud.dialogflow.cx.v3.Fulfillment.getDefaultInstance()
+ : triggerFulfillment_;
}
public static final int TARGET_PAGE_FIELD_NUMBER = 4;
@@ -734,16 +749,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
*
*
*
- * A transition route specifies a [intent][google.cloud.dialogflow.cx.v3.Intent] that can be matched and/or a
- * data condition that can be evaluated during a session. When a specified
- * transition is matched, the following actions are taken in order:
+ * A transition route specifies a [intent][google.cloud.dialogflow.cx.v3.Intent]
+ * that can be matched and/or a data condition that can be evaluated during a
+ * session. When a specified transition is matched, the following actions are
+ * taken in order:
* * If there is a
- * [`trigger_fulfillment`][google.cloud.dialogflow.cx.v3.TransitionRoute.trigger_fulfillment] associated with
- * the transition, it will be called.
- * * If there is a [`target_page`][google.cloud.dialogflow.cx.v3.TransitionRoute.target_page] associated
- * with the transition, the session will transition into the specified page.
- * * If there is a [`target_flow`][google.cloud.dialogflow.cx.v3.TransitionRoute.target_flow] associated
- * with the transition, the session will transition into the specified flow.
+ * [`trigger_fulfillment`][google.cloud.dialogflow.cx.v3.TransitionRoute.trigger_fulfillment]
+ * associated with the transition, it will be called.
+ * * If there is a
+ * [`target_page`][google.cloud.dialogflow.cx.v3.TransitionRoute.target_page]
+ * associated with the transition, the session will transition into the
+ * specified page.
+ * * If there is a
+ * [`target_flow`][google.cloud.dialogflow.cx.v3.TransitionRoute.target_flow]
+ * associated with the transition, the session will transition into the
+ * specified flow.
*
*
* Protobuf type {@code google.cloud.dialogflow.cx.v3.TransitionRoute}
@@ -777,16 +797,13 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
@java.lang.Override
public Builder clear() {
super.clear();
+ bitField0_ = 0;
name_ = "";
-
intent_ = "";
-
condition_ = "";
-
- if (triggerFulfillmentBuilder_ == null) {
- triggerFulfillment_ = null;
- } else {
- triggerFulfillment_ = null;
+ triggerFulfillment_ = null;
+ if (triggerFulfillmentBuilder_ != null) {
+ triggerFulfillmentBuilder_.dispose();
triggerFulfillmentBuilder_ = null;
}
targetCase_ = 0;
@@ -818,23 +835,36 @@ public com.google.cloud.dialogflow.cx.v3.TransitionRoute build() {
public com.google.cloud.dialogflow.cx.v3.TransitionRoute buildPartial() {
com.google.cloud.dialogflow.cx.v3.TransitionRoute result =
new com.google.cloud.dialogflow.cx.v3.TransitionRoute(this);
- result.name_ = name_;
- result.intent_ = intent_;
- result.condition_ = condition_;
- if (triggerFulfillmentBuilder_ == null) {
- result.triggerFulfillment_ = triggerFulfillment_;
- } else {
- result.triggerFulfillment_ = triggerFulfillmentBuilder_.build();
+ if (bitField0_ != 0) {
+ buildPartial0(result);
}
- if (targetCase_ == 4) {
- result.target_ = target_;
+ buildPartialOneofs(result);
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartial0(com.google.cloud.dialogflow.cx.v3.TransitionRoute result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.name_ = name_;
}
- if (targetCase_ == 5) {
- result.target_ = target_;
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.intent_ = intent_;
+ }
+ if (((from_bitField0_ & 0x00000004) != 0)) {
+ result.condition_ = condition_;
+ }
+ if (((from_bitField0_ & 0x00000008) != 0)) {
+ result.triggerFulfillment_ =
+ triggerFulfillmentBuilder_ == null
+ ? triggerFulfillment_
+ : triggerFulfillmentBuilder_.build();
}
+ }
+
+ private void buildPartialOneofs(com.google.cloud.dialogflow.cx.v3.TransitionRoute result) {
result.targetCase_ = targetCase_;
- onBuilt();
- return result;
+ result.target_ = this.target_;
}
@java.lang.Override
@@ -885,14 +915,17 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.TransitionRoute other
return this;
if (!other.getName().isEmpty()) {
name_ = other.name_;
+ bitField0_ |= 0x00000001;
onChanged();
}
if (!other.getIntent().isEmpty()) {
intent_ = other.intent_;
+ bitField0_ |= 0x00000002;
onChanged();
}
if (!other.getCondition().isEmpty()) {
condition_ = other.condition_;
+ bitField0_ |= 0x00000004;
onChanged();
}
if (other.hasTriggerFulfillment()) {
@@ -947,20 +980,20 @@ public Builder mergeFrom(
case 10:
{
intent_ = input.readStringRequireUtf8();
-
+ bitField0_ |= 0x00000002;
break;
} // case 10
case 18:
{
condition_ = input.readStringRequireUtf8();
-
+ bitField0_ |= 0x00000004;
break;
} // case 18
case 26:
{
input.readMessage(
getTriggerFulfillmentFieldBuilder().getBuilder(), extensionRegistry);
-
+ bitField0_ |= 0x00000008;
break;
} // case 26
case 34:
@@ -980,7 +1013,7 @@ public Builder mergeFrom(
case 50:
{
name_ = input.readStringRequireUtf8();
-
+ bitField0_ |= 0x00000001;
break;
} // case 50
default:
@@ -1014,6 +1047,8 @@ public Builder clearTarget() {
return this;
}
+ private int bitField0_;
+
private java.lang.Object name_ = "";
/**
*
@@ -1075,8 +1110,8 @@ public Builder setName(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
-
name_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -1092,8 +1127,8 @@ public Builder setName(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearName() {
-
name_ = getDefaultInstance().getName();
+ bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
@@ -1114,8 +1149,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
-
name_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -1202,8 +1237,8 @@ public Builder setIntent(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
-
intent_ = value;
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -1226,8 +1261,8 @@ public Builder setIntent(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearIntent() {
-
intent_ = getDefaultInstance().getIntent();
+ bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
@@ -1255,8 +1290,8 @@ public Builder setIntentBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
-
intent_ = value;
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -1266,8 +1301,9 @@ public Builder setIntentBytes(com.google.protobuf.ByteString value) {
*
*
*
- * The condition to evaluate against [form parameters][google.cloud.dialogflow.cx.v3.Form.parameters] or
- * [session parameters][google.cloud.dialogflow.cx.v3.SessionInfo.parameters].
+ * The condition to evaluate against [form
+ * parameters][google.cloud.dialogflow.cx.v3.Form.parameters] or [session
+ * parameters][google.cloud.dialogflow.cx.v3.SessionInfo.parameters].
* See the [conditions
* reference](https://cloud.google.com/dialogflow/cx/docs/reference/condition).
* At least one of `intent` or `condition` must be specified. When both
@@ -1294,8 +1330,9 @@ public java.lang.String getCondition() {
*
*
*
- * The condition to evaluate against [form parameters][google.cloud.dialogflow.cx.v3.Form.parameters] or
- * [session parameters][google.cloud.dialogflow.cx.v3.SessionInfo.parameters].
+ * The condition to evaluate against [form
+ * parameters][google.cloud.dialogflow.cx.v3.Form.parameters] or [session
+ * parameters][google.cloud.dialogflow.cx.v3.SessionInfo.parameters].
* See the [conditions
* reference](https://cloud.google.com/dialogflow/cx/docs/reference/condition).
* At least one of `intent` or `condition` must be specified. When both
@@ -1322,8 +1359,9 @@ public com.google.protobuf.ByteString getConditionBytes() {
*
*
*
- * The condition to evaluate against [form parameters][google.cloud.dialogflow.cx.v3.Form.parameters] or
- * [session parameters][google.cloud.dialogflow.cx.v3.SessionInfo.parameters].
+ * The condition to evaluate against [form
+ * parameters][google.cloud.dialogflow.cx.v3.Form.parameters] or [session
+ * parameters][google.cloud.dialogflow.cx.v3.SessionInfo.parameters].
* See the [conditions
* reference](https://cloud.google.com/dialogflow/cx/docs/reference/condition).
* At least one of `intent` or `condition` must be specified. When both
@@ -1340,8 +1378,8 @@ public Builder setCondition(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
-
condition_ = value;
+ bitField0_ |= 0x00000004;
onChanged();
return this;
}
@@ -1349,8 +1387,9 @@ public Builder setCondition(java.lang.String value) {
*
*
*
- * The condition to evaluate against [form parameters][google.cloud.dialogflow.cx.v3.Form.parameters] or
- * [session parameters][google.cloud.dialogflow.cx.v3.SessionInfo.parameters].
+ * The condition to evaluate against [form
+ * parameters][google.cloud.dialogflow.cx.v3.Form.parameters] or [session
+ * parameters][google.cloud.dialogflow.cx.v3.SessionInfo.parameters].
* See the [conditions
* reference](https://cloud.google.com/dialogflow/cx/docs/reference/condition).
* At least one of `intent` or `condition` must be specified. When both
@@ -1363,8 +1402,8 @@ public Builder setCondition(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearCondition() {
-
condition_ = getDefaultInstance().getCondition();
+ bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
@@ -1372,8 +1411,9 @@ public Builder clearCondition() {
*
*
*
- * The condition to evaluate against [form parameters][google.cloud.dialogflow.cx.v3.Form.parameters] or
- * [session parameters][google.cloud.dialogflow.cx.v3.SessionInfo.parameters].
+ * The condition to evaluate against [form
+ * parameters][google.cloud.dialogflow.cx.v3.Form.parameters] or [session
+ * parameters][google.cloud.dialogflow.cx.v3.SessionInfo.parameters].
* See the [conditions
* reference](https://cloud.google.com/dialogflow/cx/docs/reference/condition).
* At least one of `intent` or `condition` must be specified. When both
@@ -1391,8 +1431,8 @@ public Builder setConditionBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
-
condition_ = value;
+ bitField0_ |= 0x00000004;
onChanged();
return this;
}
@@ -1417,7 +1457,7 @@ public Builder setConditionBytes(com.google.protobuf.ByteString value) {
* @return Whether the triggerFulfillment field is set.
*/
public boolean hasTriggerFulfillment() {
- return triggerFulfillmentBuilder_ != null || triggerFulfillment_ != null;
+ return ((bitField0_ & 0x00000008) != 0);
}
/**
*
@@ -1458,11 +1498,11 @@ public Builder setTriggerFulfillment(com.google.cloud.dialogflow.cx.v3.Fulfillme
throw new NullPointerException();
}
triggerFulfillment_ = value;
- onChanged();
} else {
triggerFulfillmentBuilder_.setMessage(value);
}
-
+ bitField0_ |= 0x00000008;
+ onChanged();
return this;
}
/**
@@ -1480,11 +1520,11 @@ public Builder setTriggerFulfillment(
com.google.cloud.dialogflow.cx.v3.Fulfillment.Builder builderForValue) {
if (triggerFulfillmentBuilder_ == null) {
triggerFulfillment_ = builderForValue.build();
- onChanged();
} else {
triggerFulfillmentBuilder_.setMessage(builderForValue.build());
}
-
+ bitField0_ |= 0x00000008;
+ onChanged();
return this;
}
/**
@@ -1500,19 +1540,19 @@ public Builder setTriggerFulfillment(
*/
public Builder mergeTriggerFulfillment(com.google.cloud.dialogflow.cx.v3.Fulfillment value) {
if (triggerFulfillmentBuilder_ == null) {
- if (triggerFulfillment_ != null) {
- triggerFulfillment_ =
- com.google.cloud.dialogflow.cx.v3.Fulfillment.newBuilder(triggerFulfillment_)
- .mergeFrom(value)
- .buildPartial();
+ if (((bitField0_ & 0x00000008) != 0)
+ && triggerFulfillment_ != null
+ && triggerFulfillment_
+ != com.google.cloud.dialogflow.cx.v3.Fulfillment.getDefaultInstance()) {
+ getTriggerFulfillmentBuilder().mergeFrom(value);
} else {
triggerFulfillment_ = value;
}
- onChanged();
} else {
triggerFulfillmentBuilder_.mergeFrom(value);
}
-
+ bitField0_ |= 0x00000008;
+ onChanged();
return this;
}
/**
@@ -1527,14 +1567,13 @@ public Builder mergeTriggerFulfillment(com.google.cloud.dialogflow.cx.v3.Fulfill
* .google.cloud.dialogflow.cx.v3.Fulfillment trigger_fulfillment = 3;
*/
public Builder clearTriggerFulfillment() {
- if (triggerFulfillmentBuilder_ == null) {
- triggerFulfillment_ = null;
- onChanged();
- } else {
- triggerFulfillment_ = null;
+ bitField0_ = (bitField0_ & ~0x00000008);
+ triggerFulfillment_ = null;
+ if (triggerFulfillmentBuilder_ != null) {
+ triggerFulfillmentBuilder_.dispose();
triggerFulfillmentBuilder_ = null;
}
-
+ onChanged();
return this;
}
/**
@@ -1549,7 +1588,7 @@ public Builder clearTriggerFulfillment() {
* .google.cloud.dialogflow.cx.v3.Fulfillment trigger_fulfillment = 3;
*/
public com.google.cloud.dialogflow.cx.v3.Fulfillment.Builder getTriggerFulfillmentBuilder() {
-
+ bitField0_ |= 0x00000008;
onChanged();
return getTriggerFulfillmentFieldBuilder().getBuilder();
}
diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TransitionRouteGroup.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TransitionRouteGroup.java
index 6377f281bf8d..03630d9f8fd7 100644
--- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TransitionRouteGroup.java
+++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TransitionRouteGroup.java
@@ -23,7 +23,8 @@
*
*
* An TransitionRouteGroup represents a group of
- * [`TransitionRoutes`][google.cloud.dialogflow.cx.v3.TransitionRoute] to be used by a [Page][google.cloud.dialogflow.cx.v3.Page].
+ * [`TransitionRoutes`][google.cloud.dialogflow.cx.v3.TransitionRoute] to be
+ * used by a [Page][google.cloud.dialogflow.cx.v3.Page].
*
*
* Protobuf type {@code google.cloud.dialogflow.cx.v3.TransitionRouteGroup}
@@ -71,16 +72,18 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
public static final int NAME_FIELD_NUMBER = 1;
- private volatile java.lang.Object name_;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object name_ = "";
/**
*
*
*
* The unique identifier of the transition route group.
- * [TransitionRouteGroups.CreateTransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroups.CreateTransitionRouteGroup] populates the name
- * automatically.
- * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
- * ID>/flows/<Flow ID>/transitionRouteGroups/<Transition Route Group ID>`.
+ * [TransitionRouteGroups.CreateTransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroups.CreateTransitionRouteGroup]
+ * populates the name automatically. Format: `projects/<Project
+ * ID>/locations/<Location ID>/agents/<Agent ID>/flows/<Flow
+ * ID>/transitionRouteGroups/<Transition Route Group ID>`.
*
*
* string name = 1;
@@ -104,10 +107,10 @@ public java.lang.String getName() {
*
*
* The unique identifier of the transition route group.
- * [TransitionRouteGroups.CreateTransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroups.CreateTransitionRouteGroup] populates the name
- * automatically.
- * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
- * ID>/flows/<Flow ID>/transitionRouteGroups/<Transition Route Group ID>`.
+ * [TransitionRouteGroups.CreateTransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroups.CreateTransitionRouteGroup]
+ * populates the name automatically. Format: `projects/<Project
+ * ID>/locations/<Location ID>/agents/<Agent ID>/flows/<Flow
+ * ID>/transitionRouteGroups/<Transition Route Group ID>`.
*
*
* string name = 1;
@@ -128,13 +131,15 @@ public com.google.protobuf.ByteString getNameBytes() {
}
public static final int DISPLAY_NAME_FIELD_NUMBER = 2;
- private volatile java.lang.Object displayName_;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object displayName_ = "";
/**
*
*
*
- * Required. The human-readable name of the transition route group, unique within
- * the flow. The display name can be no longer than 30 characters.
+ * Required. The human-readable name of the transition route group, unique
+ * within the flow. The display name can be no longer than 30 characters.
*
*
* string display_name = 2 [(.google.api.field_behavior) = REQUIRED];
@@ -157,8 +162,8 @@ public java.lang.String getDisplayName() {
*
*
*
- * Required. The human-readable name of the transition route group, unique within
- * the flow. The display name can be no longer than 30 characters.
+ * Required. The human-readable name of the transition route group, unique
+ * within the flow. The display name can be no longer than 30 characters.
*
*
* string display_name = 2 [(.google.api.field_behavior) = REQUIRED];
@@ -179,12 +184,15 @@ public com.google.protobuf.ByteString getDisplayNameBytes() {
}
public static final int TRANSITION_ROUTES_FIELD_NUMBER = 5;
+
+ @SuppressWarnings("serial")
private java.util.List transitionRoutes_;
/**
*
*
*
- * Transition routes associated with the [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].
+ * Transition routes associated with the
+ * [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].
*
*
* repeated .google.cloud.dialogflow.cx.v3.TransitionRoute transition_routes = 5;
@@ -198,7 +206,8 @@ public com.google.protobuf.ByteString getDisplayNameBytes() {
*
*
*
- * Transition routes associated with the [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].
+ * Transition routes associated with the
+ * [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].
*
*
* repeated .google.cloud.dialogflow.cx.v3.TransitionRoute transition_routes = 5;
@@ -212,7 +221,8 @@ public com.google.protobuf.ByteString getDisplayNameBytes() {
*
*
*
- * Transition routes associated with the [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].
+ * Transition routes associated with the
+ * [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].
*
*
* repeated .google.cloud.dialogflow.cx.v3.TransitionRoute transition_routes = 5;
@@ -225,7 +235,8 @@ public int getTransitionRoutesCount() {
*
*
*
- * Transition routes associated with the [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].
+ * Transition routes associated with the
+ * [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].
*
*
* repeated .google.cloud.dialogflow.cx.v3.TransitionRoute transition_routes = 5;
@@ -238,7 +249,8 @@ public com.google.cloud.dialogflow.cx.v3.TransitionRoute getTransitionRoutes(int
*
*
*
- * Transition routes associated with the [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].
+ * Transition routes associated with the
+ * [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].
*
*
* repeated .google.cloud.dialogflow.cx.v3.TransitionRoute transition_routes = 5;
@@ -434,7 +446,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
*
*
* An TransitionRouteGroup represents a group of
- * [`TransitionRoutes`][google.cloud.dialogflow.cx.v3.TransitionRoute] to be used by a [Page][google.cloud.dialogflow.cx.v3.Page].
+ * [`TransitionRoutes`][google.cloud.dialogflow.cx.v3.TransitionRoute] to be
+ * used by a [Page][google.cloud.dialogflow.cx.v3.Page].
*
*
* Protobuf type {@code google.cloud.dialogflow.cx.v3.TransitionRouteGroup}
@@ -468,17 +481,16 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
@java.lang.Override
public Builder clear() {
super.clear();
+ bitField0_ = 0;
name_ = "";
-
displayName_ = "";
-
if (transitionRoutesBuilder_ == null) {
transitionRoutes_ = java.util.Collections.emptyList();
} else {
transitionRoutes_ = null;
transitionRoutesBuilder_.clear();
}
- bitField0_ = (bitField0_ & ~0x00000001);
+ bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
@@ -506,20 +518,35 @@ public com.google.cloud.dialogflow.cx.v3.TransitionRouteGroup build() {
public com.google.cloud.dialogflow.cx.v3.TransitionRouteGroup buildPartial() {
com.google.cloud.dialogflow.cx.v3.TransitionRouteGroup result =
new com.google.cloud.dialogflow.cx.v3.TransitionRouteGroup(this);
- int from_bitField0_ = bitField0_;
- result.name_ = name_;
- result.displayName_ = displayName_;
+ buildPartialRepeatedFields(result);
+ if (bitField0_ != 0) {
+ buildPartial0(result);
+ }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartialRepeatedFields(
+ com.google.cloud.dialogflow.cx.v3.TransitionRouteGroup result) {
if (transitionRoutesBuilder_ == null) {
- if (((bitField0_ & 0x00000001) != 0)) {
+ if (((bitField0_ & 0x00000004) != 0)) {
transitionRoutes_ = java.util.Collections.unmodifiableList(transitionRoutes_);
- bitField0_ = (bitField0_ & ~0x00000001);
+ bitField0_ = (bitField0_ & ~0x00000004);
}
result.transitionRoutes_ = transitionRoutes_;
} else {
result.transitionRoutes_ = transitionRoutesBuilder_.build();
}
- onBuilt();
- return result;
+ }
+
+ private void buildPartial0(com.google.cloud.dialogflow.cx.v3.TransitionRouteGroup result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.name_ = name_;
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.displayName_ = displayName_;
+ }
}
@java.lang.Override
@@ -570,17 +597,19 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.TransitionRouteGroup
return this;
if (!other.getName().isEmpty()) {
name_ = other.name_;
+ bitField0_ |= 0x00000001;
onChanged();
}
if (!other.getDisplayName().isEmpty()) {
displayName_ = other.displayName_;
+ bitField0_ |= 0x00000002;
onChanged();
}
if (transitionRoutesBuilder_ == null) {
if (!other.transitionRoutes_.isEmpty()) {
if (transitionRoutes_.isEmpty()) {
transitionRoutes_ = other.transitionRoutes_;
- bitField0_ = (bitField0_ & ~0x00000001);
+ bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensureTransitionRoutesIsMutable();
transitionRoutes_.addAll(other.transitionRoutes_);
@@ -593,7 +622,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.TransitionRouteGroup
transitionRoutesBuilder_.dispose();
transitionRoutesBuilder_ = null;
transitionRoutes_ = other.transitionRoutes_;
- bitField0_ = (bitField0_ & ~0x00000001);
+ bitField0_ = (bitField0_ & ~0x00000004);
transitionRoutesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
? getTransitionRoutesFieldBuilder()
@@ -632,13 +661,13 @@ public Builder mergeFrom(
case 10:
{
name_ = input.readStringRequireUtf8();
-
+ bitField0_ |= 0x00000001;
break;
} // case 10
case 18:
{
displayName_ = input.readStringRequireUtf8();
-
+ bitField0_ |= 0x00000002;
break;
} // case 18
case 42:
@@ -680,10 +709,10 @@ public Builder mergeFrom(
*
*
* The unique identifier of the transition route group.
- * [TransitionRouteGroups.CreateTransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroups.CreateTransitionRouteGroup] populates the name
- * automatically.
- * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
- * ID>/flows/<Flow ID>/transitionRouteGroups/<Transition Route Group ID>`.
+ * [TransitionRouteGroups.CreateTransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroups.CreateTransitionRouteGroup]
+ * populates the name automatically. Format: `projects/<Project
+ * ID>/locations/<Location ID>/agents/<Agent ID>/flows/<Flow
+ * ID>/transitionRouteGroups/<Transition Route Group ID>`.
*
*
* string name = 1;
@@ -706,10 +735,10 @@ public java.lang.String getName() {
*
*
* The unique identifier of the transition route group.
- * [TransitionRouteGroups.CreateTransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroups.CreateTransitionRouteGroup] populates the name
- * automatically.
- * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
- * ID>/flows/<Flow ID>/transitionRouteGroups/<Transition Route Group ID>`.
+ * [TransitionRouteGroups.CreateTransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroups.CreateTransitionRouteGroup]
+ * populates the name automatically. Format: `projects/<Project
+ * ID>/locations/<Location ID>/agents/<Agent ID>/flows/<Flow
+ * ID>/transitionRouteGroups/<Transition Route Group ID>`.
*
*
* string name = 1;
@@ -732,10 +761,10 @@ public com.google.protobuf.ByteString getNameBytes() {
*
*
* The unique identifier of the transition route group.
- * [TransitionRouteGroups.CreateTransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroups.CreateTransitionRouteGroup] populates the name
- * automatically.
- * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
- * ID>/flows/<Flow ID>/transitionRouteGroups/<Transition Route Group ID>`.
+ * [TransitionRouteGroups.CreateTransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroups.CreateTransitionRouteGroup]
+ * populates the name automatically. Format: `projects/<Project
+ * ID>/locations/<Location ID>/agents/<Agent ID>/flows/<Flow
+ * ID>/transitionRouteGroups/<Transition Route Group ID>`.
*
*
* string name = 1;
@@ -747,8 +776,8 @@ public Builder setName(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
-
name_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -757,10 +786,10 @@ public Builder setName(java.lang.String value) {
*
*
* The unique identifier of the transition route group.
- * [TransitionRouteGroups.CreateTransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroups.CreateTransitionRouteGroup] populates the name
- * automatically.
- * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
- * ID>/flows/<Flow ID>/transitionRouteGroups/<Transition Route Group ID>`.
+ * [TransitionRouteGroups.CreateTransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroups.CreateTransitionRouteGroup]
+ * populates the name automatically. Format: `projects/<Project
+ * ID>/locations/<Location ID>/agents/<Agent ID>/flows/<Flow
+ * ID>/transitionRouteGroups/<Transition Route Group ID>`.
*
*
* string name = 1;
@@ -768,8 +797,8 @@ public Builder setName(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearName() {
-
name_ = getDefaultInstance().getName();
+ bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
@@ -778,10 +807,10 @@ public Builder clearName() {
*
*
* The unique identifier of the transition route group.
- * [TransitionRouteGroups.CreateTransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroups.CreateTransitionRouteGroup] populates the name
- * automatically.
- * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
- * ID>/flows/<Flow ID>/transitionRouteGroups/<Transition Route Group ID>`.
+ * [TransitionRouteGroups.CreateTransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroups.CreateTransitionRouteGroup]
+ * populates the name automatically. Format: `projects/<Project
+ * ID>/locations/<Location ID>/agents/<Agent ID>/flows/<Flow
+ * ID>/transitionRouteGroups/<Transition Route Group ID>`.
*
*
* string name = 1;
@@ -794,8 +823,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
-
name_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -805,8 +834,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
*
*
*
- * Required. The human-readable name of the transition route group, unique within
- * the flow. The display name can be no longer than 30 characters.
+ * Required. The human-readable name of the transition route group, unique
+ * within the flow. The display name can be no longer than 30 characters.
*
*
* string display_name = 2 [(.google.api.field_behavior) = REQUIRED];
@@ -828,8 +857,8 @@ public java.lang.String getDisplayName() {
*
*
*
- * Required. The human-readable name of the transition route group, unique within
- * the flow. The display name can be no longer than 30 characters.
+ * Required. The human-readable name of the transition route group, unique
+ * within the flow. The display name can be no longer than 30 characters.
*
*
* string display_name = 2 [(.google.api.field_behavior) = REQUIRED];
@@ -851,8 +880,8 @@ public com.google.protobuf.ByteString getDisplayNameBytes() {
*
*
*
- * Required. The human-readable name of the transition route group, unique within
- * the flow. The display name can be no longer than 30 characters.
+ * Required. The human-readable name of the transition route group, unique
+ * within the flow. The display name can be no longer than 30 characters.
*
*
* string display_name = 2 [(.google.api.field_behavior) = REQUIRED];
@@ -864,8 +893,8 @@ public Builder setDisplayName(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
-
displayName_ = value;
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -873,8 +902,8 @@ public Builder setDisplayName(java.lang.String value) {
*
*
*
- * Required. The human-readable name of the transition route group, unique within
- * the flow. The display name can be no longer than 30 characters.
+ * Required. The human-readable name of the transition route group, unique
+ * within the flow. The display name can be no longer than 30 characters.
*
*
* string display_name = 2 [(.google.api.field_behavior) = REQUIRED];
@@ -882,8 +911,8 @@ public Builder setDisplayName(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearDisplayName() {
-
displayName_ = getDefaultInstance().getDisplayName();
+ bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
@@ -891,8 +920,8 @@ public Builder clearDisplayName() {
*
*
*
- * Required. The human-readable name of the transition route group, unique within
- * the flow. The display name can be no longer than 30 characters.
+ * Required. The human-readable name of the transition route group, unique
+ * within the flow. The display name can be no longer than 30 characters.
*
*
* string display_name = 2 [(.google.api.field_behavior) = REQUIRED];
@@ -905,8 +934,8 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
-
displayName_ = value;
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -915,11 +944,11 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) {
java.util.Collections.emptyList();
private void ensureTransitionRoutesIsMutable() {
- if (!((bitField0_ & 0x00000001) != 0)) {
+ if (!((bitField0_ & 0x00000004) != 0)) {
transitionRoutes_ =
new java.util.ArrayList(
transitionRoutes_);
- bitField0_ |= 0x00000001;
+ bitField0_ |= 0x00000004;
}
}
@@ -933,7 +962,8 @@ private void ensureTransitionRoutesIsMutable() {
*
*
*
- * Transition routes associated with the [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].
+ * Transition routes associated with the
+ * [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].
*
*
* repeated .google.cloud.dialogflow.cx.v3.TransitionRoute transition_routes = 5;
@@ -950,7 +980,8 @@ private void ensureTransitionRoutesIsMutable() {
*
*
*
- * Transition routes associated with the [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].
+ * Transition routes associated with the
+ * [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].
*
*
* repeated .google.cloud.dialogflow.cx.v3.TransitionRoute transition_routes = 5;
@@ -966,7 +997,8 @@ public int getTransitionRoutesCount() {
*
*
*
- * Transition routes associated with the [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].
+ * Transition routes associated with the
+ * [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].
*
*
* repeated .google.cloud.dialogflow.cx.v3.TransitionRoute transition_routes = 5;
@@ -982,7 +1014,8 @@ public com.google.cloud.dialogflow.cx.v3.TransitionRoute getTransitionRoutes(int
*
*
*
- * Transition routes associated with the [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].
+ * Transition routes associated with the
+ * [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].
*
*
* repeated .google.cloud.dialogflow.cx.v3.TransitionRoute transition_routes = 5;
@@ -1005,7 +1038,8 @@ public Builder setTransitionRoutes(
*
*
*
- * Transition routes associated with the [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].
+ * Transition routes associated with the
+ * [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].
*
*
* repeated .google.cloud.dialogflow.cx.v3.TransitionRoute transition_routes = 5;
@@ -1025,7 +1059,8 @@ public Builder setTransitionRoutes(
*
*
*
- * Transition routes associated with the [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].
+ * Transition routes associated with the
+ * [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].
*
*
* repeated .google.cloud.dialogflow.cx.v3.TransitionRoute transition_routes = 5;
@@ -1047,7 +1082,8 @@ public Builder addTransitionRoutes(com.google.cloud.dialogflow.cx.v3.TransitionR
*
*
*
- * Transition routes associated with the [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].
+ * Transition routes associated with the
+ * [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].
*
*
* repeated .google.cloud.dialogflow.cx.v3.TransitionRoute transition_routes = 5;
@@ -1070,7 +1106,8 @@ public Builder addTransitionRoutes(
*
*
*
- * Transition routes associated with the [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].
+ * Transition routes associated with the
+ * [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].
*
*
* repeated .google.cloud.dialogflow.cx.v3.TransitionRoute transition_routes = 5;
@@ -1090,7 +1127,8 @@ public Builder addTransitionRoutes(
*
*
*
- * Transition routes associated with the [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].
+ * Transition routes associated with the
+ * [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].
*
*
* repeated .google.cloud.dialogflow.cx.v3.TransitionRoute transition_routes = 5;
@@ -1110,7 +1148,8 @@ public Builder addTransitionRoutes(
*
*
*
- * Transition routes associated with the [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].
+ * Transition routes associated with the
+ * [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].
*
*
* repeated .google.cloud.dialogflow.cx.v3.TransitionRoute transition_routes = 5;
@@ -1130,7 +1169,8 @@ public Builder addAllTransitionRoutes(
*
*
*
- * Transition routes associated with the [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].
+ * Transition routes associated with the
+ * [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].
*
*
* repeated .google.cloud.dialogflow.cx.v3.TransitionRoute transition_routes = 5;
@@ -1138,7 +1178,7 @@ public Builder addAllTransitionRoutes(
public Builder clearTransitionRoutes() {
if (transitionRoutesBuilder_ == null) {
transitionRoutes_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000001);
+ bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
} else {
transitionRoutesBuilder_.clear();
@@ -1149,7 +1189,8 @@ public Builder clearTransitionRoutes() {
*
*
*
- * Transition routes associated with the [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].
+ * Transition routes associated with the
+ * [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].
*
*
* repeated .google.cloud.dialogflow.cx.v3.TransitionRoute transition_routes = 5;
@@ -1168,7 +1209,8 @@ public Builder removeTransitionRoutes(int index) {
*
*
*
- * Transition routes associated with the [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].
+ * Transition routes associated with the
+ * [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].
*
*
* repeated .google.cloud.dialogflow.cx.v3.TransitionRoute transition_routes = 5;
@@ -1181,7 +1223,8 @@ public com.google.cloud.dialogflow.cx.v3.TransitionRoute.Builder getTransitionRo
*
*
*
- * Transition routes associated with the [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].
+ * Transition routes associated with the
+ * [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].
*
*
* repeated .google.cloud.dialogflow.cx.v3.TransitionRoute transition_routes = 5;
@@ -1198,7 +1241,8 @@ public com.google.cloud.dialogflow.cx.v3.TransitionRouteOrBuilder getTransitionR
*
*
*
- * Transition routes associated with the [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].
+ * Transition routes associated with the
+ * [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].
*
*
* repeated .google.cloud.dialogflow.cx.v3.TransitionRoute transition_routes = 5;
@@ -1215,7 +1259,8 @@ public com.google.cloud.dialogflow.cx.v3.TransitionRouteOrBuilder getTransitionR
*
*
*
- * Transition routes associated with the [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].
+ * Transition routes associated with the
+ * [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].
*
*
* repeated .google.cloud.dialogflow.cx.v3.TransitionRoute transition_routes = 5;
@@ -1228,7 +1273,8 @@ public com.google.cloud.dialogflow.cx.v3.TransitionRoute.Builder addTransitionRo
*
*
*
- * Transition routes associated with the [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].
+ * Transition routes associated with the
+ * [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].
*
*
* repeated .google.cloud.dialogflow.cx.v3.TransitionRoute transition_routes = 5;
@@ -1243,7 +1289,8 @@ public com.google.cloud.dialogflow.cx.v3.TransitionRoute.Builder addTransitionRo
*
*
*
- * Transition routes associated with the [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].
+ * Transition routes associated with the
+ * [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].
*
*
* repeated .google.cloud.dialogflow.cx.v3.TransitionRoute transition_routes = 5;
@@ -1265,7 +1312,7 @@ public com.google.cloud.dialogflow.cx.v3.TransitionRoute.Builder addTransitionRo
com.google.cloud.dialogflow.cx.v3.TransitionRoute.Builder,
com.google.cloud.dialogflow.cx.v3.TransitionRouteOrBuilder>(
transitionRoutes_,
- ((bitField0_ & 0x00000001) != 0),
+ ((bitField0_ & 0x00000004) != 0),
getParentForChildren(),
isClean());
transitionRoutes_ = null;
diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TransitionRouteGroupCoverage.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TransitionRouteGroupCoverage.java
index 0b1c04edb055..4c21c5e1ca53 100644
--- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TransitionRouteGroupCoverage.java
+++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TransitionRouteGroupCoverage.java
@@ -392,11 +392,13 @@ public com.google.cloud.dialogflow.cx.v3.TransitionRoute getTransitionRoute() {
@java.lang.Override
public com.google.cloud.dialogflow.cx.v3.TransitionRouteOrBuilder
getTransitionRouteOrBuilder() {
- return getTransitionRoute();
+ return transitionRoute_ == null
+ ? com.google.cloud.dialogflow.cx.v3.TransitionRoute.getDefaultInstance()
+ : transitionRoute_;
}
public static final int COVERED_FIELD_NUMBER = 2;
- private boolean covered_;
+ private boolean covered_ = false;
/**
*
*
@@ -657,14 +659,13 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
@java.lang.Override
public Builder clear() {
super.clear();
- if (transitionRouteBuilder_ == null) {
- transitionRoute_ = null;
- } else {
- transitionRoute_ = null;
+ bitField0_ = 0;
+ transitionRoute_ = null;
+ if (transitionRouteBuilder_ != null) {
+ transitionRouteBuilder_.dispose();
transitionRouteBuilder_ = null;
}
covered_ = false;
-
return this;
}
@@ -699,16 +700,28 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
result =
new com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage
.Transition(this);
- if (transitionRouteBuilder_ == null) {
- result.transitionRoute_ = transitionRoute_;
- } else {
- result.transitionRoute_ = transitionRouteBuilder_.build();
+ if (bitField0_ != 0) {
+ buildPartial0(result);
}
- result.covered_ = covered_;
onBuilt();
return result;
}
+ private void buildPartial0(
+ com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Transition
+ result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.transitionRoute_ =
+ transitionRouteBuilder_ == null
+ ? transitionRoute_
+ : transitionRouteBuilder_.build();
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.covered_ = covered_;
+ }
+ }
+
@java.lang.Override
public Builder clone() {
return super.clone();
@@ -800,13 +813,13 @@ public Builder mergeFrom(
{
input.readMessage(
getTransitionRouteFieldBuilder().getBuilder(), extensionRegistry);
-
+ bitField0_ |= 0x00000001;
break;
} // case 10
case 16:
{
covered_ = input.readBool();
-
+ bitField0_ |= 0x00000002;
break;
} // case 16
default:
@@ -826,6 +839,8 @@ public Builder mergeFrom(
return this;
}
+ private int bitField0_;
+
private com.google.cloud.dialogflow.cx.v3.TransitionRoute transitionRoute_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.dialogflow.cx.v3.TransitionRoute,
@@ -844,7 +859,7 @@ public Builder mergeFrom(
* @return Whether the transitionRoute field is set.
*/
public boolean hasTransitionRoute() {
- return transitionRouteBuilder_ != null || transitionRoute_ != null;
+ return ((bitField0_ & 0x00000001) != 0);
}
/**
*
@@ -881,11 +896,11 @@ public Builder setTransitionRoute(com.google.cloud.dialogflow.cx.v3.TransitionRo
throw new NullPointerException();
}
transitionRoute_ = value;
- onChanged();
} else {
transitionRouteBuilder_.setMessage(value);
}
-
+ bitField0_ |= 0x00000001;
+ onChanged();
return this;
}
/**
@@ -901,11 +916,11 @@ public Builder setTransitionRoute(
com.google.cloud.dialogflow.cx.v3.TransitionRoute.Builder builderForValue) {
if (transitionRouteBuilder_ == null) {
transitionRoute_ = builderForValue.build();
- onChanged();
} else {
transitionRouteBuilder_.setMessage(builderForValue.build());
}
-
+ bitField0_ |= 0x00000001;
+ onChanged();
return this;
}
/**
@@ -920,19 +935,19 @@ public Builder setTransitionRoute(
public Builder mergeTransitionRoute(
com.google.cloud.dialogflow.cx.v3.TransitionRoute value) {
if (transitionRouteBuilder_ == null) {
- if (transitionRoute_ != null) {
- transitionRoute_ =
- com.google.cloud.dialogflow.cx.v3.TransitionRoute.newBuilder(transitionRoute_)
- .mergeFrom(value)
- .buildPartial();
+ if (((bitField0_ & 0x00000001) != 0)
+ && transitionRoute_ != null
+ && transitionRoute_
+ != com.google.cloud.dialogflow.cx.v3.TransitionRoute.getDefaultInstance()) {
+ getTransitionRouteBuilder().mergeFrom(value);
} else {
transitionRoute_ = value;
}
- onChanged();
} else {
transitionRouteBuilder_.mergeFrom(value);
}
-
+ bitField0_ |= 0x00000001;
+ onChanged();
return this;
}
/**
@@ -945,14 +960,13 @@ public Builder mergeTransitionRoute(
* .google.cloud.dialogflow.cx.v3.TransitionRoute transition_route = 1;
*/
public Builder clearTransitionRoute() {
- if (transitionRouteBuilder_ == null) {
- transitionRoute_ = null;
- onChanged();
- } else {
- transitionRoute_ = null;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ transitionRoute_ = null;
+ if (transitionRouteBuilder_ != null) {
+ transitionRouteBuilder_.dispose();
transitionRouteBuilder_ = null;
}
-
+ onChanged();
return this;
}
/**
@@ -966,7 +980,7 @@ public Builder clearTransitionRoute() {
*/
public com.google.cloud.dialogflow.cx.v3.TransitionRoute.Builder
getTransitionRouteBuilder() {
-
+ bitField0_ |= 0x00000001;
onChanged();
return getTransitionRouteFieldBuilder().getBuilder();
}
@@ -1048,6 +1062,7 @@ public boolean getCovered() {
public Builder setCovered(boolean value) {
covered_ = value;
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -1064,7 +1079,7 @@ public Builder setCovered(boolean value) {
* @return This builder for chaining.
*/
public Builder clearCovered() {
-
+ bitField0_ = (bitField0_ & ~0x00000002);
covered_ = false;
onChanged();
return this;
@@ -1187,10 +1202,14 @@ public com.google.cloud.dialogflow.cx.v3.TransitionRouteGroup getRouteGroup() {
@java.lang.Override
public com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupOrBuilder
getRouteGroupOrBuilder() {
- return getRouteGroup();
+ return routeGroup_ == null
+ ? com.google.cloud.dialogflow.cx.v3.TransitionRouteGroup.getDefaultInstance()
+ : routeGroup_;
}
public static final int TRANSITIONS_FIELD_NUMBER = 2;
+
+ @SuppressWarnings("serial")
private java.util.List<
com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Transition>
transitions_;
@@ -1280,7 +1299,7 @@ public int getTransitionsCount() {
}
public static final int COVERAGE_SCORE_FIELD_NUMBER = 3;
- private float coverageScore_;
+ private float coverageScore_ = 0F;
/**
*
*
@@ -1528,10 +1547,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
@java.lang.Override
public Builder clear() {
super.clear();
- if (routeGroupBuilder_ == null) {
- routeGroup_ = null;
- } else {
- routeGroup_ = null;
+ bitField0_ = 0;
+ routeGroup_ = null;
+ if (routeGroupBuilder_ != null) {
+ routeGroupBuilder_.dispose();
routeGroupBuilder_ = null;
}
if (transitionsBuilder_ == null) {
@@ -1540,9 +1559,8 @@ public Builder clear() {
transitions_ = null;
transitionsBuilder_.clear();
}
- bitField0_ = (bitField0_ & ~0x00000001);
+ bitField0_ = (bitField0_ & ~0x00000002);
coverageScore_ = 0F;
-
return this;
}
@@ -1574,24 +1592,37 @@ public com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage b
buildPartial() {
com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage result =
new com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage(this);
- int from_bitField0_ = bitField0_;
- if (routeGroupBuilder_ == null) {
- result.routeGroup_ = routeGroup_;
- } else {
- result.routeGroup_ = routeGroupBuilder_.build();
+ buildPartialRepeatedFields(result);
+ if (bitField0_ != 0) {
+ buildPartial0(result);
}
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartialRepeatedFields(
+ com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage result) {
if (transitionsBuilder_ == null) {
- if (((bitField0_ & 0x00000001) != 0)) {
+ if (((bitField0_ & 0x00000002) != 0)) {
transitions_ = java.util.Collections.unmodifiableList(transitions_);
- bitField0_ = (bitField0_ & ~0x00000001);
+ bitField0_ = (bitField0_ & ~0x00000002);
}
result.transitions_ = transitions_;
} else {
result.transitions_ = transitionsBuilder_.build();
}
- result.coverageScore_ = coverageScore_;
- onBuilt();
- return result;
+ }
+
+ private void buildPartial0(
+ com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.routeGroup_ =
+ routeGroupBuilder_ == null ? routeGroup_ : routeGroupBuilder_.build();
+ }
+ if (((from_bitField0_ & 0x00000004) != 0)) {
+ result.coverageScore_ = coverageScore_;
+ }
}
@java.lang.Override
@@ -1653,7 +1684,7 @@ public Builder mergeFrom(
if (!other.transitions_.isEmpty()) {
if (transitions_.isEmpty()) {
transitions_ = other.transitions_;
- bitField0_ = (bitField0_ & ~0x00000001);
+ bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureTransitionsIsMutable();
transitions_.addAll(other.transitions_);
@@ -1666,7 +1697,7 @@ public Builder mergeFrom(
transitionsBuilder_.dispose();
transitionsBuilder_ = null;
transitions_ = other.transitions_;
- bitField0_ = (bitField0_ & ~0x00000001);
+ bitField0_ = (bitField0_ & ~0x00000002);
transitionsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
? getTransitionsFieldBuilder()
@@ -1708,7 +1739,7 @@ public Builder mergeFrom(
case 10:
{
input.readMessage(getRouteGroupFieldBuilder().getBuilder(), extensionRegistry);
-
+ bitField0_ |= 0x00000001;
break;
} // case 10
case 18:
@@ -1730,7 +1761,7 @@ public Builder mergeFrom(
case 29:
{
coverageScore_ = input.readFloat();
-
+ bitField0_ |= 0x00000004;
break;
} // case 29
default:
@@ -1770,7 +1801,7 @@ public Builder mergeFrom(
* @return Whether the routeGroup field is set.
*/
public boolean hasRouteGroup() {
- return routeGroupBuilder_ != null || routeGroup_ != null;
+ return ((bitField0_ & 0x00000001) != 0);
}
/**
*
@@ -1807,11 +1838,11 @@ public Builder setRouteGroup(com.google.cloud.dialogflow.cx.v3.TransitionRouteGr
throw new NullPointerException();
}
routeGroup_ = value;
- onChanged();
} else {
routeGroupBuilder_.setMessage(value);
}
-
+ bitField0_ |= 0x00000001;
+ onChanged();
return this;
}
/**
@@ -1827,11 +1858,11 @@ public Builder setRouteGroup(
com.google.cloud.dialogflow.cx.v3.TransitionRouteGroup.Builder builderForValue) {
if (routeGroupBuilder_ == null) {
routeGroup_ = builderForValue.build();
- onChanged();
} else {
routeGroupBuilder_.setMessage(builderForValue.build());
}
-
+ bitField0_ |= 0x00000001;
+ onChanged();
return this;
}
/**
@@ -1845,19 +1876,19 @@ public Builder setRouteGroup(
*/
public Builder mergeRouteGroup(com.google.cloud.dialogflow.cx.v3.TransitionRouteGroup value) {
if (routeGroupBuilder_ == null) {
- if (routeGroup_ != null) {
- routeGroup_ =
- com.google.cloud.dialogflow.cx.v3.TransitionRouteGroup.newBuilder(routeGroup_)
- .mergeFrom(value)
- .buildPartial();
+ if (((bitField0_ & 0x00000001) != 0)
+ && routeGroup_ != null
+ && routeGroup_
+ != com.google.cloud.dialogflow.cx.v3.TransitionRouteGroup.getDefaultInstance()) {
+ getRouteGroupBuilder().mergeFrom(value);
} else {
routeGroup_ = value;
}
- onChanged();
} else {
routeGroupBuilder_.mergeFrom(value);
}
-
+ bitField0_ |= 0x00000001;
+ onChanged();
return this;
}
/**
@@ -1870,14 +1901,13 @@ public Builder mergeRouteGroup(com.google.cloud.dialogflow.cx.v3.TransitionRoute
* .google.cloud.dialogflow.cx.v3.TransitionRouteGroup route_group = 1;
*/
public Builder clearRouteGroup() {
- if (routeGroupBuilder_ == null) {
- routeGroup_ = null;
- onChanged();
- } else {
- routeGroup_ = null;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ routeGroup_ = null;
+ if (routeGroupBuilder_ != null) {
+ routeGroupBuilder_.dispose();
routeGroupBuilder_ = null;
}
-
+ onChanged();
return this;
}
/**
@@ -1890,7 +1920,7 @@ public Builder clearRouteGroup() {
* .google.cloud.dialogflow.cx.v3.TransitionRouteGroup route_group = 1;
*/
public com.google.cloud.dialogflow.cx.v3.TransitionRouteGroup.Builder getRouteGroupBuilder() {
-
+ bitField0_ |= 0x00000001;
onChanged();
return getRouteGroupFieldBuilder().getBuilder();
}
@@ -1944,12 +1974,12 @@ public com.google.cloud.dialogflow.cx.v3.TransitionRouteGroup.Builder getRouteGr
transitions_ = java.util.Collections.emptyList();
private void ensureTransitionsIsMutable() {
- if (!((bitField0_ & 0x00000001) != 0)) {
+ if (!((bitField0_ & 0x00000002) != 0)) {
transitions_ =
new java.util.ArrayList<
com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage
.Transition>(transitions_);
- bitField0_ |= 0x00000001;
+ bitField0_ |= 0x00000002;
}
}
@@ -2209,7 +2239,7 @@ public Builder addAllTransitions(
public Builder clearTransitions() {
if (transitionsBuilder_ == null) {
transitions_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000001);
+ bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
transitionsBuilder_.clear();
@@ -2369,7 +2399,7 @@ public Builder removeTransitions(int index) {
com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage
.TransitionOrBuilder>(
transitions_,
- ((bitField0_ & 0x00000001) != 0),
+ ((bitField0_ & 0x00000002) != 0),
getParentForChildren(),
isClean());
transitions_ = null;
@@ -2410,6 +2440,7 @@ public float getCoverageScore() {
public Builder setCoverageScore(float value) {
coverageScore_ = value;
+ bitField0_ |= 0x00000004;
onChanged();
return this;
}
@@ -2426,7 +2457,7 @@ public Builder setCoverageScore(float value) {
* @return This builder for chaining.
*/
public Builder clearCoverageScore() {
-
+ bitField0_ = (bitField0_ & ~0x00000004);
coverageScore_ = 0F;
onChanged();
return this;
@@ -2501,6 +2532,8 @@ public com.google.protobuf.Parser getParserForType() {
}
public static final int COVERAGES_FIELD_NUMBER = 1;
+
+ @SuppressWarnings("serial")
private java.util.List
coverages_;
/**
@@ -2586,7 +2619,7 @@ public com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage g
}
public static final int COVERAGE_SCORE_FIELD_NUMBER = 2;
- private float coverageScore_;
+ private float coverageScore_ = 0F;
/**
*
*
@@ -2816,6 +2849,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
@java.lang.Override
public Builder clear() {
super.clear();
+ bitField0_ = 0;
if (coveragesBuilder_ == null) {
coverages_ = java.util.Collections.emptyList();
} else {
@@ -2824,7 +2858,6 @@ public Builder clear() {
}
bitField0_ = (bitField0_ & ~0x00000001);
coverageScore_ = 0F;
-
return this;
}
@@ -2853,7 +2886,16 @@ public com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage build() {
public com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage buildPartial() {
com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage result =
new com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage(this);
- int from_bitField0_ = bitField0_;
+ buildPartialRepeatedFields(result);
+ if (bitField0_ != 0) {
+ buildPartial0(result);
+ }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartialRepeatedFields(
+ com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage result) {
if (coveragesBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
coverages_ = java.util.Collections.unmodifiableList(coverages_);
@@ -2863,9 +2905,14 @@ public com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage buildParti
} else {
result.coverages_ = coveragesBuilder_.build();
}
- result.coverageScore_ = coverageScore_;
- onBuilt();
- return result;
+ }
+
+ private void buildPartial0(
+ com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.coverageScore_ = coverageScore_;
+ }
}
@java.lang.Override
@@ -2989,7 +3036,7 @@ public Builder mergeFrom(
case 21:
{
coverageScore_ = input.readFloat();
-
+ bitField0_ |= 0x00000002;
break;
} // case 21
default:
@@ -3457,6 +3504,7 @@ public float getCoverageScore() {
public Builder setCoverageScore(float value) {
coverageScore_ = value;
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -3473,7 +3521,7 @@ public Builder setCoverageScore(float value) {
* @return This builder for chaining.
*/
public Builder clearCoverageScore() {
-
+ bitField0_ = (bitField0_ & ~0x00000002);
coverageScore_ = 0F;
onChanged();
return this;
diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TransitionRouteGroupOrBuilder.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TransitionRouteGroupOrBuilder.java
index 718ae7240856..051b70458d72 100644
--- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TransitionRouteGroupOrBuilder.java
+++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TransitionRouteGroupOrBuilder.java
@@ -28,10 +28,10 @@ public interface TransitionRouteGroupOrBuilder
*
*
* The unique identifier of the transition route group.
- * [TransitionRouteGroups.CreateTransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroups.CreateTransitionRouteGroup] populates the name
- * automatically.
- * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
- * ID>/flows/<Flow ID>/transitionRouteGroups/<Transition Route Group ID>`.
+ * [TransitionRouteGroups.CreateTransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroups.CreateTransitionRouteGroup]
+ * populates the name automatically. Format: `projects/<Project
+ * ID>/locations/<Location ID>/agents/<Agent ID>/flows/<Flow
+ * ID>/transitionRouteGroups/<Transition Route Group ID>`.
*
*
* string name = 1;
@@ -44,10 +44,10 @@ public interface TransitionRouteGroupOrBuilder
*
*
* The unique identifier of the transition route group.
- * [TransitionRouteGroups.CreateTransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroups.CreateTransitionRouteGroup] populates the name
- * automatically.
- * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
- * ID>/flows/<Flow ID>/transitionRouteGroups/<Transition Route Group ID>`.
+ * [TransitionRouteGroups.CreateTransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroups.CreateTransitionRouteGroup]
+ * populates the name automatically. Format: `projects/<Project
+ * ID>/locations/<Location ID>/agents/<Agent ID>/flows/<Flow
+ * ID>/transitionRouteGroups/<Transition Route Group ID>`.
*
*
* string name = 1;
@@ -60,8 +60,8 @@ public interface TransitionRouteGroupOrBuilder
*
*
*
- * Required. The human-readable name of the transition route group, unique within
- * the flow. The display name can be no longer than 30 characters.
+ * Required. The human-readable name of the transition route group, unique
+ * within the flow. The display name can be no longer than 30 characters.
*
*
* string display_name = 2 [(.google.api.field_behavior) = REQUIRED];
@@ -73,8 +73,8 @@ public interface TransitionRouteGroupOrBuilder
*
*
*
- * Required. The human-readable name of the transition route group, unique within
- * the flow. The display name can be no longer than 30 characters.
+ * Required. The human-readable name of the transition route group, unique
+ * within the flow. The display name can be no longer than 30 characters.
*
*
* string display_name = 2 [(.google.api.field_behavior) = REQUIRED];
@@ -87,7 +87,8 @@ public interface TransitionRouteGroupOrBuilder
*
*
*
- * Transition routes associated with the [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].
+ * Transition routes associated with the
+ * [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].
*
*
* repeated .google.cloud.dialogflow.cx.v3.TransitionRoute transition_routes = 5;
@@ -97,7 +98,8 @@ public interface TransitionRouteGroupOrBuilder
*
*
*
- * Transition routes associated with the [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].
+ * Transition routes associated with the
+ * [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].
*
*
* repeated .google.cloud.dialogflow.cx.v3.TransitionRoute transition_routes = 5;
@@ -107,7 +109,8 @@ public interface TransitionRouteGroupOrBuilder
*
*
*
- * Transition routes associated with the [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].
+ * Transition routes associated with the
+ * [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].
*
*
* repeated .google.cloud.dialogflow.cx.v3.TransitionRoute transition_routes = 5;
@@ -117,7 +120,8 @@ public interface TransitionRouteGroupOrBuilder
*
*
*
- * Transition routes associated with the [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].
+ * Transition routes associated with the
+ * [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].
*
*
* repeated .google.cloud.dialogflow.cx.v3.TransitionRoute transition_routes = 5;
@@ -128,7 +132,8 @@ public interface TransitionRouteGroupOrBuilder
*
*
*
- * Transition routes associated with the [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].
+ * Transition routes associated with the
+ * [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].
*
*
* repeated .google.cloud.dialogflow.cx.v3.TransitionRoute transition_routes = 5;
diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TransitionRouteGroupProto.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TransitionRouteGroupProto.java
index c08086a59509..bfe1246fb165 100644
--- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TransitionRouteGroupProto.java
+++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TransitionRouteGroupProto.java
@@ -140,13 +140,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "/transitionRouteGroups/*}\332A\004name\032x\312A\031dia"
+ "logflow.googleapis.com\322AYhttps://www.goo"
+ "gleapis.com/auth/cloud-platform,https://"
- + "www.googleapis.com/auth/dialogflowB\315\001\n!c"
+ + "www.googleapis.com/auth/dialogflowB\277\001\n!c"
+ "om.google.cloud.dialogflow.cx.v3B\031Transi"
- + "tionRouteGroupProtoP\001Z?google.golang.org"
- + "/genproto/googleapis/cloud/dialogflow/cx"
- + "/v3;cx\370\001\001\242\002\002DF\252\002\035Google.Cloud.Dialogflow"
- + ".Cx.V3\352\002!Google::Cloud::Dialogflow::CX::"
- + "V3b\006proto3"
+ + "tionRouteGroupProtoP\001Z1cloud.google.com/"
+ + "go/dialogflow/cx/apiv3/cxpb;cxpb\370\001\001\242\002\002DF"
+ + "\252\002\035Google.Cloud.Dialogflow.Cx.V3\352\002!Googl"
+ + "e::Cloud::Dialogflow::CX::V3b\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TransitionRouteOrBuilder.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TransitionRouteOrBuilder.java
index 564036c10cab..2a28fdf6a75c 100644
--- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TransitionRouteOrBuilder.java
+++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TransitionRouteOrBuilder.java
@@ -91,8 +91,9 @@ public interface TransitionRouteOrBuilder
*
*
*
- * The condition to evaluate against [form parameters][google.cloud.dialogflow.cx.v3.Form.parameters] or
- * [session parameters][google.cloud.dialogflow.cx.v3.SessionInfo.parameters].
+ * The condition to evaluate against [form
+ * parameters][google.cloud.dialogflow.cx.v3.Form.parameters] or [session
+ * parameters][google.cloud.dialogflow.cx.v3.SessionInfo.parameters].
* See the [conditions
* reference](https://cloud.google.com/dialogflow/cx/docs/reference/condition).
* At least one of `intent` or `condition` must be specified. When both
@@ -109,8 +110,9 @@ public interface TransitionRouteOrBuilder
*
*
*
- * The condition to evaluate against [form parameters][google.cloud.dialogflow.cx.v3.Form.parameters] or
- * [session parameters][google.cloud.dialogflow.cx.v3.SessionInfo.parameters].
+ * The condition to evaluate against [form
+ * parameters][google.cloud.dialogflow.cx.v3.Form.parameters] or [session
+ * parameters][google.cloud.dialogflow.cx.v3.SessionInfo.parameters].
* See the [conditions
* reference](https://cloud.google.com/dialogflow/cx/docs/reference/condition).
* At least one of `intent` or `condition` must be specified. When both
diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/UpdateAgentRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/UpdateAgentRequest.java
index f23944faca87..8787f7eb7ea1 100644
--- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/UpdateAgentRequest.java
+++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/UpdateAgentRequest.java
@@ -22,7 +22,8 @@
*
*
*
- * The request message for [Agents.UpdateAgent][google.cloud.dialogflow.cx.v3.Agents.UpdateAgent].
+ * The request message for
+ * [Agents.UpdateAgent][google.cloud.dialogflow.cx.v3.Agents.UpdateAgent].
*
*
* Protobuf type {@code google.cloud.dialogflow.cx.v3.UpdateAgentRequest}
@@ -111,7 +112,7 @@ public com.google.cloud.dialogflow.cx.v3.Agent getAgent() {
*/
@java.lang.Override
public com.google.cloud.dialogflow.cx.v3.AgentOrBuilder getAgentOrBuilder() {
- return getAgent();
+ return agent_ == null ? com.google.cloud.dialogflow.cx.v3.Agent.getDefaultInstance() : agent_;
}
public static final int UPDATE_MASK_FIELD_NUMBER = 2;
@@ -160,7 +161,7 @@ public com.google.protobuf.FieldMask getUpdateMask() {
*/
@java.lang.Override
public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
- return getUpdateMask();
+ return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_;
}
private byte memoizedIsInitialized = -1;
@@ -345,7 +346,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
*
*
*
- * The request message for [Agents.UpdateAgent][google.cloud.dialogflow.cx.v3.Agents.UpdateAgent].
+ * The request message for
+ * [Agents.UpdateAgent][google.cloud.dialogflow.cx.v3.Agents.UpdateAgent].
*
*
* Protobuf type {@code google.cloud.dialogflow.cx.v3.UpdateAgentRequest}
@@ -379,16 +381,15 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
@java.lang.Override
public Builder clear() {
super.clear();
- if (agentBuilder_ == null) {
- agent_ = null;
- } else {
- agent_ = null;
+ bitField0_ = 0;
+ agent_ = null;
+ if (agentBuilder_ != null) {
+ agentBuilder_.dispose();
agentBuilder_ = null;
}
- if (updateMaskBuilder_ == null) {
- updateMask_ = null;
- } else {
- updateMask_ = null;
+ updateMask_ = null;
+ if (updateMaskBuilder_ != null) {
+ updateMaskBuilder_.dispose();
updateMaskBuilder_ = null;
}
return this;
@@ -418,20 +419,23 @@ public com.google.cloud.dialogflow.cx.v3.UpdateAgentRequest build() {
public com.google.cloud.dialogflow.cx.v3.UpdateAgentRequest buildPartial() {
com.google.cloud.dialogflow.cx.v3.UpdateAgentRequest result =
new com.google.cloud.dialogflow.cx.v3.UpdateAgentRequest(this);
- if (agentBuilder_ == null) {
- result.agent_ = agent_;
- } else {
- result.agent_ = agentBuilder_.build();
- }
- if (updateMaskBuilder_ == null) {
- result.updateMask_ = updateMask_;
- } else {
- result.updateMask_ = updateMaskBuilder_.build();
+ if (bitField0_ != 0) {
+ buildPartial0(result);
}
onBuilt();
return result;
}
+ private void buildPartial0(com.google.cloud.dialogflow.cx.v3.UpdateAgentRequest result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.agent_ = agentBuilder_ == null ? agent_ : agentBuilder_.build();
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build();
+ }
+ }
+
@java.lang.Override
public Builder clone() {
return super.clone();
@@ -513,13 +517,13 @@ public Builder mergeFrom(
case 10:
{
input.readMessage(getAgentFieldBuilder().getBuilder(), extensionRegistry);
-
+ bitField0_ |= 0x00000001;
break;
} // case 10
case 18:
{
input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry);
-
+ bitField0_ |= 0x00000002;
break;
} // case 18
default:
@@ -539,6 +543,8 @@ public Builder mergeFrom(
return this;
}
+ private int bitField0_;
+
private com.google.cloud.dialogflow.cx.v3.Agent agent_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.dialogflow.cx.v3.Agent,
@@ -559,7 +565,7 @@ public Builder mergeFrom(
* @return Whether the agent field is set.
*/
public boolean hasAgent() {
- return agentBuilder_ != null || agent_ != null;
+ return ((bitField0_ & 0x00000001) != 0);
}
/**
*
@@ -600,11 +606,11 @@ public Builder setAgent(com.google.cloud.dialogflow.cx.v3.Agent value) {
throw new NullPointerException();
}
agent_ = value;
- onChanged();
} else {
agentBuilder_.setMessage(value);
}
-
+ bitField0_ |= 0x00000001;
+ onChanged();
return this;
}
/**
@@ -621,11 +627,11 @@ public Builder setAgent(com.google.cloud.dialogflow.cx.v3.Agent value) {
public Builder setAgent(com.google.cloud.dialogflow.cx.v3.Agent.Builder builderForValue) {
if (agentBuilder_ == null) {
agent_ = builderForValue.build();
- onChanged();
} else {
agentBuilder_.setMessage(builderForValue.build());
}
-
+ bitField0_ |= 0x00000001;
+ onChanged();
return this;
}
/**
@@ -641,19 +647,18 @@ public Builder setAgent(com.google.cloud.dialogflow.cx.v3.Agent.Builder builderF
*/
public Builder mergeAgent(com.google.cloud.dialogflow.cx.v3.Agent value) {
if (agentBuilder_ == null) {
- if (agent_ != null) {
- agent_ =
- com.google.cloud.dialogflow.cx.v3.Agent.newBuilder(agent_)
- .mergeFrom(value)
- .buildPartial();
+ if (((bitField0_ & 0x00000001) != 0)
+ && agent_ != null
+ && agent_ != com.google.cloud.dialogflow.cx.v3.Agent.getDefaultInstance()) {
+ getAgentBuilder().mergeFrom(value);
} else {
agent_ = value;
}
- onChanged();
} else {
agentBuilder_.mergeFrom(value);
}
-
+ bitField0_ |= 0x00000001;
+ onChanged();
return this;
}
/**
@@ -668,14 +673,13 @@ public Builder mergeAgent(com.google.cloud.dialogflow.cx.v3.Agent value) {
*
*/
public Builder clearAgent() {
- if (agentBuilder_ == null) {
- agent_ = null;
- onChanged();
- } else {
- agent_ = null;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ agent_ = null;
+ if (agentBuilder_ != null) {
+ agentBuilder_.dispose();
agentBuilder_ = null;
}
-
+ onChanged();
return this;
}
/**
@@ -690,7 +694,7 @@ public Builder clearAgent() {
*
*/
public com.google.cloud.dialogflow.cx.v3.Agent.Builder getAgentBuilder() {
-
+ bitField0_ |= 0x00000001;
onChanged();
return getAgentFieldBuilder().getBuilder();
}
@@ -761,7 +765,7 @@ public com.google.cloud.dialogflow.cx.v3.AgentOrBuilder getAgentOrBuilder() {
* @return Whether the updateMask field is set.
*/
public boolean hasUpdateMask() {
- return updateMaskBuilder_ != null || updateMask_ != null;
+ return ((bitField0_ & 0x00000002) != 0);
}
/**
*
@@ -800,11 +804,11 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
throw new NullPointerException();
}
updateMask_ = value;
- onChanged();
} else {
updateMaskBuilder_.setMessage(value);
}
-
+ bitField0_ |= 0x00000002;
+ onChanged();
return this;
}
/**
@@ -820,11 +824,11 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) {
if (updateMaskBuilder_ == null) {
updateMask_ = builderForValue.build();
- onChanged();
} else {
updateMaskBuilder_.setMessage(builderForValue.build());
}
-
+ bitField0_ |= 0x00000002;
+ onChanged();
return this;
}
/**
@@ -839,17 +843,18 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal
*/
public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
if (updateMaskBuilder_ == null) {
- if (updateMask_ != null) {
- updateMask_ =
- com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial();
+ if (((bitField0_ & 0x00000002) != 0)
+ && updateMask_ != null
+ && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) {
+ getUpdateMaskBuilder().mergeFrom(value);
} else {
updateMask_ = value;
}
- onChanged();
} else {
updateMaskBuilder_.mergeFrom(value);
}
-
+ bitField0_ |= 0x00000002;
+ onChanged();
return this;
}
/**
@@ -863,14 +868,13 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
* .google.protobuf.FieldMask update_mask = 2;
*/
public Builder clearUpdateMask() {
- if (updateMaskBuilder_ == null) {
- updateMask_ = null;
- onChanged();
- } else {
- updateMask_ = null;
+ bitField0_ = (bitField0_ & ~0x00000002);
+ updateMask_ = null;
+ if (updateMaskBuilder_ != null) {
+ updateMaskBuilder_.dispose();
updateMaskBuilder_ = null;
}
-
+ onChanged();
return this;
}
/**
@@ -884,7 +888,7 @@ public Builder clearUpdateMask() {
* .google.protobuf.FieldMask update_mask = 2;
*/
public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
-
+ bitField0_ |= 0x00000002;
onChanged();
return getUpdateMaskFieldBuilder().getBuilder();
}
diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/UpdateEntityTypeRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/UpdateEntityTypeRequest.java
index 0d24af5ca143..a0f070bd9ffd 100644
--- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/UpdateEntityTypeRequest.java
+++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/UpdateEntityTypeRequest.java
@@ -22,7 +22,8 @@
*
*
*
- * The request message for [EntityTypes.UpdateEntityType][google.cloud.dialogflow.cx.v3.EntityTypes.UpdateEntityType].
+ * The request message for
+ * [EntityTypes.UpdateEntityType][google.cloud.dialogflow.cx.v3.EntityTypes.UpdateEntityType].
*
*
* Protobuf type {@code google.cloud.dialogflow.cx.v3.UpdateEntityTypeRequest}
@@ -118,11 +119,15 @@ public com.google.cloud.dialogflow.cx.v3.EntityType getEntityType() {
*/
@java.lang.Override
public com.google.cloud.dialogflow.cx.v3.EntityTypeOrBuilder getEntityTypeOrBuilder() {
- return getEntityType();
+ return entityType_ == null
+ ? com.google.cloud.dialogflow.cx.v3.EntityType.getDefaultInstance()
+ : entityType_;
}
public static final int LANGUAGE_CODE_FIELD_NUMBER = 2;
- private volatile java.lang.Object languageCode_;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object languageCode_ = "";
/**
*
*
@@ -229,7 +234,7 @@ public com.google.protobuf.FieldMask getUpdateMask() {
*/
@java.lang.Override
public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
- return getUpdateMask();
+ return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_;
}
private byte memoizedIsInitialized = -1;
@@ -424,7 +429,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
*
*
*
- * The request message for [EntityTypes.UpdateEntityType][google.cloud.dialogflow.cx.v3.EntityTypes.UpdateEntityType].
+ * The request message for
+ * [EntityTypes.UpdateEntityType][google.cloud.dialogflow.cx.v3.EntityTypes.UpdateEntityType].
*
*
* Protobuf type {@code google.cloud.dialogflow.cx.v3.UpdateEntityTypeRequest}
@@ -458,18 +464,16 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
@java.lang.Override
public Builder clear() {
super.clear();
- if (entityTypeBuilder_ == null) {
- entityType_ = null;
- } else {
- entityType_ = null;
+ bitField0_ = 0;
+ entityType_ = null;
+ if (entityTypeBuilder_ != null) {
+ entityTypeBuilder_.dispose();
entityTypeBuilder_ = null;
}
languageCode_ = "";
-
- if (updateMaskBuilder_ == null) {
- updateMask_ = null;
- } else {
- updateMask_ = null;
+ updateMask_ = null;
+ if (updateMaskBuilder_ != null) {
+ updateMaskBuilder_.dispose();
updateMaskBuilder_ = null;
}
return this;
@@ -499,21 +503,26 @@ public com.google.cloud.dialogflow.cx.v3.UpdateEntityTypeRequest build() {
public com.google.cloud.dialogflow.cx.v3.UpdateEntityTypeRequest buildPartial() {
com.google.cloud.dialogflow.cx.v3.UpdateEntityTypeRequest result =
new com.google.cloud.dialogflow.cx.v3.UpdateEntityTypeRequest(this);
- if (entityTypeBuilder_ == null) {
- result.entityType_ = entityType_;
- } else {
- result.entityType_ = entityTypeBuilder_.build();
- }
- result.languageCode_ = languageCode_;
- if (updateMaskBuilder_ == null) {
- result.updateMask_ = updateMask_;
- } else {
- result.updateMask_ = updateMaskBuilder_.build();
+ if (bitField0_ != 0) {
+ buildPartial0(result);
}
onBuilt();
return result;
}
+ private void buildPartial0(com.google.cloud.dialogflow.cx.v3.UpdateEntityTypeRequest result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.entityType_ = entityTypeBuilder_ == null ? entityType_ : entityTypeBuilder_.build();
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.languageCode_ = languageCode_;
+ }
+ if (((from_bitField0_ & 0x00000004) != 0)) {
+ result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build();
+ }
+ }
+
@java.lang.Override
public Builder clone() {
return super.clone();
@@ -565,6 +574,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.UpdateEntityTypeReque
}
if (!other.getLanguageCode().isEmpty()) {
languageCode_ = other.languageCode_;
+ bitField0_ |= 0x00000002;
onChanged();
}
if (other.hasUpdateMask()) {
@@ -599,19 +609,19 @@ public Builder mergeFrom(
case 10:
{
input.readMessage(getEntityTypeFieldBuilder().getBuilder(), extensionRegistry);
-
+ bitField0_ |= 0x00000001;
break;
} // case 10
case 18:
{
languageCode_ = input.readStringRequireUtf8();
-
+ bitField0_ |= 0x00000002;
break;
} // case 18
case 26:
{
input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry);
-
+ bitField0_ |= 0x00000004;
break;
} // case 26
default:
@@ -631,6 +641,8 @@ public Builder mergeFrom(
return this;
}
+ private int bitField0_;
+
private com.google.cloud.dialogflow.cx.v3.EntityType entityType_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.dialogflow.cx.v3.EntityType,
@@ -651,7 +663,7 @@ public Builder mergeFrom(
* @return Whether the entityType field is set.
*/
public boolean hasEntityType() {
- return entityTypeBuilder_ != null || entityType_ != null;
+ return ((bitField0_ & 0x00000001) != 0);
}
/**
*
@@ -692,11 +704,11 @@ public Builder setEntityType(com.google.cloud.dialogflow.cx.v3.EntityType value)
throw new NullPointerException();
}
entityType_ = value;
- onChanged();
} else {
entityTypeBuilder_.setMessage(value);
}
-
+ bitField0_ |= 0x00000001;
+ onChanged();
return this;
}
/**
@@ -714,11 +726,11 @@ public Builder setEntityType(
com.google.cloud.dialogflow.cx.v3.EntityType.Builder builderForValue) {
if (entityTypeBuilder_ == null) {
entityType_ = builderForValue.build();
- onChanged();
} else {
entityTypeBuilder_.setMessage(builderForValue.build());
}
-
+ bitField0_ |= 0x00000001;
+ onChanged();
return this;
}
/**
@@ -734,19 +746,18 @@ public Builder setEntityType(
*/
public Builder mergeEntityType(com.google.cloud.dialogflow.cx.v3.EntityType value) {
if (entityTypeBuilder_ == null) {
- if (entityType_ != null) {
- entityType_ =
- com.google.cloud.dialogflow.cx.v3.EntityType.newBuilder(entityType_)
- .mergeFrom(value)
- .buildPartial();
+ if (((bitField0_ & 0x00000001) != 0)
+ && entityType_ != null
+ && entityType_ != com.google.cloud.dialogflow.cx.v3.EntityType.getDefaultInstance()) {
+ getEntityTypeBuilder().mergeFrom(value);
} else {
entityType_ = value;
}
- onChanged();
} else {
entityTypeBuilder_.mergeFrom(value);
}
-
+ bitField0_ |= 0x00000001;
+ onChanged();
return this;
}
/**
@@ -761,14 +772,13 @@ public Builder mergeEntityType(com.google.cloud.dialogflow.cx.v3.EntityType valu
*
*/
public Builder clearEntityType() {
- if (entityTypeBuilder_ == null) {
- entityType_ = null;
- onChanged();
- } else {
- entityType_ = null;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ entityType_ = null;
+ if (entityTypeBuilder_ != null) {
+ entityTypeBuilder_.dispose();
entityTypeBuilder_ = null;
}
-
+ onChanged();
return this;
}
/**
@@ -783,7 +793,7 @@ public Builder clearEntityType() {
*
*/
public com.google.cloud.dialogflow.cx.v3.EntityType.Builder getEntityTypeBuilder() {
-
+ bitField0_ |= 0x00000001;
onChanged();
return getEntityTypeFieldBuilder().getBuilder();
}
@@ -920,8 +930,8 @@ public Builder setLanguageCode(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
-
languageCode_ = value;
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -945,8 +955,8 @@ public Builder setLanguageCode(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearLanguageCode() {
-
languageCode_ = getDefaultInstance().getLanguageCode();
+ bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
@@ -975,8 +985,8 @@ public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
-
languageCode_ = value;
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -999,7 +1009,7 @@ public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) {
* @return Whether the updateMask field is set.
*/
public boolean hasUpdateMask() {
- return updateMaskBuilder_ != null || updateMask_ != null;
+ return ((bitField0_ & 0x00000004) != 0);
}
/**
*
@@ -1036,11 +1046,11 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
throw new NullPointerException();
}
updateMask_ = value;
- onChanged();
} else {
updateMaskBuilder_.setMessage(value);
}
-
+ bitField0_ |= 0x00000004;
+ onChanged();
return this;
}
/**
@@ -1055,11 +1065,11 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) {
if (updateMaskBuilder_ == null) {
updateMask_ = builderForValue.build();
- onChanged();
} else {
updateMaskBuilder_.setMessage(builderForValue.build());
}
-
+ bitField0_ |= 0x00000004;
+ onChanged();
return this;
}
/**
@@ -1073,17 +1083,18 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal
*/
public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
if (updateMaskBuilder_ == null) {
- if (updateMask_ != null) {
- updateMask_ =
- com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial();
+ if (((bitField0_ & 0x00000004) != 0)
+ && updateMask_ != null
+ && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) {
+ getUpdateMaskBuilder().mergeFrom(value);
} else {
updateMask_ = value;
}
- onChanged();
} else {
updateMaskBuilder_.mergeFrom(value);
}
-
+ bitField0_ |= 0x00000004;
+ onChanged();
return this;
}
/**
@@ -1096,14 +1107,13 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
* .google.protobuf.FieldMask update_mask = 3;
*/
public Builder clearUpdateMask() {
- if (updateMaskBuilder_ == null) {
- updateMask_ = null;
- onChanged();
- } else {
- updateMask_ = null;
+ bitField0_ = (bitField0_ & ~0x00000004);
+ updateMask_ = null;
+ if (updateMaskBuilder_ != null) {
+ updateMaskBuilder_.dispose();
updateMaskBuilder_ = null;
}
-
+ onChanged();
return this;
}
/**
@@ -1116,7 +1126,7 @@ public Builder clearUpdateMask() {
* .google.protobuf.FieldMask update_mask = 3;
*/
public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
-
+ bitField0_ |= 0x00000004;
onChanged();
return getUpdateMaskFieldBuilder().getBuilder();
}
diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/UpdateEnvironmentRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/UpdateEnvironmentRequest.java
index 145a79978ef0..6dcfc7b6b554 100644
--- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/UpdateEnvironmentRequest.java
+++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/UpdateEnvironmentRequest.java
@@ -22,7 +22,8 @@
*
*
*
- * The request message for [Environments.UpdateEnvironment][google.cloud.dialogflow.cx.v3.Environments.UpdateEnvironment].
+ * The request message for
+ * [Environments.UpdateEnvironment][google.cloud.dialogflow.cx.v3.Environments.UpdateEnvironment].
*
*
* Protobuf type {@code google.cloud.dialogflow.cx.v3.UpdateEnvironmentRequest}
@@ -116,7 +117,9 @@ public com.google.cloud.dialogflow.cx.v3.Environment getEnvironment() {
*/
@java.lang.Override
public com.google.cloud.dialogflow.cx.v3.EnvironmentOrBuilder getEnvironmentOrBuilder() {
- return getEnvironment();
+ return environment_ == null
+ ? com.google.cloud.dialogflow.cx.v3.Environment.getDefaultInstance()
+ : environment_;
}
public static final int UPDATE_MASK_FIELD_NUMBER = 2;
@@ -165,7 +168,7 @@ public com.google.protobuf.FieldMask getUpdateMask() {
*/
@java.lang.Override
public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
- return getUpdateMask();
+ return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_;
}
private byte memoizedIsInitialized = -1;
@@ -351,7 +354,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
*
*
*
- * The request message for [Environments.UpdateEnvironment][google.cloud.dialogflow.cx.v3.Environments.UpdateEnvironment].
+ * The request message for
+ * [Environments.UpdateEnvironment][google.cloud.dialogflow.cx.v3.Environments.UpdateEnvironment].
*
*
* Protobuf type {@code google.cloud.dialogflow.cx.v3.UpdateEnvironmentRequest}
@@ -385,16 +389,15 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
@java.lang.Override
public Builder clear() {
super.clear();
- if (environmentBuilder_ == null) {
- environment_ = null;
- } else {
- environment_ = null;
+ bitField0_ = 0;
+ environment_ = null;
+ if (environmentBuilder_ != null) {
+ environmentBuilder_.dispose();
environmentBuilder_ = null;
}
- if (updateMaskBuilder_ == null) {
- updateMask_ = null;
- } else {
- updateMask_ = null;
+ updateMask_ = null;
+ if (updateMaskBuilder_ != null) {
+ updateMaskBuilder_.dispose();
updateMaskBuilder_ = null;
}
return this;
@@ -424,20 +427,24 @@ public com.google.cloud.dialogflow.cx.v3.UpdateEnvironmentRequest build() {
public com.google.cloud.dialogflow.cx.v3.UpdateEnvironmentRequest buildPartial() {
com.google.cloud.dialogflow.cx.v3.UpdateEnvironmentRequest result =
new com.google.cloud.dialogflow.cx.v3.UpdateEnvironmentRequest(this);
- if (environmentBuilder_ == null) {
- result.environment_ = environment_;
- } else {
- result.environment_ = environmentBuilder_.build();
- }
- if (updateMaskBuilder_ == null) {
- result.updateMask_ = updateMask_;
- } else {
- result.updateMask_ = updateMaskBuilder_.build();
+ if (bitField0_ != 0) {
+ buildPartial0(result);
}
onBuilt();
return result;
}
+ private void buildPartial0(com.google.cloud.dialogflow.cx.v3.UpdateEnvironmentRequest result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.environment_ =
+ environmentBuilder_ == null ? environment_ : environmentBuilder_.build();
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build();
+ }
+ }
+
@java.lang.Override
public Builder clone() {
return super.clone();
@@ -519,13 +526,13 @@ public Builder mergeFrom(
case 10:
{
input.readMessage(getEnvironmentFieldBuilder().getBuilder(), extensionRegistry);
-
+ bitField0_ |= 0x00000001;
break;
} // case 10
case 18:
{
input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry);
-
+ bitField0_ |= 0x00000002;
break;
} // case 18
default:
@@ -545,6 +552,8 @@ public Builder mergeFrom(
return this;
}
+ private int bitField0_;
+
private com.google.cloud.dialogflow.cx.v3.Environment environment_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.dialogflow.cx.v3.Environment,
@@ -565,7 +574,7 @@ public Builder mergeFrom(
* @return Whether the environment field is set.
*/
public boolean hasEnvironment() {
- return environmentBuilder_ != null || environment_ != null;
+ return ((bitField0_ & 0x00000001) != 0);
}
/**
*
@@ -606,11 +615,11 @@ public Builder setEnvironment(com.google.cloud.dialogflow.cx.v3.Environment valu
throw new NullPointerException();
}
environment_ = value;
- onChanged();
} else {
environmentBuilder_.setMessage(value);
}
-
+ bitField0_ |= 0x00000001;
+ onChanged();
return this;
}
/**
@@ -628,11 +637,11 @@ public Builder setEnvironment(
com.google.cloud.dialogflow.cx.v3.Environment.Builder builderForValue) {
if (environmentBuilder_ == null) {
environment_ = builderForValue.build();
- onChanged();
} else {
environmentBuilder_.setMessage(builderForValue.build());
}
-
+ bitField0_ |= 0x00000001;
+ onChanged();
return this;
}
/**
@@ -648,19 +657,18 @@ public Builder setEnvironment(
*/
public Builder mergeEnvironment(com.google.cloud.dialogflow.cx.v3.Environment value) {
if (environmentBuilder_ == null) {
- if (environment_ != null) {
- environment_ =
- com.google.cloud.dialogflow.cx.v3.Environment.newBuilder(environment_)
- .mergeFrom(value)
- .buildPartial();
+ if (((bitField0_ & 0x00000001) != 0)
+ && environment_ != null
+ && environment_ != com.google.cloud.dialogflow.cx.v3.Environment.getDefaultInstance()) {
+ getEnvironmentBuilder().mergeFrom(value);
} else {
environment_ = value;
}
- onChanged();
} else {
environmentBuilder_.mergeFrom(value);
}
-
+ bitField0_ |= 0x00000001;
+ onChanged();
return this;
}
/**
@@ -675,14 +683,13 @@ public Builder mergeEnvironment(com.google.cloud.dialogflow.cx.v3.Environment va
*
*/
public Builder clearEnvironment() {
- if (environmentBuilder_ == null) {
- environment_ = null;
- onChanged();
- } else {
- environment_ = null;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ environment_ = null;
+ if (environmentBuilder_ != null) {
+ environmentBuilder_.dispose();
environmentBuilder_ = null;
}
-
+ onChanged();
return this;
}
/**
@@ -697,7 +704,7 @@ public Builder clearEnvironment() {
*
*/
public com.google.cloud.dialogflow.cx.v3.Environment.Builder getEnvironmentBuilder() {
-
+ bitField0_ |= 0x00000001;
onChanged();
return getEnvironmentFieldBuilder().getBuilder();
}
@@ -768,7 +775,7 @@ public com.google.cloud.dialogflow.cx.v3.EnvironmentOrBuilder getEnvironmentOrBu
* @return Whether the updateMask field is set.
*/
public boolean hasUpdateMask() {
- return updateMaskBuilder_ != null || updateMask_ != null;
+ return ((bitField0_ & 0x00000002) != 0);
}
/**
*
@@ -807,11 +814,11 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
throw new NullPointerException();
}
updateMask_ = value;
- onChanged();
} else {
updateMaskBuilder_.setMessage(value);
}
-
+ bitField0_ |= 0x00000002;
+ onChanged();
return this;
}
/**
@@ -827,11 +834,11 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) {
if (updateMaskBuilder_ == null) {
updateMask_ = builderForValue.build();
- onChanged();
} else {
updateMaskBuilder_.setMessage(builderForValue.build());
}
-
+ bitField0_ |= 0x00000002;
+ onChanged();
return this;
}
/**
@@ -846,17 +853,18 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal
*/
public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
if (updateMaskBuilder_ == null) {
- if (updateMask_ != null) {
- updateMask_ =
- com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial();
+ if (((bitField0_ & 0x00000002) != 0)
+ && updateMask_ != null
+ && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) {
+ getUpdateMaskBuilder().mergeFrom(value);
} else {
updateMask_ = value;
}
- onChanged();
} else {
updateMaskBuilder_.mergeFrom(value);
}
-
+ bitField0_ |= 0x00000002;
+ onChanged();
return this;
}
/**
@@ -870,14 +878,13 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
*
*/
public Builder clearUpdateMask() {
- if (updateMaskBuilder_ == null) {
- updateMask_ = null;
- onChanged();
- } else {
- updateMask_ = null;
+ bitField0_ = (bitField0_ & ~0x00000002);
+ updateMask_ = null;
+ if (updateMaskBuilder_ != null) {
+ updateMaskBuilder_.dispose();
updateMaskBuilder_ = null;
}
-
+ onChanged();
return this;
}
/**
@@ -891,7 +898,7 @@ public Builder clearUpdateMask() {
*
*/
public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
-
+ bitField0_ |= 0x00000002;
onChanged();
return getUpdateMaskFieldBuilder().getBuilder();
}
diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/UpdateExperimentRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/UpdateExperimentRequest.java
index f5a62ad089a8..a3920b6bf036 100644
--- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/UpdateExperimentRequest.java
+++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/UpdateExperimentRequest.java
@@ -22,7 +22,8 @@
*
*
*
- * The request message for [Experiments.UpdateExperiment][google.cloud.dialogflow.cx.v3.Experiments.UpdateExperiment].
+ * The request message for
+ * [Experiments.UpdateExperiment][google.cloud.dialogflow.cx.v3.Experiments.UpdateExperiment].
*
*
* Protobuf type {@code google.cloud.dialogflow.cx.v3.UpdateExperimentRequest}
@@ -116,7 +117,9 @@ public com.google.cloud.dialogflow.cx.v3.Experiment getExperiment() {
*/
@java.lang.Override
public com.google.cloud.dialogflow.cx.v3.ExperimentOrBuilder getExperimentOrBuilder() {
- return getExperiment();
+ return experiment_ == null
+ ? com.google.cloud.dialogflow.cx.v3.Experiment.getDefaultInstance()
+ : experiment_;
}
public static final int UPDATE_MASK_FIELD_NUMBER = 2;
@@ -165,7 +168,7 @@ public com.google.protobuf.FieldMask getUpdateMask() {
*/
@java.lang.Override
public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
- return getUpdateMask();
+ return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_;
}
private byte memoizedIsInitialized = -1;
@@ -351,7 +354,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
*
*
*
- * The request message for [Experiments.UpdateExperiment][google.cloud.dialogflow.cx.v3.Experiments.UpdateExperiment].
+ * The request message for
+ * [Experiments.UpdateExperiment][google.cloud.dialogflow.cx.v3.Experiments.UpdateExperiment].
*
*
* Protobuf type {@code google.cloud.dialogflow.cx.v3.UpdateExperimentRequest}
@@ -385,16 +389,15 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
@java.lang.Override
public Builder clear() {
super.clear();
- if (experimentBuilder_ == null) {
- experiment_ = null;
- } else {
- experiment_ = null;
+ bitField0_ = 0;
+ experiment_ = null;
+ if (experimentBuilder_ != null) {
+ experimentBuilder_.dispose();
experimentBuilder_ = null;
}
- if (updateMaskBuilder_ == null) {
- updateMask_ = null;
- } else {
- updateMask_ = null;
+ updateMask_ = null;
+ if (updateMaskBuilder_ != null) {
+ updateMaskBuilder_.dispose();
updateMaskBuilder_ = null;
}
return this;
@@ -424,20 +427,23 @@ public com.google.cloud.dialogflow.cx.v3.UpdateExperimentRequest build() {
public com.google.cloud.dialogflow.cx.v3.UpdateExperimentRequest buildPartial() {
com.google.cloud.dialogflow.cx.v3.UpdateExperimentRequest result =
new com.google.cloud.dialogflow.cx.v3.UpdateExperimentRequest(this);
- if (experimentBuilder_ == null) {
- result.experiment_ = experiment_;
- } else {
- result.experiment_ = experimentBuilder_.build();
- }
- if (updateMaskBuilder_ == null) {
- result.updateMask_ = updateMask_;
- } else {
- result.updateMask_ = updateMaskBuilder_.build();
+ if (bitField0_ != 0) {
+ buildPartial0(result);
}
onBuilt();
return result;
}
+ private void buildPartial0(com.google.cloud.dialogflow.cx.v3.UpdateExperimentRequest result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.experiment_ = experimentBuilder_ == null ? experiment_ : experimentBuilder_.build();
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build();
+ }
+ }
+
@java.lang.Override
public Builder clone() {
return super.clone();
@@ -519,13 +525,13 @@ public Builder mergeFrom(
case 10:
{
input.readMessage(getExperimentFieldBuilder().getBuilder(), extensionRegistry);
-
+ bitField0_ |= 0x00000001;
break;
} // case 10
case 18:
{
input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry);
-
+ bitField0_ |= 0x00000002;
break;
} // case 18
default:
@@ -545,6 +551,8 @@ public Builder mergeFrom(
return this;
}
+ private int bitField0_;
+
private com.google.cloud.dialogflow.cx.v3.Experiment experiment_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.dialogflow.cx.v3.Experiment,
@@ -565,7 +573,7 @@ public Builder mergeFrom(
* @return Whether the experiment field is set.
*/
public boolean hasExperiment() {
- return experimentBuilder_ != null || experiment_ != null;
+ return ((bitField0_ & 0x00000001) != 0);
}
/**
*
@@ -606,11 +614,11 @@ public Builder setExperiment(com.google.cloud.dialogflow.cx.v3.Experiment value)
throw new NullPointerException();
}
experiment_ = value;
- onChanged();
} else {
experimentBuilder_.setMessage(value);
}
-
+ bitField0_ |= 0x00000001;
+ onChanged();
return this;
}
/**
@@ -628,11 +636,11 @@ public Builder setExperiment(
com.google.cloud.dialogflow.cx.v3.Experiment.Builder builderForValue) {
if (experimentBuilder_ == null) {
experiment_ = builderForValue.build();
- onChanged();
} else {
experimentBuilder_.setMessage(builderForValue.build());
}
-
+ bitField0_ |= 0x00000001;
+ onChanged();
return this;
}
/**
@@ -648,19 +656,18 @@ public Builder setExperiment(
*/
public Builder mergeExperiment(com.google.cloud.dialogflow.cx.v3.Experiment value) {
if (experimentBuilder_ == null) {
- if (experiment_ != null) {
- experiment_ =
- com.google.cloud.dialogflow.cx.v3.Experiment.newBuilder(experiment_)
- .mergeFrom(value)
- .buildPartial();
+ if (((bitField0_ & 0x00000001) != 0)
+ && experiment_ != null
+ && experiment_ != com.google.cloud.dialogflow.cx.v3.Experiment.getDefaultInstance()) {
+ getExperimentBuilder().mergeFrom(value);
} else {
experiment_ = value;
}
- onChanged();
} else {
experimentBuilder_.mergeFrom(value);
}
-
+ bitField0_ |= 0x00000001;
+ onChanged();
return this;
}
/**
@@ -675,14 +682,13 @@ public Builder mergeExperiment(com.google.cloud.dialogflow.cx.v3.Experiment valu
*
*/
public Builder clearExperiment() {
- if (experimentBuilder_ == null) {
- experiment_ = null;
- onChanged();
- } else {
- experiment_ = null;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ experiment_ = null;
+ if (experimentBuilder_ != null) {
+ experimentBuilder_.dispose();
experimentBuilder_ = null;
}
-
+ onChanged();
return this;
}
/**
@@ -697,7 +703,7 @@ public Builder clearExperiment() {
*
*/
public com.google.cloud.dialogflow.cx.v3.Experiment.Builder getExperimentBuilder() {
-
+ bitField0_ |= 0x00000001;
onChanged();
return getExperimentFieldBuilder().getBuilder();
}
@@ -768,7 +774,7 @@ public com.google.cloud.dialogflow.cx.v3.ExperimentOrBuilder getExperimentOrBuil
* @return Whether the updateMask field is set.
*/
public boolean hasUpdateMask() {
- return updateMaskBuilder_ != null || updateMask_ != null;
+ return ((bitField0_ & 0x00000002) != 0);
}
/**
*
@@ -807,11 +813,11 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
throw new NullPointerException();
}
updateMask_ = value;
- onChanged();
} else {
updateMaskBuilder_.setMessage(value);
}
-
+ bitField0_ |= 0x00000002;
+ onChanged();
return this;
}
/**
@@ -827,11 +833,11 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) {
if (updateMaskBuilder_ == null) {
updateMask_ = builderForValue.build();
- onChanged();
} else {
updateMaskBuilder_.setMessage(builderForValue.build());
}
-
+ bitField0_ |= 0x00000002;
+ onChanged();
return this;
}
/**
@@ -846,17 +852,18 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal
*/
public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
if (updateMaskBuilder_ == null) {
- if (updateMask_ != null) {
- updateMask_ =
- com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial();
+ if (((bitField0_ & 0x00000002) != 0)
+ && updateMask_ != null
+ && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) {
+ getUpdateMaskBuilder().mergeFrom(value);
} else {
updateMask_ = value;
}
- onChanged();
} else {
updateMaskBuilder_.mergeFrom(value);
}
-
+ bitField0_ |= 0x00000002;
+ onChanged();
return this;
}
/**
@@ -870,14 +877,13 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
*
*/
public Builder clearUpdateMask() {
- if (updateMaskBuilder_ == null) {
- updateMask_ = null;
- onChanged();
- } else {
- updateMask_ = null;
+ bitField0_ = (bitField0_ & ~0x00000002);
+ updateMask_ = null;
+ if (updateMaskBuilder_ != null) {
+ updateMaskBuilder_.dispose();
updateMaskBuilder_ = null;
}
-
+ onChanged();
return this;
}
/**
@@ -891,7 +897,7 @@ public Builder clearUpdateMask() {
*
*/
public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
-
+ bitField0_ |= 0x00000002;
onChanged();
return getUpdateMaskFieldBuilder().getBuilder();
}
diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/UpdateFlowRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/UpdateFlowRequest.java
index c98d39ca1211..b2ecae44eaba 100644
--- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/UpdateFlowRequest.java
+++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/UpdateFlowRequest.java
@@ -22,7 +22,8 @@
*
*
*
- * The request message for [Flows.UpdateFlow][google.cloud.dialogflow.cx.v3.Flows.UpdateFlow].
+ * The request message for
+ * [Flows.UpdateFlow][google.cloud.dialogflow.cx.v3.Flows.UpdateFlow].
*
*
* Protobuf type {@code google.cloud.dialogflow.cx.v3.UpdateFlowRequest}
@@ -113,7 +114,7 @@ public com.google.cloud.dialogflow.cx.v3.Flow getFlow() {
*/
@java.lang.Override
public com.google.cloud.dialogflow.cx.v3.FlowOrBuilder getFlowOrBuilder() {
- return getFlow();
+ return flow_ == null ? com.google.cloud.dialogflow.cx.v3.Flow.getDefaultInstance() : flow_;
}
public static final int UPDATE_MASK_FIELD_NUMBER = 2;
@@ -162,11 +163,13 @@ public com.google.protobuf.FieldMask getUpdateMask() {
*/
@java.lang.Override
public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
- return getUpdateMask();
+ return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_;
}
public static final int LANGUAGE_CODE_FIELD_NUMBER = 3;
- private volatile java.lang.Object languageCode_;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object languageCode_ = "";
/**
*
*
@@ -423,7 +426,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
*
*
*
- * The request message for [Flows.UpdateFlow][google.cloud.dialogflow.cx.v3.Flows.UpdateFlow].
+ * The request message for
+ * [Flows.UpdateFlow][google.cloud.dialogflow.cx.v3.Flows.UpdateFlow].
*
*
* Protobuf type {@code google.cloud.dialogflow.cx.v3.UpdateFlowRequest}
@@ -457,20 +461,18 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
@java.lang.Override
public Builder clear() {
super.clear();
- if (flowBuilder_ == null) {
- flow_ = null;
- } else {
- flow_ = null;
+ bitField0_ = 0;
+ flow_ = null;
+ if (flowBuilder_ != null) {
+ flowBuilder_.dispose();
flowBuilder_ = null;
}
- if (updateMaskBuilder_ == null) {
- updateMask_ = null;
- } else {
- updateMask_ = null;
+ updateMask_ = null;
+ if (updateMaskBuilder_ != null) {
+ updateMaskBuilder_.dispose();
updateMaskBuilder_ = null;
}
languageCode_ = "";
-
return this;
}
@@ -498,21 +500,26 @@ public com.google.cloud.dialogflow.cx.v3.UpdateFlowRequest build() {
public com.google.cloud.dialogflow.cx.v3.UpdateFlowRequest buildPartial() {
com.google.cloud.dialogflow.cx.v3.UpdateFlowRequest result =
new com.google.cloud.dialogflow.cx.v3.UpdateFlowRequest(this);
- if (flowBuilder_ == null) {
- result.flow_ = flow_;
- } else {
- result.flow_ = flowBuilder_.build();
- }
- if (updateMaskBuilder_ == null) {
- result.updateMask_ = updateMask_;
- } else {
- result.updateMask_ = updateMaskBuilder_.build();
+ if (bitField0_ != 0) {
+ buildPartial0(result);
}
- result.languageCode_ = languageCode_;
onBuilt();
return result;
}
+ private void buildPartial0(com.google.cloud.dialogflow.cx.v3.UpdateFlowRequest result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.flow_ = flowBuilder_ == null ? flow_ : flowBuilder_.build();
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build();
+ }
+ if (((from_bitField0_ & 0x00000004) != 0)) {
+ result.languageCode_ = languageCode_;
+ }
+ }
+
@java.lang.Override
public Builder clone() {
return super.clone();
@@ -567,6 +574,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.UpdateFlowRequest oth
}
if (!other.getLanguageCode().isEmpty()) {
languageCode_ = other.languageCode_;
+ bitField0_ |= 0x00000004;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
@@ -598,19 +606,19 @@ public Builder mergeFrom(
case 10:
{
input.readMessage(getFlowFieldBuilder().getBuilder(), extensionRegistry);
-
+ bitField0_ |= 0x00000001;
break;
} // case 10
case 18:
{
input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry);
-
+ bitField0_ |= 0x00000002;
break;
} // case 18
case 26:
{
languageCode_ = input.readStringRequireUtf8();
-
+ bitField0_ |= 0x00000004;
break;
} // case 26
default:
@@ -630,6 +638,8 @@ public Builder mergeFrom(
return this;
}
+ private int bitField0_;
+
private com.google.cloud.dialogflow.cx.v3.Flow flow_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.dialogflow.cx.v3.Flow,
@@ -649,7 +659,7 @@ public Builder mergeFrom(
* @return Whether the flow field is set.
*/
public boolean hasFlow() {
- return flowBuilder_ != null || flow_ != null;
+ return ((bitField0_ & 0x00000001) != 0);
}
/**
*
@@ -686,11 +696,11 @@ public Builder setFlow(com.google.cloud.dialogflow.cx.v3.Flow value) {
throw new NullPointerException();
}
flow_ = value;
- onChanged();
} else {
flowBuilder_.setMessage(value);
}
-
+ bitField0_ |= 0x00000001;
+ onChanged();
return this;
}
/**
@@ -706,11 +716,11 @@ public Builder setFlow(com.google.cloud.dialogflow.cx.v3.Flow value) {
public Builder setFlow(com.google.cloud.dialogflow.cx.v3.Flow.Builder builderForValue) {
if (flowBuilder_ == null) {
flow_ = builderForValue.build();
- onChanged();
} else {
flowBuilder_.setMessage(builderForValue.build());
}
-
+ bitField0_ |= 0x00000001;
+ onChanged();
return this;
}
/**
@@ -725,19 +735,18 @@ public Builder setFlow(com.google.cloud.dialogflow.cx.v3.Flow.Builder builderFor
*/
public Builder mergeFlow(com.google.cloud.dialogflow.cx.v3.Flow value) {
if (flowBuilder_ == null) {
- if (flow_ != null) {
- flow_ =
- com.google.cloud.dialogflow.cx.v3.Flow.newBuilder(flow_)
- .mergeFrom(value)
- .buildPartial();
+ if (((bitField0_ & 0x00000001) != 0)
+ && flow_ != null
+ && flow_ != com.google.cloud.dialogflow.cx.v3.Flow.getDefaultInstance()) {
+ getFlowBuilder().mergeFrom(value);
} else {
flow_ = value;
}
- onChanged();
} else {
flowBuilder_.mergeFrom(value);
}
-
+ bitField0_ |= 0x00000001;
+ onChanged();
return this;
}
/**
@@ -751,14 +760,13 @@ public Builder mergeFlow(com.google.cloud.dialogflow.cx.v3.Flow value) {
*
*/
public Builder clearFlow() {
- if (flowBuilder_ == null) {
- flow_ = null;
- onChanged();
- } else {
- flow_ = null;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ flow_ = null;
+ if (flowBuilder_ != null) {
+ flowBuilder_.dispose();
flowBuilder_ = null;
}
-
+ onChanged();
return this;
}
/**
@@ -772,7 +780,7 @@ public Builder clearFlow() {
*
*/
public com.google.cloud.dialogflow.cx.v3.Flow.Builder getFlowBuilder() {
-
+ bitField0_ |= 0x00000001;
onChanged();
return getFlowFieldBuilder().getBuilder();
}
@@ -839,7 +847,7 @@ public com.google.cloud.dialogflow.cx.v3.FlowOrBuilder getFlowOrBuilder() {
* @return Whether the updateMask field is set.
*/
public boolean hasUpdateMask() {
- return updateMaskBuilder_ != null || updateMask_ != null;
+ return ((bitField0_ & 0x00000002) != 0);
}
/**
*
@@ -878,11 +886,11 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
throw new NullPointerException();
}
updateMask_ = value;
- onChanged();
} else {
updateMaskBuilder_.setMessage(value);
}
-
+ bitField0_ |= 0x00000002;
+ onChanged();
return this;
}
/**
@@ -898,11 +906,11 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) {
if (updateMaskBuilder_ == null) {
updateMask_ = builderForValue.build();
- onChanged();
} else {
updateMaskBuilder_.setMessage(builderForValue.build());
}
-
+ bitField0_ |= 0x00000002;
+ onChanged();
return this;
}
/**
@@ -917,17 +925,18 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal
*/
public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
if (updateMaskBuilder_ == null) {
- if (updateMask_ != null) {
- updateMask_ =
- com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial();
+ if (((bitField0_ & 0x00000002) != 0)
+ && updateMask_ != null
+ && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) {
+ getUpdateMaskBuilder().mergeFrom(value);
} else {
updateMask_ = value;
}
- onChanged();
} else {
updateMaskBuilder_.mergeFrom(value);
}
-
+ bitField0_ |= 0x00000002;
+ onChanged();
return this;
}
/**
@@ -941,14 +950,13 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
* .google.protobuf.FieldMask update_mask = 2;
*/
public Builder clearUpdateMask() {
- if (updateMaskBuilder_ == null) {
- updateMask_ = null;
- onChanged();
- } else {
- updateMask_ = null;
+ bitField0_ = (bitField0_ & ~0x00000002);
+ updateMask_ = null;
+ if (updateMaskBuilder_ != null) {
+ updateMaskBuilder_.dispose();
updateMaskBuilder_ = null;
}
-
+ onChanged();
return this;
}
/**
@@ -962,7 +970,7 @@ public Builder clearUpdateMask() {
* .google.protobuf.FieldMask update_mask = 2;
*/
public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
-
+ bitField0_ |= 0x00000002;
onChanged();
return getUpdateMaskFieldBuilder().getBuilder();
}
@@ -1100,8 +1108,8 @@ public Builder setLanguageCode(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
-
languageCode_ = value;
+ bitField0_ |= 0x00000004;
onChanged();
return this;
}
@@ -1126,8 +1134,8 @@ public Builder setLanguageCode(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearLanguageCode() {
-
languageCode_ = getDefaultInstance().getLanguageCode();
+ bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
@@ -1157,8 +1165,8 @@ public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
-
languageCode_ = value;
+ bitField0_ |= 0x00000004;
onChanged();
return this;
}
diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/UpdateIntentRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/UpdateIntentRequest.java
index bf6de4615b35..6a22bfa2bc4f 100644
--- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/UpdateIntentRequest.java
+++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/UpdateIntentRequest.java
@@ -22,7 +22,8 @@
*
*
*
- * The request message for [Intents.UpdateIntent][google.cloud.dialogflow.cx.v3.Intents.UpdateIntent].
+ * The request message for
+ * [Intents.UpdateIntent][google.cloud.dialogflow.cx.v3.Intents.UpdateIntent].
*
*
* Protobuf type {@code google.cloud.dialogflow.cx.v3.UpdateIntentRequest}
@@ -118,11 +119,15 @@ public com.google.cloud.dialogflow.cx.v3.Intent getIntent() {
*/
@java.lang.Override
public com.google.cloud.dialogflow.cx.v3.IntentOrBuilder getIntentOrBuilder() {
- return getIntent();
+ return intent_ == null
+ ? com.google.cloud.dialogflow.cx.v3.Intent.getDefaultInstance()
+ : intent_;
}
public static final int LANGUAGE_CODE_FIELD_NUMBER = 2;
- private volatile java.lang.Object languageCode_;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object languageCode_ = "";
/**
*
*
@@ -228,7 +233,7 @@ public com.google.protobuf.FieldMask getUpdateMask() {
*/
@java.lang.Override
public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
- return getUpdateMask();
+ return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_;
}
private byte memoizedIsInitialized = -1;
@@ -423,7 +428,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
*
*
*
- * The request message for [Intents.UpdateIntent][google.cloud.dialogflow.cx.v3.Intents.UpdateIntent].
+ * The request message for
+ * [Intents.UpdateIntent][google.cloud.dialogflow.cx.v3.Intents.UpdateIntent].
*
*
* Protobuf type {@code google.cloud.dialogflow.cx.v3.UpdateIntentRequest}
@@ -457,18 +463,16 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
@java.lang.Override
public Builder clear() {
super.clear();
- if (intentBuilder_ == null) {
- intent_ = null;
- } else {
- intent_ = null;
+ bitField0_ = 0;
+ intent_ = null;
+ if (intentBuilder_ != null) {
+ intentBuilder_.dispose();
intentBuilder_ = null;
}
languageCode_ = "";
-
- if (updateMaskBuilder_ == null) {
- updateMask_ = null;
- } else {
- updateMask_ = null;
+ updateMask_ = null;
+ if (updateMaskBuilder_ != null) {
+ updateMaskBuilder_.dispose();
updateMaskBuilder_ = null;
}
return this;
@@ -498,21 +502,26 @@ public com.google.cloud.dialogflow.cx.v3.UpdateIntentRequest build() {
public com.google.cloud.dialogflow.cx.v3.UpdateIntentRequest buildPartial() {
com.google.cloud.dialogflow.cx.v3.UpdateIntentRequest result =
new com.google.cloud.dialogflow.cx.v3.UpdateIntentRequest(this);
- if (intentBuilder_ == null) {
- result.intent_ = intent_;
- } else {
- result.intent_ = intentBuilder_.build();
- }
- result.languageCode_ = languageCode_;
- if (updateMaskBuilder_ == null) {
- result.updateMask_ = updateMask_;
- } else {
- result.updateMask_ = updateMaskBuilder_.build();
+ if (bitField0_ != 0) {
+ buildPartial0(result);
}
onBuilt();
return result;
}
+ private void buildPartial0(com.google.cloud.dialogflow.cx.v3.UpdateIntentRequest result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.intent_ = intentBuilder_ == null ? intent_ : intentBuilder_.build();
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.languageCode_ = languageCode_;
+ }
+ if (((from_bitField0_ & 0x00000004) != 0)) {
+ result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build();
+ }
+ }
+
@java.lang.Override
public Builder clone() {
return super.clone();
@@ -564,6 +573,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.UpdateIntentRequest o
}
if (!other.getLanguageCode().isEmpty()) {
languageCode_ = other.languageCode_;
+ bitField0_ |= 0x00000002;
onChanged();
}
if (other.hasUpdateMask()) {
@@ -598,19 +608,19 @@ public Builder mergeFrom(
case 10:
{
input.readMessage(getIntentFieldBuilder().getBuilder(), extensionRegistry);
-
+ bitField0_ |= 0x00000001;
break;
} // case 10
case 18:
{
languageCode_ = input.readStringRequireUtf8();
-
+ bitField0_ |= 0x00000002;
break;
} // case 18
case 26:
{
input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry);
-
+ bitField0_ |= 0x00000004;
break;
} // case 26
default:
@@ -630,6 +640,8 @@ public Builder mergeFrom(
return this;
}
+ private int bitField0_;
+
private com.google.cloud.dialogflow.cx.v3.Intent intent_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.dialogflow.cx.v3.Intent,
@@ -650,7 +662,7 @@ public Builder mergeFrom(
* @return Whether the intent field is set.
*/
public boolean hasIntent() {
- return intentBuilder_ != null || intent_ != null;
+ return ((bitField0_ & 0x00000001) != 0);
}
/**
*
@@ -691,11 +703,11 @@ public Builder setIntent(com.google.cloud.dialogflow.cx.v3.Intent value) {
throw new NullPointerException();
}
intent_ = value;
- onChanged();
} else {
intentBuilder_.setMessage(value);
}
-
+ bitField0_ |= 0x00000001;
+ onChanged();
return this;
}
/**
@@ -712,11 +724,11 @@ public Builder setIntent(com.google.cloud.dialogflow.cx.v3.Intent value) {
public Builder setIntent(com.google.cloud.dialogflow.cx.v3.Intent.Builder builderForValue) {
if (intentBuilder_ == null) {
intent_ = builderForValue.build();
- onChanged();
} else {
intentBuilder_.setMessage(builderForValue.build());
}
-
+ bitField0_ |= 0x00000001;
+ onChanged();
return this;
}
/**
@@ -732,19 +744,18 @@ public Builder setIntent(com.google.cloud.dialogflow.cx.v3.Intent.Builder builde
*/
public Builder mergeIntent(com.google.cloud.dialogflow.cx.v3.Intent value) {
if (intentBuilder_ == null) {
- if (intent_ != null) {
- intent_ =
- com.google.cloud.dialogflow.cx.v3.Intent.newBuilder(intent_)
- .mergeFrom(value)
- .buildPartial();
+ if (((bitField0_ & 0x00000001) != 0)
+ && intent_ != null
+ && intent_ != com.google.cloud.dialogflow.cx.v3.Intent.getDefaultInstance()) {
+ getIntentBuilder().mergeFrom(value);
} else {
intent_ = value;
}
- onChanged();
} else {
intentBuilder_.mergeFrom(value);
}
-
+ bitField0_ |= 0x00000001;
+ onChanged();
return this;
}
/**
@@ -759,14 +770,13 @@ public Builder mergeIntent(com.google.cloud.dialogflow.cx.v3.Intent value) {
*
*/
public Builder clearIntent() {
- if (intentBuilder_ == null) {
- intent_ = null;
- onChanged();
- } else {
- intent_ = null;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ intent_ = null;
+ if (intentBuilder_ != null) {
+ intentBuilder_.dispose();
intentBuilder_ = null;
}
-
+ onChanged();
return this;
}
/**
@@ -781,7 +791,7 @@ public Builder clearIntent() {
*
*/
public com.google.cloud.dialogflow.cx.v3.Intent.Builder getIntentBuilder() {
-
+ bitField0_ |= 0x00000001;
onChanged();
return getIntentFieldBuilder().getBuilder();
}
@@ -912,8 +922,8 @@ public Builder setLanguageCode(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
-
languageCode_ = value;
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -935,8 +945,8 @@ public Builder setLanguageCode(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearLanguageCode() {
-
languageCode_ = getDefaultInstance().getLanguageCode();
+ bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
@@ -963,8 +973,8 @@ public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
-
languageCode_ = value;
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -988,7 +998,7 @@ public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) {
* @return Whether the updateMask field is set.
*/
public boolean hasUpdateMask() {
- return updateMaskBuilder_ != null || updateMask_ != null;
+ return ((bitField0_ & 0x00000004) != 0);
}
/**
*
@@ -1027,11 +1037,11 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
throw new NullPointerException();
}
updateMask_ = value;
- onChanged();
} else {
updateMaskBuilder_.setMessage(value);
}
-
+ bitField0_ |= 0x00000004;
+ onChanged();
return this;
}
/**
@@ -1047,11 +1057,11 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) {
if (updateMaskBuilder_ == null) {
updateMask_ = builderForValue.build();
- onChanged();
} else {
updateMaskBuilder_.setMessage(builderForValue.build());
}
-
+ bitField0_ |= 0x00000004;
+ onChanged();
return this;
}
/**
@@ -1066,17 +1076,18 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal
*/
public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
if (updateMaskBuilder_ == null) {
- if (updateMask_ != null) {
- updateMask_ =
- com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial();
+ if (((bitField0_ & 0x00000004) != 0)
+ && updateMask_ != null
+ && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) {
+ getUpdateMaskBuilder().mergeFrom(value);
} else {
updateMask_ = value;
}
- onChanged();
} else {
updateMaskBuilder_.mergeFrom(value);
}
-
+ bitField0_ |= 0x00000004;
+ onChanged();
return this;
}
/**
@@ -1090,14 +1101,13 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
* .google.protobuf.FieldMask update_mask = 3;
*/
public Builder clearUpdateMask() {
- if (updateMaskBuilder_ == null) {
- updateMask_ = null;
- onChanged();
- } else {
- updateMask_ = null;
+ bitField0_ = (bitField0_ & ~0x00000004);
+ updateMask_ = null;
+ if (updateMaskBuilder_ != null) {
+ updateMaskBuilder_.dispose();
updateMaskBuilder_ = null;
}
-
+ onChanged();
return this;
}
/**
@@ -1111,7 +1121,7 @@ public Builder clearUpdateMask() {
* .google.protobuf.FieldMask update_mask = 3;
*/
public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
-
+ bitField0_ |= 0x00000004;
onChanged();
return getUpdateMaskFieldBuilder().getBuilder();
}
diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/UpdatePageRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/UpdatePageRequest.java
index d513a093a01d..63e2e598b093 100644
--- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/UpdatePageRequest.java
+++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/UpdatePageRequest.java
@@ -22,7 +22,8 @@
*
*
*
- * The request message for [Pages.UpdatePage][google.cloud.dialogflow.cx.v3.Pages.UpdatePage].
+ * The request message for
+ * [Pages.UpdatePage][google.cloud.dialogflow.cx.v3.Pages.UpdatePage].
*
*
* Protobuf type {@code google.cloud.dialogflow.cx.v3.UpdatePageRequest}
@@ -113,11 +114,13 @@ public com.google.cloud.dialogflow.cx.v3.Page getPage() {
*/
@java.lang.Override
public com.google.cloud.dialogflow.cx.v3.PageOrBuilder getPageOrBuilder() {
- return getPage();
+ return page_ == null ? com.google.cloud.dialogflow.cx.v3.Page.getDefaultInstance() : page_;
}
public static final int LANGUAGE_CODE_FIELD_NUMBER = 2;
- private volatile java.lang.Object languageCode_;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object languageCode_ = "";
/**
*
*
@@ -245,7 +248,7 @@ public com.google.protobuf.FieldMask getUpdateMask() {
*/
@java.lang.Override
public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
- return getUpdateMask();
+ return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_;
}
private byte memoizedIsInitialized = -1;
@@ -439,7 +442,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
*
*
*
- * The request message for [Pages.UpdatePage][google.cloud.dialogflow.cx.v3.Pages.UpdatePage].
+ * The request message for
+ * [Pages.UpdatePage][google.cloud.dialogflow.cx.v3.Pages.UpdatePage].
*
*
* Protobuf type {@code google.cloud.dialogflow.cx.v3.UpdatePageRequest}
@@ -473,18 +477,16 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
@java.lang.Override
public Builder clear() {
super.clear();
- if (pageBuilder_ == null) {
- page_ = null;
- } else {
- page_ = null;
+ bitField0_ = 0;
+ page_ = null;
+ if (pageBuilder_ != null) {
+ pageBuilder_.dispose();
pageBuilder_ = null;
}
languageCode_ = "";
-
- if (updateMaskBuilder_ == null) {
- updateMask_ = null;
- } else {
- updateMask_ = null;
+ updateMask_ = null;
+ if (updateMaskBuilder_ != null) {
+ updateMaskBuilder_.dispose();
updateMaskBuilder_ = null;
}
return this;
@@ -514,21 +516,26 @@ public com.google.cloud.dialogflow.cx.v3.UpdatePageRequest build() {
public com.google.cloud.dialogflow.cx.v3.UpdatePageRequest buildPartial() {
com.google.cloud.dialogflow.cx.v3.UpdatePageRequest result =
new com.google.cloud.dialogflow.cx.v3.UpdatePageRequest(this);
- if (pageBuilder_ == null) {
- result.page_ = page_;
- } else {
- result.page_ = pageBuilder_.build();
- }
- result.languageCode_ = languageCode_;
- if (updateMaskBuilder_ == null) {
- result.updateMask_ = updateMask_;
- } else {
- result.updateMask_ = updateMaskBuilder_.build();
+ if (bitField0_ != 0) {
+ buildPartial0(result);
}
onBuilt();
return result;
}
+ private void buildPartial0(com.google.cloud.dialogflow.cx.v3.UpdatePageRequest result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.page_ = pageBuilder_ == null ? page_ : pageBuilder_.build();
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.languageCode_ = languageCode_;
+ }
+ if (((from_bitField0_ & 0x00000004) != 0)) {
+ result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build();
+ }
+ }
+
@java.lang.Override
public Builder clone() {
return super.clone();
@@ -580,6 +587,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.UpdatePageRequest oth
}
if (!other.getLanguageCode().isEmpty()) {
languageCode_ = other.languageCode_;
+ bitField0_ |= 0x00000002;
onChanged();
}
if (other.hasUpdateMask()) {
@@ -614,19 +622,19 @@ public Builder mergeFrom(
case 10:
{
input.readMessage(getPageFieldBuilder().getBuilder(), extensionRegistry);
-
+ bitField0_ |= 0x00000001;
break;
} // case 10
case 18:
{
languageCode_ = input.readStringRequireUtf8();
-
+ bitField0_ |= 0x00000002;
break;
} // case 18
case 26:
{
input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry);
-
+ bitField0_ |= 0x00000004;
break;
} // case 26
default:
@@ -646,6 +654,8 @@ public Builder mergeFrom(
return this;
}
+ private int bitField0_;
+
private com.google.cloud.dialogflow.cx.v3.Page page_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.dialogflow.cx.v3.Page,
@@ -665,7 +675,7 @@ public Builder mergeFrom(
* @return Whether the page field is set.
*/
public boolean hasPage() {
- return pageBuilder_ != null || page_ != null;
+ return ((bitField0_ & 0x00000001) != 0);
}
/**
*
@@ -702,11 +712,11 @@ public Builder setPage(com.google.cloud.dialogflow.cx.v3.Page value) {
throw new NullPointerException();
}
page_ = value;
- onChanged();
} else {
pageBuilder_.setMessage(value);
}
-
+ bitField0_ |= 0x00000001;
+ onChanged();
return this;
}
/**
@@ -722,11 +732,11 @@ public Builder setPage(com.google.cloud.dialogflow.cx.v3.Page value) {
public Builder setPage(com.google.cloud.dialogflow.cx.v3.Page.Builder builderForValue) {
if (pageBuilder_ == null) {
page_ = builderForValue.build();
- onChanged();
} else {
pageBuilder_.setMessage(builderForValue.build());
}
-
+ bitField0_ |= 0x00000001;
+ onChanged();
return this;
}
/**
@@ -741,19 +751,18 @@ public Builder setPage(com.google.cloud.dialogflow.cx.v3.Page.Builder builderFor
*/
public Builder mergePage(com.google.cloud.dialogflow.cx.v3.Page value) {
if (pageBuilder_ == null) {
- if (page_ != null) {
- page_ =
- com.google.cloud.dialogflow.cx.v3.Page.newBuilder(page_)
- .mergeFrom(value)
- .buildPartial();
+ if (((bitField0_ & 0x00000001) != 0)
+ && page_ != null
+ && page_ != com.google.cloud.dialogflow.cx.v3.Page.getDefaultInstance()) {
+ getPageBuilder().mergeFrom(value);
} else {
page_ = value;
}
- onChanged();
} else {
pageBuilder_.mergeFrom(value);
}
-
+ bitField0_ |= 0x00000001;
+ onChanged();
return this;
}
/**
@@ -767,14 +776,13 @@ public Builder mergePage(com.google.cloud.dialogflow.cx.v3.Page value) {
*
*/
public Builder clearPage() {
- if (pageBuilder_ == null) {
- page_ = null;
- onChanged();
- } else {
- page_ = null;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ page_ = null;
+ if (pageBuilder_ != null) {
+ pageBuilder_.dispose();
pageBuilder_ = null;
}
-
+ onChanged();
return this;
}
/**
@@ -788,7 +796,7 @@ public Builder clearPage() {
*
*/
public com.google.cloud.dialogflow.cx.v3.Page.Builder getPageBuilder() {
-
+ bitField0_ |= 0x00000001;
onChanged();
return getPageFieldBuilder().getBuilder();
}
@@ -948,8 +956,8 @@ public Builder setLanguageCode(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
-
languageCode_ = value;
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -982,8 +990,8 @@ public Builder setLanguageCode(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearLanguageCode() {
-
languageCode_ = getDefaultInstance().getLanguageCode();
+ bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
@@ -1021,8 +1029,8 @@ public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
-
languageCode_ = value;
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -1046,7 +1054,7 @@ public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) {
* @return Whether the updateMask field is set.
*/
public boolean hasUpdateMask() {
- return updateMaskBuilder_ != null || updateMask_ != null;
+ return ((bitField0_ & 0x00000004) != 0);
}
/**
*
@@ -1085,11 +1093,11 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
throw new NullPointerException();
}
updateMask_ = value;
- onChanged();
} else {
updateMaskBuilder_.setMessage(value);
}
-
+ bitField0_ |= 0x00000004;
+ onChanged();
return this;
}
/**
@@ -1105,11 +1113,11 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) {
if (updateMaskBuilder_ == null) {
updateMask_ = builderForValue.build();
- onChanged();
} else {
updateMaskBuilder_.setMessage(builderForValue.build());
}
-
+ bitField0_ |= 0x00000004;
+ onChanged();
return this;
}
/**
@@ -1124,17 +1132,18 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal
*/
public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
if (updateMaskBuilder_ == null) {
- if (updateMask_ != null) {
- updateMask_ =
- com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial();
+ if (((bitField0_ & 0x00000004) != 0)
+ && updateMask_ != null
+ && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) {
+ getUpdateMaskBuilder().mergeFrom(value);
} else {
updateMask_ = value;
}
- onChanged();
} else {
updateMaskBuilder_.mergeFrom(value);
}
-
+ bitField0_ |= 0x00000004;
+ onChanged();
return this;
}
/**
@@ -1148,14 +1157,13 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
* .google.protobuf.FieldMask update_mask = 3;
*/
public Builder clearUpdateMask() {
- if (updateMaskBuilder_ == null) {
- updateMask_ = null;
- onChanged();
- } else {
- updateMask_ = null;
+ bitField0_ = (bitField0_ & ~0x00000004);
+ updateMask_ = null;
+ if (updateMaskBuilder_ != null) {
+ updateMaskBuilder_.dispose();
updateMaskBuilder_ = null;
}
-
+ onChanged();
return this;
}
/**
@@ -1169,7 +1177,7 @@ public Builder clearUpdateMask() {
* .google.protobuf.FieldMask update_mask = 3;
*/
public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
-
+ bitField0_ |= 0x00000004;
onChanged();
return getUpdateMaskFieldBuilder().getBuilder();
}
diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/UpdateSecuritySettingsRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/UpdateSecuritySettingsRequest.java
index 40d1a3a519df..5c91919060ac 100644
--- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/UpdateSecuritySettingsRequest.java
+++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/UpdateSecuritySettingsRequest.java
@@ -22,7 +22,8 @@
*
*
*
- * The request message for [SecuritySettingsService.UpdateSecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettingsService.UpdateSecuritySettings].
+ * The request message for
+ * [SecuritySettingsService.UpdateSecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettingsService.UpdateSecuritySettings].
*
*
* Protobuf type {@code google.cloud.dialogflow.cx.v3.UpdateSecuritySettingsRequest}
@@ -120,7 +121,9 @@ public com.google.cloud.dialogflow.cx.v3.SecuritySettings getSecuritySettings()
@java.lang.Override
public com.google.cloud.dialogflow.cx.v3.SecuritySettingsOrBuilder
getSecuritySettingsOrBuilder() {
- return getSecuritySettings();
+ return securitySettings_ == null
+ ? com.google.cloud.dialogflow.cx.v3.SecuritySettings.getDefaultInstance()
+ : securitySettings_;
}
public static final int UPDATE_MASK_FIELD_NUMBER = 2;
@@ -129,8 +132,8 @@ public com.google.cloud.dialogflow.cx.v3.SecuritySettings getSecuritySettings()
*
*
*
- * Required. The mask to control which fields get updated. If the mask is not present,
- * all fields will be updated.
+ * Required. The mask to control which fields get updated. If the mask is not
+ * present, all fields will be updated.
*
*
* .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];
@@ -146,8 +149,8 @@ public boolean hasUpdateMask() {
*
*
*
- * Required. The mask to control which fields get updated. If the mask is not present,
- * all fields will be updated.
+ * Required. The mask to control which fields get updated. If the mask is not
+ * present, all fields will be updated.
*
*
* .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];
@@ -163,8 +166,8 @@ public com.google.protobuf.FieldMask getUpdateMask() {
*
*
*
- * Required. The mask to control which fields get updated. If the mask is not present,
- * all fields will be updated.
+ * Required. The mask to control which fields get updated. If the mask is not
+ * present, all fields will be updated.
*
*
* .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];
@@ -172,7 +175,7 @@ public com.google.protobuf.FieldMask getUpdateMask() {
*/
@java.lang.Override
public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
- return getUpdateMask();
+ return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_;
}
private byte memoizedIsInitialized = -1;
@@ -358,7 +361,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
*
*
*
- * The request message for [SecuritySettingsService.UpdateSecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettingsService.UpdateSecuritySettings].
+ * The request message for
+ * [SecuritySettingsService.UpdateSecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettingsService.UpdateSecuritySettings].
*
*
* Protobuf type {@code google.cloud.dialogflow.cx.v3.UpdateSecuritySettingsRequest}
@@ -392,16 +396,15 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
@java.lang.Override
public Builder clear() {
super.clear();
- if (securitySettingsBuilder_ == null) {
- securitySettings_ = null;
- } else {
- securitySettings_ = null;
+ bitField0_ = 0;
+ securitySettings_ = null;
+ if (securitySettingsBuilder_ != null) {
+ securitySettingsBuilder_.dispose();
securitySettingsBuilder_ = null;
}
- if (updateMaskBuilder_ == null) {
- updateMask_ = null;
- } else {
- updateMask_ = null;
+ updateMask_ = null;
+ if (updateMaskBuilder_ != null) {
+ updateMaskBuilder_.dispose();
updateMaskBuilder_ = null;
}
return this;
@@ -432,20 +435,25 @@ public com.google.cloud.dialogflow.cx.v3.UpdateSecuritySettingsRequest build() {
public com.google.cloud.dialogflow.cx.v3.UpdateSecuritySettingsRequest buildPartial() {
com.google.cloud.dialogflow.cx.v3.UpdateSecuritySettingsRequest result =
new com.google.cloud.dialogflow.cx.v3.UpdateSecuritySettingsRequest(this);
- if (securitySettingsBuilder_ == null) {
- result.securitySettings_ = securitySettings_;
- } else {
- result.securitySettings_ = securitySettingsBuilder_.build();
- }
- if (updateMaskBuilder_ == null) {
- result.updateMask_ = updateMask_;
- } else {
- result.updateMask_ = updateMaskBuilder_.build();
+ if (bitField0_ != 0) {
+ buildPartial0(result);
}
onBuilt();
return result;
}
+ private void buildPartial0(
+ com.google.cloud.dialogflow.cx.v3.UpdateSecuritySettingsRequest result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.securitySettings_ =
+ securitySettingsBuilder_ == null ? securitySettings_ : securitySettingsBuilder_.build();
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build();
+ }
+ }
+
@java.lang.Override
public Builder clone() {
return super.clone();
@@ -530,13 +538,13 @@ public Builder mergeFrom(
{
input.readMessage(
getSecuritySettingsFieldBuilder().getBuilder(), extensionRegistry);
-
+ bitField0_ |= 0x00000001;
break;
} // case 10
case 18:
{
input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry);
-
+ bitField0_ |= 0x00000002;
break;
} // case 18
default:
@@ -556,6 +564,8 @@ public Builder mergeFrom(
return this;
}
+ private int bitField0_;
+
private com.google.cloud.dialogflow.cx.v3.SecuritySettings securitySettings_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.dialogflow.cx.v3.SecuritySettings,
@@ -577,7 +587,7 @@ public Builder mergeFrom(
* @return Whether the securitySettings field is set.
*/
public boolean hasSecuritySettings() {
- return securitySettingsBuilder_ != null || securitySettings_ != null;
+ return ((bitField0_ & 0x00000001) != 0);
}
/**
*
@@ -620,11 +630,11 @@ public Builder setSecuritySettings(com.google.cloud.dialogflow.cx.v3.SecuritySet
throw new NullPointerException();
}
securitySettings_ = value;
- onChanged();
} else {
securitySettingsBuilder_.setMessage(value);
}
-
+ bitField0_ |= 0x00000001;
+ onChanged();
return this;
}
/**
@@ -643,11 +653,11 @@ public Builder setSecuritySettings(
com.google.cloud.dialogflow.cx.v3.SecuritySettings.Builder builderForValue) {
if (securitySettingsBuilder_ == null) {
securitySettings_ = builderForValue.build();
- onChanged();
} else {
securitySettingsBuilder_.setMessage(builderForValue.build());
}
-
+ bitField0_ |= 0x00000001;
+ onChanged();
return this;
}
/**
@@ -664,19 +674,19 @@ public Builder setSecuritySettings(
*/
public Builder mergeSecuritySettings(com.google.cloud.dialogflow.cx.v3.SecuritySettings value) {
if (securitySettingsBuilder_ == null) {
- if (securitySettings_ != null) {
- securitySettings_ =
- com.google.cloud.dialogflow.cx.v3.SecuritySettings.newBuilder(securitySettings_)
- .mergeFrom(value)
- .buildPartial();
+ if (((bitField0_ & 0x00000001) != 0)
+ && securitySettings_ != null
+ && securitySettings_
+ != com.google.cloud.dialogflow.cx.v3.SecuritySettings.getDefaultInstance()) {
+ getSecuritySettingsBuilder().mergeFrom(value);
} else {
securitySettings_ = value;
}
- onChanged();
} else {
securitySettingsBuilder_.mergeFrom(value);
}
-
+ bitField0_ |= 0x00000001;
+ onChanged();
return this;
}
/**
@@ -692,14 +702,13 @@ public Builder mergeSecuritySettings(com.google.cloud.dialogflow.cx.v3.SecurityS
*
*/
public Builder clearSecuritySettings() {
- if (securitySettingsBuilder_ == null) {
- securitySettings_ = null;
- onChanged();
- } else {
- securitySettings_ = null;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ securitySettings_ = null;
+ if (securitySettingsBuilder_ != null) {
+ securitySettingsBuilder_.dispose();
securitySettingsBuilder_ = null;
}
-
+ onChanged();
return this;
}
/**
@@ -715,7 +724,7 @@ public Builder clearSecuritySettings() {
*
*/
public com.google.cloud.dialogflow.cx.v3.SecuritySettings.Builder getSecuritySettingsBuilder() {
-
+ bitField0_ |= 0x00000001;
onChanged();
return getSecuritySettingsFieldBuilder().getBuilder();
}
@@ -780,8 +789,8 @@ public com.google.cloud.dialogflow.cx.v3.SecuritySettings.Builder getSecuritySet
*
*
*
- * Required. The mask to control which fields get updated. If the mask is not present,
- * all fields will be updated.
+ * Required. The mask to control which fields get updated. If the mask is not
+ * present, all fields will be updated.
*
*
* .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];
@@ -790,14 +799,14 @@ public com.google.cloud.dialogflow.cx.v3.SecuritySettings.Builder getSecuritySet
* @return Whether the updateMask field is set.
*/
public boolean hasUpdateMask() {
- return updateMaskBuilder_ != null || updateMask_ != null;
+ return ((bitField0_ & 0x00000002) != 0);
}
/**
*
*
*
- * Required. The mask to control which fields get updated. If the mask is not present,
- * all fields will be updated.
+ * Required. The mask to control which fields get updated. If the mask is not
+ * present, all fields will be updated.
*
*
* .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];
@@ -818,8 +827,8 @@ public com.google.protobuf.FieldMask getUpdateMask() {
*
*
*
- * Required. The mask to control which fields get updated. If the mask is not present,
- * all fields will be updated.
+ * Required. The mask to control which fields get updated. If the mask is not
+ * present, all fields will be updated.
*
*
* .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];
@@ -831,19 +840,19 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
throw new NullPointerException();
}
updateMask_ = value;
- onChanged();
} else {
updateMaskBuilder_.setMessage(value);
}
-
+ bitField0_ |= 0x00000002;
+ onChanged();
return this;
}
/**
*
*
*
- * Required. The mask to control which fields get updated. If the mask is not present,
- * all fields will be updated.
+ * Required. The mask to control which fields get updated. If the mask is not
+ * present, all fields will be updated.
*
*
* .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];
@@ -852,19 +861,19 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) {
if (updateMaskBuilder_ == null) {
updateMask_ = builderForValue.build();
- onChanged();
} else {
updateMaskBuilder_.setMessage(builderForValue.build());
}
-
+ bitField0_ |= 0x00000002;
+ onChanged();
return this;
}
/**
*
*
*
- * Required. The mask to control which fields get updated. If the mask is not present,
- * all fields will be updated.
+ * Required. The mask to control which fields get updated. If the mask is not
+ * present, all fields will be updated.
*
*
* .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];
@@ -872,54 +881,54 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal
*/
public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
if (updateMaskBuilder_ == null) {
- if (updateMask_ != null) {
- updateMask_ =
- com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial();
+ if (((bitField0_ & 0x00000002) != 0)
+ && updateMask_ != null
+ && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) {
+ getUpdateMaskBuilder().mergeFrom(value);
} else {
updateMask_ = value;
}
- onChanged();
} else {
updateMaskBuilder_.mergeFrom(value);
}
-
+ bitField0_ |= 0x00000002;
+ onChanged();
return this;
}
/**
*
*
*
- * Required. The mask to control which fields get updated. If the mask is not present,
- * all fields will be updated.
+ * Required. The mask to control which fields get updated. If the mask is not
+ * present, all fields will be updated.
*
*
* .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];
*
*/
public Builder clearUpdateMask() {
- if (updateMaskBuilder_ == null) {
- updateMask_ = null;
- onChanged();
- } else {
- updateMask_ = null;
+ bitField0_ = (bitField0_ & ~0x00000002);
+ updateMask_ = null;
+ if (updateMaskBuilder_ != null) {
+ updateMaskBuilder_.dispose();
updateMaskBuilder_ = null;
}
-
+ onChanged();
return this;
}
/**
*
*
*
- * Required. The mask to control which fields get updated. If the mask is not present,
- * all fields will be updated.
+ * Required. The mask to control which fields get updated. If the mask is not
+ * present, all fields will be updated.
*
*
* .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];
*
*/
public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
-
+ bitField0_ |= 0x00000002;
onChanged();
return getUpdateMaskFieldBuilder().getBuilder();
}
@@ -927,8 +936,8 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
*
*
*
- * Required. The mask to control which fields get updated. If the mask is not present,
- * all fields will be updated.
+ * Required. The mask to control which fields get updated. If the mask is not
+ * present, all fields will be updated.
*
*
* .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];
@@ -947,8 +956,8 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
*
*
*
- * Required. The mask to control which fields get updated. If the mask is not present,
- * all fields will be updated.
+ * Required. The mask to control which fields get updated. If the mask is not
+ * present, all fields will be updated.
*
*
* .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];
diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/UpdateSecuritySettingsRequestOrBuilder.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/UpdateSecuritySettingsRequestOrBuilder.java
index a922cd38e693..662cc10cbc7c 100644
--- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/UpdateSecuritySettingsRequestOrBuilder.java
+++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/UpdateSecuritySettingsRequestOrBuilder.java
@@ -71,8 +71,8 @@ public interface UpdateSecuritySettingsRequestOrBuilder
*
*
*
- * Required. The mask to control which fields get updated. If the mask is not present,
- * all fields will be updated.
+ * Required. The mask to control which fields get updated. If the mask is not
+ * present, all fields will be updated.
*
*
* .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];
@@ -85,8 +85,8 @@ public interface UpdateSecuritySettingsRequestOrBuilder
*
*
*
- * Required. The mask to control which fields get updated. If the mask is not present,
- * all fields will be updated.
+ * Required. The mask to control which fields get updated. If the mask is not
+ * present, all fields will be updated.
*
*
* .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];
@@ -99,8 +99,8 @@ public interface UpdateSecuritySettingsRequestOrBuilder
*
*
*
- * Required. The mask to control which fields get updated. If the mask is not present,
- * all fields will be updated.
+ * Required. The mask to control which fields get updated. If the mask is not
+ * present, all fields will be updated.
*
*
* .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];
diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/UpdateSessionEntityTypeRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/UpdateSessionEntityTypeRequest.java
index 65a597ec5f1f..67b93ec565bd 100644
--- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/UpdateSessionEntityTypeRequest.java
+++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/UpdateSessionEntityTypeRequest.java
@@ -22,7 +22,8 @@
*
*
*
- * The request message for [SessionEntityTypes.UpdateSessionEntityType][google.cloud.dialogflow.cx.v3.SessionEntityTypes.UpdateSessionEntityType].
+ * The request message for
+ * [SessionEntityTypes.UpdateSessionEntityType][google.cloud.dialogflow.cx.v3.SessionEntityTypes.UpdateSessionEntityType].
*
*
* Protobuf type {@code google.cloud.dialogflow.cx.v3.UpdateSessionEntityTypeRequest}
@@ -136,7 +137,9 @@ public com.google.cloud.dialogflow.cx.v3.SessionEntityType getSessionEntityType(
@java.lang.Override
public com.google.cloud.dialogflow.cx.v3.SessionEntityTypeOrBuilder
getSessionEntityTypeOrBuilder() {
- return getSessionEntityType();
+ return sessionEntityType_ == null
+ ? com.google.cloud.dialogflow.cx.v3.SessionEntityType.getDefaultInstance()
+ : sessionEntityType_;
}
public static final int UPDATE_MASK_FIELD_NUMBER = 2;
@@ -182,7 +185,7 @@ public com.google.protobuf.FieldMask getUpdateMask() {
*/
@java.lang.Override
public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
- return getUpdateMask();
+ return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_;
}
private byte memoizedIsInitialized = -1;
@@ -368,7 +371,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
*
*
*
- * The request message for [SessionEntityTypes.UpdateSessionEntityType][google.cloud.dialogflow.cx.v3.SessionEntityTypes.UpdateSessionEntityType].
+ * The request message for
+ * [SessionEntityTypes.UpdateSessionEntityType][google.cloud.dialogflow.cx.v3.SessionEntityTypes.UpdateSessionEntityType].
*
*
* Protobuf type {@code google.cloud.dialogflow.cx.v3.UpdateSessionEntityTypeRequest}
@@ -402,16 +406,15 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
@java.lang.Override
public Builder clear() {
super.clear();
- if (sessionEntityTypeBuilder_ == null) {
- sessionEntityType_ = null;
- } else {
- sessionEntityType_ = null;
+ bitField0_ = 0;
+ sessionEntityType_ = null;
+ if (sessionEntityTypeBuilder_ != null) {
+ sessionEntityTypeBuilder_.dispose();
sessionEntityTypeBuilder_ = null;
}
- if (updateMaskBuilder_ == null) {
- updateMask_ = null;
- } else {
- updateMask_ = null;
+ updateMask_ = null;
+ if (updateMaskBuilder_ != null) {
+ updateMaskBuilder_.dispose();
updateMaskBuilder_ = null;
}
return this;
@@ -442,20 +445,27 @@ public com.google.cloud.dialogflow.cx.v3.UpdateSessionEntityTypeRequest build()
public com.google.cloud.dialogflow.cx.v3.UpdateSessionEntityTypeRequest buildPartial() {
com.google.cloud.dialogflow.cx.v3.UpdateSessionEntityTypeRequest result =
new com.google.cloud.dialogflow.cx.v3.UpdateSessionEntityTypeRequest(this);
- if (sessionEntityTypeBuilder_ == null) {
- result.sessionEntityType_ = sessionEntityType_;
- } else {
- result.sessionEntityType_ = sessionEntityTypeBuilder_.build();
- }
- if (updateMaskBuilder_ == null) {
- result.updateMask_ = updateMask_;
- } else {
- result.updateMask_ = updateMaskBuilder_.build();
+ if (bitField0_ != 0) {
+ buildPartial0(result);
}
onBuilt();
return result;
}
+ private void buildPartial0(
+ com.google.cloud.dialogflow.cx.v3.UpdateSessionEntityTypeRequest result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.sessionEntityType_ =
+ sessionEntityTypeBuilder_ == null
+ ? sessionEntityType_
+ : sessionEntityTypeBuilder_.build();
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build();
+ }
+ }
+
@java.lang.Override
public Builder clone() {
return super.clone();
@@ -540,13 +550,13 @@ public Builder mergeFrom(
{
input.readMessage(
getSessionEntityTypeFieldBuilder().getBuilder(), extensionRegistry);
-
+ bitField0_ |= 0x00000001;
break;
} // case 10
case 18:
{
input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry);
-
+ bitField0_ |= 0x00000002;
break;
} // case 18
default:
@@ -566,6 +576,8 @@ public Builder mergeFrom(
return this;
}
+ private int bitField0_;
+
private com.google.cloud.dialogflow.cx.v3.SessionEntityType sessionEntityType_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.dialogflow.cx.v3.SessionEntityType,
@@ -592,7 +604,7 @@ public Builder mergeFrom(
* @return Whether the sessionEntityType field is set.
*/
public boolean hasSessionEntityType() {
- return sessionEntityTypeBuilder_ != null || sessionEntityType_ != null;
+ return ((bitField0_ & 0x00000001) != 0);
}
/**
*
@@ -645,11 +657,11 @@ public Builder setSessionEntityType(com.google.cloud.dialogflow.cx.v3.SessionEnt
throw new NullPointerException();
}
sessionEntityType_ = value;
- onChanged();
} else {
sessionEntityTypeBuilder_.setMessage(value);
}
-
+ bitField0_ |= 0x00000001;
+ onChanged();
return this;
}
/**
@@ -673,11 +685,11 @@ public Builder setSessionEntityType(
com.google.cloud.dialogflow.cx.v3.SessionEntityType.Builder builderForValue) {
if (sessionEntityTypeBuilder_ == null) {
sessionEntityType_ = builderForValue.build();
- onChanged();
} else {
sessionEntityTypeBuilder_.setMessage(builderForValue.build());
}
-
+ bitField0_ |= 0x00000001;
+ onChanged();
return this;
}
/**
@@ -700,19 +712,19 @@ public Builder setSessionEntityType(
public Builder mergeSessionEntityType(
com.google.cloud.dialogflow.cx.v3.SessionEntityType value) {
if (sessionEntityTypeBuilder_ == null) {
- if (sessionEntityType_ != null) {
- sessionEntityType_ =
- com.google.cloud.dialogflow.cx.v3.SessionEntityType.newBuilder(sessionEntityType_)
- .mergeFrom(value)
- .buildPartial();
+ if (((bitField0_ & 0x00000001) != 0)
+ && sessionEntityType_ != null
+ && sessionEntityType_
+ != com.google.cloud.dialogflow.cx.v3.SessionEntityType.getDefaultInstance()) {
+ getSessionEntityTypeBuilder().mergeFrom(value);
} else {
sessionEntityType_ = value;
}
- onChanged();
} else {
sessionEntityTypeBuilder_.mergeFrom(value);
}
-
+ bitField0_ |= 0x00000001;
+ onChanged();
return this;
}
/**
@@ -733,14 +745,13 @@ public Builder mergeSessionEntityType(
*
*/
public Builder clearSessionEntityType() {
- if (sessionEntityTypeBuilder_ == null) {
- sessionEntityType_ = null;
- onChanged();
- } else {
- sessionEntityType_ = null;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ sessionEntityType_ = null;
+ if (sessionEntityTypeBuilder_ != null) {
+ sessionEntityTypeBuilder_.dispose();
sessionEntityTypeBuilder_ = null;
}
-
+ onChanged();
return this;
}
/**
@@ -762,7 +773,7 @@ public Builder clearSessionEntityType() {
*/
public com.google.cloud.dialogflow.cx.v3.SessionEntityType.Builder
getSessionEntityTypeBuilder() {
-
+ bitField0_ |= 0x00000001;
onChanged();
return getSessionEntityTypeFieldBuilder().getBuilder();
}
@@ -845,7 +856,7 @@ public Builder clearSessionEntityType() {
* @return Whether the updateMask field is set.
*/
public boolean hasUpdateMask() {
- return updateMaskBuilder_ != null || updateMask_ != null;
+ return ((bitField0_ & 0x00000002) != 0);
}
/**
*
@@ -882,11 +893,11 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
throw new NullPointerException();
}
updateMask_ = value;
- onChanged();
} else {
updateMaskBuilder_.setMessage(value);
}
-
+ bitField0_ |= 0x00000002;
+ onChanged();
return this;
}
/**
@@ -901,11 +912,11 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) {
if (updateMaskBuilder_ == null) {
updateMask_ = builderForValue.build();
- onChanged();
} else {
updateMaskBuilder_.setMessage(builderForValue.build());
}
-
+ bitField0_ |= 0x00000002;
+ onChanged();
return this;
}
/**
@@ -919,17 +930,18 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal
*/
public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
if (updateMaskBuilder_ == null) {
- if (updateMask_ != null) {
- updateMask_ =
- com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial();
+ if (((bitField0_ & 0x00000002) != 0)
+ && updateMask_ != null
+ && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) {
+ getUpdateMaskBuilder().mergeFrom(value);
} else {
updateMask_ = value;
}
- onChanged();
} else {
updateMaskBuilder_.mergeFrom(value);
}
-
+ bitField0_ |= 0x00000002;
+ onChanged();
return this;
}
/**
@@ -942,14 +954,13 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
* .google.protobuf.FieldMask update_mask = 2;
*/
public Builder clearUpdateMask() {
- if (updateMaskBuilder_ == null) {
- updateMask_ = null;
- onChanged();
- } else {
- updateMask_ = null;
+ bitField0_ = (bitField0_ & ~0x00000002);
+ updateMask_ = null;
+ if (updateMaskBuilder_ != null) {
+ updateMaskBuilder_.dispose();
updateMaskBuilder_ = null;
}
-
+ onChanged();
return this;
}
/**
@@ -962,7 +973,7 @@ public Builder clearUpdateMask() {
* .google.protobuf.FieldMask update_mask = 2;
*/
public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
-
+ bitField0_ |= 0x00000002;
onChanged();
return getUpdateMaskFieldBuilder().getBuilder();
}
diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/UpdateTestCaseRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/UpdateTestCaseRequest.java
index 8666b5bd8ad0..eff4a2da8de6 100644
--- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/UpdateTestCaseRequest.java
+++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/UpdateTestCaseRequest.java
@@ -22,7 +22,8 @@
*
*
*
- * The request message for [TestCases.UpdateTestCase][google.cloud.dialogflow.cx.v3.TestCases.UpdateTestCase].
+ * The request message for
+ * [TestCases.UpdateTestCase][google.cloud.dialogflow.cx.v3.TestCases.UpdateTestCase].
*
*
* Protobuf type {@code google.cloud.dialogflow.cx.v3.UpdateTestCaseRequest}
@@ -116,7 +117,9 @@ public com.google.cloud.dialogflow.cx.v3.TestCase getTestCase() {
*/
@java.lang.Override
public com.google.cloud.dialogflow.cx.v3.TestCaseOrBuilder getTestCaseOrBuilder() {
- return getTestCase();
+ return testCase_ == null
+ ? com.google.cloud.dialogflow.cx.v3.TestCase.getDefaultInstance()
+ : testCase_;
}
public static final int UPDATE_MASK_FIELD_NUMBER = 2;
@@ -127,7 +130,8 @@ public com.google.cloud.dialogflow.cx.v3.TestCaseOrBuilder getTestCaseOrBuilder(
*
* Required. The mask to specify which fields should be updated. The
* [`creationTime`][google.cloud.dialogflow.cx.v3.TestCase.creation_time] and
- * [`lastTestResult`][google.cloud.dialogflow.cx.v3.TestCase.last_test_result] cannot be updated.
+ * [`lastTestResult`][google.cloud.dialogflow.cx.v3.TestCase.last_test_result]
+ * cannot be updated.
*
*
* .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];
@@ -145,7 +149,8 @@ public boolean hasUpdateMask() {
*
* Required. The mask to specify which fields should be updated. The
* [`creationTime`][google.cloud.dialogflow.cx.v3.TestCase.creation_time] and
- * [`lastTestResult`][google.cloud.dialogflow.cx.v3.TestCase.last_test_result] cannot be updated.
+ * [`lastTestResult`][google.cloud.dialogflow.cx.v3.TestCase.last_test_result]
+ * cannot be updated.
*
*
* .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];
@@ -163,7 +168,8 @@ public com.google.protobuf.FieldMask getUpdateMask() {
*
* Required. The mask to specify which fields should be updated. The
* [`creationTime`][google.cloud.dialogflow.cx.v3.TestCase.creation_time] and
- * [`lastTestResult`][google.cloud.dialogflow.cx.v3.TestCase.last_test_result] cannot be updated.
+ * [`lastTestResult`][google.cloud.dialogflow.cx.v3.TestCase.last_test_result]
+ * cannot be updated.
*
*
* .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];
@@ -171,7 +177,7 @@ public com.google.protobuf.FieldMask getUpdateMask() {
*/
@java.lang.Override
public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
- return getUpdateMask();
+ return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_;
}
private byte memoizedIsInitialized = -1;
@@ -357,7 +363,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
*
*
*
- * The request message for [TestCases.UpdateTestCase][google.cloud.dialogflow.cx.v3.TestCases.UpdateTestCase].
+ * The request message for
+ * [TestCases.UpdateTestCase][google.cloud.dialogflow.cx.v3.TestCases.UpdateTestCase].
*
*
* Protobuf type {@code google.cloud.dialogflow.cx.v3.UpdateTestCaseRequest}
@@ -391,16 +398,15 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
@java.lang.Override
public Builder clear() {
super.clear();
- if (testCaseBuilder_ == null) {
- testCase_ = null;
- } else {
- testCase_ = null;
+ bitField0_ = 0;
+ testCase_ = null;
+ if (testCaseBuilder_ != null) {
+ testCaseBuilder_.dispose();
testCaseBuilder_ = null;
}
- if (updateMaskBuilder_ == null) {
- updateMask_ = null;
- } else {
- updateMask_ = null;
+ updateMask_ = null;
+ if (updateMaskBuilder_ != null) {
+ updateMaskBuilder_.dispose();
updateMaskBuilder_ = null;
}
return this;
@@ -430,20 +436,23 @@ public com.google.cloud.dialogflow.cx.v3.UpdateTestCaseRequest build() {
public com.google.cloud.dialogflow.cx.v3.UpdateTestCaseRequest buildPartial() {
com.google.cloud.dialogflow.cx.v3.UpdateTestCaseRequest result =
new com.google.cloud.dialogflow.cx.v3.UpdateTestCaseRequest(this);
- if (testCaseBuilder_ == null) {
- result.testCase_ = testCase_;
- } else {
- result.testCase_ = testCaseBuilder_.build();
- }
- if (updateMaskBuilder_ == null) {
- result.updateMask_ = updateMask_;
- } else {
- result.updateMask_ = updateMaskBuilder_.build();
+ if (bitField0_ != 0) {
+ buildPartial0(result);
}
onBuilt();
return result;
}
+ private void buildPartial0(com.google.cloud.dialogflow.cx.v3.UpdateTestCaseRequest result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.testCase_ = testCaseBuilder_ == null ? testCase_ : testCaseBuilder_.build();
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build();
+ }
+ }
+
@java.lang.Override
public Builder clone() {
return super.clone();
@@ -525,13 +534,13 @@ public Builder mergeFrom(
case 10:
{
input.readMessage(getTestCaseFieldBuilder().getBuilder(), extensionRegistry);
-
+ bitField0_ |= 0x00000001;
break;
} // case 10
case 18:
{
input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry);
-
+ bitField0_ |= 0x00000002;
break;
} // case 18
default:
@@ -551,6 +560,8 @@ public Builder mergeFrom(
return this;
}
+ private int bitField0_;
+
private com.google.cloud.dialogflow.cx.v3.TestCase testCase_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.dialogflow.cx.v3.TestCase,
@@ -571,7 +582,7 @@ public Builder mergeFrom(
* @return Whether the testCase field is set.
*/
public boolean hasTestCase() {
- return testCaseBuilder_ != null || testCase_ != null;
+ return ((bitField0_ & 0x00000001) != 0);
}
/**
*
@@ -612,11 +623,11 @@ public Builder setTestCase(com.google.cloud.dialogflow.cx.v3.TestCase value) {
throw new NullPointerException();
}
testCase_ = value;
- onChanged();
} else {
testCaseBuilder_.setMessage(value);
}
-
+ bitField0_ |= 0x00000001;
+ onChanged();
return this;
}
/**
@@ -633,11 +644,11 @@ public Builder setTestCase(com.google.cloud.dialogflow.cx.v3.TestCase value) {
public Builder setTestCase(com.google.cloud.dialogflow.cx.v3.TestCase.Builder builderForValue) {
if (testCaseBuilder_ == null) {
testCase_ = builderForValue.build();
- onChanged();
} else {
testCaseBuilder_.setMessage(builderForValue.build());
}
-
+ bitField0_ |= 0x00000001;
+ onChanged();
return this;
}
/**
@@ -653,19 +664,18 @@ public Builder setTestCase(com.google.cloud.dialogflow.cx.v3.TestCase.Builder bu
*/
public Builder mergeTestCase(com.google.cloud.dialogflow.cx.v3.TestCase value) {
if (testCaseBuilder_ == null) {
- if (testCase_ != null) {
- testCase_ =
- com.google.cloud.dialogflow.cx.v3.TestCase.newBuilder(testCase_)
- .mergeFrom(value)
- .buildPartial();
+ if (((bitField0_ & 0x00000001) != 0)
+ && testCase_ != null
+ && testCase_ != com.google.cloud.dialogflow.cx.v3.TestCase.getDefaultInstance()) {
+ getTestCaseBuilder().mergeFrom(value);
} else {
testCase_ = value;
}
- onChanged();
} else {
testCaseBuilder_.mergeFrom(value);
}
-
+ bitField0_ |= 0x00000001;
+ onChanged();
return this;
}
/**
@@ -680,14 +690,13 @@ public Builder mergeTestCase(com.google.cloud.dialogflow.cx.v3.TestCase value) {
*
*/
public Builder clearTestCase() {
- if (testCaseBuilder_ == null) {
- testCase_ = null;
- onChanged();
- } else {
- testCase_ = null;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ testCase_ = null;
+ if (testCaseBuilder_ != null) {
+ testCaseBuilder_.dispose();
testCaseBuilder_ = null;
}
-
+ onChanged();
return this;
}
/**
@@ -702,7 +711,7 @@ public Builder clearTestCase() {
*
*/
public com.google.cloud.dialogflow.cx.v3.TestCase.Builder getTestCaseBuilder() {
-
+ bitField0_ |= 0x00000001;
onChanged();
return getTestCaseFieldBuilder().getBuilder();
}
@@ -766,7 +775,8 @@ public com.google.cloud.dialogflow.cx.v3.TestCaseOrBuilder getTestCaseOrBuilder(
*
* Required. The mask to specify which fields should be updated. The
* [`creationTime`][google.cloud.dialogflow.cx.v3.TestCase.creation_time] and
- * [`lastTestResult`][google.cloud.dialogflow.cx.v3.TestCase.last_test_result] cannot be updated.
+ * [`lastTestResult`][google.cloud.dialogflow.cx.v3.TestCase.last_test_result]
+ * cannot be updated.
*
*
* .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];
@@ -775,7 +785,7 @@ public com.google.cloud.dialogflow.cx.v3.TestCaseOrBuilder getTestCaseOrBuilder(
* @return Whether the updateMask field is set.
*/
public boolean hasUpdateMask() {
- return updateMaskBuilder_ != null || updateMask_ != null;
+ return ((bitField0_ & 0x00000002) != 0);
}
/**
*
@@ -783,7 +793,8 @@ public boolean hasUpdateMask() {
*
* Required. The mask to specify which fields should be updated. The
* [`creationTime`][google.cloud.dialogflow.cx.v3.TestCase.creation_time] and
- * [`lastTestResult`][google.cloud.dialogflow.cx.v3.TestCase.last_test_result] cannot be updated.
+ * [`lastTestResult`][google.cloud.dialogflow.cx.v3.TestCase.last_test_result]
+ * cannot be updated.
*
*
* .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];
@@ -806,7 +817,8 @@ public com.google.protobuf.FieldMask getUpdateMask() {
*
* Required. The mask to specify which fields should be updated. The
* [`creationTime`][google.cloud.dialogflow.cx.v3.TestCase.creation_time] and
- * [`lastTestResult`][google.cloud.dialogflow.cx.v3.TestCase.last_test_result] cannot be updated.
+ * [`lastTestResult`][google.cloud.dialogflow.cx.v3.TestCase.last_test_result]
+ * cannot be updated.
*
*
* .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];
@@ -818,11 +830,11 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
throw new NullPointerException();
}
updateMask_ = value;
- onChanged();
} else {
updateMaskBuilder_.setMessage(value);
}
-
+ bitField0_ |= 0x00000002;
+ onChanged();
return this;
}
/**
@@ -831,7 +843,8 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
*
* Required. The mask to specify which fields should be updated. The
* [`creationTime`][google.cloud.dialogflow.cx.v3.TestCase.creation_time] and
- * [`lastTestResult`][google.cloud.dialogflow.cx.v3.TestCase.last_test_result] cannot be updated.
+ * [`lastTestResult`][google.cloud.dialogflow.cx.v3.TestCase.last_test_result]
+ * cannot be updated.
*
*
* .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];
@@ -840,11 +853,11 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) {
if (updateMaskBuilder_ == null) {
updateMask_ = builderForValue.build();
- onChanged();
} else {
updateMaskBuilder_.setMessage(builderForValue.build());
}
-
+ bitField0_ |= 0x00000002;
+ onChanged();
return this;
}
/**
@@ -853,7 +866,8 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal
*
* Required. The mask to specify which fields should be updated. The
* [`creationTime`][google.cloud.dialogflow.cx.v3.TestCase.creation_time] and
- * [`lastTestResult`][google.cloud.dialogflow.cx.v3.TestCase.last_test_result] cannot be updated.
+ * [`lastTestResult`][google.cloud.dialogflow.cx.v3.TestCase.last_test_result]
+ * cannot be updated.
*
*
* .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];
@@ -861,17 +875,18 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal
*/
public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
if (updateMaskBuilder_ == null) {
- if (updateMask_ != null) {
- updateMask_ =
- com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial();
+ if (((bitField0_ & 0x00000002) != 0)
+ && updateMask_ != null
+ && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) {
+ getUpdateMaskBuilder().mergeFrom(value);
} else {
updateMask_ = value;
}
- onChanged();
} else {
updateMaskBuilder_.mergeFrom(value);
}
-
+ bitField0_ |= 0x00000002;
+ onChanged();
return this;
}
/**
@@ -880,21 +895,21 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
*
* Required. The mask to specify which fields should be updated. The
* [`creationTime`][google.cloud.dialogflow.cx.v3.TestCase.creation_time] and
- * [`lastTestResult`][google.cloud.dialogflow.cx.v3.TestCase.last_test_result] cannot be updated.
+ * [`lastTestResult`][google.cloud.dialogflow.cx.v3.TestCase.last_test_result]
+ * cannot be updated.
*
*
* .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];
*
*/
public Builder clearUpdateMask() {
- if (updateMaskBuilder_ == null) {
- updateMask_ = null;
- onChanged();
- } else {
- updateMask_ = null;
+ bitField0_ = (bitField0_ & ~0x00000002);
+ updateMask_ = null;
+ if (updateMaskBuilder_ != null) {
+ updateMaskBuilder_.dispose();
updateMaskBuilder_ = null;
}
-
+ onChanged();
return this;
}
/**
@@ -903,14 +918,15 @@ public Builder clearUpdateMask() {
*
* Required. The mask to specify which fields should be updated. The
* [`creationTime`][google.cloud.dialogflow.cx.v3.TestCase.creation_time] and
- * [`lastTestResult`][google.cloud.dialogflow.cx.v3.TestCase.last_test_result] cannot be updated.
+ * [`lastTestResult`][google.cloud.dialogflow.cx.v3.TestCase.last_test_result]
+ * cannot be updated.
*
*
* .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];
*
*/
public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
-
+ bitField0_ |= 0x00000002;
onChanged();
return getUpdateMaskFieldBuilder().getBuilder();
}
@@ -920,7 +936,8 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
*
* Required. The mask to specify which fields should be updated. The
* [`creationTime`][google.cloud.dialogflow.cx.v3.TestCase.creation_time] and
- * [`lastTestResult`][google.cloud.dialogflow.cx.v3.TestCase.last_test_result] cannot be updated.
+ * [`lastTestResult`][google.cloud.dialogflow.cx.v3.TestCase.last_test_result]
+ * cannot be updated.
*
*
* .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];
@@ -941,7 +958,8 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
*
* Required. The mask to specify which fields should be updated. The
* [`creationTime`][google.cloud.dialogflow.cx.v3.TestCase.creation_time] and
- * [`lastTestResult`][google.cloud.dialogflow.cx.v3.TestCase.last_test_result] cannot be updated.
+ * [`lastTestResult`][google.cloud.dialogflow.cx.v3.TestCase.last_test_result]
+ * cannot be updated.
*
*
* .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];
diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/UpdateTestCaseRequestOrBuilder.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/UpdateTestCaseRequestOrBuilder.java
index 41e75839230d..826c790fb2f4 100644
--- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/UpdateTestCaseRequestOrBuilder.java
+++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/UpdateTestCaseRequestOrBuilder.java
@@ -70,7 +70,8 @@ public interface UpdateTestCaseRequestOrBuilder
*
* Required. The mask to specify which fields should be updated. The
* [`creationTime`][google.cloud.dialogflow.cx.v3.TestCase.creation_time] and
- * [`lastTestResult`][google.cloud.dialogflow.cx.v3.TestCase.last_test_result] cannot be updated.
+ * [`lastTestResult`][google.cloud.dialogflow.cx.v3.TestCase.last_test_result]
+ * cannot be updated.
*
*
* .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];
@@ -85,7 +86,8 @@ public interface UpdateTestCaseRequestOrBuilder
*
* Required. The mask to specify which fields should be updated. The
* [`creationTime`][google.cloud.dialogflow.cx.v3.TestCase.creation_time] and
- * [`lastTestResult`][google.cloud.dialogflow.cx.v3.TestCase.last_test_result] cannot be updated.
+ * [`lastTestResult`][google.cloud.dialogflow.cx.v3.TestCase.last_test_result]
+ * cannot be updated.
*
*
* .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];
@@ -100,7 +102,8 @@ public interface UpdateTestCaseRequestOrBuilder
*
* Required. The mask to specify which fields should be updated. The
* [`creationTime`][google.cloud.dialogflow.cx.v3.TestCase.creation_time] and
- * [`lastTestResult`][google.cloud.dialogflow.cx.v3.TestCase.last_test_result] cannot be updated.
+ * [`lastTestResult`][google.cloud.dialogflow.cx.v3.TestCase.last_test_result]
+ * cannot be updated.
*
*
* .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];
diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/UpdateTransitionRouteGroupRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/UpdateTransitionRouteGroupRequest.java
index 857101064014..05006a96d176 100644
--- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/UpdateTransitionRouteGroupRequest.java
+++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/UpdateTransitionRouteGroupRequest.java
@@ -22,7 +22,8 @@
*
*
*
- * The request message for [TransitionRouteGroups.UpdateTransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroups.UpdateTransitionRouteGroup].
+ * The request message for
+ * [TransitionRouteGroups.UpdateTransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroups.UpdateTransitionRouteGroup].
*
*
* Protobuf type {@code google.cloud.dialogflow.cx.v3.UpdateTransitionRouteGroupRequest}
@@ -120,7 +121,9 @@ public com.google.cloud.dialogflow.cx.v3.TransitionRouteGroup getTransitionRoute
@java.lang.Override
public com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupOrBuilder
getTransitionRouteGroupOrBuilder() {
- return getTransitionRouteGroup();
+ return transitionRouteGroup_ == null
+ ? com.google.cloud.dialogflow.cx.v3.TransitionRouteGroup.getDefaultInstance()
+ : transitionRouteGroup_;
}
public static final int UPDATE_MASK_FIELD_NUMBER = 2;
@@ -166,11 +169,13 @@ public com.google.protobuf.FieldMask getUpdateMask() {
*/
@java.lang.Override
public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
- return getUpdateMask();
+ return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_;
}
public static final int LANGUAGE_CODE_FIELD_NUMBER = 3;
- private volatile java.lang.Object languageCode_;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object languageCode_ = "";
/**
*
*
@@ -428,7 +433,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
*
*
*
- * The request message for [TransitionRouteGroups.UpdateTransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroups.UpdateTransitionRouteGroup].
+ * The request message for
+ * [TransitionRouteGroups.UpdateTransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroups.UpdateTransitionRouteGroup].
*
*
* Protobuf type {@code google.cloud.dialogflow.cx.v3.UpdateTransitionRouteGroupRequest}
@@ -463,20 +469,18 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
@java.lang.Override
public Builder clear() {
super.clear();
- if (transitionRouteGroupBuilder_ == null) {
- transitionRouteGroup_ = null;
- } else {
- transitionRouteGroup_ = null;
+ bitField0_ = 0;
+ transitionRouteGroup_ = null;
+ if (transitionRouteGroupBuilder_ != null) {
+ transitionRouteGroupBuilder_.dispose();
transitionRouteGroupBuilder_ = null;
}
- if (updateMaskBuilder_ == null) {
- updateMask_ = null;
- } else {
- updateMask_ = null;
+ updateMask_ = null;
+ if (updateMaskBuilder_ != null) {
+ updateMaskBuilder_.dispose();
updateMaskBuilder_ = null;
}
languageCode_ = "";
-
return this;
}
@@ -506,21 +510,30 @@ public com.google.cloud.dialogflow.cx.v3.UpdateTransitionRouteGroupRequest build
public com.google.cloud.dialogflow.cx.v3.UpdateTransitionRouteGroupRequest buildPartial() {
com.google.cloud.dialogflow.cx.v3.UpdateTransitionRouteGroupRequest result =
new com.google.cloud.dialogflow.cx.v3.UpdateTransitionRouteGroupRequest(this);
- if (transitionRouteGroupBuilder_ == null) {
- result.transitionRouteGroup_ = transitionRouteGroup_;
- } else {
- result.transitionRouteGroup_ = transitionRouteGroupBuilder_.build();
+ if (bitField0_ != 0) {
+ buildPartial0(result);
}
- if (updateMaskBuilder_ == null) {
- result.updateMask_ = updateMask_;
- } else {
- result.updateMask_ = updateMaskBuilder_.build();
- }
- result.languageCode_ = languageCode_;
onBuilt();
return result;
}
+ private void buildPartial0(
+ com.google.cloud.dialogflow.cx.v3.UpdateTransitionRouteGroupRequest result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.transitionRouteGroup_ =
+ transitionRouteGroupBuilder_ == null
+ ? transitionRouteGroup_
+ : transitionRouteGroupBuilder_.build();
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build();
+ }
+ if (((from_bitField0_ & 0x00000004) != 0)) {
+ result.languageCode_ = languageCode_;
+ }
+ }
+
@java.lang.Override
public Builder clone() {
return super.clone();
@@ -578,6 +591,7 @@ public Builder mergeFrom(
}
if (!other.getLanguageCode().isEmpty()) {
languageCode_ = other.languageCode_;
+ bitField0_ |= 0x00000004;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
@@ -610,19 +624,19 @@ public Builder mergeFrom(
{
input.readMessage(
getTransitionRouteGroupFieldBuilder().getBuilder(), extensionRegistry);
-
+ bitField0_ |= 0x00000001;
break;
} // case 10
case 18:
{
input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry);
-
+ bitField0_ |= 0x00000002;
break;
} // case 18
case 26:
{
languageCode_ = input.readStringRequireUtf8();
-
+ bitField0_ |= 0x00000004;
break;
} // case 26
default:
@@ -642,6 +656,8 @@ public Builder mergeFrom(
return this;
}
+ private int bitField0_;
+
private com.google.cloud.dialogflow.cx.v3.TransitionRouteGroup transitionRouteGroup_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.dialogflow.cx.v3.TransitionRouteGroup,
@@ -662,7 +678,7 @@ public Builder mergeFrom(
* @return Whether the transitionRouteGroup field is set.
*/
public boolean hasTransitionRouteGroup() {
- return transitionRouteGroupBuilder_ != null || transitionRouteGroup_ != null;
+ return ((bitField0_ & 0x00000001) != 0);
}
/**
*
@@ -704,11 +720,11 @@ public Builder setTransitionRouteGroup(
throw new NullPointerException();
}
transitionRouteGroup_ = value;
- onChanged();
} else {
transitionRouteGroupBuilder_.setMessage(value);
}
-
+ bitField0_ |= 0x00000001;
+ onChanged();
return this;
}
/**
@@ -726,11 +742,11 @@ public Builder setTransitionRouteGroup(
com.google.cloud.dialogflow.cx.v3.TransitionRouteGroup.Builder builderForValue) {
if (transitionRouteGroupBuilder_ == null) {
transitionRouteGroup_ = builderForValue.build();
- onChanged();
} else {
transitionRouteGroupBuilder_.setMessage(builderForValue.build());
}
-
+ bitField0_ |= 0x00000001;
+ onChanged();
return this;
}
/**
@@ -747,20 +763,19 @@ public Builder setTransitionRouteGroup(
public Builder mergeTransitionRouteGroup(
com.google.cloud.dialogflow.cx.v3.TransitionRouteGroup value) {
if (transitionRouteGroupBuilder_ == null) {
- if (transitionRouteGroup_ != null) {
- transitionRouteGroup_ =
- com.google.cloud.dialogflow.cx.v3.TransitionRouteGroup.newBuilder(
- transitionRouteGroup_)
- .mergeFrom(value)
- .buildPartial();
+ if (((bitField0_ & 0x00000001) != 0)
+ && transitionRouteGroup_ != null
+ && transitionRouteGroup_
+ != com.google.cloud.dialogflow.cx.v3.TransitionRouteGroup.getDefaultInstance()) {
+ getTransitionRouteGroupBuilder().mergeFrom(value);
} else {
transitionRouteGroup_ = value;
}
- onChanged();
} else {
transitionRouteGroupBuilder_.mergeFrom(value);
}
-
+ bitField0_ |= 0x00000001;
+ onChanged();
return this;
}
/**
@@ -775,14 +790,13 @@ public Builder mergeTransitionRouteGroup(
*
*/
public Builder clearTransitionRouteGroup() {
- if (transitionRouteGroupBuilder_ == null) {
- transitionRouteGroup_ = null;
- onChanged();
- } else {
- transitionRouteGroup_ = null;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ transitionRouteGroup_ = null;
+ if (transitionRouteGroupBuilder_ != null) {
+ transitionRouteGroupBuilder_.dispose();
transitionRouteGroupBuilder_ = null;
}
-
+ onChanged();
return this;
}
/**
@@ -798,7 +812,7 @@ public Builder clearTransitionRouteGroup() {
*/
public com.google.cloud.dialogflow.cx.v3.TransitionRouteGroup.Builder
getTransitionRouteGroupBuilder() {
-
+ bitField0_ |= 0x00000001;
onChanged();
return getTransitionRouteGroupFieldBuilder().getBuilder();
}
@@ -869,7 +883,7 @@ public Builder clearTransitionRouteGroup() {
* @return Whether the updateMask field is set.
*/
public boolean hasUpdateMask() {
- return updateMaskBuilder_ != null || updateMask_ != null;
+ return ((bitField0_ & 0x00000002) != 0);
}
/**
*
@@ -906,11 +920,11 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
throw new NullPointerException();
}
updateMask_ = value;
- onChanged();
} else {
updateMaskBuilder_.setMessage(value);
}
-
+ bitField0_ |= 0x00000002;
+ onChanged();
return this;
}
/**
@@ -925,11 +939,11 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) {
if (updateMaskBuilder_ == null) {
updateMask_ = builderForValue.build();
- onChanged();
} else {
updateMaskBuilder_.setMessage(builderForValue.build());
}
-
+ bitField0_ |= 0x00000002;
+ onChanged();
return this;
}
/**
@@ -943,17 +957,18 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal
*/
public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
if (updateMaskBuilder_ == null) {
- if (updateMask_ != null) {
- updateMask_ =
- com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial();
+ if (((bitField0_ & 0x00000002) != 0)
+ && updateMask_ != null
+ && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) {
+ getUpdateMaskBuilder().mergeFrom(value);
} else {
updateMask_ = value;
}
- onChanged();
} else {
updateMaskBuilder_.mergeFrom(value);
}
-
+ bitField0_ |= 0x00000002;
+ onChanged();
return this;
}
/**
@@ -966,14 +981,13 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
* .google.protobuf.FieldMask update_mask = 2;
*/
public Builder clearUpdateMask() {
- if (updateMaskBuilder_ == null) {
- updateMask_ = null;
- onChanged();
- } else {
- updateMask_ = null;
+ bitField0_ = (bitField0_ & ~0x00000002);
+ updateMask_ = null;
+ if (updateMaskBuilder_ != null) {
+ updateMaskBuilder_.dispose();
updateMaskBuilder_ = null;
}
-
+ onChanged();
return this;
}
/**
@@ -986,7 +1000,7 @@ public Builder clearUpdateMask() {
* .google.protobuf.FieldMask update_mask = 2;
*/
public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
-
+ bitField0_ |= 0x00000002;
onChanged();
return getUpdateMaskFieldBuilder().getBuilder();
}
@@ -1119,8 +1133,8 @@ public Builder setLanguageCode(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
-
languageCode_ = value;
+ bitField0_ |= 0x00000004;
onChanged();
return this;
}
@@ -1144,8 +1158,8 @@ public Builder setLanguageCode(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearLanguageCode() {
-
languageCode_ = getDefaultInstance().getLanguageCode();
+ bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
@@ -1174,8 +1188,8 @@ public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
-
languageCode_ = value;
+ bitField0_ |= 0x00000004;
onChanged();
return this;
}
diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/UpdateVersionRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/UpdateVersionRequest.java
index 8dc33752f2cd..4ae792f0771e 100644
--- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/UpdateVersionRequest.java
+++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/UpdateVersionRequest.java
@@ -22,7 +22,8 @@
*
*
*
- * The request message for [Versions.UpdateVersion][google.cloud.dialogflow.cx.v3.Versions.UpdateVersion].
+ * The request message for
+ * [Versions.UpdateVersion][google.cloud.dialogflow.cx.v3.Versions.UpdateVersion].
*
*
* Protobuf type {@code google.cloud.dialogflow.cx.v3.UpdateVersionRequest}
@@ -116,7 +117,9 @@ public com.google.cloud.dialogflow.cx.v3.Version getVersion() {
*/
@java.lang.Override
public com.google.cloud.dialogflow.cx.v3.VersionOrBuilder getVersionOrBuilder() {
- return getVersion();
+ return version_ == null
+ ? com.google.cloud.dialogflow.cx.v3.Version.getDefaultInstance()
+ : version_;
}
public static final int UPDATE_MASK_FIELD_NUMBER = 2;
@@ -125,8 +128,8 @@ public com.google.cloud.dialogflow.cx.v3.VersionOrBuilder getVersionOrBuilder()
*
*
*
- * Required. The mask to control which fields get updated. Currently only `description`
- * and `display_name` can be updated.
+ * Required. The mask to control which fields get updated. Currently only
+ * `description` and `display_name` can be updated.
*
*
* .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];
@@ -142,8 +145,8 @@ public boolean hasUpdateMask() {
*
*
*
- * Required. The mask to control which fields get updated. Currently only `description`
- * and `display_name` can be updated.
+ * Required. The mask to control which fields get updated. Currently only
+ * `description` and `display_name` can be updated.
*
*
* .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];
@@ -159,8 +162,8 @@ public com.google.protobuf.FieldMask getUpdateMask() {
*
*
*
- * Required. The mask to control which fields get updated. Currently only `description`
- * and `display_name` can be updated.
+ * Required. The mask to control which fields get updated. Currently only
+ * `description` and `display_name` can be updated.
*
*
* .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];
@@ -168,7 +171,7 @@ public com.google.protobuf.FieldMask getUpdateMask() {
*/
@java.lang.Override
public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
- return getUpdateMask();
+ return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_;
}
private byte memoizedIsInitialized = -1;
@@ -354,7 +357,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
*
*
*
- * The request message for [Versions.UpdateVersion][google.cloud.dialogflow.cx.v3.Versions.UpdateVersion].
+ * The request message for
+ * [Versions.UpdateVersion][google.cloud.dialogflow.cx.v3.Versions.UpdateVersion].
*
*
* Protobuf type {@code google.cloud.dialogflow.cx.v3.UpdateVersionRequest}
@@ -388,16 +392,15 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
@java.lang.Override
public Builder clear() {
super.clear();
- if (versionBuilder_ == null) {
- version_ = null;
- } else {
- version_ = null;
+ bitField0_ = 0;
+ version_ = null;
+ if (versionBuilder_ != null) {
+ versionBuilder_.dispose();
versionBuilder_ = null;
}
- if (updateMaskBuilder_ == null) {
- updateMask_ = null;
- } else {
- updateMask_ = null;
+ updateMask_ = null;
+ if (updateMaskBuilder_ != null) {
+ updateMaskBuilder_.dispose();
updateMaskBuilder_ = null;
}
return this;
@@ -427,20 +430,23 @@ public com.google.cloud.dialogflow.cx.v3.UpdateVersionRequest build() {
public com.google.cloud.dialogflow.cx.v3.UpdateVersionRequest buildPartial() {
com.google.cloud.dialogflow.cx.v3.UpdateVersionRequest result =
new com.google.cloud.dialogflow.cx.v3.UpdateVersionRequest(this);
- if (versionBuilder_ == null) {
- result.version_ = version_;
- } else {
- result.version_ = versionBuilder_.build();
- }
- if (updateMaskBuilder_ == null) {
- result.updateMask_ = updateMask_;
- } else {
- result.updateMask_ = updateMaskBuilder_.build();
+ if (bitField0_ != 0) {
+ buildPartial0(result);
}
onBuilt();
return result;
}
+ private void buildPartial0(com.google.cloud.dialogflow.cx.v3.UpdateVersionRequest result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.version_ = versionBuilder_ == null ? version_ : versionBuilder_.build();
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build();
+ }
+ }
+
@java.lang.Override
public Builder clone() {
return super.clone();
@@ -522,13 +528,13 @@ public Builder mergeFrom(
case 10:
{
input.readMessage(getVersionFieldBuilder().getBuilder(), extensionRegistry);
-
+ bitField0_ |= 0x00000001;
break;
} // case 10
case 18:
{
input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry);
-
+ bitField0_ |= 0x00000002;
break;
} // case 18
default:
@@ -548,6 +554,8 @@ public Builder mergeFrom(
return this;
}
+ private int bitField0_;
+
private com.google.cloud.dialogflow.cx.v3.Version version_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.dialogflow.cx.v3.Version,
@@ -568,7 +576,7 @@ public Builder mergeFrom(
* @return Whether the version field is set.
*/
public boolean hasVersion() {
- return versionBuilder_ != null || version_ != null;
+ return ((bitField0_ & 0x00000001) != 0);
}
/**
*
@@ -609,11 +617,11 @@ public Builder setVersion(com.google.cloud.dialogflow.cx.v3.Version value) {
throw new NullPointerException();
}
version_ = value;
- onChanged();
} else {
versionBuilder_.setMessage(value);
}
-
+ bitField0_ |= 0x00000001;
+ onChanged();
return this;
}
/**
@@ -630,11 +638,11 @@ public Builder setVersion(com.google.cloud.dialogflow.cx.v3.Version value) {
public Builder setVersion(com.google.cloud.dialogflow.cx.v3.Version.Builder builderForValue) {
if (versionBuilder_ == null) {
version_ = builderForValue.build();
- onChanged();
} else {
versionBuilder_.setMessage(builderForValue.build());
}
-
+ bitField0_ |= 0x00000001;
+ onChanged();
return this;
}
/**
@@ -650,19 +658,18 @@ public Builder setVersion(com.google.cloud.dialogflow.cx.v3.Version.Builder buil
*/
public Builder mergeVersion(com.google.cloud.dialogflow.cx.v3.Version value) {
if (versionBuilder_ == null) {
- if (version_ != null) {
- version_ =
- com.google.cloud.dialogflow.cx.v3.Version.newBuilder(version_)
- .mergeFrom(value)
- .buildPartial();
+ if (((bitField0_ & 0x00000001) != 0)
+ && version_ != null
+ && version_ != com.google.cloud.dialogflow.cx.v3.Version.getDefaultInstance()) {
+ getVersionBuilder().mergeFrom(value);
} else {
version_ = value;
}
- onChanged();
} else {
versionBuilder_.mergeFrom(value);
}
-
+ bitField0_ |= 0x00000001;
+ onChanged();
return this;
}
/**
@@ -677,14 +684,13 @@ public Builder mergeVersion(com.google.cloud.dialogflow.cx.v3.Version value) {
*
*/
public Builder clearVersion() {
- if (versionBuilder_ == null) {
- version_ = null;
- onChanged();
- } else {
- version_ = null;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ version_ = null;
+ if (versionBuilder_ != null) {
+ versionBuilder_.dispose();
versionBuilder_ = null;
}
-
+ onChanged();
return this;
}
/**
@@ -699,7 +705,7 @@ public Builder clearVersion() {
*
*/
public com.google.cloud.dialogflow.cx.v3.Version.Builder getVersionBuilder() {
-
+ bitField0_ |= 0x00000001;
onChanged();
return getVersionFieldBuilder().getBuilder();
}
@@ -761,8 +767,8 @@ public com.google.cloud.dialogflow.cx.v3.VersionOrBuilder getVersionOrBuilder()
*
*
*
- * Required. The mask to control which fields get updated. Currently only `description`
- * and `display_name` can be updated.
+ * Required. The mask to control which fields get updated. Currently only
+ * `description` and `display_name` can be updated.
*
*
* .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];
@@ -771,14 +777,14 @@ public com.google.cloud.dialogflow.cx.v3.VersionOrBuilder getVersionOrBuilder()
* @return Whether the updateMask field is set.
*/
public boolean hasUpdateMask() {
- return updateMaskBuilder_ != null || updateMask_ != null;
+ return ((bitField0_ & 0x00000002) != 0);
}
/**
*
*
*
- * Required. The mask to control which fields get updated. Currently only `description`
- * and `display_name` can be updated.
+ * Required. The mask to control which fields get updated. Currently only
+ * `description` and `display_name` can be updated.
*
*
* .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];
@@ -799,8 +805,8 @@ public com.google.protobuf.FieldMask getUpdateMask() {
*
*
*
- * Required. The mask to control which fields get updated. Currently only `description`
- * and `display_name` can be updated.
+ * Required. The mask to control which fields get updated. Currently only
+ * `description` and `display_name` can be updated.
*
*
* .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];
@@ -812,19 +818,19 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
throw new NullPointerException();
}
updateMask_ = value;
- onChanged();
} else {
updateMaskBuilder_.setMessage(value);
}
-
+ bitField0_ |= 0x00000002;
+ onChanged();
return this;
}
/**
*
*
*
- * Required. The mask to control which fields get updated. Currently only `description`
- * and `display_name` can be updated.
+ * Required. The mask to control which fields get updated. Currently only
+ * `description` and `display_name` can be updated.
*
*
* .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];
@@ -833,19 +839,19 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) {
if (updateMaskBuilder_ == null) {
updateMask_ = builderForValue.build();
- onChanged();
} else {
updateMaskBuilder_.setMessage(builderForValue.build());
}
-
+ bitField0_ |= 0x00000002;
+ onChanged();
return this;
}
/**
*
*
*
- * Required. The mask to control which fields get updated. Currently only `description`
- * and `display_name` can be updated.
+ * Required. The mask to control which fields get updated. Currently only
+ * `description` and `display_name` can be updated.
*
*
* .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];
@@ -853,54 +859,54 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal
*/
public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
if (updateMaskBuilder_ == null) {
- if (updateMask_ != null) {
- updateMask_ =
- com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial();
+ if (((bitField0_ & 0x00000002) != 0)
+ && updateMask_ != null
+ && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) {
+ getUpdateMaskBuilder().mergeFrom(value);
} else {
updateMask_ = value;
}
- onChanged();
} else {
updateMaskBuilder_.mergeFrom(value);
}
-
+ bitField0_ |= 0x00000002;
+ onChanged();
return this;
}
/**
*
*
*
- * Required. The mask to control which fields get updated. Currently only `description`
- * and `display_name` can be updated.
+ * Required. The mask to control which fields get updated. Currently only
+ * `description` and `display_name` can be updated.
*
*
* .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];
*
*/
public Builder clearUpdateMask() {
- if (updateMaskBuilder_ == null) {
- updateMask_ = null;
- onChanged();
- } else {
- updateMask_ = null;
+ bitField0_ = (bitField0_ & ~0x00000002);
+ updateMask_ = null;
+ if (updateMaskBuilder_ != null) {
+ updateMaskBuilder_.dispose();
updateMaskBuilder_ = null;
}
-
+ onChanged();
return this;
}
/**
*
*
*
- * Required. The mask to control which fields get updated. Currently only `description`
- * and `display_name` can be updated.
+ * Required. The mask to control which fields get updated. Currently only
+ * `description` and `display_name` can be updated.
*
*
* .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];
*
*/
public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
-
+ bitField0_ |= 0x00000002;
onChanged();
return getUpdateMaskFieldBuilder().getBuilder();
}
@@ -908,8 +914,8 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
*
*
*
- * Required. The mask to control which fields get updated. Currently only `description`
- * and `display_name` can be updated.
+ * Required. The mask to control which fields get updated. Currently only
+ * `description` and `display_name` can be updated.
*
*
* .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];
@@ -928,8 +934,8 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
*
*
*
- * Required. The mask to control which fields get updated. Currently only `description`
- * and `display_name` can be updated.
+ * Required. The mask to control which fields get updated. Currently only
+ * `description` and `display_name` can be updated.
*
*
* .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];
diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/UpdateVersionRequestOrBuilder.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/UpdateVersionRequestOrBuilder.java
index e6ae2cfed2e0..c1b33a66404d 100644
--- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/UpdateVersionRequestOrBuilder.java
+++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/UpdateVersionRequestOrBuilder.java
@@ -68,8 +68,8 @@ public interface UpdateVersionRequestOrBuilder
*
*
*
- * Required. The mask to control which fields get updated. Currently only `description`
- * and `display_name` can be updated.
+ * Required. The mask to control which fields get updated. Currently only
+ * `description` and `display_name` can be updated.
*
*
* .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];
@@ -82,8 +82,8 @@ public interface UpdateVersionRequestOrBuilder
*
*
*
- * Required. The mask to control which fields get updated. Currently only `description`
- * and `display_name` can be updated.
+ * Required. The mask to control which fields get updated. Currently only
+ * `description` and `display_name` can be updated.
*
*
* .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];
@@ -96,8 +96,8 @@ public interface UpdateVersionRequestOrBuilder
*
*
*
- * Required. The mask to control which fields get updated. Currently only `description`
- * and `display_name` can be updated.
+ * Required. The mask to control which fields get updated. Currently only
+ * `description` and `display_name` can be updated.
*
*
* .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];
diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/UpdateWebhookRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/UpdateWebhookRequest.java
index 1d9f12577f07..c98185a580c9 100644
--- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/UpdateWebhookRequest.java
+++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/UpdateWebhookRequest.java
@@ -22,7 +22,8 @@
*
*
*
- * The request message for [Webhooks.UpdateWebhook][google.cloud.dialogflow.cx.v3.Webhooks.UpdateWebhook].
+ * The request message for
+ * [Webhooks.UpdateWebhook][google.cloud.dialogflow.cx.v3.Webhooks.UpdateWebhook].
*
*
* Protobuf type {@code google.cloud.dialogflow.cx.v3.UpdateWebhookRequest}
@@ -116,7 +117,9 @@ public com.google.cloud.dialogflow.cx.v3.Webhook getWebhook() {
*/
@java.lang.Override
public com.google.cloud.dialogflow.cx.v3.WebhookOrBuilder getWebhookOrBuilder() {
- return getWebhook();
+ return webhook_ == null
+ ? com.google.cloud.dialogflow.cx.v3.Webhook.getDefaultInstance()
+ : webhook_;
}
public static final int UPDATE_MASK_FIELD_NUMBER = 2;
@@ -165,7 +168,7 @@ public com.google.protobuf.FieldMask getUpdateMask() {
*/
@java.lang.Override
public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
- return getUpdateMask();
+ return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_;
}
private byte memoizedIsInitialized = -1;
@@ -351,7 +354,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
*
*
*
- * The request message for [Webhooks.UpdateWebhook][google.cloud.dialogflow.cx.v3.Webhooks.UpdateWebhook].
+ * The request message for
+ * [Webhooks.UpdateWebhook][google.cloud.dialogflow.cx.v3.Webhooks.UpdateWebhook].
*
*
* Protobuf type {@code google.cloud.dialogflow.cx.v3.UpdateWebhookRequest}
@@ -385,16 +389,15 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
@java.lang.Override
public Builder clear() {
super.clear();
- if (webhookBuilder_ == null) {
- webhook_ = null;
- } else {
- webhook_ = null;
+ bitField0_ = 0;
+ webhook_ = null;
+ if (webhookBuilder_ != null) {
+ webhookBuilder_.dispose();
webhookBuilder_ = null;
}
- if (updateMaskBuilder_ == null) {
- updateMask_ = null;
- } else {
- updateMask_ = null;
+ updateMask_ = null;
+ if (updateMaskBuilder_ != null) {
+ updateMaskBuilder_.dispose();
updateMaskBuilder_ = null;
}
return this;
@@ -424,20 +427,23 @@ public com.google.cloud.dialogflow.cx.v3.UpdateWebhookRequest build() {
public com.google.cloud.dialogflow.cx.v3.UpdateWebhookRequest buildPartial() {
com.google.cloud.dialogflow.cx.v3.UpdateWebhookRequest result =
new com.google.cloud.dialogflow.cx.v3.UpdateWebhookRequest(this);
- if (webhookBuilder_ == null) {
- result.webhook_ = webhook_;
- } else {
- result.webhook_ = webhookBuilder_.build();
- }
- if (updateMaskBuilder_ == null) {
- result.updateMask_ = updateMask_;
- } else {
- result.updateMask_ = updateMaskBuilder_.build();
+ if (bitField0_ != 0) {
+ buildPartial0(result);
}
onBuilt();
return result;
}
+ private void buildPartial0(com.google.cloud.dialogflow.cx.v3.UpdateWebhookRequest result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.webhook_ = webhookBuilder_ == null ? webhook_ : webhookBuilder_.build();
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build();
+ }
+ }
+
@java.lang.Override
public Builder clone() {
return super.clone();
@@ -519,13 +525,13 @@ public Builder mergeFrom(
case 10:
{
input.readMessage(getWebhookFieldBuilder().getBuilder(), extensionRegistry);
-
+ bitField0_ |= 0x00000001;
break;
} // case 10
case 18:
{
input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry);
-
+ bitField0_ |= 0x00000002;
break;
} // case 18
default:
@@ -545,6 +551,8 @@ public Builder mergeFrom(
return this;
}
+ private int bitField0_;
+
private com.google.cloud.dialogflow.cx.v3.Webhook webhook_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.dialogflow.cx.v3.Webhook,
@@ -565,7 +573,7 @@ public Builder mergeFrom(
* @return Whether the webhook field is set.
*/
public boolean hasWebhook() {
- return webhookBuilder_ != null || webhook_ != null;
+ return ((bitField0_ & 0x00000001) != 0);
}
/**
*
@@ -606,11 +614,11 @@ public Builder setWebhook(com.google.cloud.dialogflow.cx.v3.Webhook value) {
throw new NullPointerException();
}
webhook_ = value;
- onChanged();
} else {
webhookBuilder_.setMessage(value);
}
-
+ bitField0_ |= 0x00000001;
+ onChanged();
return this;
}
/**
@@ -627,11 +635,11 @@ public Builder setWebhook(com.google.cloud.dialogflow.cx.v3.Webhook value) {
public Builder setWebhook(com.google.cloud.dialogflow.cx.v3.Webhook.Builder builderForValue) {
if (webhookBuilder_ == null) {
webhook_ = builderForValue.build();
- onChanged();
} else {
webhookBuilder_.setMessage(builderForValue.build());
}
-
+ bitField0_ |= 0x00000001;
+ onChanged();
return this;
}
/**
@@ -647,19 +655,18 @@ public Builder setWebhook(com.google.cloud.dialogflow.cx.v3.Webhook.Builder buil
*/
public Builder mergeWebhook(com.google.cloud.dialogflow.cx.v3.Webhook value) {
if (webhookBuilder_ == null) {
- if (webhook_ != null) {
- webhook_ =
- com.google.cloud.dialogflow.cx.v3.Webhook.newBuilder(webhook_)
- .mergeFrom(value)
- .buildPartial();
+ if (((bitField0_ & 0x00000001) != 0)
+ && webhook_ != null
+ && webhook_ != com.google.cloud.dialogflow.cx.v3.Webhook.getDefaultInstance()) {
+ getWebhookBuilder().mergeFrom(value);
} else {
webhook_ = value;
}
- onChanged();
} else {
webhookBuilder_.mergeFrom(value);
}
-
+ bitField0_ |= 0x00000001;
+ onChanged();
return this;
}
/**
@@ -674,14 +681,13 @@ public Builder mergeWebhook(com.google.cloud.dialogflow.cx.v3.Webhook value) {
*
*/
public Builder clearWebhook() {
- if (webhookBuilder_ == null) {
- webhook_ = null;
- onChanged();
- } else {
- webhook_ = null;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ webhook_ = null;
+ if (webhookBuilder_ != null) {
+ webhookBuilder_.dispose();
webhookBuilder_ = null;
}
-
+ onChanged();
return this;
}
/**
@@ -696,7 +702,7 @@ public Builder clearWebhook() {
*
*/
public com.google.cloud.dialogflow.cx.v3.Webhook.Builder getWebhookBuilder() {
-
+ bitField0_ |= 0x00000001;
onChanged();
return getWebhookFieldBuilder().getBuilder();
}
@@ -767,7 +773,7 @@ public com.google.cloud.dialogflow.cx.v3.WebhookOrBuilder getWebhookOrBuilder()
* @return Whether the updateMask field is set.
*/
public boolean hasUpdateMask() {
- return updateMaskBuilder_ != null || updateMask_ != null;
+ return ((bitField0_ & 0x00000002) != 0);
}
/**
*
@@ -806,11 +812,11 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
throw new NullPointerException();
}
updateMask_ = value;
- onChanged();
} else {
updateMaskBuilder_.setMessage(value);
}
-
+ bitField0_ |= 0x00000002;
+ onChanged();
return this;
}
/**
@@ -826,11 +832,11 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) {
if (updateMaskBuilder_ == null) {
updateMask_ = builderForValue.build();
- onChanged();
} else {
updateMaskBuilder_.setMessage(builderForValue.build());
}
-
+ bitField0_ |= 0x00000002;
+ onChanged();
return this;
}
/**
@@ -845,17 +851,18 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal
*/
public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
if (updateMaskBuilder_ == null) {
- if (updateMask_ != null) {
- updateMask_ =
- com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial();
+ if (((bitField0_ & 0x00000002) != 0)
+ && updateMask_ != null
+ && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) {
+ getUpdateMaskBuilder().mergeFrom(value);
} else {
updateMask_ = value;
}
- onChanged();
} else {
updateMaskBuilder_.mergeFrom(value);
}
-
+ bitField0_ |= 0x00000002;
+ onChanged();
return this;
}
/**
@@ -869,14 +876,13 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
* .google.protobuf.FieldMask update_mask = 2;
*/
public Builder clearUpdateMask() {
- if (updateMaskBuilder_ == null) {
- updateMask_ = null;
- onChanged();
- } else {
- updateMask_ = null;
+ bitField0_ = (bitField0_ & ~0x00000002);
+ updateMask_ = null;
+ if (updateMaskBuilder_ != null) {
+ updateMaskBuilder_.dispose();
updateMaskBuilder_ = null;
}
-
+ onChanged();
return this;
}
/**
@@ -890,7 +896,7 @@ public Builder clearUpdateMask() {
* .google.protobuf.FieldMask update_mask = 2;
*/
public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
-
+ bitField0_ |= 0x00000002;
onChanged();
return getUpdateMaskFieldBuilder().getBuilder();
}
diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ValidateAgentRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ValidateAgentRequest.java
index 9fbaccc88bac..785df96a3dfe 100644
--- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ValidateAgentRequest.java
+++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ValidateAgentRequest.java
@@ -22,7 +22,8 @@
*
*
*
- * The request message for [Agents.ValidateAgent][google.cloud.dialogflow.cx.v3.Agents.ValidateAgent].
+ * The request message for
+ * [Agents.ValidateAgent][google.cloud.dialogflow.cx.v3.Agents.ValidateAgent].
*
*
* Protobuf type {@code google.cloud.dialogflow.cx.v3.ValidateAgentRequest}
@@ -69,7 +70,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
public static final int NAME_FIELD_NUMBER = 1;
- private volatile java.lang.Object name_;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object name_ = "";
/**
*
*
@@ -124,7 +127,9 @@ public com.google.protobuf.ByteString getNameBytes() {
}
public static final int LANGUAGE_CODE_FIELD_NUMBER = 2;
- private volatile java.lang.Object languageCode_;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object languageCode_ = "";
/**
*
*
@@ -345,7 +350,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
*
*
*
- * The request message for [Agents.ValidateAgent][google.cloud.dialogflow.cx.v3.Agents.ValidateAgent].
+ * The request message for
+ * [Agents.ValidateAgent][google.cloud.dialogflow.cx.v3.Agents.ValidateAgent].
*
*
* Protobuf type {@code google.cloud.dialogflow.cx.v3.ValidateAgentRequest}
@@ -379,10 +385,9 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
@java.lang.Override
public Builder clear() {
super.clear();
+ bitField0_ = 0;
name_ = "";
-
languageCode_ = "";
-
return this;
}
@@ -410,12 +415,23 @@ public com.google.cloud.dialogflow.cx.v3.ValidateAgentRequest build() {
public com.google.cloud.dialogflow.cx.v3.ValidateAgentRequest buildPartial() {
com.google.cloud.dialogflow.cx.v3.ValidateAgentRequest result =
new com.google.cloud.dialogflow.cx.v3.ValidateAgentRequest(this);
- result.name_ = name_;
- result.languageCode_ = languageCode_;
+ if (bitField0_ != 0) {
+ buildPartial0(result);
+ }
onBuilt();
return result;
}
+ private void buildPartial0(com.google.cloud.dialogflow.cx.v3.ValidateAgentRequest result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.name_ = name_;
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.languageCode_ = languageCode_;
+ }
+ }
+
@java.lang.Override
public Builder clone() {
return super.clone();
@@ -464,10 +480,12 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.ValidateAgentRequest
return this;
if (!other.getName().isEmpty()) {
name_ = other.name_;
+ bitField0_ |= 0x00000001;
onChanged();
}
if (!other.getLanguageCode().isEmpty()) {
languageCode_ = other.languageCode_;
+ bitField0_ |= 0x00000002;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
@@ -499,13 +517,13 @@ public Builder mergeFrom(
case 10:
{
name_ = input.readStringRequireUtf8();
-
+ bitField0_ |= 0x00000001;
break;
} // case 10
case 18:
{
languageCode_ = input.readStringRequireUtf8();
-
+ bitField0_ |= 0x00000002;
break;
} // case 18
default:
@@ -525,6 +543,8 @@ public Builder mergeFrom(
return this;
}
+ private int bitField0_;
+
private java.lang.Object name_ = "";
/**
*
@@ -595,8 +615,8 @@ public Builder setName(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
-
name_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -615,8 +635,8 @@ public Builder setName(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearName() {
-
name_ = getDefaultInstance().getName();
+ bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
@@ -640,8 +660,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
-
name_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -707,8 +727,8 @@ public Builder setLanguageCode(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
-
languageCode_ = value;
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -724,8 +744,8 @@ public Builder setLanguageCode(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearLanguageCode() {
-
languageCode_ = getDefaultInstance().getLanguageCode();
+ bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
@@ -746,8 +766,8 @@ public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
-
languageCode_ = value;
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ValidateFlowRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ValidateFlowRequest.java
index 2d0148b3467d..065d5718210b 100644
--- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ValidateFlowRequest.java
+++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ValidateFlowRequest.java
@@ -22,7 +22,8 @@
*
*
*
- * The request message for [Flows.ValidateFlow][google.cloud.dialogflow.cx.v3.Flows.ValidateFlow].
+ * The request message for
+ * [Flows.ValidateFlow][google.cloud.dialogflow.cx.v3.Flows.ValidateFlow].
*
*
* Protobuf type {@code google.cloud.dialogflow.cx.v3.ValidateFlowRequest}
@@ -69,7 +70,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
public static final int NAME_FIELD_NUMBER = 1;
- private volatile java.lang.Object name_;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object name_ = "";
/**
*
*
@@ -126,7 +129,9 @@ public com.google.protobuf.ByteString getNameBytes() {
}
public static final int LANGUAGE_CODE_FIELD_NUMBER = 2;
- private volatile java.lang.Object languageCode_;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object languageCode_ = "";
/**
*
*
@@ -347,7 +352,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
*
*
*
- * The request message for [Flows.ValidateFlow][google.cloud.dialogflow.cx.v3.Flows.ValidateFlow].
+ * The request message for
+ * [Flows.ValidateFlow][google.cloud.dialogflow.cx.v3.Flows.ValidateFlow].
*
*
* Protobuf type {@code google.cloud.dialogflow.cx.v3.ValidateFlowRequest}
@@ -381,10 +387,9 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
@java.lang.Override
public Builder clear() {
super.clear();
+ bitField0_ = 0;
name_ = "";
-
languageCode_ = "";
-
return this;
}
@@ -412,12 +417,23 @@ public com.google.cloud.dialogflow.cx.v3.ValidateFlowRequest build() {
public com.google.cloud.dialogflow.cx.v3.ValidateFlowRequest buildPartial() {
com.google.cloud.dialogflow.cx.v3.ValidateFlowRequest result =
new com.google.cloud.dialogflow.cx.v3.ValidateFlowRequest(this);
- result.name_ = name_;
- result.languageCode_ = languageCode_;
+ if (bitField0_ != 0) {
+ buildPartial0(result);
+ }
onBuilt();
return result;
}
+ private void buildPartial0(com.google.cloud.dialogflow.cx.v3.ValidateFlowRequest result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.name_ = name_;
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.languageCode_ = languageCode_;
+ }
+ }
+
@java.lang.Override
public Builder clone() {
return super.clone();
@@ -466,10 +482,12 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.ValidateFlowRequest o
return this;
if (!other.getName().isEmpty()) {
name_ = other.name_;
+ bitField0_ |= 0x00000001;
onChanged();
}
if (!other.getLanguageCode().isEmpty()) {
languageCode_ = other.languageCode_;
+ bitField0_ |= 0x00000002;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
@@ -501,13 +519,13 @@ public Builder mergeFrom(
case 10:
{
name_ = input.readStringRequireUtf8();
-
+ bitField0_ |= 0x00000001;
break;
} // case 10
case 18:
{
languageCode_ = input.readStringRequireUtf8();
-
+ bitField0_ |= 0x00000002;
break;
} // case 18
default:
@@ -527,6 +545,8 @@ public Builder mergeFrom(
return this;
}
+ private int bitField0_;
+
private java.lang.Object name_ = "";
/**
*
@@ -600,8 +620,8 @@ public Builder setName(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
-
name_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -621,8 +641,8 @@ public Builder setName(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearName() {
-
name_ = getDefaultInstance().getName();
+ bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
@@ -647,8 +667,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
-
name_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -714,8 +734,8 @@ public Builder setLanguageCode(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
-
languageCode_ = value;
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -731,8 +751,8 @@ public Builder setLanguageCode(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearLanguageCode() {
-
languageCode_ = getDefaultInstance().getLanguageCode();
+ bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
@@ -753,8 +773,8 @@ public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
-
languageCode_ = value;
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ValidationMessage.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ValidationMessage.java
index fc1e2ba624c5..f14d5747ec08 100644
--- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ValidationMessage.java
+++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ValidationMessage.java
@@ -654,7 +654,7 @@ private Severity(int value) {
}
public static final int RESOURCE_TYPE_FIELD_NUMBER = 1;
- private int resourceType_;
+ private int resourceType_ = 0;
/**
*
*
@@ -683,15 +683,16 @@ public int getResourceTypeValue() {
*/
@java.lang.Override
public com.google.cloud.dialogflow.cx.v3.ValidationMessage.ResourceType getResourceType() {
- @SuppressWarnings("deprecation")
com.google.cloud.dialogflow.cx.v3.ValidationMessage.ResourceType result =
- com.google.cloud.dialogflow.cx.v3.ValidationMessage.ResourceType.valueOf(resourceType_);
+ com.google.cloud.dialogflow.cx.v3.ValidationMessage.ResourceType.forNumber(resourceType_);
return result == null
? com.google.cloud.dialogflow.cx.v3.ValidationMessage.ResourceType.UNRECOGNIZED
: result;
}
public static final int RESOURCES_FIELD_NUMBER = 2;
+
+ @SuppressWarnings("serial")
private com.google.protobuf.LazyStringList resources_;
/**
*
@@ -765,6 +766,8 @@ public com.google.protobuf.ByteString getResourcesBytes(int index) {
}
public static final int RESOURCE_NAMES_FIELD_NUMBER = 6;
+
+ @SuppressWarnings("serial")
private java.util.List resourceNames_;
/**
*
@@ -835,7 +838,7 @@ public com.google.cloud.dialogflow.cx.v3.ResourceNameOrBuilder getResourceNamesO
}
public static final int SEVERITY_FIELD_NUMBER = 3;
- private int severity_;
+ private int severity_ = 0;
/**
*
*
@@ -864,16 +867,17 @@ public int getSeverityValue() {
*/
@java.lang.Override
public com.google.cloud.dialogflow.cx.v3.ValidationMessage.Severity getSeverity() {
- @SuppressWarnings("deprecation")
com.google.cloud.dialogflow.cx.v3.ValidationMessage.Severity result =
- com.google.cloud.dialogflow.cx.v3.ValidationMessage.Severity.valueOf(severity_);
+ com.google.cloud.dialogflow.cx.v3.ValidationMessage.Severity.forNumber(severity_);
return result == null
? com.google.cloud.dialogflow.cx.v3.ValidationMessage.Severity.UNRECOGNIZED
: result;
}
public static final int DETAIL_FIELD_NUMBER = 4;
- private volatile java.lang.Object detail_;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object detail_ = "";
/**
*
*
@@ -1173,21 +1177,19 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
@java.lang.Override
public Builder clear() {
super.clear();
+ bitField0_ = 0;
resourceType_ = 0;
-
resources_ = com.google.protobuf.LazyStringArrayList.EMPTY;
- bitField0_ = (bitField0_ & ~0x00000001);
+ bitField0_ = (bitField0_ & ~0x00000002);
if (resourceNamesBuilder_ == null) {
resourceNames_ = java.util.Collections.emptyList();
} else {
resourceNames_ = null;
resourceNamesBuilder_.clear();
}
- bitField0_ = (bitField0_ & ~0x00000002);
+ bitField0_ = (bitField0_ & ~0x00000004);
severity_ = 0;
-
detail_ = "";
-
return this;
}
@@ -1215,26 +1217,43 @@ public com.google.cloud.dialogflow.cx.v3.ValidationMessage build() {
public com.google.cloud.dialogflow.cx.v3.ValidationMessage buildPartial() {
com.google.cloud.dialogflow.cx.v3.ValidationMessage result =
new com.google.cloud.dialogflow.cx.v3.ValidationMessage(this);
- int from_bitField0_ = bitField0_;
- result.resourceType_ = resourceType_;
- if (((bitField0_ & 0x00000001) != 0)) {
+ buildPartialRepeatedFields(result);
+ if (bitField0_ != 0) {
+ buildPartial0(result);
+ }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartialRepeatedFields(
+ com.google.cloud.dialogflow.cx.v3.ValidationMessage result) {
+ if (((bitField0_ & 0x00000002) != 0)) {
resources_ = resources_.getUnmodifiableView();
- bitField0_ = (bitField0_ & ~0x00000001);
+ bitField0_ = (bitField0_ & ~0x00000002);
}
result.resources_ = resources_;
if (resourceNamesBuilder_ == null) {
- if (((bitField0_ & 0x00000002) != 0)) {
+ if (((bitField0_ & 0x00000004) != 0)) {
resourceNames_ = java.util.Collections.unmodifiableList(resourceNames_);
- bitField0_ = (bitField0_ & ~0x00000002);
+ bitField0_ = (bitField0_ & ~0x00000004);
}
result.resourceNames_ = resourceNames_;
} else {
result.resourceNames_ = resourceNamesBuilder_.build();
}
- result.severity_ = severity_;
- result.detail_ = detail_;
- onBuilt();
- return result;
+ }
+
+ private void buildPartial0(com.google.cloud.dialogflow.cx.v3.ValidationMessage result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.resourceType_ = resourceType_;
+ }
+ if (((from_bitField0_ & 0x00000008) != 0)) {
+ result.severity_ = severity_;
+ }
+ if (((from_bitField0_ & 0x00000010) != 0)) {
+ result.detail_ = detail_;
+ }
}
@java.lang.Override
@@ -1289,7 +1308,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.ValidationMessage oth
if (!other.resources_.isEmpty()) {
if (resources_.isEmpty()) {
resources_ = other.resources_;
- bitField0_ = (bitField0_ & ~0x00000001);
+ bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureResourcesIsMutable();
resources_.addAll(other.resources_);
@@ -1300,7 +1319,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.ValidationMessage oth
if (!other.resourceNames_.isEmpty()) {
if (resourceNames_.isEmpty()) {
resourceNames_ = other.resourceNames_;
- bitField0_ = (bitField0_ & ~0x00000002);
+ bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensureResourceNamesIsMutable();
resourceNames_.addAll(other.resourceNames_);
@@ -1313,7 +1332,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.ValidationMessage oth
resourceNamesBuilder_.dispose();
resourceNamesBuilder_ = null;
resourceNames_ = other.resourceNames_;
- bitField0_ = (bitField0_ & ~0x00000002);
+ bitField0_ = (bitField0_ & ~0x00000004);
resourceNamesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
? getResourceNamesFieldBuilder()
@@ -1328,6 +1347,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.ValidationMessage oth
}
if (!other.getDetail().isEmpty()) {
detail_ = other.detail_;
+ bitField0_ |= 0x00000010;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
@@ -1359,7 +1379,7 @@ public Builder mergeFrom(
case 8:
{
resourceType_ = input.readEnum();
-
+ bitField0_ |= 0x00000001;
break;
} // case 8
case 18:
@@ -1372,13 +1392,13 @@ public Builder mergeFrom(
case 24:
{
severity_ = input.readEnum();
-
+ bitField0_ |= 0x00000008;
break;
} // case 24
case 34:
{
detail_ = input.readStringRequireUtf8();
-
+ bitField0_ |= 0x00000010;
break;
} // case 34
case 50:
@@ -1442,8 +1462,8 @@ public int getResourceTypeValue() {
* @return This builder for chaining.
*/
public Builder setResourceTypeValue(int value) {
-
resourceType_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -1460,9 +1480,8 @@ public Builder setResourceTypeValue(int value) {
*/
@java.lang.Override
public com.google.cloud.dialogflow.cx.v3.ValidationMessage.ResourceType getResourceType() {
- @SuppressWarnings("deprecation")
com.google.cloud.dialogflow.cx.v3.ValidationMessage.ResourceType result =
- com.google.cloud.dialogflow.cx.v3.ValidationMessage.ResourceType.valueOf(resourceType_);
+ com.google.cloud.dialogflow.cx.v3.ValidationMessage.ResourceType.forNumber(resourceType_);
return result == null
? com.google.cloud.dialogflow.cx.v3.ValidationMessage.ResourceType.UNRECOGNIZED
: result;
@@ -1484,7 +1503,7 @@ public Builder setResourceType(
if (value == null) {
throw new NullPointerException();
}
-
+ bitField0_ |= 0x00000001;
resourceType_ = value.getNumber();
onChanged();
return this;
@@ -1501,7 +1520,7 @@ public Builder setResourceType(
* @return This builder for chaining.
*/
public Builder clearResourceType() {
-
+ bitField0_ = (bitField0_ & ~0x00000001);
resourceType_ = 0;
onChanged();
return this;
@@ -1511,9 +1530,9 @@ public Builder clearResourceType() {
com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureResourcesIsMutable() {
- if (!((bitField0_ & 0x00000001) != 0)) {
+ if (!((bitField0_ & 0x00000002) != 0)) {
resources_ = new com.google.protobuf.LazyStringArrayList(resources_);
- bitField0_ |= 0x00000001;
+ bitField0_ |= 0x00000002;
}
}
/**
@@ -1672,7 +1691,7 @@ public Builder addAllResources(java.lang.Iterable values) {
@java.lang.Deprecated
public Builder clearResources() {
resources_ = com.google.protobuf.LazyStringArrayList.EMPTY;
- bitField0_ = (bitField0_ & ~0x00000001);
+ bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
@@ -1706,10 +1725,10 @@ public Builder addResourcesBytes(com.google.protobuf.ByteString value) {
java.util.Collections.emptyList();
private void ensureResourceNamesIsMutable() {
- if (!((bitField0_ & 0x00000002) != 0)) {
+ if (!((bitField0_ & 0x00000004) != 0)) {
resourceNames_ =
new java.util.ArrayList(resourceNames_);
- bitField0_ |= 0x00000002;
+ bitField0_ |= 0x00000004;
}
}
@@ -1927,7 +1946,7 @@ public Builder addAllResourceNames(
public Builder clearResourceNames() {
if (resourceNamesBuilder_ == null) {
resourceNames_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000002);
+ bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
} else {
resourceNamesBuilder_.clear();
@@ -2053,7 +2072,7 @@ public com.google.cloud.dialogflow.cx.v3.ResourceName.Builder addResourceNamesBu
com.google.cloud.dialogflow.cx.v3.ResourceName.Builder,
com.google.cloud.dialogflow.cx.v3.ResourceNameOrBuilder>(
resourceNames_,
- ((bitField0_ & 0x00000002) != 0),
+ ((bitField0_ & 0x00000004) != 0),
getParentForChildren(),
isClean());
resourceNames_ = null;
@@ -2090,8 +2109,8 @@ public int getSeverityValue() {
* @return This builder for chaining.
*/
public Builder setSeverityValue(int value) {
-
severity_ = value;
+ bitField0_ |= 0x00000008;
onChanged();
return this;
}
@@ -2108,9 +2127,8 @@ public Builder setSeverityValue(int value) {
*/
@java.lang.Override
public com.google.cloud.dialogflow.cx.v3.ValidationMessage.Severity getSeverity() {
- @SuppressWarnings("deprecation")
com.google.cloud.dialogflow.cx.v3.ValidationMessage.Severity result =
- com.google.cloud.dialogflow.cx.v3.ValidationMessage.Severity.valueOf(severity_);
+ com.google.cloud.dialogflow.cx.v3.ValidationMessage.Severity.forNumber(severity_);
return result == null
? com.google.cloud.dialogflow.cx.v3.ValidationMessage.Severity.UNRECOGNIZED
: result;
@@ -2131,7 +2149,7 @@ public Builder setSeverity(com.google.cloud.dialogflow.cx.v3.ValidationMessage.S
if (value == null) {
throw new NullPointerException();
}
-
+ bitField0_ |= 0x00000008;
severity_ = value.getNumber();
onChanged();
return this;
@@ -2148,7 +2166,7 @@ public Builder setSeverity(com.google.cloud.dialogflow.cx.v3.ValidationMessage.S
* @return This builder for chaining.
*/
public Builder clearSeverity() {
-
+ bitField0_ = (bitField0_ & ~0x00000008);
severity_ = 0;
onChanged();
return this;
@@ -2215,8 +2233,8 @@ public Builder setDetail(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
-
detail_ = value;
+ bitField0_ |= 0x00000010;
onChanged();
return this;
}
@@ -2232,8 +2250,8 @@ public Builder setDetail(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearDetail() {
-
detail_ = getDefaultInstance().getDetail();
+ bitField0_ = (bitField0_ & ~0x00000010);
onChanged();
return this;
}
@@ -2254,8 +2272,8 @@ public Builder setDetailBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
-
detail_ = value;
+ bitField0_ |= 0x00000010;
onChanged();
return this;
}
diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ValidationMessageProto.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ValidationMessageProto.java
index f35d43814932..77388d337d34 100644
--- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ValidationMessageProto.java
+++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ValidationMessageProto.java
@@ -63,12 +63,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "TE_GROUP\020\007\"F\n\010Severity\022\030\n\024SEVERITY_UNSPE"
+ "CIFIED\020\000\022\010\n\004INFO\020\001\022\013\n\007WARNING\020\002\022\t\n\005ERROR"
+ "\020\003\"2\n\014ResourceName\022\014\n\004name\030\001 \001(\t\022\024\n\014disp"
- + "lay_name\030\002 \001(\tB\312\001\n!com.google.cloud.dial"
- + "ogflow.cx.v3B\026ValidationMessageProtoP\001Z?"
- + "google.golang.org/genproto/googleapis/cl"
- + "oud/dialogflow/cx/v3;cx\370\001\001\242\002\002DF\252\002\035Google"
- + ".Cloud.Dialogflow.Cx.V3\352\002!Google::Cloud:"
- + ":Dialogflow::CX::V3b\006proto3"
+ + "lay_name\030\002 \001(\tB\274\001\n!com.google.cloud.dial"
+ + "ogflow.cx.v3B\026ValidationMessageProtoP\001Z1"
+ + "cloud.google.com/go/dialogflow/cx/apiv3/"
+ + "cxpb;cxpb\370\001\001\242\002\002DF\252\002\035Google.Cloud.Dialogf"
+ + "low.Cx.V3\352\002!Google::Cloud::Dialogflow::C"
+ + "X::V3b\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/VariantsHistory.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/VariantsHistory.java
index 576ef10cfcf7..146df538218e 100644
--- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/VariantsHistory.java
+++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/VariantsHistory.java
@@ -203,7 +203,7 @@ public com.google.protobuf.Timestamp getUpdateTime() {
*/
@java.lang.Override
public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
- return getUpdateTime();
+ return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_;
}
private byte memoizedIsInitialized = -1;
@@ -432,13 +432,13 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
@java.lang.Override
public Builder clear() {
super.clear();
+ bitField0_ = 0;
if (versionVariantsBuilder_ != null) {
versionVariantsBuilder_.clear();
}
- if (updateTimeBuilder_ == null) {
- updateTime_ = null;
- } else {
- updateTime_ = null;
+ updateTime_ = null;
+ if (updateTimeBuilder_ != null) {
+ updateTimeBuilder_.dispose();
updateTimeBuilder_ = null;
}
variantsCase_ = 0;
@@ -470,23 +470,29 @@ public com.google.cloud.dialogflow.cx.v3.VariantsHistory build() {
public com.google.cloud.dialogflow.cx.v3.VariantsHistory buildPartial() {
com.google.cloud.dialogflow.cx.v3.VariantsHistory result =
new com.google.cloud.dialogflow.cx.v3.VariantsHistory(this);
- if (variantsCase_ == 1) {
- if (versionVariantsBuilder_ == null) {
- result.variants_ = variants_;
- } else {
- result.variants_ = versionVariantsBuilder_.build();
- }
- }
- if (updateTimeBuilder_ == null) {
- result.updateTime_ = updateTime_;
- } else {
- result.updateTime_ = updateTimeBuilder_.build();
+ if (bitField0_ != 0) {
+ buildPartial0(result);
}
- result.variantsCase_ = variantsCase_;
+ buildPartialOneofs(result);
onBuilt();
return result;
}
+ private void buildPartial0(com.google.cloud.dialogflow.cx.v3.VariantsHistory result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build();
+ }
+ }
+
+ private void buildPartialOneofs(com.google.cloud.dialogflow.cx.v3.VariantsHistory result) {
+ result.variantsCase_ = variantsCase_;
+ result.variants_ = this.variants_;
+ if (variantsCase_ == 1 && versionVariantsBuilder_ != null) {
+ result.variants_ = versionVariantsBuilder_.build();
+ }
+ }
+
@java.lang.Override
public Builder clone() {
return super.clone();
@@ -582,7 +588,7 @@ public Builder mergeFrom(
case 18:
{
input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry);
-
+ bitField0_ |= 0x00000002;
break;
} // case 18
default:
@@ -616,6 +622,8 @@ public Builder clearVariants() {
return this;
}
+ private int bitField0_;
+
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.dialogflow.cx.v3.VersionVariants,
com.google.cloud.dialogflow.cx.v3.VersionVariants.Builder,
@@ -824,7 +832,6 @@ public com.google.cloud.dialogflow.cx.v3.VersionVariants.Builder getVersionVaria
}
variantsCase_ = 1;
onChanged();
- ;
return versionVariantsBuilder_;
}
@@ -846,7 +853,7 @@ public com.google.cloud.dialogflow.cx.v3.VersionVariants.Builder getVersionVaria
* @return Whether the updateTime field is set.
*/
public boolean hasUpdateTime() {
- return updateTimeBuilder_ != null || updateTime_ != null;
+ return ((bitField0_ & 0x00000002) != 0);
}
/**
*
@@ -883,11 +890,11 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) {
throw new NullPointerException();
}
updateTime_ = value;
- onChanged();
} else {
updateTimeBuilder_.setMessage(value);
}
-
+ bitField0_ |= 0x00000002;
+ onChanged();
return this;
}
/**
@@ -902,11 +909,11 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) {
public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) {
if (updateTimeBuilder_ == null) {
updateTime_ = builderForValue.build();
- onChanged();
} else {
updateTimeBuilder_.setMessage(builderForValue.build());
}
-
+ bitField0_ |= 0x00000002;
+ onChanged();
return this;
}
/**
@@ -920,17 +927,18 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal
*/
public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) {
if (updateTimeBuilder_ == null) {
- if (updateTime_ != null) {
- updateTime_ =
- com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial();
+ if (((bitField0_ & 0x00000002) != 0)
+ && updateTime_ != null
+ && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
+ getUpdateTimeBuilder().mergeFrom(value);
} else {
updateTime_ = value;
}
- onChanged();
} else {
updateTimeBuilder_.mergeFrom(value);
}
-
+ bitField0_ |= 0x00000002;
+ onChanged();
return this;
}
/**
@@ -943,14 +951,13 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) {
* .google.protobuf.Timestamp update_time = 2;
*/
public Builder clearUpdateTime() {
- if (updateTimeBuilder_ == null) {
- updateTime_ = null;
- onChanged();
- } else {
- updateTime_ = null;
+ bitField0_ = (bitField0_ & ~0x00000002);
+ updateTime_ = null;
+ if (updateTimeBuilder_ != null) {
+ updateTimeBuilder_.dispose();
updateTimeBuilder_ = null;
}
-
+ onChanged();
return this;
}
/**
@@ -963,7 +970,7 @@ public Builder clearUpdateTime() {
* .google.protobuf.Timestamp update_time = 2;
*/
public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() {
-
+ bitField0_ |= 0x00000002;
onChanged();
return getUpdateTimeFieldBuilder().getBuilder();
}
diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/Version.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/Version.java
index a485b217619f..47e5b4c0816c 100644
--- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/Version.java
+++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/Version.java
@@ -250,7 +250,9 @@ private State(int value) {
}
public static final int NAME_FIELD_NUMBER = 1;
- private volatile java.lang.Object name_;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object name_ = "";
/**
*
*
@@ -303,7 +305,9 @@ public com.google.protobuf.ByteString getNameBytes() {
}
public static final int DISPLAY_NAME_FIELD_NUMBER = 2;
- private volatile java.lang.Object displayName_;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object displayName_ = "";
/**
*
*
@@ -352,7 +356,9 @@ public com.google.protobuf.ByteString getDisplayNameBytes() {
}
public static final int DESCRIPTION_FIELD_NUMBER = 3;
- private volatile java.lang.Object description_;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object description_ = "";
/**
*
*
@@ -453,7 +459,9 @@ public com.google.cloud.dialogflow.cx.v3.NluSettings getNluSettings() {
*/
@java.lang.Override
public com.google.cloud.dialogflow.cx.v3.NluSettingsOrBuilder getNluSettingsOrBuilder() {
- return getNluSettings();
+ return nluSettings_ == null
+ ? com.google.cloud.dialogflow.cx.v3.NluSettings.getDefaultInstance()
+ : nluSettings_;
}
public static final int CREATE_TIME_FIELD_NUMBER = 5;
@@ -502,17 +510,17 @@ public com.google.protobuf.Timestamp getCreateTime() {
*/
@java.lang.Override
public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() {
- return getCreateTime();
+ return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_;
}
public static final int STATE_FIELD_NUMBER = 6;
- private int state_;
+ private int state_ = 0;
/**
*
*
*
- * Output only. The state of this version. This field is read-only and cannot be set by
- * create and update methods.
+ * Output only. The state of this version. This field is read-only and cannot
+ * be set by create and update methods.
*
*
*
@@ -529,8 +537,8 @@ public int getStateValue() {
*
*
*
- * Output only. The state of this version. This field is read-only and cannot be set by
- * create and update methods.
+ * Output only. The state of this version. This field is read-only and cannot
+ * be set by create and update methods.
*
*
*
@@ -541,9 +549,8 @@ public int getStateValue() {
*/
@java.lang.Override
public com.google.cloud.dialogflow.cx.v3.Version.State getState() {
- @SuppressWarnings("deprecation")
com.google.cloud.dialogflow.cx.v3.Version.State result =
- com.google.cloud.dialogflow.cx.v3.Version.State.valueOf(state_);
+ com.google.cloud.dialogflow.cx.v3.Version.State.forNumber(state_);
return result == null ? com.google.cloud.dialogflow.cx.v3.Version.State.UNRECOGNIZED : result;
}
@@ -799,26 +806,21 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
@java.lang.Override
public Builder clear() {
super.clear();
+ bitField0_ = 0;
name_ = "";
-
displayName_ = "";
-
description_ = "";
-
- if (nluSettingsBuilder_ == null) {
- nluSettings_ = null;
- } else {
- nluSettings_ = null;
+ nluSettings_ = null;
+ if (nluSettingsBuilder_ != null) {
+ nluSettingsBuilder_.dispose();
nluSettingsBuilder_ = null;
}
- if (createTimeBuilder_ == null) {
- createTime_ = null;
- } else {
- createTime_ = null;
+ createTime_ = null;
+ if (createTimeBuilder_ != null) {
+ createTimeBuilder_.dispose();
createTimeBuilder_ = null;
}
state_ = 0;
-
return this;
}
@@ -846,24 +848,36 @@ public com.google.cloud.dialogflow.cx.v3.Version build() {
public com.google.cloud.dialogflow.cx.v3.Version buildPartial() {
com.google.cloud.dialogflow.cx.v3.Version result =
new com.google.cloud.dialogflow.cx.v3.Version(this);
- result.name_ = name_;
- result.displayName_ = displayName_;
- result.description_ = description_;
- if (nluSettingsBuilder_ == null) {
- result.nluSettings_ = nluSettings_;
- } else {
- result.nluSettings_ = nluSettingsBuilder_.build();
+ if (bitField0_ != 0) {
+ buildPartial0(result);
}
- if (createTimeBuilder_ == null) {
- result.createTime_ = createTime_;
- } else {
- result.createTime_ = createTimeBuilder_.build();
- }
- result.state_ = state_;
onBuilt();
return result;
}
+ private void buildPartial0(com.google.cloud.dialogflow.cx.v3.Version result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.name_ = name_;
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.displayName_ = displayName_;
+ }
+ if (((from_bitField0_ & 0x00000004) != 0)) {
+ result.description_ = description_;
+ }
+ if (((from_bitField0_ & 0x00000008) != 0)) {
+ result.nluSettings_ =
+ nluSettingsBuilder_ == null ? nluSettings_ : nluSettingsBuilder_.build();
+ }
+ if (((from_bitField0_ & 0x00000010) != 0)) {
+ result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build();
+ }
+ if (((from_bitField0_ & 0x00000020) != 0)) {
+ result.state_ = state_;
+ }
+ }
+
@java.lang.Override
public Builder clone() {
return super.clone();
@@ -911,14 +925,17 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.Version other) {
if (other == com.google.cloud.dialogflow.cx.v3.Version.getDefaultInstance()) return this;
if (!other.getName().isEmpty()) {
name_ = other.name_;
+ bitField0_ |= 0x00000001;
onChanged();
}
if (!other.getDisplayName().isEmpty()) {
displayName_ = other.displayName_;
+ bitField0_ |= 0x00000002;
onChanged();
}
if (!other.getDescription().isEmpty()) {
description_ = other.description_;
+ bitField0_ |= 0x00000004;
onChanged();
}
if (other.hasNluSettings()) {
@@ -959,37 +976,37 @@ public Builder mergeFrom(
case 10:
{
name_ = input.readStringRequireUtf8();
-
+ bitField0_ |= 0x00000001;
break;
} // case 10
case 18:
{
displayName_ = input.readStringRequireUtf8();
-
+ bitField0_ |= 0x00000002;
break;
} // case 18
case 26:
{
description_ = input.readStringRequireUtf8();
-
+ bitField0_ |= 0x00000004;
break;
} // case 26
case 34:
{
input.readMessage(getNluSettingsFieldBuilder().getBuilder(), extensionRegistry);
-
+ bitField0_ |= 0x00000008;
break;
} // case 34
case 42:
{
input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry);
-
+ bitField0_ |= 0x00000010;
break;
} // case 42
case 48:
{
state_ = input.readEnum();
-
+ bitField0_ |= 0x00000020;
break;
} // case 48
default:
@@ -1009,6 +1026,8 @@ public Builder mergeFrom(
return this;
}
+ private int bitField0_;
+
private java.lang.Object name_ = "";
/**
*
@@ -1076,8 +1095,8 @@ public Builder setName(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
-
name_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -1095,8 +1114,8 @@ public Builder setName(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearName() {
-
name_ = getDefaultInstance().getName();
+ bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
@@ -1119,8 +1138,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
-
name_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -1186,8 +1205,8 @@ public Builder setDisplayName(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
-
displayName_ = value;
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -1203,8 +1222,8 @@ public Builder setDisplayName(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearDisplayName() {
-
displayName_ = getDefaultInstance().getDisplayName();
+ bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
@@ -1225,8 +1244,8 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
-
displayName_ = value;
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -1295,8 +1314,8 @@ public Builder setDescription(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
-
description_ = value;
+ bitField0_ |= 0x00000004;
onChanged();
return this;
}
@@ -1313,8 +1332,8 @@ public Builder setDescription(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearDescription() {
-
description_ = getDefaultInstance().getDescription();
+ bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
@@ -1336,8 +1355,8 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
-
description_ = value;
+ bitField0_ |= 0x00000004;
onChanged();
return this;
}
@@ -1362,7 +1381,7 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) {
* @return Whether the nluSettings field is set.
*/
public boolean hasNluSettings() {
- return nluSettingsBuilder_ != null || nluSettings_ != null;
+ return ((bitField0_ & 0x00000008) != 0);
}
/**
*
@@ -1403,11 +1422,11 @@ public Builder setNluSettings(com.google.cloud.dialogflow.cx.v3.NluSettings valu
throw new NullPointerException();
}
nluSettings_ = value;
- onChanged();
} else {
nluSettingsBuilder_.setMessage(value);
}
-
+ bitField0_ |= 0x00000008;
+ onChanged();
return this;
}
/**
@@ -1425,11 +1444,11 @@ public Builder setNluSettings(
com.google.cloud.dialogflow.cx.v3.NluSettings.Builder builderForValue) {
if (nluSettingsBuilder_ == null) {
nluSettings_ = builderForValue.build();
- onChanged();
} else {
nluSettingsBuilder_.setMessage(builderForValue.build());
}
-
+ bitField0_ |= 0x00000008;
+ onChanged();
return this;
}
/**
@@ -1445,19 +1464,18 @@ public Builder setNluSettings(
*/
public Builder mergeNluSettings(com.google.cloud.dialogflow.cx.v3.NluSettings value) {
if (nluSettingsBuilder_ == null) {
- if (nluSettings_ != null) {
- nluSettings_ =
- com.google.cloud.dialogflow.cx.v3.NluSettings.newBuilder(nluSettings_)
- .mergeFrom(value)
- .buildPartial();
+ if (((bitField0_ & 0x00000008) != 0)
+ && nluSettings_ != null
+ && nluSettings_ != com.google.cloud.dialogflow.cx.v3.NluSettings.getDefaultInstance()) {
+ getNluSettingsBuilder().mergeFrom(value);
} else {
nluSettings_ = value;
}
- onChanged();
} else {
nluSettingsBuilder_.mergeFrom(value);
}
-
+ bitField0_ |= 0x00000008;
+ onChanged();
return this;
}
/**
@@ -1472,14 +1490,13 @@ public Builder mergeNluSettings(com.google.cloud.dialogflow.cx.v3.NluSettings va
*
*/
public Builder clearNluSettings() {
- if (nluSettingsBuilder_ == null) {
- nluSettings_ = null;
- onChanged();
- } else {
- nluSettings_ = null;
+ bitField0_ = (bitField0_ & ~0x00000008);
+ nluSettings_ = null;
+ if (nluSettingsBuilder_ != null) {
+ nluSettingsBuilder_.dispose();
nluSettingsBuilder_ = null;
}
-
+ onChanged();
return this;
}
/**
@@ -1494,7 +1511,7 @@ public Builder clearNluSettings() {
*
*/
public com.google.cloud.dialogflow.cx.v3.NluSettings.Builder getNluSettingsBuilder() {
-
+ bitField0_ |= 0x00000008;
onChanged();
return getNluSettingsFieldBuilder().getBuilder();
}
@@ -1566,7 +1583,7 @@ public com.google.cloud.dialogflow.cx.v3.NluSettingsOrBuilder getNluSettingsOrBu
* @return Whether the createTime field is set.
*/
public boolean hasCreateTime() {
- return createTimeBuilder_ != null || createTime_ != null;
+ return ((bitField0_ & 0x00000010) != 0);
}
/**
*
@@ -1607,11 +1624,11 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) {
throw new NullPointerException();
}
createTime_ = value;
- onChanged();
} else {
createTimeBuilder_.setMessage(value);
}
-
+ bitField0_ |= 0x00000010;
+ onChanged();
return this;
}
/**
@@ -1628,11 +1645,11 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) {
public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) {
if (createTimeBuilder_ == null) {
createTime_ = builderForValue.build();
- onChanged();
} else {
createTimeBuilder_.setMessage(builderForValue.build());
}
-
+ bitField0_ |= 0x00000010;
+ onChanged();
return this;
}
/**
@@ -1648,17 +1665,18 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal
*/
public Builder mergeCreateTime(com.google.protobuf.Timestamp value) {
if (createTimeBuilder_ == null) {
- if (createTime_ != null) {
- createTime_ =
- com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial();
+ if (((bitField0_ & 0x00000010) != 0)
+ && createTime_ != null
+ && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
+ getCreateTimeBuilder().mergeFrom(value);
} else {
createTime_ = value;
}
- onChanged();
} else {
createTimeBuilder_.mergeFrom(value);
}
-
+ bitField0_ |= 0x00000010;
+ onChanged();
return this;
}
/**
@@ -1673,14 +1691,13 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) {
*
*/
public Builder clearCreateTime() {
- if (createTimeBuilder_ == null) {
- createTime_ = null;
- onChanged();
- } else {
- createTime_ = null;
+ bitField0_ = (bitField0_ & ~0x00000010);
+ createTime_ = null;
+ if (createTimeBuilder_ != null) {
+ createTimeBuilder_.dispose();
createTimeBuilder_ = null;
}
-
+ onChanged();
return this;
}
/**
@@ -1695,7 +1712,7 @@ public Builder clearCreateTime() {
*
*/
public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() {
-
+ bitField0_ |= 0x00000010;
onChanged();
return getCreateTimeFieldBuilder().getBuilder();
}
@@ -1752,8 +1769,8 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() {
*
*
*
- * Output only. The state of this version. This field is read-only and cannot be set by
- * create and update methods.
+ * Output only. The state of this version. This field is read-only and cannot
+ * be set by create and update methods.
*
*
*
@@ -1770,8 +1787,8 @@ public int getStateValue() {
*
*
*
- * Output only. The state of this version. This field is read-only and cannot be set by
- * create and update methods.
+ * Output only. The state of this version. This field is read-only and cannot
+ * be set by create and update methods.
*
*
*
@@ -1782,8 +1799,8 @@ public int getStateValue() {
* @return This builder for chaining.
*/
public Builder setStateValue(int value) {
-
state_ = value;
+ bitField0_ |= 0x00000020;
onChanged();
return this;
}
@@ -1791,8 +1808,8 @@ public Builder setStateValue(int value) {
*
*
*
- * Output only. The state of this version. This field is read-only and cannot be set by
- * create and update methods.
+ * Output only. The state of this version. This field is read-only and cannot
+ * be set by create and update methods.
*
*
*
@@ -1803,17 +1820,16 @@ public Builder setStateValue(int value) {
*/
@java.lang.Override
public com.google.cloud.dialogflow.cx.v3.Version.State getState() {
- @SuppressWarnings("deprecation")
com.google.cloud.dialogflow.cx.v3.Version.State result =
- com.google.cloud.dialogflow.cx.v3.Version.State.valueOf(state_);
+ com.google.cloud.dialogflow.cx.v3.Version.State.forNumber(state_);
return result == null ? com.google.cloud.dialogflow.cx.v3.Version.State.UNRECOGNIZED : result;
}
/**
*
*
*
- * Output only. The state of this version. This field is read-only and cannot be set by
- * create and update methods.
+ * Output only. The state of this version. This field is read-only and cannot
+ * be set by create and update methods.
*
*
*
@@ -1827,7 +1843,7 @@ public Builder setState(com.google.cloud.dialogflow.cx.v3.Version.State value) {
if (value == null) {
throw new NullPointerException();
}
-
+ bitField0_ |= 0x00000020;
state_ = value.getNumber();
onChanged();
return this;
@@ -1836,8 +1852,8 @@ public Builder setState(com.google.cloud.dialogflow.cx.v3.Version.State value) {
*
*
*
- * Output only. The state of this version. This field is read-only and cannot be set by
- * create and update methods.
+ * Output only. The state of this version. This field is read-only and cannot
+ * be set by create and update methods.
*
*
*
@@ -1847,7 +1863,7 @@ public Builder setState(com.google.cloud.dialogflow.cx.v3.Version.State value) {
* @return This builder for chaining.
*/
public Builder clearState() {
-
+ bitField0_ = (bitField0_ & ~0x00000020);
state_ = 0;
onChanged();
return this;
diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/VersionOrBuilder.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/VersionOrBuilder.java
index f59805189b6a..38902a1d7536 100644
--- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/VersionOrBuilder.java
+++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/VersionOrBuilder.java
@@ -187,8 +187,8 @@ public interface VersionOrBuilder
*
*
*
- * Output only. The state of this version. This field is read-only and cannot be set by
- * create and update methods.
+ * Output only. The state of this version. This field is read-only and cannot
+ * be set by create and update methods.
*
*
*
@@ -202,8 +202,8 @@ public interface VersionOrBuilder
*
*
*
- * Output only. The state of this version. This field is read-only and cannot be set by
- * create and update methods.
+ * Output only. The state of this version. This field is read-only and cannot
+ * be set by create and update methods.
*
*
*
diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/VersionProto.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/VersionProto.java
index 929b6ff2fb31..03edc8a1aede 100644
--- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/VersionProto.java
+++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/VersionProto.java
@@ -172,12 +172,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "on\032x\312A\031dialogflow.googleapis.com\322AYhttps"
+ "://www.googleapis.com/auth/cloud-platfor"
+ "m,https://www.googleapis.com/auth/dialog"
- + "flowB\300\001\n!com.google.cloud.dialogflow.cx."
- + "v3B\014VersionProtoP\001Z?google.golang.org/ge"
- + "nproto/googleapis/cloud/dialogflow/cx/v3"
- + ";cx\370\001\001\242\002\002DF\252\002\035Google.Cloud.Dialogflow.Cx"
- + ".V3\352\002!Google::Cloud::Dialogflow::CX::V3b"
- + "\006proto3"
+ + "flowB\262\001\n!com.google.cloud.dialogflow.cx."
+ + "v3B\014VersionProtoP\001Z1cloud.google.com/go/"
+ + "dialogflow/cx/apiv3/cxpb;cxpb\370\001\001\242\002\002DF\252\002\035"
+ + "Google.Cloud.Dialogflow.Cx.V3\352\002!Google::"
+ + "Cloud::Dialogflow::CX::V3b\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/VersionVariants.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/VersionVariants.java
index 7e9022c7a35a..131011520f7e 100644
--- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/VersionVariants.java
+++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/VersionVariants.java
@@ -178,7 +178,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
public static final int VERSION_FIELD_NUMBER = 1;
- private volatile java.lang.Object version_;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object version_ = "";
/**
*
*
@@ -231,7 +233,7 @@ public com.google.protobuf.ByteString getVersionBytes() {
}
public static final int TRAFFIC_ALLOCATION_FIELD_NUMBER = 2;
- private float trafficAllocation_;
+ private float trafficAllocation_ = 0F;
/**
*
*
@@ -250,7 +252,7 @@ public float getTrafficAllocation() {
}
public static final int IS_CONTROL_GROUP_FIELD_NUMBER = 3;
- private boolean isControlGroup_;
+ private boolean isControlGroup_ = false;
/**
*
*
@@ -486,12 +488,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
@java.lang.Override
public Builder clear() {
super.clear();
+ bitField0_ = 0;
version_ = "";
-
trafficAllocation_ = 0F;
-
isControlGroup_ = false;
-
return this;
}
@@ -519,13 +519,26 @@ public com.google.cloud.dialogflow.cx.v3.VersionVariants.Variant build() {
public com.google.cloud.dialogflow.cx.v3.VersionVariants.Variant buildPartial() {
com.google.cloud.dialogflow.cx.v3.VersionVariants.Variant result =
new com.google.cloud.dialogflow.cx.v3.VersionVariants.Variant(this);
- result.version_ = version_;
- result.trafficAllocation_ = trafficAllocation_;
- result.isControlGroup_ = isControlGroup_;
+ if (bitField0_ != 0) {
+ buildPartial0(result);
+ }
onBuilt();
return result;
}
+ private void buildPartial0(com.google.cloud.dialogflow.cx.v3.VersionVariants.Variant result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.version_ = version_;
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.trafficAllocation_ = trafficAllocation_;
+ }
+ if (((from_bitField0_ & 0x00000004) != 0)) {
+ result.isControlGroup_ = isControlGroup_;
+ }
+ }
+
@java.lang.Override
public Builder clone() {
return super.clone();
@@ -576,6 +589,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.VersionVariants.Varia
return this;
if (!other.getVersion().isEmpty()) {
version_ = other.version_;
+ bitField0_ |= 0x00000001;
onChanged();
}
if (other.getTrafficAllocation() != 0F) {
@@ -613,19 +627,19 @@ public Builder mergeFrom(
case 10:
{
version_ = input.readStringRequireUtf8();
-
+ bitField0_ |= 0x00000001;
break;
} // case 10
case 21:
{
trafficAllocation_ = input.readFloat();
-
+ bitField0_ |= 0x00000002;
break;
} // case 21
case 24:
{
isControlGroup_ = input.readBool();
-
+ bitField0_ |= 0x00000004;
break;
} // case 24
default:
@@ -645,6 +659,8 @@ public Builder mergeFrom(
return this;
}
+ private int bitField0_;
+
private java.lang.Object version_ = "";
/**
*
@@ -712,8 +728,8 @@ public Builder setVersion(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
-
version_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -731,8 +747,8 @@ public Builder setVersion(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearVersion() {
-
version_ = getDefaultInstance().getVersion();
+ bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
@@ -755,8 +771,8 @@ public Builder setVersionBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
-
version_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -794,6 +810,7 @@ public float getTrafficAllocation() {
public Builder setTrafficAllocation(float value) {
trafficAllocation_ = value;
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -810,7 +827,7 @@ public Builder setTrafficAllocation(float value) {
* @return This builder for chaining.
*/
public Builder clearTrafficAllocation() {
-
+ bitField0_ = (bitField0_ & ~0x00000002);
trafficAllocation_ = 0F;
onChanged();
return this;
@@ -847,6 +864,7 @@ public boolean getIsControlGroup() {
public Builder setIsControlGroup(boolean value) {
isControlGroup_ = value;
+ bitField0_ |= 0x00000004;
onChanged();
return this;
}
@@ -862,7 +880,7 @@ public Builder setIsControlGroup(boolean value) {
* @return This builder for chaining.
*/
public Builder clearIsControlGroup() {
-
+ bitField0_ = (bitField0_ & ~0x00000004);
isControlGroup_ = false;
onChanged();
return this;
@@ -933,6 +951,8 @@ public com.google.cloud.dialogflow.cx.v3.VersionVariants.Variant getDefaultInsta
}
public static final int VARIANTS_FIELD_NUMBER = 1;
+
+ @SuppressWarnings("serial")
private java.util.List variants_;
/**
*
@@ -1203,6 +1223,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
@java.lang.Override
public Builder clear() {
super.clear();
+ bitField0_ = 0;
if (variantsBuilder_ == null) {
variants_ = java.util.Collections.emptyList();
} else {
@@ -1237,7 +1258,16 @@ public com.google.cloud.dialogflow.cx.v3.VersionVariants build() {
public com.google.cloud.dialogflow.cx.v3.VersionVariants buildPartial() {
com.google.cloud.dialogflow.cx.v3.VersionVariants result =
new com.google.cloud.dialogflow.cx.v3.VersionVariants(this);
- int from_bitField0_ = bitField0_;
+ buildPartialRepeatedFields(result);
+ if (bitField0_ != 0) {
+ buildPartial0(result);
+ }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartialRepeatedFields(
+ com.google.cloud.dialogflow.cx.v3.VersionVariants result) {
if (variantsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
variants_ = java.util.Collections.unmodifiableList(variants_);
@@ -1247,8 +1277,10 @@ public com.google.cloud.dialogflow.cx.v3.VersionVariants buildPartial() {
} else {
result.variants_ = variantsBuilder_.build();
}
- onBuilt();
- return result;
+ }
+
+ private void buildPartial0(com.google.cloud.dialogflow.cx.v3.VersionVariants result) {
+ int from_bitField0_ = bitField0_;
}
@java.lang.Override
diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/VoiceSelectionParams.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/VoiceSelectionParams.java
index dc88e8647695..b9080de37091 100644
--- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/VoiceSelectionParams.java
+++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/VoiceSelectionParams.java
@@ -69,7 +69,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
public static final int NAME_FIELD_NUMBER = 1;
- private volatile java.lang.Object name_;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object name_ = "";
/**
*
*
@@ -126,17 +128,17 @@ public com.google.protobuf.ByteString getNameBytes() {
}
public static final int SSML_GENDER_FIELD_NUMBER = 2;
- private int ssmlGender_;
+ private int ssmlGender_ = 0;
/**
*
*
*
* Optional. The preferred gender of the voice. If not set, the service will
* choose a voice based on the other parameters such as language_code and
- * [name][google.cloud.dialogflow.cx.v3.VoiceSelectionParams.name]. Note that this is only a preference, not requirement. If a
- * voice of the appropriate gender is not available, the synthesizer
- * substitutes a voice with a different gender rather than failing the
- * request.
+ * [name][google.cloud.dialogflow.cx.v3.VoiceSelectionParams.name]. Note that
+ * this is only a preference, not requirement. If a voice of the appropriate
+ * gender is not available, the synthesizer substitutes a voice with a
+ * different gender rather than failing the request.
*
*
* .google.cloud.dialogflow.cx.v3.SsmlVoiceGender ssml_gender = 2;
@@ -153,10 +155,10 @@ public int getSsmlGenderValue() {
*
* Optional. The preferred gender of the voice. If not set, the service will
* choose a voice based on the other parameters such as language_code and
- * [name][google.cloud.dialogflow.cx.v3.VoiceSelectionParams.name]. Note that this is only a preference, not requirement. If a
- * voice of the appropriate gender is not available, the synthesizer
- * substitutes a voice with a different gender rather than failing the
- * request.
+ * [name][google.cloud.dialogflow.cx.v3.VoiceSelectionParams.name]. Note that
+ * this is only a preference, not requirement. If a voice of the appropriate
+ * gender is not available, the synthesizer substitutes a voice with a
+ * different gender rather than failing the request.
*
*
* .google.cloud.dialogflow.cx.v3.SsmlVoiceGender ssml_gender = 2;
@@ -165,9 +167,8 @@ public int getSsmlGenderValue() {
*/
@java.lang.Override
public com.google.cloud.dialogflow.cx.v3.SsmlVoiceGender getSsmlGender() {
- @SuppressWarnings("deprecation")
com.google.cloud.dialogflow.cx.v3.SsmlVoiceGender result =
- com.google.cloud.dialogflow.cx.v3.SsmlVoiceGender.valueOf(ssmlGender_);
+ com.google.cloud.dialogflow.cx.v3.SsmlVoiceGender.forNumber(ssmlGender_);
return result == null ? com.google.cloud.dialogflow.cx.v3.SsmlVoiceGender.UNRECOGNIZED : result;
}
@@ -382,10 +383,9 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
@java.lang.Override
public Builder clear() {
super.clear();
+ bitField0_ = 0;
name_ = "";
-
ssmlGender_ = 0;
-
return this;
}
@@ -413,12 +413,23 @@ public com.google.cloud.dialogflow.cx.v3.VoiceSelectionParams build() {
public com.google.cloud.dialogflow.cx.v3.VoiceSelectionParams buildPartial() {
com.google.cloud.dialogflow.cx.v3.VoiceSelectionParams result =
new com.google.cloud.dialogflow.cx.v3.VoiceSelectionParams(this);
- result.name_ = name_;
- result.ssmlGender_ = ssmlGender_;
+ if (bitField0_ != 0) {
+ buildPartial0(result);
+ }
onBuilt();
return result;
}
+ private void buildPartial0(com.google.cloud.dialogflow.cx.v3.VoiceSelectionParams result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.name_ = name_;
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.ssmlGender_ = ssmlGender_;
+ }
+ }
+
@java.lang.Override
public Builder clone() {
return super.clone();
@@ -467,6 +478,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.VoiceSelectionParams
return this;
if (!other.getName().isEmpty()) {
name_ = other.name_;
+ bitField0_ |= 0x00000001;
onChanged();
}
if (other.ssmlGender_ != 0) {
@@ -501,13 +513,13 @@ public Builder mergeFrom(
case 10:
{
name_ = input.readStringRequireUtf8();
-
+ bitField0_ |= 0x00000001;
break;
} // case 10
case 16:
{
ssmlGender_ = input.readEnum();
-
+ bitField0_ |= 0x00000002;
break;
} // case 16
default:
@@ -527,6 +539,8 @@ public Builder mergeFrom(
return this;
}
+ private int bitField0_;
+
private java.lang.Object name_ = "";
/**
*
@@ -600,8 +614,8 @@ public Builder setName(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
-
name_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -621,8 +635,8 @@ public Builder setName(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearName() {
-
name_ = getDefaultInstance().getName();
+ bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
@@ -647,8 +661,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
-
name_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -660,10 +674,10 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
*
* Optional. The preferred gender of the voice. If not set, the service will
* choose a voice based on the other parameters such as language_code and
- * [name][google.cloud.dialogflow.cx.v3.VoiceSelectionParams.name]. Note that this is only a preference, not requirement. If a
- * voice of the appropriate gender is not available, the synthesizer
- * substitutes a voice with a different gender rather than failing the
- * request.
+ * [name][google.cloud.dialogflow.cx.v3.VoiceSelectionParams.name]. Note that
+ * this is only a preference, not requirement. If a voice of the appropriate
+ * gender is not available, the synthesizer substitutes a voice with a
+ * different gender rather than failing the request.
*
*
* .google.cloud.dialogflow.cx.v3.SsmlVoiceGender ssml_gender = 2;
@@ -680,10 +694,10 @@ public int getSsmlGenderValue() {
*
* Optional. The preferred gender of the voice. If not set, the service will
* choose a voice based on the other parameters such as language_code and
- * [name][google.cloud.dialogflow.cx.v3.VoiceSelectionParams.name]. Note that this is only a preference, not requirement. If a
- * voice of the appropriate gender is not available, the synthesizer
- * substitutes a voice with a different gender rather than failing the
- * request.
+ * [name][google.cloud.dialogflow.cx.v3.VoiceSelectionParams.name]. Note that
+ * this is only a preference, not requirement. If a voice of the appropriate
+ * gender is not available, the synthesizer substitutes a voice with a
+ * different gender rather than failing the request.
*
*
* .google.cloud.dialogflow.cx.v3.SsmlVoiceGender ssml_gender = 2;
@@ -692,8 +706,8 @@ public int getSsmlGenderValue() {
* @return This builder for chaining.
*/
public Builder setSsmlGenderValue(int value) {
-
ssmlGender_ = value;
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -703,10 +717,10 @@ public Builder setSsmlGenderValue(int value) {
*
* Optional. The preferred gender of the voice. If not set, the service will
* choose a voice based on the other parameters such as language_code and
- * [name][google.cloud.dialogflow.cx.v3.VoiceSelectionParams.name]. Note that this is only a preference, not requirement. If a
- * voice of the appropriate gender is not available, the synthesizer
- * substitutes a voice with a different gender rather than failing the
- * request.
+ * [name][google.cloud.dialogflow.cx.v3.VoiceSelectionParams.name]. Note that
+ * this is only a preference, not requirement. If a voice of the appropriate
+ * gender is not available, the synthesizer substitutes a voice with a
+ * different gender rather than failing the request.
*
*
* .google.cloud.dialogflow.cx.v3.SsmlVoiceGender ssml_gender = 2;
@@ -715,9 +729,8 @@ public Builder setSsmlGenderValue(int value) {
*/
@java.lang.Override
public com.google.cloud.dialogflow.cx.v3.SsmlVoiceGender getSsmlGender() {
- @SuppressWarnings("deprecation")
com.google.cloud.dialogflow.cx.v3.SsmlVoiceGender result =
- com.google.cloud.dialogflow.cx.v3.SsmlVoiceGender.valueOf(ssmlGender_);
+ com.google.cloud.dialogflow.cx.v3.SsmlVoiceGender.forNumber(ssmlGender_);
return result == null
? com.google.cloud.dialogflow.cx.v3.SsmlVoiceGender.UNRECOGNIZED
: result;
@@ -728,10 +741,10 @@ public com.google.cloud.dialogflow.cx.v3.SsmlVoiceGender getSsmlGender() {
*
* Optional. The preferred gender of the voice. If not set, the service will
* choose a voice based on the other parameters such as language_code and
- * [name][google.cloud.dialogflow.cx.v3.VoiceSelectionParams.name]. Note that this is only a preference, not requirement. If a
- * voice of the appropriate gender is not available, the synthesizer
- * substitutes a voice with a different gender rather than failing the
- * request.
+ * [name][google.cloud.dialogflow.cx.v3.VoiceSelectionParams.name]. Note that
+ * this is only a preference, not requirement. If a voice of the appropriate
+ * gender is not available, the synthesizer substitutes a voice with a
+ * different gender rather than failing the request.
*
*
* .google.cloud.dialogflow.cx.v3.SsmlVoiceGender ssml_gender = 2;
@@ -743,7 +756,7 @@ public Builder setSsmlGender(com.google.cloud.dialogflow.cx.v3.SsmlVoiceGender v
if (value == null) {
throw new NullPointerException();
}
-
+ bitField0_ |= 0x00000002;
ssmlGender_ = value.getNumber();
onChanged();
return this;
@@ -754,10 +767,10 @@ public Builder setSsmlGender(com.google.cloud.dialogflow.cx.v3.SsmlVoiceGender v
*
* Optional. The preferred gender of the voice. If not set, the service will
* choose a voice based on the other parameters such as language_code and
- * [name][google.cloud.dialogflow.cx.v3.VoiceSelectionParams.name]. Note that this is only a preference, not requirement. If a
- * voice of the appropriate gender is not available, the synthesizer
- * substitutes a voice with a different gender rather than failing the
- * request.
+ * [name][google.cloud.dialogflow.cx.v3.VoiceSelectionParams.name]. Note that
+ * this is only a preference, not requirement. If a voice of the appropriate
+ * gender is not available, the synthesizer substitutes a voice with a
+ * different gender rather than failing the request.
*
*
* .google.cloud.dialogflow.cx.v3.SsmlVoiceGender ssml_gender = 2;
@@ -765,7 +778,7 @@ public Builder setSsmlGender(com.google.cloud.dialogflow.cx.v3.SsmlVoiceGender v
* @return This builder for chaining.
*/
public Builder clearSsmlGender() {
-
+ bitField0_ = (bitField0_ & ~0x00000002);
ssmlGender_ = 0;
onChanged();
return this;
diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/VoiceSelectionParamsOrBuilder.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/VoiceSelectionParamsOrBuilder.java
index a57b6464fbb4..d1428136991b 100644
--- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/VoiceSelectionParamsOrBuilder.java
+++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/VoiceSelectionParamsOrBuilder.java
@@ -62,10 +62,10 @@ public interface VoiceSelectionParamsOrBuilder
*
* Optional. The preferred gender of the voice. If not set, the service will
* choose a voice based on the other parameters such as language_code and
- * [name][google.cloud.dialogflow.cx.v3.VoiceSelectionParams.name]. Note that this is only a preference, not requirement. If a
- * voice of the appropriate gender is not available, the synthesizer
- * substitutes a voice with a different gender rather than failing the
- * request.
+ * [name][google.cloud.dialogflow.cx.v3.VoiceSelectionParams.name]. Note that
+ * this is only a preference, not requirement. If a voice of the appropriate
+ * gender is not available, the synthesizer substitutes a voice with a
+ * different gender rather than failing the request.
*
*
* .google.cloud.dialogflow.cx.v3.SsmlVoiceGender ssml_gender = 2;
@@ -79,10 +79,10 @@ public interface VoiceSelectionParamsOrBuilder
*
* Optional. The preferred gender of the voice. If not set, the service will
* choose a voice based on the other parameters such as language_code and
- * [name][google.cloud.dialogflow.cx.v3.VoiceSelectionParams.name]. Note that this is only a preference, not requirement. If a
- * voice of the appropriate gender is not available, the synthesizer
- * substitutes a voice with a different gender rather than failing the
- * request.
+ * [name][google.cloud.dialogflow.cx.v3.VoiceSelectionParams.name]. Note that
+ * this is only a preference, not requirement. If a voice of the appropriate
+ * gender is not available, the synthesizer substitutes a voice with a
+ * different gender rather than failing the request.
*
*
* .google.cloud.dialogflow.cx.v3.SsmlVoiceGender ssml_gender = 2;
diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/Webhook.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/Webhook.java
index 794dc859d3dc..0253e3d31300 100644
--- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/Webhook.java
+++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/Webhook.java
@@ -80,7 +80,8 @@ public interface GenericWebServiceOrBuilder
*
*
*
- * Required. The webhook URI for receiving POST requests. It must use https protocol.
+ * Required. The webhook URI for receiving POST requests. It must use https
+ * protocol.
*
*
* string uri = 1 [(.google.api.field_behavior) = REQUIRED];
@@ -92,7 +93,8 @@ public interface GenericWebServiceOrBuilder
*
*
*
- * Required. The webhook URI for receiving POST requests. It must use https protocol.
+ * Required. The webhook URI for receiving POST requests. It must use https
+ * protocol.
*
*
* string uri = 1 [(.google.api.field_behavior) = REQUIRED];
@@ -111,7 +113,7 @@ public interface GenericWebServiceOrBuilder
* string username = 2 [deprecated = true];
*
* @deprecated google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.username is deprecated.
- * See google/cloud/dialogflow/cx/v3/webhook.proto;l=107
+ * See google/cloud/dialogflow/cx/v3/webhook.proto;l=108
* @return The username.
*/
@java.lang.Deprecated
@@ -126,7 +128,7 @@ public interface GenericWebServiceOrBuilder
* string username = 2 [deprecated = true];
*
* @deprecated google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.username is deprecated.
- * See google/cloud/dialogflow/cx/v3/webhook.proto;l=107
+ * See google/cloud/dialogflow/cx/v3/webhook.proto;l=108
* @return The bytes for username.
*/
@java.lang.Deprecated
@@ -142,7 +144,7 @@ public interface GenericWebServiceOrBuilder
* string password = 3 [deprecated = true];
*
* @deprecated google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.password is deprecated.
- * See google/cloud/dialogflow/cx/v3/webhook.proto;l=110
+ * See google/cloud/dialogflow/cx/v3/webhook.proto;l=111
* @return The password.
*/
@java.lang.Deprecated
@@ -157,7 +159,7 @@ public interface GenericWebServiceOrBuilder
* string password = 3 [deprecated = true];
*
* @deprecated google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.password is deprecated.
- * See google/cloud/dialogflow/cx/v3/webhook.proto;l=110
+ * See google/cloud/dialogflow/cx/v3/webhook.proto;l=111
* @return The bytes for password.
*/
@java.lang.Deprecated
@@ -209,7 +211,6 @@ public interface GenericWebServiceOrBuilder
*
* map<string, string> request_headers = 4;
*/
-
/* nullable */
java.lang.String getRequestHeadersOrDefault(
java.lang.String key,
@@ -231,13 +232,12 @@ java.lang.String getRequestHeadersOrDefault(
*
*
*
- * Optional. Specifies a list of allowed custom CA certificates (in DER format) for
- * HTTPS verification. This overrides the default SSL trust store. If this
- * is empty or unspecified, Dialogflow will use Google's default trust store
- * to verify certificates.
- * N.B. Make sure the HTTPS server certificates are signed with "subject alt
- * name". For instance a certificate can be self-signed using the following
- * command,
+ * Optional. Specifies a list of allowed custom CA certificates (in DER
+ * format) for HTTPS verification. This overrides the default SSL trust
+ * store. If this is empty or unspecified, Dialogflow will use Google's
+ * default trust store to verify certificates. N.B. Make sure the HTTPS
+ * server certificates are signed with "subject alt name". For instance a
+ * certificate can be self-signed using the following command,
* ```
* openssl x509 -req -days 200 -in example.com.csr \
* -signkey example.com.key \
@@ -255,13 +255,12 @@ java.lang.String getRequestHeadersOrDefault(
*
*
*
- * Optional. Specifies a list of allowed custom CA certificates (in DER format) for
- * HTTPS verification. This overrides the default SSL trust store. If this
- * is empty or unspecified, Dialogflow will use Google's default trust store
- * to verify certificates.
- * N.B. Make sure the HTTPS server certificates are signed with "subject alt
- * name". For instance a certificate can be self-signed using the following
- * command,
+ * Optional. Specifies a list of allowed custom CA certificates (in DER
+ * format) for HTTPS verification. This overrides the default SSL trust
+ * store. If this is empty or unspecified, Dialogflow will use Google's
+ * default trust store to verify certificates. N.B. Make sure the HTTPS
+ * server certificates are signed with "subject alt name". For instance a
+ * certificate can be self-signed using the following command,
* ```
* openssl x509 -req -days 200 -in example.com.csr \
* -signkey example.com.key \
@@ -279,13 +278,12 @@ java.lang.String getRequestHeadersOrDefault(
*
*
*
- * Optional. Specifies a list of allowed custom CA certificates (in DER format) for
- * HTTPS verification. This overrides the default SSL trust store. If this
- * is empty or unspecified, Dialogflow will use Google's default trust store
- * to verify certificates.
- * N.B. Make sure the HTTPS server certificates are signed with "subject alt
- * name". For instance a certificate can be self-signed using the following
- * command,
+ * Optional. Specifies a list of allowed custom CA certificates (in DER
+ * format) for HTTPS verification. This overrides the default SSL trust
+ * store. If this is empty or unspecified, Dialogflow will use Google's
+ * default trust store to verify certificates. N.B. Make sure the HTTPS
+ * server certificates are signed with "subject alt name". For instance a
+ * certificate can be self-signed using the following command,
* ```
* openssl x509 -req -days 200 -in example.com.csr \
* -signkey example.com.key \
@@ -365,12 +363,15 @@ protected com.google.protobuf.MapField internalGetMapField(int number) {
}
public static final int URI_FIELD_NUMBER = 1;
- private volatile java.lang.Object uri_;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object uri_ = "";
/**
*
*
*
- * Required. The webhook URI for receiving POST requests. It must use https protocol.
+ * Required. The webhook URI for receiving POST requests. It must use https
+ * protocol.
*
*
* string uri = 1 [(.google.api.field_behavior) = REQUIRED];
@@ -393,7 +394,8 @@ public java.lang.String getUri() {
*
*
*
- * Required. The webhook URI for receiving POST requests. It must use https protocol.
+ * Required. The webhook URI for receiving POST requests. It must use https
+ * protocol.
*
*
* string uri = 1 [(.google.api.field_behavior) = REQUIRED];
@@ -414,7 +416,9 @@ public com.google.protobuf.ByteString getUriBytes() {
}
public static final int USERNAME_FIELD_NUMBER = 2;
- private volatile java.lang.Object username_;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object username_ = "";
/**
*
*
@@ -425,7 +429,7 @@ public com.google.protobuf.ByteString getUriBytes() {
* string username = 2 [deprecated = true];
*
* @deprecated google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.username is deprecated.
- * See google/cloud/dialogflow/cx/v3/webhook.proto;l=107
+ * See google/cloud/dialogflow/cx/v3/webhook.proto;l=108
* @return The username.
*/
@java.lang.Override
@@ -451,7 +455,7 @@ public java.lang.String getUsername() {
* string username = 2 [deprecated = true];
*
* @deprecated google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.username is deprecated.
- * See google/cloud/dialogflow/cx/v3/webhook.proto;l=107
+ * See google/cloud/dialogflow/cx/v3/webhook.proto;l=108
* @return The bytes for username.
*/
@java.lang.Override
@@ -469,7 +473,9 @@ public com.google.protobuf.ByteString getUsernameBytes() {
}
public static final int PASSWORD_FIELD_NUMBER = 3;
- private volatile java.lang.Object password_;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object password_ = "";
/**
*
*
@@ -480,7 +486,7 @@ public com.google.protobuf.ByteString getUsernameBytes() {
* string password = 3 [deprecated = true];
*
* @deprecated google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.password is deprecated.
- * See google/cloud/dialogflow/cx/v3/webhook.proto;l=110
+ * See google/cloud/dialogflow/cx/v3/webhook.proto;l=111
* @return The password.
*/
@java.lang.Override
@@ -506,7 +512,7 @@ public java.lang.String getPassword() {
* string password = 3 [deprecated = true];
*
* @deprecated google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.password is deprecated.
- * See google/cloud/dialogflow/cx/v3/webhook.proto;l=110
+ * See google/cloud/dialogflow/cx/v3/webhook.proto;l=111
* @return The bytes for password.
*/
@java.lang.Override
@@ -536,6 +542,7 @@ private static final class RequestHeadersDefaultEntryHolder {
"");
}
+ @SuppressWarnings("serial")
private com.google.protobuf.MapField requestHeaders_;
private com.google.protobuf.MapField
@@ -598,8 +605,10 @@ public java.util.Map getRequestHeadersMap()
* map<string, string> request_headers = 4;
*/
@java.lang.Override
- public java.lang.String getRequestHeadersOrDefault(
- java.lang.String key, java.lang.String defaultValue) {
+ public /* nullable */ java.lang.String getRequestHeadersOrDefault(
+ java.lang.String key,
+ /* nullable */
+ java.lang.String defaultValue) {
if (key == null) {
throw new NullPointerException("map key");
}
@@ -629,18 +638,19 @@ public java.lang.String getRequestHeadersOrThrow(java.lang.String key) {
}
public static final int ALLOWED_CA_CERTS_FIELD_NUMBER = 5;
+
+ @SuppressWarnings("serial")
private java.util.List allowedCaCerts_;
/**
*
*
*
- * Optional. Specifies a list of allowed custom CA certificates (in DER format) for
- * HTTPS verification. This overrides the default SSL trust store. If this
- * is empty or unspecified, Dialogflow will use Google's default trust store
- * to verify certificates.
- * N.B. Make sure the HTTPS server certificates are signed with "subject alt
- * name". For instance a certificate can be self-signed using the following
- * command,
+ * Optional. Specifies a list of allowed custom CA certificates (in DER
+ * format) for HTTPS verification. This overrides the default SSL trust
+ * store. If this is empty or unspecified, Dialogflow will use Google's
+ * default trust store to verify certificates. N.B. Make sure the HTTPS
+ * server certificates are signed with "subject alt name". For instance a
+ * certificate can be self-signed using the following command,
* ```
* openssl x509 -req -days 200 -in example.com.csr \
* -signkey example.com.key \
@@ -661,13 +671,12 @@ public java.util.List getAllowedCaCertsList() {
*
*
*
- * Optional. Specifies a list of allowed custom CA certificates (in DER format) for
- * HTTPS verification. This overrides the default SSL trust store. If this
- * is empty or unspecified, Dialogflow will use Google's default trust store
- * to verify certificates.
- * N.B. Make sure the HTTPS server certificates are signed with "subject alt
- * name". For instance a certificate can be self-signed using the following
- * command,
+ * Optional. Specifies a list of allowed custom CA certificates (in DER
+ * format) for HTTPS verification. This overrides the default SSL trust
+ * store. If this is empty or unspecified, Dialogflow will use Google's
+ * default trust store to verify certificates. N.B. Make sure the HTTPS
+ * server certificates are signed with "subject alt name". For instance a
+ * certificate can be self-signed using the following command,
* ```
* openssl x509 -req -days 200 -in example.com.csr \
* -signkey example.com.key \
@@ -687,13 +696,12 @@ public int getAllowedCaCertsCount() {
*
*
*
- * Optional. Specifies a list of allowed custom CA certificates (in DER format) for
- * HTTPS verification. This overrides the default SSL trust store. If this
- * is empty or unspecified, Dialogflow will use Google's default trust store
- * to verify certificates.
- * N.B. Make sure the HTTPS server certificates are signed with "subject alt
- * name". For instance a certificate can be self-signed using the following
- * command,
+ * Optional. Specifies a list of allowed custom CA certificates (in DER
+ * format) for HTTPS verification. This overrides the default SSL trust
+ * store. If this is empty or unspecified, Dialogflow will use Google's
+ * default trust store to verify certificates. N.B. Make sure the HTTPS
+ * server certificates are signed with "subject alt name". For instance a
+ * certificate can be self-signed using the following command,
* ```
* openssl x509 -req -days 200 -in example.com.csr \
* -signkey example.com.key \
@@ -983,15 +991,12 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
@java.lang.Override
public Builder clear() {
super.clear();
+ bitField0_ = 0;
uri_ = "";
-
username_ = "";
-
password_ = "";
-
internalGetMutableRequestHeaders().clear();
allowedCaCerts_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
@@ -1020,21 +1025,41 @@ public com.google.cloud.dialogflow.cx.v3.Webhook.GenericWebService build() {
public com.google.cloud.dialogflow.cx.v3.Webhook.GenericWebService buildPartial() {
com.google.cloud.dialogflow.cx.v3.Webhook.GenericWebService result =
new com.google.cloud.dialogflow.cx.v3.Webhook.GenericWebService(this);
- int from_bitField0_ = bitField0_;
- result.uri_ = uri_;
- result.username_ = username_;
- result.password_ = password_;
- result.requestHeaders_ = internalGetRequestHeaders();
- result.requestHeaders_.makeImmutable();
- if (((bitField0_ & 0x00000002) != 0)) {
- allowedCaCerts_ = java.util.Collections.unmodifiableList(allowedCaCerts_);
- bitField0_ = (bitField0_ & ~0x00000002);
+ buildPartialRepeatedFields(result);
+ if (bitField0_ != 0) {
+ buildPartial0(result);
}
- result.allowedCaCerts_ = allowedCaCerts_;
onBuilt();
return result;
}
+ private void buildPartialRepeatedFields(
+ com.google.cloud.dialogflow.cx.v3.Webhook.GenericWebService result) {
+ if (((bitField0_ & 0x00000010) != 0)) {
+ allowedCaCerts_ = java.util.Collections.unmodifiableList(allowedCaCerts_);
+ bitField0_ = (bitField0_ & ~0x00000010);
+ }
+ result.allowedCaCerts_ = allowedCaCerts_;
+ }
+
+ private void buildPartial0(
+ com.google.cloud.dialogflow.cx.v3.Webhook.GenericWebService result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.uri_ = uri_;
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.username_ = username_;
+ }
+ if (((from_bitField0_ & 0x00000004) != 0)) {
+ result.password_ = password_;
+ }
+ if (((from_bitField0_ & 0x00000008) != 0)) {
+ result.requestHeaders_ = internalGetRequestHeaders();
+ result.requestHeaders_.makeImmutable();
+ }
+ }
+
@java.lang.Override
public Builder clone() {
return super.clone();
@@ -1086,21 +1111,25 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.Webhook.GenericWebSer
return this;
if (!other.getUri().isEmpty()) {
uri_ = other.uri_;
+ bitField0_ |= 0x00000001;
onChanged();
}
if (!other.getUsername().isEmpty()) {
username_ = other.username_;
+ bitField0_ |= 0x00000002;
onChanged();
}
if (!other.getPassword().isEmpty()) {
password_ = other.password_;
+ bitField0_ |= 0x00000004;
onChanged();
}
internalGetMutableRequestHeaders().mergeFrom(other.internalGetRequestHeaders());
+ bitField0_ |= 0x00000008;
if (!other.allowedCaCerts_.isEmpty()) {
if (allowedCaCerts_.isEmpty()) {
allowedCaCerts_ = other.allowedCaCerts_;
- bitField0_ = (bitField0_ & ~0x00000002);
+ bitField0_ = (bitField0_ & ~0x00000010);
} else {
ensureAllowedCaCertsIsMutable();
allowedCaCerts_.addAll(other.allowedCaCerts_);
@@ -1136,19 +1165,19 @@ public Builder mergeFrom(
case 10:
{
uri_ = input.readStringRequireUtf8();
-
+ bitField0_ |= 0x00000001;
break;
} // case 10
case 18:
{
username_ = input.readStringRequireUtf8();
-
+ bitField0_ |= 0x00000002;
break;
} // case 18
case 26:
{
password_ = input.readStringRequireUtf8();
-
+ bitField0_ |= 0x00000004;
break;
} // case 26
case 34:
@@ -1161,6 +1190,7 @@ public Builder mergeFrom(
internalGetMutableRequestHeaders()
.getMutableMap()
.put(requestHeaders__.getKey(), requestHeaders__.getValue());
+ bitField0_ |= 0x00000008;
break;
} // case 34
case 42:
@@ -1194,7 +1224,8 @@ public Builder mergeFrom(
*
*
*
- * Required. The webhook URI for receiving POST requests. It must use https protocol.
+ * Required. The webhook URI for receiving POST requests. It must use https
+ * protocol.
*
*
* string uri = 1 [(.google.api.field_behavior) = REQUIRED];
@@ -1216,7 +1247,8 @@ public java.lang.String getUri() {
*
*
*
- * Required. The webhook URI for receiving POST requests. It must use https protocol.
+ * Required. The webhook URI for receiving POST requests. It must use https
+ * protocol.
*
*
* string uri = 1 [(.google.api.field_behavior) = REQUIRED];
@@ -1238,7 +1270,8 @@ public com.google.protobuf.ByteString getUriBytes() {
*
*
*
- * Required. The webhook URI for receiving POST requests. It must use https protocol.
+ * Required. The webhook URI for receiving POST requests. It must use https
+ * protocol.
*
*
* string uri = 1 [(.google.api.field_behavior) = REQUIRED];
@@ -1250,8 +1283,8 @@ public Builder setUri(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
-
uri_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -1259,7 +1292,8 @@ public Builder setUri(java.lang.String value) {
*
*
*
- * Required. The webhook URI for receiving POST requests. It must use https protocol.
+ * Required. The webhook URI for receiving POST requests. It must use https
+ * protocol.
*
*
* string uri = 1 [(.google.api.field_behavior) = REQUIRED];
@@ -1267,8 +1301,8 @@ public Builder setUri(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearUri() {
-
uri_ = getDefaultInstance().getUri();
+ bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
@@ -1276,7 +1310,8 @@ public Builder clearUri() {
*
*
*
- * Required. The webhook URI for receiving POST requests. It must use https protocol.
+ * Required. The webhook URI for receiving POST requests. It must use https
+ * protocol.
*
*
* string uri = 1 [(.google.api.field_behavior) = REQUIRED];
@@ -1289,8 +1324,8 @@ public Builder setUriBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
-
uri_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -1306,7 +1341,7 @@ public Builder setUriBytes(com.google.protobuf.ByteString value) {
* string username = 2 [deprecated = true];
*
* @deprecated google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.username is deprecated.
- * See google/cloud/dialogflow/cx/v3/webhook.proto;l=107
+ * See google/cloud/dialogflow/cx/v3/webhook.proto;l=108
* @return The username.
*/
@java.lang.Deprecated
@@ -1331,7 +1366,7 @@ public java.lang.String getUsername() {
* string username = 2 [deprecated = true];
*
* @deprecated google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.username is deprecated.
- * See google/cloud/dialogflow/cx/v3/webhook.proto;l=107
+ * See google/cloud/dialogflow/cx/v3/webhook.proto;l=108
* @return The bytes for username.
*/
@java.lang.Deprecated
@@ -1356,7 +1391,7 @@ public com.google.protobuf.ByteString getUsernameBytes() {
* string username = 2 [deprecated = true];
*
* @deprecated google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.username is deprecated.
- * See google/cloud/dialogflow/cx/v3/webhook.proto;l=107
+ * See google/cloud/dialogflow/cx/v3/webhook.proto;l=108
* @param value The username to set.
* @return This builder for chaining.
*/
@@ -1365,8 +1400,8 @@ public Builder setUsername(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
-
username_ = value;
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -1380,13 +1415,13 @@ public Builder setUsername(java.lang.String value) {
* string username = 2 [deprecated = true];
*
* @deprecated google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.username is deprecated.
- * See google/cloud/dialogflow/cx/v3/webhook.proto;l=107
+ * See google/cloud/dialogflow/cx/v3/webhook.proto;l=108
* @return This builder for chaining.
*/
@java.lang.Deprecated
public Builder clearUsername() {
-
username_ = getDefaultInstance().getUsername();
+ bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
@@ -1400,7 +1435,7 @@ public Builder clearUsername() {
* string username = 2 [deprecated = true];
*
* @deprecated google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.username is deprecated.
- * See google/cloud/dialogflow/cx/v3/webhook.proto;l=107
+ * See google/cloud/dialogflow/cx/v3/webhook.proto;l=108
* @param value The bytes for username to set.
* @return This builder for chaining.
*/
@@ -1410,8 +1445,8 @@ public Builder setUsernameBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
-
username_ = value;
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -1427,7 +1462,7 @@ public Builder setUsernameBytes(com.google.protobuf.ByteString value) {
* string password = 3 [deprecated = true];
*
* @deprecated google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.password is deprecated.
- * See google/cloud/dialogflow/cx/v3/webhook.proto;l=110
+ * See google/cloud/dialogflow/cx/v3/webhook.proto;l=111
* @return The password.
*/
@java.lang.Deprecated
@@ -1452,7 +1487,7 @@ public java.lang.String getPassword() {
* string password = 3 [deprecated = true];
*
* @deprecated google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.password is deprecated.
- * See google/cloud/dialogflow/cx/v3/webhook.proto;l=110
+ * See google/cloud/dialogflow/cx/v3/webhook.proto;l=111
* @return The bytes for password.
*/
@java.lang.Deprecated
@@ -1477,7 +1512,7 @@ public com.google.protobuf.ByteString getPasswordBytes() {
* string password = 3 [deprecated = true];
*
* @deprecated google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.password is deprecated.
- * See google/cloud/dialogflow/cx/v3/webhook.proto;l=110
+ * See google/cloud/dialogflow/cx/v3/webhook.proto;l=111
* @param value The password to set.
* @return This builder for chaining.
*/
@@ -1486,8 +1521,8 @@ public Builder setPassword(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
-
password_ = value;
+ bitField0_ |= 0x00000004;
onChanged();
return this;
}
@@ -1501,13 +1536,13 @@ public Builder setPassword(java.lang.String value) {
* string password = 3 [deprecated = true];
*
* @deprecated google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.password is deprecated.
- * See google/cloud/dialogflow/cx/v3/webhook.proto;l=110
+ * See google/cloud/dialogflow/cx/v3/webhook.proto;l=111
* @return This builder for chaining.
*/
@java.lang.Deprecated
public Builder clearPassword() {
-
password_ = getDefaultInstance().getPassword();
+ bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
@@ -1521,7 +1556,7 @@ public Builder clearPassword() {
* string password = 3 [deprecated = true];
*
* @deprecated google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.password is deprecated.
- * See google/cloud/dialogflow/cx/v3/webhook.proto;l=110
+ * See google/cloud/dialogflow/cx/v3/webhook.proto;l=111
* @param value The bytes for password to set.
* @return This builder for chaining.
*/
@@ -1531,8 +1566,8 @@ public Builder setPasswordBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
-
password_ = value;
+ bitField0_ |= 0x00000004;
onChanged();
return this;
}
@@ -1550,8 +1585,6 @@ public Builder setPasswordBytes(com.google.protobuf.ByteString value) {
private com.google.protobuf.MapField
internalGetMutableRequestHeaders() {
- onChanged();
- ;
if (requestHeaders_ == null) {
requestHeaders_ =
com.google.protobuf.MapField.newMapField(
@@ -1560,6 +1593,8 @@ public Builder setPasswordBytes(com.google.protobuf.ByteString value) {
if (!requestHeaders_.isMutable()) {
requestHeaders_ = requestHeaders_.copy();
}
+ bitField0_ |= 0x00000008;
+ onChanged();
return requestHeaders_;
}
@@ -1614,8 +1649,10 @@ public java.util.Map getRequestHeadersMap()
* map<string, string> request_headers = 4;
*/
@java.lang.Override
- public java.lang.String getRequestHeadersOrDefault(
- java.lang.String key, java.lang.String defaultValue) {
+ public /* nullable */ java.lang.String getRequestHeadersOrDefault(
+ java.lang.String key,
+ /* nullable */
+ java.lang.String defaultValue) {
if (key == null) {
throw new NullPointerException("map key");
}
@@ -1647,6 +1684,7 @@ public java.lang.String getRequestHeadersOrThrow(java.lang.String key) {
}
public Builder clearRequestHeaders() {
+ bitField0_ = (bitField0_ & ~0x00000008);
internalGetMutableRequestHeaders().getMutableMap().clear();
return this;
}
@@ -1670,6 +1708,7 @@ public Builder removeRequestHeaders(java.lang.String key) {
/** Use alternate mutation accessors instead. */
@java.lang.Deprecated
public java.util.Map getMutableRequestHeaders() {
+ bitField0_ |= 0x00000008;
return internalGetMutableRequestHeaders().getMutableMap();
}
/**
@@ -1689,8 +1728,8 @@ public Builder putRequestHeaders(java.lang.String key, java.lang.String value) {
if (value == null) {
throw new NullPointerException("map value");
}
-
internalGetMutableRequestHeaders().getMutableMap().put(key, value);
+ bitField0_ |= 0x00000008;
return this;
}
/**
@@ -1706,6 +1745,7 @@ public Builder putRequestHeaders(java.lang.String key, java.lang.String value) {
public Builder putAllRequestHeaders(
java.util.Map values) {
internalGetMutableRequestHeaders().getMutableMap().putAll(values);
+ bitField0_ |= 0x00000008;
return this;
}
@@ -1713,23 +1753,22 @@ public Builder putAllRequestHeaders(
java.util.Collections.emptyList();
private void ensureAllowedCaCertsIsMutable() {
- if (!((bitField0_ & 0x00000002) != 0)) {
+ if (!((bitField0_ & 0x00000010) != 0)) {
allowedCaCerts_ =
new java.util.ArrayList(allowedCaCerts_);
- bitField0_ |= 0x00000002;
+ bitField0_ |= 0x00000010;
}
}
/**
*
*
*
- * Optional. Specifies a list of allowed custom CA certificates (in DER format) for
- * HTTPS verification. This overrides the default SSL trust store. If this
- * is empty or unspecified, Dialogflow will use Google's default trust store
- * to verify certificates.
- * N.B. Make sure the HTTPS server certificates are signed with "subject alt
- * name". For instance a certificate can be self-signed using the following
- * command,
+ * Optional. Specifies a list of allowed custom CA certificates (in DER
+ * format) for HTTPS verification. This overrides the default SSL trust
+ * store. If this is empty or unspecified, Dialogflow will use Google's
+ * default trust store to verify certificates. N.B. Make sure the HTTPS
+ * server certificates are signed with "subject alt name". For instance a
+ * certificate can be self-signed using the following command,
* ```
* openssl x509 -req -days 200 -in example.com.csr \
* -signkey example.com.key \
@@ -1743,7 +1782,7 @@ private void ensureAllowedCaCertsIsMutable() {
* @return A list containing the allowedCaCerts.
*/
public java.util.List getAllowedCaCertsList() {
- return ((bitField0_ & 0x00000002) != 0)
+ return ((bitField0_ & 0x00000010) != 0)
? java.util.Collections.unmodifiableList(allowedCaCerts_)
: allowedCaCerts_;
}
@@ -1751,13 +1790,12 @@ public java.util.List getAllowedCaCertsList() {
*
*
*
- * Optional. Specifies a list of allowed custom CA certificates (in DER format) for
- * HTTPS verification. This overrides the default SSL trust store. If this
- * is empty or unspecified, Dialogflow will use Google's default trust store
- * to verify certificates.
- * N.B. Make sure the HTTPS server certificates are signed with "subject alt
- * name". For instance a certificate can be self-signed using the following
- * command,
+ * Optional. Specifies a list of allowed custom CA certificates (in DER
+ * format) for HTTPS verification. This overrides the default SSL trust
+ * store. If this is empty or unspecified, Dialogflow will use Google's
+ * default trust store to verify certificates. N.B. Make sure the HTTPS
+ * server certificates are signed with "subject alt name". For instance a
+ * certificate can be self-signed using the following command,
* ```
* openssl x509 -req -days 200 -in example.com.csr \
* -signkey example.com.key \
@@ -1777,13 +1815,12 @@ public int getAllowedCaCertsCount() {
*
*
*
- * Optional. Specifies a list of allowed custom CA certificates (in DER format) for
- * HTTPS verification. This overrides the default SSL trust store. If this
- * is empty or unspecified, Dialogflow will use Google's default trust store
- * to verify certificates.
- * N.B. Make sure the HTTPS server certificates are signed with "subject alt
- * name". For instance a certificate can be self-signed using the following
- * command,
+ * Optional. Specifies a list of allowed custom CA certificates (in DER
+ * format) for HTTPS verification. This overrides the default SSL trust
+ * store. If this is empty or unspecified, Dialogflow will use Google's
+ * default trust store to verify certificates. N.B. Make sure the HTTPS
+ * server certificates are signed with "subject alt name". For instance a
+ * certificate can be self-signed using the following command,
* ```
* openssl x509 -req -days 200 -in example.com.csr \
* -signkey example.com.key \
@@ -1804,13 +1841,12 @@ public com.google.protobuf.ByteString getAllowedCaCerts(int index) {
*
*
*
- * Optional. Specifies a list of allowed custom CA certificates (in DER format) for
- * HTTPS verification. This overrides the default SSL trust store. If this
- * is empty or unspecified, Dialogflow will use Google's default trust store
- * to verify certificates.
- * N.B. Make sure the HTTPS server certificates are signed with "subject alt
- * name". For instance a certificate can be self-signed using the following
- * command,
+ * Optional. Specifies a list of allowed custom CA certificates (in DER
+ * format) for HTTPS verification. This overrides the default SSL trust
+ * store. If this is empty or unspecified, Dialogflow will use Google's
+ * default trust store to verify certificates. N.B. Make sure the HTTPS
+ * server certificates are signed with "subject alt name". For instance a
+ * certificate can be self-signed using the following command,
* ```
* openssl x509 -req -days 200 -in example.com.csr \
* -signkey example.com.key \
@@ -1838,13 +1874,12 @@ public Builder setAllowedCaCerts(int index, com.google.protobuf.ByteString value
*
*
*
- * Optional. Specifies a list of allowed custom CA certificates (in DER format) for
- * HTTPS verification. This overrides the default SSL trust store. If this
- * is empty or unspecified, Dialogflow will use Google's default trust store
- * to verify certificates.
- * N.B. Make sure the HTTPS server certificates are signed with "subject alt
- * name". For instance a certificate can be self-signed using the following
- * command,
+ * Optional. Specifies a list of allowed custom CA certificates (in DER
+ * format) for HTTPS verification. This overrides the default SSL trust
+ * store. If this is empty or unspecified, Dialogflow will use Google's
+ * default trust store to verify certificates. N.B. Make sure the HTTPS
+ * server certificates are signed with "subject alt name". For instance a
+ * certificate can be self-signed using the following command,
* ```
* openssl x509 -req -days 200 -in example.com.csr \
* -signkey example.com.key \
@@ -1871,13 +1906,12 @@ public Builder addAllowedCaCerts(com.google.protobuf.ByteString value) {
*
*
*
- * Optional. Specifies a list of allowed custom CA certificates (in DER format) for
- * HTTPS verification. This overrides the default SSL trust store. If this
- * is empty or unspecified, Dialogflow will use Google's default trust store
- * to verify certificates.
- * N.B. Make sure the HTTPS server certificates are signed with "subject alt
- * name". For instance a certificate can be self-signed using the following
- * command,
+ * Optional. Specifies a list of allowed custom CA certificates (in DER
+ * format) for HTTPS verification. This overrides the default SSL trust
+ * store. If this is empty or unspecified, Dialogflow will use Google's
+ * default trust store to verify certificates. N.B. Make sure the HTTPS
+ * server certificates are signed with "subject alt name". For instance a
+ * certificate can be self-signed using the following command,
* ```
* openssl x509 -req -days 200 -in example.com.csr \
* -signkey example.com.key \
@@ -1902,13 +1936,12 @@ public Builder addAllAllowedCaCerts(
*
*
*
- * Optional. Specifies a list of allowed custom CA certificates (in DER format) for
- * HTTPS verification. This overrides the default SSL trust store. If this
- * is empty or unspecified, Dialogflow will use Google's default trust store
- * to verify certificates.
- * N.B. Make sure the HTTPS server certificates are signed with "subject alt
- * name". For instance a certificate can be self-signed using the following
- * command,
+ * Optional. Specifies a list of allowed custom CA certificates (in DER
+ * format) for HTTPS verification. This overrides the default SSL trust
+ * store. If this is empty or unspecified, Dialogflow will use Google's
+ * default trust store to verify certificates. N.B. Make sure the HTTPS
+ * server certificates are signed with "subject alt name". For instance a
+ * certificate can be self-signed using the following command,
* ```
* openssl x509 -req -days 200 -in example.com.csr \
* -signkey example.com.key \
@@ -1923,7 +1956,7 @@ public Builder addAllAllowedCaCerts(
*/
public Builder clearAllowedCaCerts() {
allowedCaCerts_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000002);
+ bitField0_ = (bitField0_ & ~0x00000010);
onChanged();
return this;
}
@@ -2127,7 +2160,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
public static final int SERVICE_FIELD_NUMBER = 1;
- private volatile java.lang.Object service_;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object service_ = "";
/**
*
*
@@ -2238,7 +2273,9 @@ public com.google.cloud.dialogflow.cx.v3.Webhook.GenericWebService getGenericWeb
@java.lang.Override
public com.google.cloud.dialogflow.cx.v3.Webhook.GenericWebServiceOrBuilder
getGenericWebServiceOrBuilder() {
- return getGenericWebService();
+ return genericWebService_ == null
+ ? com.google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.getDefaultInstance()
+ : genericWebService_;
}
private byte memoizedIsInitialized = -1;
@@ -2458,12 +2495,11 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
@java.lang.Override
public Builder clear() {
super.clear();
+ bitField0_ = 0;
service_ = "";
-
- if (genericWebServiceBuilder_ == null) {
- genericWebService_ = null;
- } else {
- genericWebService_ = null;
+ genericWebService_ = null;
+ if (genericWebServiceBuilder_ != null) {
+ genericWebServiceBuilder_.dispose();
genericWebServiceBuilder_ = null;
}
return this;
@@ -2495,16 +2531,27 @@ public com.google.cloud.dialogflow.cx.v3.Webhook.ServiceDirectoryConfig build()
public com.google.cloud.dialogflow.cx.v3.Webhook.ServiceDirectoryConfig buildPartial() {
com.google.cloud.dialogflow.cx.v3.Webhook.ServiceDirectoryConfig result =
new com.google.cloud.dialogflow.cx.v3.Webhook.ServiceDirectoryConfig(this);
- result.service_ = service_;
- if (genericWebServiceBuilder_ == null) {
- result.genericWebService_ = genericWebService_;
- } else {
- result.genericWebService_ = genericWebServiceBuilder_.build();
+ if (bitField0_ != 0) {
+ buildPartial0(result);
}
onBuilt();
return result;
}
+ private void buildPartial0(
+ com.google.cloud.dialogflow.cx.v3.Webhook.ServiceDirectoryConfig result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.service_ = service_;
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.genericWebService_ =
+ genericWebServiceBuilder_ == null
+ ? genericWebService_
+ : genericWebServiceBuilder_.build();
+ }
+ }
+
@java.lang.Override
public Builder clone() {
return super.clone();
@@ -2558,6 +2605,7 @@ public Builder mergeFrom(
.getDefaultInstance()) return this;
if (!other.getService().isEmpty()) {
service_ = other.service_;
+ bitField0_ |= 0x00000001;
onChanged();
}
if (other.hasGenericWebService()) {
@@ -2592,14 +2640,14 @@ public Builder mergeFrom(
case 10:
{
service_ = input.readStringRequireUtf8();
-
+ bitField0_ |= 0x00000001;
break;
} // case 10
case 18:
{
input.readMessage(
getGenericWebServiceFieldBuilder().getBuilder(), extensionRegistry);
-
+ bitField0_ |= 0x00000002;
break;
} // case 18
default:
@@ -2619,6 +2667,8 @@ public Builder mergeFrom(
return this;
}
+ private int bitField0_;
+
private java.lang.Object service_ = "";
/**
*
@@ -2701,8 +2751,8 @@ public Builder setService(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
-
service_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -2725,8 +2775,8 @@ public Builder setService(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearService() {
-
service_ = getDefaultInstance().getService();
+ bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
@@ -2754,8 +2804,8 @@ public Builder setServiceBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
-
service_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -2779,7 +2829,7 @@ public Builder setServiceBytes(com.google.protobuf.ByteString value) {
* @return Whether the genericWebService field is set.
*/
public boolean hasGenericWebService() {
- return genericWebServiceBuilder_ != null || genericWebService_ != null;
+ return ((bitField0_ & 0x00000002) != 0);
}
/**
*
@@ -2819,11 +2869,11 @@ public Builder setGenericWebService(
throw new NullPointerException();
}
genericWebService_ = value;
- onChanged();
} else {
genericWebServiceBuilder_.setMessage(value);
}
-
+ bitField0_ |= 0x00000002;
+ onChanged();
return this;
}
/**
@@ -2840,11 +2890,11 @@ public Builder setGenericWebService(
com.google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.Builder builderForValue) {
if (genericWebServiceBuilder_ == null) {
genericWebService_ = builderForValue.build();
- onChanged();
} else {
genericWebServiceBuilder_.setMessage(builderForValue.build());
}
-
+ bitField0_ |= 0x00000002;
+ onChanged();
return this;
}
/**
@@ -2860,20 +2910,20 @@ public Builder setGenericWebService(
public Builder mergeGenericWebService(
com.google.cloud.dialogflow.cx.v3.Webhook.GenericWebService value) {
if (genericWebServiceBuilder_ == null) {
- if (genericWebService_ != null) {
- genericWebService_ =
- com.google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.newBuilder(
- genericWebService_)
- .mergeFrom(value)
- .buildPartial();
+ if (((bitField0_ & 0x00000002) != 0)
+ && genericWebService_ != null
+ && genericWebService_
+ != com.google.cloud.dialogflow.cx.v3.Webhook.GenericWebService
+ .getDefaultInstance()) {
+ getGenericWebServiceBuilder().mergeFrom(value);
} else {
genericWebService_ = value;
}
- onChanged();
} else {
genericWebServiceBuilder_.mergeFrom(value);
}
-
+ bitField0_ |= 0x00000002;
+ onChanged();
return this;
}
/**
@@ -2887,14 +2937,13 @@ public Builder mergeGenericWebService(
*
*/
public Builder clearGenericWebService() {
- if (genericWebServiceBuilder_ == null) {
- genericWebService_ = null;
- onChanged();
- } else {
- genericWebService_ = null;
+ bitField0_ = (bitField0_ & ~0x00000002);
+ genericWebService_ = null;
+ if (genericWebServiceBuilder_ != null) {
+ genericWebServiceBuilder_.dispose();
genericWebServiceBuilder_ = null;
}
-
+ onChanged();
return this;
}
/**
@@ -2909,7 +2958,7 @@ public Builder clearGenericWebService() {
*/
public com.google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.Builder
getGenericWebServiceBuilder() {
-
+ bitField0_ |= 0x00000002;
onChanged();
return getGenericWebServiceFieldBuilder().getBuilder();
}
@@ -3075,16 +3124,20 @@ public WebhookCase getWebhookCase() {
}
public static final int NAME_FIELD_NUMBER = 1;
- private volatile java.lang.Object name_;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object name_ = "";
/**
*
*
*
* The unique identifier of the webhook.
- * Required for the [Webhooks.UpdateWebhook][google.cloud.dialogflow.cx.v3.Webhooks.UpdateWebhook] method.
- * [Webhooks.CreateWebhook][google.cloud.dialogflow.cx.v3.Webhooks.CreateWebhook] populates the name automatically.
- * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
- * ID>/webhooks/<Webhook ID>`.
+ * Required for the
+ * [Webhooks.UpdateWebhook][google.cloud.dialogflow.cx.v3.Webhooks.UpdateWebhook]
+ * method.
+ * [Webhooks.CreateWebhook][google.cloud.dialogflow.cx.v3.Webhooks.CreateWebhook]
+ * populates the name automatically. Format: `projects/<Project
+ * ID>/locations/<Location ID>/agents/<Agent ID>/webhooks/<Webhook ID>`.
*
*
* string name = 1;
@@ -3108,10 +3161,12 @@ public java.lang.String getName() {
*
*
* The unique identifier of the webhook.
- * Required for the [Webhooks.UpdateWebhook][google.cloud.dialogflow.cx.v3.Webhooks.UpdateWebhook] method.
- * [Webhooks.CreateWebhook][google.cloud.dialogflow.cx.v3.Webhooks.CreateWebhook] populates the name automatically.
- * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
- * ID>/webhooks/<Webhook ID>`.
+ * Required for the
+ * [Webhooks.UpdateWebhook][google.cloud.dialogflow.cx.v3.Webhooks.UpdateWebhook]
+ * method.
+ * [Webhooks.CreateWebhook][google.cloud.dialogflow.cx.v3.Webhooks.CreateWebhook]
+ * populates the name automatically. Format: `projects/<Project
+ * ID>/locations/<Location ID>/agents/<Agent ID>/webhooks/<Webhook ID>`.
*
*
* string name = 1;
@@ -3132,7 +3187,9 @@ public com.google.protobuf.ByteString getNameBytes() {
}
public static final int DISPLAY_NAME_FIELD_NUMBER = 2;
- private volatile java.lang.Object displayName_;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object displayName_ = "";
/**
*
*
@@ -3339,11 +3396,11 @@ public com.google.protobuf.Duration getTimeout() {
*/
@java.lang.Override
public com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder() {
- return getTimeout();
+ return timeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : timeout_;
}
public static final int DISABLED_FIELD_NUMBER = 5;
- private boolean disabled_;
+ private boolean disabled_ = false;
/**
*
*
@@ -3633,24 +3690,21 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
@java.lang.Override
public Builder clear() {
super.clear();
+ bitField0_ = 0;
name_ = "";
-
displayName_ = "";
-
if (genericWebServiceBuilder_ != null) {
genericWebServiceBuilder_.clear();
}
if (serviceDirectoryBuilder_ != null) {
serviceDirectoryBuilder_.clear();
}
- if (timeoutBuilder_ == null) {
- timeout_ = null;
- } else {
- timeout_ = null;
+ timeout_ = null;
+ if (timeoutBuilder_ != null) {
+ timeoutBuilder_.dispose();
timeoutBuilder_ = null;
}
disabled_ = false;
-
webhookCase_ = 0;
webhook_ = null;
return this;
@@ -3680,31 +3734,39 @@ public com.google.cloud.dialogflow.cx.v3.Webhook build() {
public com.google.cloud.dialogflow.cx.v3.Webhook buildPartial() {
com.google.cloud.dialogflow.cx.v3.Webhook result =
new com.google.cloud.dialogflow.cx.v3.Webhook(this);
- result.name_ = name_;
- result.displayName_ = displayName_;
- if (webhookCase_ == 4) {
- if (genericWebServiceBuilder_ == null) {
- result.webhook_ = webhook_;
- } else {
- result.webhook_ = genericWebServiceBuilder_.build();
- }
+ if (bitField0_ != 0) {
+ buildPartial0(result);
}
- if (webhookCase_ == 7) {
- if (serviceDirectoryBuilder_ == null) {
- result.webhook_ = webhook_;
- } else {
- result.webhook_ = serviceDirectoryBuilder_.build();
- }
+ buildPartialOneofs(result);
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartial0(com.google.cloud.dialogflow.cx.v3.Webhook result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.name_ = name_;
}
- if (timeoutBuilder_ == null) {
- result.timeout_ = timeout_;
- } else {
- result.timeout_ = timeoutBuilder_.build();
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.displayName_ = displayName_;
+ }
+ if (((from_bitField0_ & 0x00000010) != 0)) {
+ result.timeout_ = timeoutBuilder_ == null ? timeout_ : timeoutBuilder_.build();
}
- result.disabled_ = disabled_;
+ if (((from_bitField0_ & 0x00000020) != 0)) {
+ result.disabled_ = disabled_;
+ }
+ }
+
+ private void buildPartialOneofs(com.google.cloud.dialogflow.cx.v3.Webhook result) {
result.webhookCase_ = webhookCase_;
- onBuilt();
- return result;
+ result.webhook_ = this.webhook_;
+ if (webhookCase_ == 4 && genericWebServiceBuilder_ != null) {
+ result.webhook_ = genericWebServiceBuilder_.build();
+ }
+ if (webhookCase_ == 7 && serviceDirectoryBuilder_ != null) {
+ result.webhook_ = serviceDirectoryBuilder_.build();
+ }
}
@java.lang.Override
@@ -3754,10 +3816,12 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.Webhook other) {
if (other == com.google.cloud.dialogflow.cx.v3.Webhook.getDefaultInstance()) return this;
if (!other.getName().isEmpty()) {
name_ = other.name_;
+ bitField0_ |= 0x00000001;
onChanged();
}
if (!other.getDisplayName().isEmpty()) {
displayName_ = other.displayName_;
+ bitField0_ |= 0x00000002;
onChanged();
}
if (other.hasTimeout()) {
@@ -3811,13 +3875,13 @@ public Builder mergeFrom(
case 10:
{
name_ = input.readStringRequireUtf8();
-
+ bitField0_ |= 0x00000001;
break;
} // case 10
case 18:
{
displayName_ = input.readStringRequireUtf8();
-
+ bitField0_ |= 0x00000002;
break;
} // case 18
case 34:
@@ -3830,13 +3894,13 @@ public Builder mergeFrom(
case 40:
{
disabled_ = input.readBool();
-
+ bitField0_ |= 0x00000020;
break;
} // case 40
case 50:
{
input.readMessage(getTimeoutFieldBuilder().getBuilder(), extensionRegistry);
-
+ bitField0_ |= 0x00000010;
break;
} // case 50
case 58:
@@ -3877,16 +3941,20 @@ public Builder clearWebhook() {
return this;
}
+ private int bitField0_;
+
private java.lang.Object name_ = "";
/**
*
*
*
* The unique identifier of the webhook.
- * Required for the [Webhooks.UpdateWebhook][google.cloud.dialogflow.cx.v3.Webhooks.UpdateWebhook] method.
- * [Webhooks.CreateWebhook][google.cloud.dialogflow.cx.v3.Webhooks.CreateWebhook] populates the name automatically.
- * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
- * ID>/webhooks/<Webhook ID>`.
+ * Required for the
+ * [Webhooks.UpdateWebhook][google.cloud.dialogflow.cx.v3.Webhooks.UpdateWebhook]
+ * method.
+ * [Webhooks.CreateWebhook][google.cloud.dialogflow.cx.v3.Webhooks.CreateWebhook]
+ * populates the name automatically. Format: `projects/<Project
+ * ID>/locations/<Location ID>/agents/<Agent ID>/webhooks/<Webhook ID>`.
*
*
* string name = 1;
@@ -3909,10 +3977,12 @@ public java.lang.String getName() {
*
*
* The unique identifier of the webhook.
- * Required for the [Webhooks.UpdateWebhook][google.cloud.dialogflow.cx.v3.Webhooks.UpdateWebhook] method.
- * [Webhooks.CreateWebhook][google.cloud.dialogflow.cx.v3.Webhooks.CreateWebhook] populates the name automatically.
- * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
- * ID>/webhooks/<Webhook ID>`.
+ * Required for the
+ * [Webhooks.UpdateWebhook][google.cloud.dialogflow.cx.v3.Webhooks.UpdateWebhook]
+ * method.
+ * [Webhooks.CreateWebhook][google.cloud.dialogflow.cx.v3.Webhooks.CreateWebhook]
+ * populates the name automatically. Format: `projects/<Project
+ * ID>/locations/<Location ID>/agents/<Agent ID>/webhooks/<Webhook ID>`.
*
*
* string name = 1;
@@ -3935,10 +4005,12 @@ public com.google.protobuf.ByteString getNameBytes() {
*
*
* The unique identifier of the webhook.
- * Required for the [Webhooks.UpdateWebhook][google.cloud.dialogflow.cx.v3.Webhooks.UpdateWebhook] method.
- * [Webhooks.CreateWebhook][google.cloud.dialogflow.cx.v3.Webhooks.CreateWebhook] populates the name automatically.
- * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
- * ID>/webhooks/<Webhook ID>`.
+ * Required for the
+ * [Webhooks.UpdateWebhook][google.cloud.dialogflow.cx.v3.Webhooks.UpdateWebhook]
+ * method.
+ * [Webhooks.CreateWebhook][google.cloud.dialogflow.cx.v3.Webhooks.CreateWebhook]
+ * populates the name automatically. Format: `projects/<Project
+ * ID>/locations/<Location ID>/agents/<Agent ID>/webhooks/<Webhook ID>`.
*
*
* string name = 1;
@@ -3950,8 +4022,8 @@ public Builder setName(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
-
name_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -3960,10 +4032,12 @@ public Builder setName(java.lang.String value) {
*
*
* The unique identifier of the webhook.
- * Required for the [Webhooks.UpdateWebhook][google.cloud.dialogflow.cx.v3.Webhooks.UpdateWebhook] method.
- * [Webhooks.CreateWebhook][google.cloud.dialogflow.cx.v3.Webhooks.CreateWebhook] populates the name automatically.
- * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
- * ID>/webhooks/<Webhook ID>`.
+ * Required for the
+ * [Webhooks.UpdateWebhook][google.cloud.dialogflow.cx.v3.Webhooks.UpdateWebhook]
+ * method.
+ * [Webhooks.CreateWebhook][google.cloud.dialogflow.cx.v3.Webhooks.CreateWebhook]
+ * populates the name automatically. Format: `projects/<Project
+ * ID>/locations/<Location ID>/agents/<Agent ID>/webhooks/<Webhook ID>`.
*
*
* string name = 1;
@@ -3971,8 +4045,8 @@ public Builder setName(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearName() {
-
name_ = getDefaultInstance().getName();
+ bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
@@ -3981,10 +4055,12 @@ public Builder clearName() {
*
*
* The unique identifier of the webhook.
- * Required for the [Webhooks.UpdateWebhook][google.cloud.dialogflow.cx.v3.Webhooks.UpdateWebhook] method.
- * [Webhooks.CreateWebhook][google.cloud.dialogflow.cx.v3.Webhooks.CreateWebhook] populates the name automatically.
- * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
- * ID>/webhooks/<Webhook ID>`.
+ * Required for the
+ * [Webhooks.UpdateWebhook][google.cloud.dialogflow.cx.v3.Webhooks.UpdateWebhook]
+ * method.
+ * [Webhooks.CreateWebhook][google.cloud.dialogflow.cx.v3.Webhooks.CreateWebhook]
+ * populates the name automatically. Format: `projects/<Project
+ * ID>/locations/<Location ID>/agents/<Agent ID>/webhooks/<Webhook ID>`.
*
*
* string name = 1;
@@ -3997,8 +4073,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
-
name_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -4064,8 +4140,8 @@ public Builder setDisplayName(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
-
displayName_ = value;
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -4081,8 +4157,8 @@ public Builder setDisplayName(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearDisplayName() {
-
displayName_ = getDefaultInstance().getDisplayName();
+ bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
@@ -4103,8 +4179,8 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
-
displayName_ = value;
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -4331,7 +4407,6 @@ public Builder clearGenericWebService() {
}
webhookCase_ = 4;
onChanged();
- ;
return genericWebServiceBuilder_;
}
@@ -4569,7 +4644,6 @@ public Builder clearServiceDirectory() {
}
webhookCase_ = 7;
onChanged();
- ;
return serviceDirectoryBuilder_;
}
@@ -4593,7 +4667,7 @@ public Builder clearServiceDirectory() {
* @return Whether the timeout field is set.
*/
public boolean hasTimeout() {
- return timeoutBuilder_ != null || timeout_ != null;
+ return ((bitField0_ & 0x00000010) != 0);
}
/**
*
@@ -4632,11 +4706,11 @@ public Builder setTimeout(com.google.protobuf.Duration value) {
throw new NullPointerException();
}
timeout_ = value;
- onChanged();
} else {
timeoutBuilder_.setMessage(value);
}
-
+ bitField0_ |= 0x00000010;
+ onChanged();
return this;
}
/**
@@ -4653,11 +4727,11 @@ public Builder setTimeout(com.google.protobuf.Duration value) {
public Builder setTimeout(com.google.protobuf.Duration.Builder builderForValue) {
if (timeoutBuilder_ == null) {
timeout_ = builderForValue.build();
- onChanged();
} else {
timeoutBuilder_.setMessage(builderForValue.build());
}
-
+ bitField0_ |= 0x00000010;
+ onChanged();
return this;
}
/**
@@ -4673,17 +4747,18 @@ public Builder setTimeout(com.google.protobuf.Duration.Builder builderForValue)
*/
public Builder mergeTimeout(com.google.protobuf.Duration value) {
if (timeoutBuilder_ == null) {
- if (timeout_ != null) {
- timeout_ =
- com.google.protobuf.Duration.newBuilder(timeout_).mergeFrom(value).buildPartial();
+ if (((bitField0_ & 0x00000010) != 0)
+ && timeout_ != null
+ && timeout_ != com.google.protobuf.Duration.getDefaultInstance()) {
+ getTimeoutBuilder().mergeFrom(value);
} else {
timeout_ = value;
}
- onChanged();
} else {
timeoutBuilder_.mergeFrom(value);
}
-
+ bitField0_ |= 0x00000010;
+ onChanged();
return this;
}
/**
@@ -4698,14 +4773,13 @@ public Builder mergeTimeout(com.google.protobuf.Duration value) {
* .google.protobuf.Duration timeout = 6;
*/
public Builder clearTimeout() {
- if (timeoutBuilder_ == null) {
- timeout_ = null;
- onChanged();
- } else {
- timeout_ = null;
+ bitField0_ = (bitField0_ & ~0x00000010);
+ timeout_ = null;
+ if (timeoutBuilder_ != null) {
+ timeoutBuilder_.dispose();
timeoutBuilder_ = null;
}
-
+ onChanged();
return this;
}
/**
@@ -4720,7 +4794,7 @@ public Builder clearTimeout() {
* .google.protobuf.Duration timeout = 6;
*/
public com.google.protobuf.Duration.Builder getTimeoutBuilder() {
-
+ bitField0_ |= 0x00000010;
onChanged();
return getTimeoutFieldBuilder().getBuilder();
}
@@ -4801,6 +4875,7 @@ public boolean getDisabled() {
public Builder setDisabled(boolean value) {
disabled_ = value;
+ bitField0_ |= 0x00000020;
onChanged();
return this;
}
@@ -4816,7 +4891,7 @@ public Builder setDisabled(boolean value) {
* @return This builder for chaining.
*/
public Builder clearDisabled() {
-
+ bitField0_ = (bitField0_ & ~0x00000020);
disabled_ = false;
onChanged();
return this;
diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/WebhookOrBuilder.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/WebhookOrBuilder.java
index 5979cc389cb6..de5ad7bf9f41 100644
--- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/WebhookOrBuilder.java
+++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/WebhookOrBuilder.java
@@ -28,10 +28,12 @@ public interface WebhookOrBuilder
*
*
* The unique identifier of the webhook.
- * Required for the [Webhooks.UpdateWebhook][google.cloud.dialogflow.cx.v3.Webhooks.UpdateWebhook] method.
- * [Webhooks.CreateWebhook][google.cloud.dialogflow.cx.v3.Webhooks.CreateWebhook] populates the name automatically.
- * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
- * ID>/webhooks/<Webhook ID>`.
+ * Required for the
+ * [Webhooks.UpdateWebhook][google.cloud.dialogflow.cx.v3.Webhooks.UpdateWebhook]
+ * method.
+ * [Webhooks.CreateWebhook][google.cloud.dialogflow.cx.v3.Webhooks.CreateWebhook]
+ * populates the name automatically. Format: `projects/<Project
+ * ID>/locations/<Location ID>/agents/<Agent ID>/webhooks/<Webhook ID>`.
*
*
* string name = 1;
@@ -44,10 +46,12 @@ public interface WebhookOrBuilder
*
*
* The unique identifier of the webhook.
- * Required for the [Webhooks.UpdateWebhook][google.cloud.dialogflow.cx.v3.Webhooks.UpdateWebhook] method.
- * [Webhooks.CreateWebhook][google.cloud.dialogflow.cx.v3.Webhooks.CreateWebhook] populates the name automatically.
- * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
- * ID>/webhooks/<Webhook ID>`.
+ * Required for the
+ * [Webhooks.UpdateWebhook][google.cloud.dialogflow.cx.v3.Webhooks.UpdateWebhook]
+ * method.
+ * [Webhooks.CreateWebhook][google.cloud.dialogflow.cx.v3.Webhooks.CreateWebhook]
+ * populates the name automatically. Format: `projects/<Project
+ * ID>/locations/<Location ID>/agents/<Agent ID>/webhooks/<Webhook ID>`.
*
*
* string name = 1;
diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/WebhookProto.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/WebhookProto.java
index 21055b4c4410..06961a0f7eb5 100644
--- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/WebhookProto.java
+++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/WebhookProto.java
@@ -271,16 +271,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "ions/*/agents/*/webhooks/*}\332A\004name\032x\312A\031d"
+ "ialogflow.googleapis.com\322AYhttps://www.g"
+ "oogleapis.com/auth/cloud-platform,https:"
- + "//www.googleapis.com/auth/dialogflowB\277\002\n"
+ + "//www.googleapis.com/auth/dialogflowB\261\002\n"
+ "!com.google.cloud.dialogflow.cx.v3B\014Webh"
- + "ookProtoP\001Z?google.golang.org/genproto/g"
- + "oogleapis/cloud/dialogflow/cx/v3;cx\370\001\001\242\002"
- + "\002DF\252\002\035Google.Cloud.Dialogflow.Cx.V3\352\002!Go"
- + "ogle::Cloud::Dialogflow::CX::V3\352A|\n\'serv"
- + "icedirectory.googleapis.com/Service\022Qpro"
- + "jects/{project}/locations/{location}/nam"
- + "espaces/{namespace}/services/{service}b\006"
- + "proto3"
+ + "ookProtoP\001Z1cloud.google.com/go/dialogfl"
+ + "ow/cx/apiv3/cxpb;cxpb\370\001\001\242\002\002DF\252\002\035Google.C"
+ + "loud.Dialogflow.Cx.V3\352\002!Google::Cloud::D"
+ + "ialogflow::CX::V3\352A|\n\'servicedirectory.g"
+ + "oogleapis.com/Service\022Qprojects/{project"
+ + "}/locations/{location}/namespaces/{names"
+ + "pace}/services/{service}b\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/WebhookRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/WebhookRequest.java
index 42722d40681c..c7392a874f3b 100644
--- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/WebhookRequest.java
+++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/WebhookRequest.java
@@ -82,10 +82,12 @@ public interface FulfillmentInfoOrBuilder
*
*
* Always present.
- * The value of the [Fulfillment.tag][google.cloud.dialogflow.cx.v3.Fulfillment.tag] field will be populated in this
- * field by Dialogflow when the associated webhook is called.
- * The tag is typically used by the webhook service to identify which
- * fulfillment is being called, but it could be used for other purposes.
+ * The value of the
+ * [Fulfillment.tag][google.cloud.dialogflow.cx.v3.Fulfillment.tag] field
+ * will be populated in this field by Dialogflow when the associated webhook
+ * is called. The tag is typically used by the webhook service to identify
+ * which fulfillment is being called, but it could be used for other
+ * purposes.
*
*
* string tag = 1;
@@ -98,10 +100,12 @@ public interface FulfillmentInfoOrBuilder
*
*
* Always present.
- * The value of the [Fulfillment.tag][google.cloud.dialogflow.cx.v3.Fulfillment.tag] field will be populated in this
- * field by Dialogflow when the associated webhook is called.
- * The tag is typically used by the webhook service to identify which
- * fulfillment is being called, but it could be used for other purposes.
+ * The value of the
+ * [Fulfillment.tag][google.cloud.dialogflow.cx.v3.Fulfillment.tag] field
+ * will be populated in this field by Dialogflow when the associated webhook
+ * is called. The tag is typically used by the webhook service to identify
+ * which fulfillment is being called, but it could be used for other
+ * purposes.
*
*
* string tag = 1;
@@ -160,16 +164,20 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
public static final int TAG_FIELD_NUMBER = 1;
- private volatile java.lang.Object tag_;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object tag_ = "";
/**
*
*
*
* Always present.
- * The value of the [Fulfillment.tag][google.cloud.dialogflow.cx.v3.Fulfillment.tag] field will be populated in this
- * field by Dialogflow when the associated webhook is called.
- * The tag is typically used by the webhook service to identify which
- * fulfillment is being called, but it could be used for other purposes.
+ * The value of the
+ * [Fulfillment.tag][google.cloud.dialogflow.cx.v3.Fulfillment.tag] field
+ * will be populated in this field by Dialogflow when the associated webhook
+ * is called. The tag is typically used by the webhook service to identify
+ * which fulfillment is being called, but it could be used for other
+ * purposes.
*
*
* string tag = 1;
@@ -193,10 +201,12 @@ public java.lang.String getTag() {
*
*
* Always present.
- * The value of the [Fulfillment.tag][google.cloud.dialogflow.cx.v3.Fulfillment.tag] field will be populated in this
- * field by Dialogflow when the associated webhook is called.
- * The tag is typically used by the webhook service to identify which
- * fulfillment is being called, but it could be used for other purposes.
+ * The value of the
+ * [Fulfillment.tag][google.cloud.dialogflow.cx.v3.Fulfillment.tag] field
+ * will be populated in this field by Dialogflow when the associated webhook
+ * is called. The tag is typically used by the webhook service to identify
+ * which fulfillment is being called, but it could be used for other
+ * purposes.
*
*
* string tag = 1;
@@ -418,8 +428,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
@java.lang.Override
public Builder clear() {
super.clear();
+ bitField0_ = 0;
tag_ = "";
-
return this;
}
@@ -449,11 +459,21 @@ public com.google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo build()
public com.google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo buildPartial() {
com.google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo result =
new com.google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo(this);
- result.tag_ = tag_;
+ if (bitField0_ != 0) {
+ buildPartial0(result);
+ }
onBuilt();
return result;
}
+ private void buildPartial0(
+ com.google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.tag_ = tag_;
+ }
+ }
+
@java.lang.Override
public Builder clone() {
return super.clone();
@@ -507,6 +527,7 @@ public Builder mergeFrom(
.getDefaultInstance()) return this;
if (!other.getTag().isEmpty()) {
tag_ = other.tag_;
+ bitField0_ |= 0x00000001;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
@@ -538,7 +559,7 @@ public Builder mergeFrom(
case 10:
{
tag_ = input.readStringRequireUtf8();
-
+ bitField0_ |= 0x00000001;
break;
} // case 10
default:
@@ -558,16 +579,20 @@ public Builder mergeFrom(
return this;
}
+ private int bitField0_;
+
private java.lang.Object tag_ = "";
/**
*
*
*
* Always present.
- * The value of the [Fulfillment.tag][google.cloud.dialogflow.cx.v3.Fulfillment.tag] field will be populated in this
- * field by Dialogflow when the associated webhook is called.
- * The tag is typically used by the webhook service to identify which
- * fulfillment is being called, but it could be used for other purposes.
+ * The value of the
+ * [Fulfillment.tag][google.cloud.dialogflow.cx.v3.Fulfillment.tag] field
+ * will be populated in this field by Dialogflow when the associated webhook
+ * is called. The tag is typically used by the webhook service to identify
+ * which fulfillment is being called, but it could be used for other
+ * purposes.
*
*
* string tag = 1;
@@ -590,10 +615,12 @@ public java.lang.String getTag() {
*
*
* Always present.
- * The value of the [Fulfillment.tag][google.cloud.dialogflow.cx.v3.Fulfillment.tag] field will be populated in this
- * field by Dialogflow when the associated webhook is called.
- * The tag is typically used by the webhook service to identify which
- * fulfillment is being called, but it could be used for other purposes.
+ * The value of the
+ * [Fulfillment.tag][google.cloud.dialogflow.cx.v3.Fulfillment.tag] field
+ * will be populated in this field by Dialogflow when the associated webhook
+ * is called. The tag is typically used by the webhook service to identify
+ * which fulfillment is being called, but it could be used for other
+ * purposes.
*
*
* string tag = 1;
@@ -616,10 +643,12 @@ public com.google.protobuf.ByteString getTagBytes() {
*
*
* Always present.
- * The value of the [Fulfillment.tag][google.cloud.dialogflow.cx.v3.Fulfillment.tag] field will be populated in this
- * field by Dialogflow when the associated webhook is called.
- * The tag is typically used by the webhook service to identify which
- * fulfillment is being called, but it could be used for other purposes.
+ * The value of the
+ * [Fulfillment.tag][google.cloud.dialogflow.cx.v3.Fulfillment.tag] field
+ * will be populated in this field by Dialogflow when the associated webhook
+ * is called. The tag is typically used by the webhook service to identify
+ * which fulfillment is being called, but it could be used for other
+ * purposes.
*
*
* string tag = 1;
@@ -631,8 +660,8 @@ public Builder setTag(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
-
tag_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -641,10 +670,12 @@ public Builder setTag(java.lang.String value) {
*
*
* Always present.
- * The value of the [Fulfillment.tag][google.cloud.dialogflow.cx.v3.Fulfillment.tag] field will be populated in this
- * field by Dialogflow when the associated webhook is called.
- * The tag is typically used by the webhook service to identify which
- * fulfillment is being called, but it could be used for other purposes.
+ * The value of the
+ * [Fulfillment.tag][google.cloud.dialogflow.cx.v3.Fulfillment.tag] field
+ * will be populated in this field by Dialogflow when the associated webhook
+ * is called. The tag is typically used by the webhook service to identify
+ * which fulfillment is being called, but it could be used for other
+ * purposes.
*
*
* string tag = 1;
@@ -652,8 +683,8 @@ public Builder setTag(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearTag() {
-
tag_ = getDefaultInstance().getTag();
+ bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
@@ -662,10 +693,12 @@ public Builder clearTag() {
*
*
* Always present.
- * The value of the [Fulfillment.tag][google.cloud.dialogflow.cx.v3.Fulfillment.tag] field will be populated in this
- * field by Dialogflow when the associated webhook is called.
- * The tag is typically used by the webhook service to identify which
- * fulfillment is being called, but it could be used for other purposes.
+ * The value of the
+ * [Fulfillment.tag][google.cloud.dialogflow.cx.v3.Fulfillment.tag] field
+ * will be populated in this field by Dialogflow when the associated webhook
+ * is called. The tag is typically used by the webhook service to identify
+ * which fulfillment is being called, but it could be used for other
+ * purposes.
*
*
* string tag = 1;
@@ -678,8 +711,8 @@ public Builder setTagBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
-
tag_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -791,7 +824,8 @@ public interface IntentInfoOrBuilder
*
*
*
- * Always present. The display name of the last matched [intent][google.cloud.dialogflow.cx.v3.Intent].
+ * Always present. The display name of the last matched
+ * [intent][google.cloud.dialogflow.cx.v3.Intent].
*
*
* string display_name = 3;
@@ -803,7 +837,8 @@ public interface IntentInfoOrBuilder
*
*
*
- * Always present. The display name of the last matched [intent][google.cloud.dialogflow.cx.v3.Intent].
+ * Always present. The display name of the last matched
+ * [intent][google.cloud.dialogflow.cx.v3.Intent].
*
*
* string display_name = 3;
@@ -880,7 +915,6 @@ public interface IntentInfoOrBuilder
* map<string, .google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue> parameters = 2;
*
*/
-
/* nullable */
com.google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue
getParametersOrDefault(
@@ -1101,7 +1135,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
public static final int ORIGINAL_VALUE_FIELD_NUMBER = 1;
- private volatile java.lang.Object originalValue_;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object originalValue_ = "";
/**
*
*
@@ -1197,7 +1233,9 @@ public com.google.protobuf.Value getResolvedValue() {
*/
@java.lang.Override
public com.google.protobuf.ValueOrBuilder getResolvedValueOrBuilder() {
- return getResolvedValue();
+ return resolvedValue_ == null
+ ? com.google.protobuf.Value.getDefaultInstance()
+ : resolvedValue_;
}
private byte memoizedIsInitialized = -1;
@@ -1430,12 +1468,11 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
@java.lang.Override
public Builder clear() {
super.clear();
+ bitField0_ = 0;
originalValue_ = "";
-
- if (resolvedValueBuilder_ == null) {
- resolvedValue_ = null;
- } else {
- resolvedValue_ = null;
+ resolvedValue_ = null;
+ if (resolvedValueBuilder_ != null) {
+ resolvedValueBuilder_.dispose();
resolvedValueBuilder_ = null;
}
return this;
@@ -1471,16 +1508,26 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
com.google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue result =
new com.google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue(
this);
- result.originalValue_ = originalValue_;
- if (resolvedValueBuilder_ == null) {
- result.resolvedValue_ = resolvedValue_;
- } else {
- result.resolvedValue_ = resolvedValueBuilder_.build();
+ if (bitField0_ != 0) {
+ buildPartial0(result);
}
onBuilt();
return result;
}
+ private void buildPartial0(
+ com.google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue
+ result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.originalValue_ = originalValue_;
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.resolvedValue_ =
+ resolvedValueBuilder_ == null ? resolvedValue_ : resolvedValueBuilder_.build();
+ }
+ }
+
@java.lang.Override
public Builder clone() {
return super.clone();
@@ -1538,6 +1585,7 @@ public Builder mergeFrom(
.getDefaultInstance()) return this;
if (!other.getOriginalValue().isEmpty()) {
originalValue_ = other.originalValue_;
+ bitField0_ |= 0x00000001;
onChanged();
}
if (other.hasResolvedValue()) {
@@ -1572,14 +1620,14 @@ public Builder mergeFrom(
case 10:
{
originalValue_ = input.readStringRequireUtf8();
-
+ bitField0_ |= 0x00000001;
break;
} // case 10
case 18:
{
input.readMessage(
getResolvedValueFieldBuilder().getBuilder(), extensionRegistry);
-
+ bitField0_ |= 0x00000002;
break;
} // case 18
default:
@@ -1599,6 +1647,8 @@ public Builder mergeFrom(
return this;
}
+ private int bitField0_;
+
private java.lang.Object originalValue_ = "";
/**
*
@@ -1660,8 +1710,8 @@ public Builder setOriginalValue(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
-
originalValue_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -1677,8 +1727,8 @@ public Builder setOriginalValue(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearOriginalValue() {
-
originalValue_ = getDefaultInstance().getOriginalValue();
+ bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
@@ -1699,8 +1749,8 @@ public Builder setOriginalValueBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
-
originalValue_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -1724,7 +1774,7 @@ public Builder setOriginalValueBytes(com.google.protobuf.ByteString value) {
* @return Whether the resolvedValue field is set.
*/
public boolean hasResolvedValue() {
- return resolvedValueBuilder_ != null || resolvedValue_ != null;
+ return ((bitField0_ & 0x00000002) != 0);
}
/**
*
@@ -1763,11 +1813,11 @@ public Builder setResolvedValue(com.google.protobuf.Value value) {
throw new NullPointerException();
}
resolvedValue_ = value;
- onChanged();
} else {
resolvedValueBuilder_.setMessage(value);
}
-
+ bitField0_ |= 0x00000002;
+ onChanged();
return this;
}
/**
@@ -1783,11 +1833,11 @@ public Builder setResolvedValue(com.google.protobuf.Value value) {
public Builder setResolvedValue(com.google.protobuf.Value.Builder builderForValue) {
if (resolvedValueBuilder_ == null) {
resolvedValue_ = builderForValue.build();
- onChanged();
} else {
resolvedValueBuilder_.setMessage(builderForValue.build());
}
-
+ bitField0_ |= 0x00000002;
+ onChanged();
return this;
}
/**
@@ -1802,19 +1852,18 @@ public Builder setResolvedValue(com.google.protobuf.Value.Builder builderForValu
*/
public Builder mergeResolvedValue(com.google.protobuf.Value value) {
if (resolvedValueBuilder_ == null) {
- if (resolvedValue_ != null) {
- resolvedValue_ =
- com.google.protobuf.Value.newBuilder(resolvedValue_)
- .mergeFrom(value)
- .buildPartial();
+ if (((bitField0_ & 0x00000002) != 0)
+ && resolvedValue_ != null
+ && resolvedValue_ != com.google.protobuf.Value.getDefaultInstance()) {
+ getResolvedValueBuilder().mergeFrom(value);
} else {
resolvedValue_ = value;
}
- onChanged();
} else {
resolvedValueBuilder_.mergeFrom(value);
}
-
+ bitField0_ |= 0x00000002;
+ onChanged();
return this;
}
/**
@@ -1828,14 +1877,13 @@ public Builder mergeResolvedValue(com.google.protobuf.Value value) {
* .google.protobuf.Value resolved_value = 2;
*/
public Builder clearResolvedValue() {
- if (resolvedValueBuilder_ == null) {
- resolvedValue_ = null;
- onChanged();
- } else {
- resolvedValue_ = null;
+ bitField0_ = (bitField0_ & ~0x00000002);
+ resolvedValue_ = null;
+ if (resolvedValueBuilder_ != null) {
+ resolvedValueBuilder_.dispose();
resolvedValueBuilder_ = null;
}
-
+ onChanged();
return this;
}
/**
@@ -1849,7 +1897,7 @@ public Builder clearResolvedValue() {
* .google.protobuf.Value resolved_value = 2;
*/
public com.google.protobuf.Value.Builder getResolvedValueBuilder() {
-
+ bitField0_ |= 0x00000002;
onChanged();
return getResolvedValueFieldBuilder().getBuilder();
}
@@ -1969,7 +2017,9 @@ public com.google.protobuf.Parser getParserForType() {
}
public static final int LAST_MATCHED_INTENT_FIELD_NUMBER = 1;
- private volatile java.lang.Object lastMatchedIntent_;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object lastMatchedIntent_ = "";
/**
*
*
@@ -2024,12 +2074,15 @@ public com.google.protobuf.ByteString getLastMatchedIntentBytes() {
}
public static final int DISPLAY_NAME_FIELD_NUMBER = 3;
- private volatile java.lang.Object displayName_;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object displayName_ = "";
/**
*
*
*
- * Always present. The display name of the last matched [intent][google.cloud.dialogflow.cx.v3.Intent].
+ * Always present. The display name of the last matched
+ * [intent][google.cloud.dialogflow.cx.v3.Intent].
*
*
* string display_name = 3;
@@ -2052,7 +2105,8 @@ public java.lang.String getDisplayName() {
*
*
*
- * Always present. The display name of the last matched [intent][google.cloud.dialogflow.cx.v3.Intent].
+ * Always present. The display name of the last matched
+ * [intent][google.cloud.dialogflow.cx.v3.Intent].
*
*
* string display_name = 3;
@@ -2093,6 +2147,7 @@ private static final class ParametersDefaultEntryHolder {
.IntentParameterValue.getDefaultInstance());
}
+ @SuppressWarnings("serial")
private com.google.protobuf.MapField<
java.lang.String,
com.google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue>
@@ -2178,9 +2233,11 @@ public boolean containsParameters(java.lang.String key) {
*
*/
@java.lang.Override
- public com.google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue
+ public /* nullable */ com.google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo
+ .IntentParameterValue
getParametersOrDefault(
java.lang.String key,
+ /* nullable */
com.google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue
defaultValue) {
if (key == null) {
@@ -2223,7 +2280,7 @@ public boolean containsParameters(java.lang.String key) {
}
public static final int CONFIDENCE_FIELD_NUMBER = 4;
- private float confidence_;
+ private float confidence_ = 0F;
/**
*
*
@@ -2502,13 +2559,11 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
@java.lang.Override
public Builder clear() {
super.clear();
+ bitField0_ = 0;
lastMatchedIntent_ = "";
-
displayName_ = "";
-
internalGetMutableParameters().clear();
confidence_ = 0F;
-
return this;
}
@@ -2537,16 +2592,31 @@ public com.google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo build() {
public com.google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo buildPartial() {
com.google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo result =
new com.google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo(this);
- int from_bitField0_ = bitField0_;
- result.lastMatchedIntent_ = lastMatchedIntent_;
- result.displayName_ = displayName_;
- result.parameters_ = internalGetParameters();
- result.parameters_.makeImmutable();
- result.confidence_ = confidence_;
+ if (bitField0_ != 0) {
+ buildPartial0(result);
+ }
onBuilt();
return result;
}
+ private void buildPartial0(
+ com.google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.lastMatchedIntent_ = lastMatchedIntent_;
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.displayName_ = displayName_;
+ }
+ if (((from_bitField0_ & 0x00000004) != 0)) {
+ result.parameters_ = internalGetParameters();
+ result.parameters_.makeImmutable();
+ }
+ if (((from_bitField0_ & 0x00000008) != 0)) {
+ result.confidence_ = confidence_;
+ }
+ }
+
@java.lang.Override
public Builder clone() {
return super.clone();
@@ -2598,13 +2668,16 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.WebhookRequest.Intent
return this;
if (!other.getLastMatchedIntent().isEmpty()) {
lastMatchedIntent_ = other.lastMatchedIntent_;
+ bitField0_ |= 0x00000001;
onChanged();
}
if (!other.getDisplayName().isEmpty()) {
displayName_ = other.displayName_;
+ bitField0_ |= 0x00000002;
onChanged();
}
internalGetMutableParameters().mergeFrom(other.internalGetParameters());
+ bitField0_ |= 0x00000004;
if (other.getConfidence() != 0F) {
setConfidence(other.getConfidence());
}
@@ -2637,7 +2710,7 @@ public Builder mergeFrom(
case 10:
{
lastMatchedIntent_ = input.readStringRequireUtf8();
-
+ bitField0_ |= 0x00000001;
break;
} // case 10
case 18:
@@ -2653,18 +2726,19 @@ public Builder mergeFrom(
internalGetMutableParameters()
.getMutableMap()
.put(parameters__.getKey(), parameters__.getValue());
+ bitField0_ |= 0x00000004;
break;
} // case 18
case 26:
{
displayName_ = input.readStringRequireUtf8();
-
+ bitField0_ |= 0x00000002;
break;
} // case 26
case 37:
{
confidence_ = input.readFloat();
-
+ bitField0_ |= 0x00000008;
break;
} // case 37
default:
@@ -2756,8 +2830,8 @@ public Builder setLastMatchedIntent(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
-
lastMatchedIntent_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -2776,8 +2850,8 @@ public Builder setLastMatchedIntent(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearLastMatchedIntent() {
-
lastMatchedIntent_ = getDefaultInstance().getLastMatchedIntent();
+ bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
@@ -2801,8 +2875,8 @@ public Builder setLastMatchedIntentBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
-
lastMatchedIntent_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -2812,7 +2886,8 @@ public Builder setLastMatchedIntentBytes(com.google.protobuf.ByteString value) {
*
*
*
- * Always present. The display name of the last matched [intent][google.cloud.dialogflow.cx.v3.Intent].
+ * Always present. The display name of the last matched
+ * [intent][google.cloud.dialogflow.cx.v3.Intent].
*
*
* string display_name = 3;
@@ -2834,7 +2909,8 @@ public java.lang.String getDisplayName() {
*
*
*
- * Always present. The display name of the last matched [intent][google.cloud.dialogflow.cx.v3.Intent].
+ * Always present. The display name of the last matched
+ * [intent][google.cloud.dialogflow.cx.v3.Intent].
*
*
* string display_name = 3;
@@ -2856,7 +2932,8 @@ public com.google.protobuf.ByteString getDisplayNameBytes() {
*
*
*
- * Always present. The display name of the last matched [intent][google.cloud.dialogflow.cx.v3.Intent].
+ * Always present. The display name of the last matched
+ * [intent][google.cloud.dialogflow.cx.v3.Intent].
*
*
* string display_name = 3;
@@ -2868,8 +2945,8 @@ public Builder setDisplayName(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
-
displayName_ = value;
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -2877,7 +2954,8 @@ public Builder setDisplayName(java.lang.String value) {
*
*
*
- * Always present. The display name of the last matched [intent][google.cloud.dialogflow.cx.v3.Intent].
+ * Always present. The display name of the last matched
+ * [intent][google.cloud.dialogflow.cx.v3.Intent].
*
*
* string display_name = 3;
@@ -2885,8 +2963,8 @@ public Builder setDisplayName(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearDisplayName() {
-
displayName_ = getDefaultInstance().getDisplayName();
+ bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
@@ -2894,7 +2972,8 @@ public Builder clearDisplayName() {
*
*
*
- * Always present. The display name of the last matched [intent][google.cloud.dialogflow.cx.v3.Intent].
+ * Always present. The display name of the last matched
+ * [intent][google.cloud.dialogflow.cx.v3.Intent].
*
*
* string display_name = 3;
@@ -2907,8 +2986,8 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
-
displayName_ = value;
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -2933,8 +3012,6 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) {
java.lang.String,
com.google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue>
internalGetMutableParameters() {
- onChanged();
- ;
if (parameters_ == null) {
parameters_ =
com.google.protobuf.MapField.newMapField(ParametersDefaultEntryHolder.defaultEntry);
@@ -2942,6 +3019,8 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) {
if (!parameters_.isMutable()) {
parameters_ = parameters_.copy();
}
+ bitField0_ |= 0x00000004;
+ onChanged();
return parameters_;
}
@@ -3014,9 +3093,11 @@ public boolean containsParameters(java.lang.String key) {
*
*/
@java.lang.Override
- public com.google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue
+ public /* nullable */ com.google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo
+ .IntentParameterValue
getParametersOrDefault(
java.lang.String key,
+ /* nullable */
com.google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue
defaultValue) {
if (key == null) {
@@ -3059,6 +3140,7 @@ public boolean containsParameters(java.lang.String key) {
}
public Builder clearParameters() {
+ bitField0_ = (bitField0_ & ~0x00000004);
internalGetMutableParameters().getMutableMap().clear();
return this;
}
@@ -3089,6 +3171,7 @@ public Builder removeParameters(java.lang.String key) {
java.lang.String,
com.google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue>
getMutableParameters() {
+ bitField0_ |= 0x00000004;
return internalGetMutableParameters().getMutableMap();
}
/**
@@ -3114,8 +3197,8 @@ public Builder putParameters(
if (value == null) {
throw new NullPointerException("map value");
}
-
internalGetMutableParameters().getMutableMap().put(key, value);
+ bitField0_ |= 0x00000004;
return this;
}
/**
@@ -3138,6 +3221,7 @@ public Builder putAllParameters(
com.google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue>
values) {
internalGetMutableParameters().getMutableMap().putAll(values);
+ bitField0_ |= 0x00000004;
return this;
}
@@ -3174,6 +3258,7 @@ public float getConfidence() {
public Builder setConfidence(float value) {
confidence_ = value;
+ bitField0_ |= 0x00000008;
onChanged();
return this;
}
@@ -3190,7 +3275,7 @@ public Builder setConfidence(float value) {
* @return This builder for chaining.
*/
public Builder clearConfidence() {
-
+ bitField0_ = (bitField0_ & ~0x00000008);
confidence_ = 0F;
onChanged();
return this;
@@ -3344,7 +3429,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
public static final int SCORE_FIELD_NUMBER = 1;
- private float score_;
+ private float score_ = 0F;
/**
*
*
@@ -3363,7 +3448,7 @@ public float getScore() {
}
public static final int MAGNITUDE_FIELD_NUMBER = 2;
- private float magnitude_;
+ private float magnitude_ = 0F;
/**
*
*
@@ -3602,10 +3687,9 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
@java.lang.Override
public Builder clear() {
super.clear();
+ bitField0_ = 0;
score_ = 0F;
-
magnitude_ = 0F;
-
return this;
}
@@ -3637,12 +3721,24 @@ public com.google.cloud.dialogflow.cx.v3.WebhookRequest.SentimentAnalysisResult
buildPartial() {
com.google.cloud.dialogflow.cx.v3.WebhookRequest.SentimentAnalysisResult result =
new com.google.cloud.dialogflow.cx.v3.WebhookRequest.SentimentAnalysisResult(this);
- result.score_ = score_;
- result.magnitude_ = magnitude_;
+ if (bitField0_ != 0) {
+ buildPartial0(result);
+ }
onBuilt();
return result;
}
+ private void buildPartial0(
+ com.google.cloud.dialogflow.cx.v3.WebhookRequest.SentimentAnalysisResult result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.score_ = score_;
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.magnitude_ = magnitude_;
+ }
+ }
+
@java.lang.Override
public Builder clone() {
return super.clone();
@@ -3730,13 +3826,13 @@ public Builder mergeFrom(
case 13:
{
score_ = input.readFloat();
-
+ bitField0_ |= 0x00000001;
break;
} // case 13
case 21:
{
magnitude_ = input.readFloat();
-
+ bitField0_ |= 0x00000002;
break;
} // case 21
default:
@@ -3756,6 +3852,8 @@ public Builder mergeFrom(
return this;
}
+ private int bitField0_;
+
private float score_;
/**
*
@@ -3789,6 +3887,7 @@ public float getScore() {
public Builder setScore(float value) {
score_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -3805,7 +3904,7 @@ public Builder setScore(float value) {
* @return This builder for chaining.
*/
public Builder clearScore() {
-
+ bitField0_ = (bitField0_ & ~0x00000001);
score_ = 0F;
onChanged();
return this;
@@ -3846,6 +3945,7 @@ public float getMagnitude() {
public Builder setMagnitude(float value) {
magnitude_ = value;
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -3863,7 +3963,7 @@ public Builder setMagnitude(float value) {
* @return This builder for chaining.
*/
public Builder clearMagnitude() {
-
+ bitField0_ = (bitField0_ & ~0x00000002);
magnitude_ = 0F;
onChanged();
return this;
@@ -3991,13 +4091,16 @@ public QueryCase getQueryCase() {
}
public static final int DETECT_INTENT_RESPONSE_ID_FIELD_NUMBER = 1;
- private volatile java.lang.Object detectIntentResponseId_;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object detectIntentResponseId_ = "";
/**
*
*
*
- * Always present. The unique identifier of the [DetectIntentResponse][google.cloud.dialogflow.cx.v3.DetectIntentResponse] that
- * will be returned to the API caller.
+ * Always present. The unique identifier of the
+ * [DetectIntentResponse][google.cloud.dialogflow.cx.v3.DetectIntentResponse]
+ * that will be returned to the API caller.
*
*
* string detect_intent_response_id = 1;
@@ -4020,8 +4123,9 @@ public java.lang.String getDetectIntentResponseId() {
*
*
*
- * Always present. The unique identifier of the [DetectIntentResponse][google.cloud.dialogflow.cx.v3.DetectIntentResponse] that
- * will be returned to the API caller.
+ * Always present. The unique identifier of the
+ * [DetectIntentResponse][google.cloud.dialogflow.cx.v3.DetectIntentResponse]
+ * that will be returned to the API caller.
*
*
* string detect_intent_response_id = 1;
@@ -4046,8 +4150,8 @@ public com.google.protobuf.ByteString getDetectIntentResponseIdBytes() {
*
*
*
- * If [natural language text][google.cloud.dialogflow.cx.v3.TextInput] was provided as input, this field
- * will contain a copy of the text.
+ * If [natural language text][google.cloud.dialogflow.cx.v3.TextInput] was
+ * provided as input, this field will contain a copy of the text.
*
*
* string text = 10;
@@ -4061,8 +4165,8 @@ public boolean hasText() {
*
*
*
- * If [natural language text][google.cloud.dialogflow.cx.v3.TextInput] was provided as input, this field
- * will contain a copy of the text.
+ * If [natural language text][google.cloud.dialogflow.cx.v3.TextInput] was
+ * provided as input, this field will contain a copy of the text.
*
*
* string text = 10;
@@ -4089,8 +4193,8 @@ public java.lang.String getText() {
*
*
*
- * If [natural language text][google.cloud.dialogflow.cx.v3.TextInput] was provided as input, this field
- * will contain a copy of the text.
+ * If [natural language text][google.cloud.dialogflow.cx.v3.TextInput] was
+ * provided as input, this field will contain a copy of the text.
*
*
* string text = 10;
@@ -4119,9 +4223,9 @@ public com.google.protobuf.ByteString getTextBytes() {
*
*
*
- * If an [intent][google.cloud.dialogflow.cx.v3.IntentInput] was provided as input, this field will
- * contain a copy of the intent identifier.
- * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+ * If an [intent][google.cloud.dialogflow.cx.v3.IntentInput] was provided as
+ * input, this field will contain a copy of the intent identifier. Format:
+ * `projects/<Project ID>/locations/<Location ID>/agents/<Agent
* ID>/intents/<Intent ID>`.
*
*
@@ -4136,9 +4240,9 @@ public boolean hasTriggerIntent() {
*
*
*
- * If an [intent][google.cloud.dialogflow.cx.v3.IntentInput] was provided as input, this field will
- * contain a copy of the intent identifier.
- * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+ * If an [intent][google.cloud.dialogflow.cx.v3.IntentInput] was provided as
+ * input, this field will contain a copy of the intent identifier. Format:
+ * `projects/<Project ID>/locations/<Location ID>/agents/<Agent
* ID>/intents/<Intent ID>`.
*
*
@@ -4166,9 +4270,9 @@ public java.lang.String getTriggerIntent() {
*
*
*
- * If an [intent][google.cloud.dialogflow.cx.v3.IntentInput] was provided as input, this field will
- * contain a copy of the intent identifier.
- * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+ * If an [intent][google.cloud.dialogflow.cx.v3.IntentInput] was provided as
+ * input, this field will contain a copy of the intent identifier. Format:
+ * `projects/<Project ID>/locations/<Location ID>/agents/<Agent
* ID>/intents/<Intent ID>`.
*
*
@@ -4198,7 +4302,8 @@ public com.google.protobuf.ByteString getTriggerIntentBytes() {
*
*
*
- * If [natural language speech audio][google.cloud.dialogflow.cx.v3.AudioInput] was provided as input,
+ * If [natural language speech
+ * audio][google.cloud.dialogflow.cx.v3.AudioInput] was provided as input,
* this field will contain the transcript for the audio.
*
*
@@ -4213,7 +4318,8 @@ public boolean hasTranscript() {
*
*
*
- * If [natural language speech audio][google.cloud.dialogflow.cx.v3.AudioInput] was provided as input,
+ * If [natural language speech
+ * audio][google.cloud.dialogflow.cx.v3.AudioInput] was provided as input,
* this field will contain the transcript for the audio.
*
*
@@ -4241,7 +4347,8 @@ public java.lang.String getTranscript() {
*
*
*
- * If [natural language speech audio][google.cloud.dialogflow.cx.v3.AudioInput] was provided as input,
+ * If [natural language speech
+ * audio][google.cloud.dialogflow.cx.v3.AudioInput] was provided as input,
* this field will contain the transcript for the audio.
*
*
@@ -4271,8 +4378,8 @@ public com.google.protobuf.ByteString getTranscriptBytes() {
*
*
*
- * If an [event][google.cloud.dialogflow.cx.v3.EventInput] was provided as input, this field will contain
- * the name of the event.
+ * If an [event][google.cloud.dialogflow.cx.v3.EventInput] was provided as
+ * input, this field will contain the name of the event.
*
*
* string trigger_event = 14;
@@ -4286,8 +4393,8 @@ public boolean hasTriggerEvent() {
*
*
*
- * If an [event][google.cloud.dialogflow.cx.v3.EventInput] was provided as input, this field will contain
- * the name of the event.
+ * If an [event][google.cloud.dialogflow.cx.v3.EventInput] was provided as
+ * input, this field will contain the name of the event.
*
*
* string trigger_event = 14;
@@ -4314,8 +4421,8 @@ public java.lang.String getTriggerEvent() {
*
*
*
- * If an [event][google.cloud.dialogflow.cx.v3.EventInput] was provided as input, this field will contain
- * the name of the event.
+ * If an [event][google.cloud.dialogflow.cx.v3.EventInput] was provided as
+ * input, this field will contain the name of the event.
*
*
* string trigger_event = 14;
@@ -4340,7 +4447,9 @@ public com.google.protobuf.ByteString getTriggerEventBytes() {
}
public static final int LANGUAGE_CODE_FIELD_NUMBER = 15;
- private volatile java.lang.Object languageCode_;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object languageCode_ = "";
/**
*
*
@@ -4442,7 +4551,9 @@ public com.google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo getFulfi
@java.lang.Override
public com.google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfoOrBuilder
getFulfillmentInfoOrBuilder() {
- return getFulfillmentInfo();
+ return fulfillmentInfo_ == null
+ ? com.google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo.getDefaultInstance()
+ : fulfillmentInfo_;
}
public static final int INTENT_INFO_FIELD_NUMBER = 3;
@@ -4491,7 +4602,9 @@ public com.google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo getIntentInfo
@java.lang.Override
public com.google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfoOrBuilder
getIntentInfoOrBuilder() {
- return getIntentInfo();
+ return intentInfo_ == null
+ ? com.google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.getDefaultInstance()
+ : intentInfo_;
}
public static final int PAGE_INFO_FIELD_NUMBER = 4;
@@ -4539,7 +4652,9 @@ public com.google.cloud.dialogflow.cx.v3.PageInfo getPageInfo() {
*/
@java.lang.Override
public com.google.cloud.dialogflow.cx.v3.PageInfoOrBuilder getPageInfoOrBuilder() {
- return getPageInfo();
+ return pageInfo_ == null
+ ? com.google.cloud.dialogflow.cx.v3.PageInfo.getDefaultInstance()
+ : pageInfo_;
}
public static final int SESSION_INFO_FIELD_NUMBER = 5;
@@ -4587,10 +4702,14 @@ public com.google.cloud.dialogflow.cx.v3.SessionInfo getSessionInfo() {
*/
@java.lang.Override
public com.google.cloud.dialogflow.cx.v3.SessionInfoOrBuilder getSessionInfoOrBuilder() {
- return getSessionInfo();
+ return sessionInfo_ == null
+ ? com.google.cloud.dialogflow.cx.v3.SessionInfo.getDefaultInstance()
+ : sessionInfo_;
}
public static final int MESSAGES_FIELD_NUMBER = 7;
+
+ @SuppressWarnings("serial")
private java.util.List messages_;
/**
*
@@ -4676,7 +4795,8 @@ public com.google.cloud.dialogflow.cx.v3.ResponseMessageOrBuilder getMessagesOrB
*
*
*
- * Custom data set in [QueryParameters.payload][google.cloud.dialogflow.cx.v3.QueryParameters.payload].
+ * Custom data set in
+ * [QueryParameters.payload][google.cloud.dialogflow.cx.v3.QueryParameters.payload].
*
*
* .google.protobuf.Struct payload = 8;
@@ -4691,7 +4811,8 @@ public boolean hasPayload() {
*
*
*
- * Custom data set in [QueryParameters.payload][google.cloud.dialogflow.cx.v3.QueryParameters.payload].
+ * Custom data set in
+ * [QueryParameters.payload][google.cloud.dialogflow.cx.v3.QueryParameters.payload].
*
*
* .google.protobuf.Struct payload = 8;
@@ -4706,14 +4827,15 @@ public com.google.protobuf.Struct getPayload() {
*
*
*
- * Custom data set in [QueryParameters.payload][google.cloud.dialogflow.cx.v3.QueryParameters.payload].
+ * Custom data set in
+ * [QueryParameters.payload][google.cloud.dialogflow.cx.v3.QueryParameters.payload].
*
*
* .google.protobuf.Struct payload = 8;
*/
@java.lang.Override
public com.google.protobuf.StructOrBuilder getPayloadOrBuilder() {
- return getPayload();
+ return payload_ == null ? com.google.protobuf.Struct.getDefaultInstance() : payload_;
}
public static final int SENTIMENT_ANALYSIS_RESULT_FIELD_NUMBER = 9;
@@ -4774,7 +4896,10 @@ public boolean hasSentimentAnalysisResult() {
@java.lang.Override
public com.google.cloud.dialogflow.cx.v3.WebhookRequest.SentimentAnalysisResultOrBuilder
getSentimentAnalysisResultOrBuilder() {
- return getSentimentAnalysisResult();
+ return sentimentAnalysisResult_ == null
+ ? com.google.cloud.dialogflow.cx.v3.WebhookRequest.SentimentAnalysisResult
+ .getDefaultInstance()
+ : sentimentAnalysisResult_;
}
private byte memoizedIsInitialized = -1;
@@ -5143,32 +5268,27 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
@java.lang.Override
public Builder clear() {
super.clear();
+ bitField0_ = 0;
detectIntentResponseId_ = "";
-
languageCode_ = "";
-
- if (fulfillmentInfoBuilder_ == null) {
- fulfillmentInfo_ = null;
- } else {
- fulfillmentInfo_ = null;
+ fulfillmentInfo_ = null;
+ if (fulfillmentInfoBuilder_ != null) {
+ fulfillmentInfoBuilder_.dispose();
fulfillmentInfoBuilder_ = null;
}
- if (intentInfoBuilder_ == null) {
- intentInfo_ = null;
- } else {
- intentInfo_ = null;
+ intentInfo_ = null;
+ if (intentInfoBuilder_ != null) {
+ intentInfoBuilder_.dispose();
intentInfoBuilder_ = null;
}
- if (pageInfoBuilder_ == null) {
- pageInfo_ = null;
- } else {
- pageInfo_ = null;
+ pageInfo_ = null;
+ if (pageInfoBuilder_ != null) {
+ pageInfoBuilder_.dispose();
pageInfoBuilder_ = null;
}
- if (sessionInfoBuilder_ == null) {
- sessionInfo_ = null;
- } else {
- sessionInfo_ = null;
+ sessionInfo_ = null;
+ if (sessionInfoBuilder_ != null) {
+ sessionInfoBuilder_.dispose();
sessionInfoBuilder_ = null;
}
if (messagesBuilder_ == null) {
@@ -5177,17 +5297,15 @@ public Builder clear() {
messages_ = null;
messagesBuilder_.clear();
}
- bitField0_ = (bitField0_ & ~0x00000001);
- if (payloadBuilder_ == null) {
- payload_ = null;
- } else {
- payload_ = null;
+ bitField0_ = (bitField0_ & ~0x00000400);
+ payload_ = null;
+ if (payloadBuilder_ != null) {
+ payloadBuilder_.dispose();
payloadBuilder_ = null;
}
- if (sentimentAnalysisResultBuilder_ == null) {
- sentimentAnalysisResult_ = null;
- } else {
- sentimentAnalysisResult_ = null;
+ sentimentAnalysisResult_ = null;
+ if (sentimentAnalysisResultBuilder_ != null) {
+ sentimentAnalysisResultBuilder_.dispose();
sentimentAnalysisResultBuilder_ = null;
}
queryCase_ = 0;
@@ -5219,63 +5337,64 @@ public com.google.cloud.dialogflow.cx.v3.WebhookRequest build() {
public com.google.cloud.dialogflow.cx.v3.WebhookRequest buildPartial() {
com.google.cloud.dialogflow.cx.v3.WebhookRequest result =
new com.google.cloud.dialogflow.cx.v3.WebhookRequest(this);
- int from_bitField0_ = bitField0_;
- result.detectIntentResponseId_ = detectIntentResponseId_;
- if (queryCase_ == 10) {
- result.query_ = query_;
- }
- if (queryCase_ == 11) {
- result.query_ = query_;
- }
- if (queryCase_ == 12) {
- result.query_ = query_;
- }
- if (queryCase_ == 14) {
- result.query_ = query_;
- }
- result.languageCode_ = languageCode_;
- if (fulfillmentInfoBuilder_ == null) {
- result.fulfillmentInfo_ = fulfillmentInfo_;
- } else {
- result.fulfillmentInfo_ = fulfillmentInfoBuilder_.build();
- }
- if (intentInfoBuilder_ == null) {
- result.intentInfo_ = intentInfo_;
- } else {
- result.intentInfo_ = intentInfoBuilder_.build();
- }
- if (pageInfoBuilder_ == null) {
- result.pageInfo_ = pageInfo_;
- } else {
- result.pageInfo_ = pageInfoBuilder_.build();
- }
- if (sessionInfoBuilder_ == null) {
- result.sessionInfo_ = sessionInfo_;
- } else {
- result.sessionInfo_ = sessionInfoBuilder_.build();
+ buildPartialRepeatedFields(result);
+ if (bitField0_ != 0) {
+ buildPartial0(result);
}
+ buildPartialOneofs(result);
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartialRepeatedFields(
+ com.google.cloud.dialogflow.cx.v3.WebhookRequest result) {
if (messagesBuilder_ == null) {
- if (((bitField0_ & 0x00000001) != 0)) {
+ if (((bitField0_ & 0x00000400) != 0)) {
messages_ = java.util.Collections.unmodifiableList(messages_);
- bitField0_ = (bitField0_ & ~0x00000001);
+ bitField0_ = (bitField0_ & ~0x00000400);
}
result.messages_ = messages_;
} else {
result.messages_ = messagesBuilder_.build();
}
- if (payloadBuilder_ == null) {
- result.payload_ = payload_;
- } else {
- result.payload_ = payloadBuilder_.build();
+ }
+
+ private void buildPartial0(com.google.cloud.dialogflow.cx.v3.WebhookRequest result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.detectIntentResponseId_ = detectIntentResponseId_;
}
- if (sentimentAnalysisResultBuilder_ == null) {
- result.sentimentAnalysisResult_ = sentimentAnalysisResult_;
- } else {
- result.sentimentAnalysisResult_ = sentimentAnalysisResultBuilder_.build();
+ if (((from_bitField0_ & 0x00000020) != 0)) {
+ result.languageCode_ = languageCode_;
+ }
+ if (((from_bitField0_ & 0x00000040) != 0)) {
+ result.fulfillmentInfo_ =
+ fulfillmentInfoBuilder_ == null ? fulfillmentInfo_ : fulfillmentInfoBuilder_.build();
+ }
+ if (((from_bitField0_ & 0x00000080) != 0)) {
+ result.intentInfo_ = intentInfoBuilder_ == null ? intentInfo_ : intentInfoBuilder_.build();
+ }
+ if (((from_bitField0_ & 0x00000100) != 0)) {
+ result.pageInfo_ = pageInfoBuilder_ == null ? pageInfo_ : pageInfoBuilder_.build();
}
+ if (((from_bitField0_ & 0x00000200) != 0)) {
+ result.sessionInfo_ =
+ sessionInfoBuilder_ == null ? sessionInfo_ : sessionInfoBuilder_.build();
+ }
+ if (((from_bitField0_ & 0x00000800) != 0)) {
+ result.payload_ = payloadBuilder_ == null ? payload_ : payloadBuilder_.build();
+ }
+ if (((from_bitField0_ & 0x00001000) != 0)) {
+ result.sentimentAnalysisResult_ =
+ sentimentAnalysisResultBuilder_ == null
+ ? sentimentAnalysisResult_
+ : sentimentAnalysisResultBuilder_.build();
+ }
+ }
+
+ private void buildPartialOneofs(com.google.cloud.dialogflow.cx.v3.WebhookRequest result) {
result.queryCase_ = queryCase_;
- onBuilt();
- return result;
+ result.query_ = this.query_;
}
@java.lang.Override
@@ -5326,10 +5445,12 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.WebhookRequest other)
return this;
if (!other.getDetectIntentResponseId().isEmpty()) {
detectIntentResponseId_ = other.detectIntentResponseId_;
+ bitField0_ |= 0x00000001;
onChanged();
}
if (!other.getLanguageCode().isEmpty()) {
languageCode_ = other.languageCode_;
+ bitField0_ |= 0x00000020;
onChanged();
}
if (other.hasFulfillmentInfo()) {
@@ -5348,7 +5469,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.WebhookRequest other)
if (!other.messages_.isEmpty()) {
if (messages_.isEmpty()) {
messages_ = other.messages_;
- bitField0_ = (bitField0_ & ~0x00000001);
+ bitField0_ = (bitField0_ & ~0x00000400);
} else {
ensureMessagesIsMutable();
messages_.addAll(other.messages_);
@@ -5361,7 +5482,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.WebhookRequest other)
messagesBuilder_.dispose();
messagesBuilder_ = null;
messages_ = other.messages_;
- bitField0_ = (bitField0_ & ~0x00000001);
+ bitField0_ = (bitField0_ & ~0x00000400);
messagesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
? getMessagesFieldBuilder()
@@ -5440,31 +5561,31 @@ public Builder mergeFrom(
case 10:
{
detectIntentResponseId_ = input.readStringRequireUtf8();
-
+ bitField0_ |= 0x00000001;
break;
} // case 10
case 26:
{
input.readMessage(getIntentInfoFieldBuilder().getBuilder(), extensionRegistry);
-
+ bitField0_ |= 0x00000080;
break;
} // case 26
case 34:
{
input.readMessage(getPageInfoFieldBuilder().getBuilder(), extensionRegistry);
-
+ bitField0_ |= 0x00000100;
break;
} // case 34
case 42:
{
input.readMessage(getSessionInfoFieldBuilder().getBuilder(), extensionRegistry);
-
+ bitField0_ |= 0x00000200;
break;
} // case 42
case 50:
{
input.readMessage(getFulfillmentInfoFieldBuilder().getBuilder(), extensionRegistry);
-
+ bitField0_ |= 0x00000040;
break;
} // case 50
case 58:
@@ -5484,14 +5605,14 @@ public Builder mergeFrom(
case 66:
{
input.readMessage(getPayloadFieldBuilder().getBuilder(), extensionRegistry);
-
+ bitField0_ |= 0x00000800;
break;
} // case 66
case 74:
{
input.readMessage(
getSentimentAnalysisResultFieldBuilder().getBuilder(), extensionRegistry);
-
+ bitField0_ |= 0x00001000;
break;
} // case 74
case 82:
@@ -5525,7 +5646,7 @@ public Builder mergeFrom(
case 122:
{
languageCode_ = input.readStringRequireUtf8();
-
+ bitField0_ |= 0x00000020;
break;
} // case 122
default:
@@ -5566,8 +5687,9 @@ public Builder clearQuery() {
*
*
*
- * Always present. The unique identifier of the [DetectIntentResponse][google.cloud.dialogflow.cx.v3.DetectIntentResponse] that
- * will be returned to the API caller.
+ * Always present. The unique identifier of the
+ * [DetectIntentResponse][google.cloud.dialogflow.cx.v3.DetectIntentResponse]
+ * that will be returned to the API caller.
*
*
* string detect_intent_response_id = 1;
@@ -5589,8 +5711,9 @@ public java.lang.String getDetectIntentResponseId() {
*
*
*
- * Always present. The unique identifier of the [DetectIntentResponse][google.cloud.dialogflow.cx.v3.DetectIntentResponse] that
- * will be returned to the API caller.
+ * Always present. The unique identifier of the
+ * [DetectIntentResponse][google.cloud.dialogflow.cx.v3.DetectIntentResponse]
+ * that will be returned to the API caller.
*
*
* string detect_intent_response_id = 1;
@@ -5612,8 +5735,9 @@ public com.google.protobuf.ByteString getDetectIntentResponseIdBytes() {
*
*
*
- * Always present. The unique identifier of the [DetectIntentResponse][google.cloud.dialogflow.cx.v3.DetectIntentResponse] that
- * will be returned to the API caller.
+ * Always present. The unique identifier of the
+ * [DetectIntentResponse][google.cloud.dialogflow.cx.v3.DetectIntentResponse]
+ * that will be returned to the API caller.
*
*
* string detect_intent_response_id = 1;
@@ -5625,8 +5749,8 @@ public Builder setDetectIntentResponseId(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
-
detectIntentResponseId_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -5634,8 +5758,9 @@ public Builder setDetectIntentResponseId(java.lang.String value) {
*
*
*
- * Always present. The unique identifier of the [DetectIntentResponse][google.cloud.dialogflow.cx.v3.DetectIntentResponse] that
- * will be returned to the API caller.
+ * Always present. The unique identifier of the
+ * [DetectIntentResponse][google.cloud.dialogflow.cx.v3.DetectIntentResponse]
+ * that will be returned to the API caller.
*
*
* string detect_intent_response_id = 1;
@@ -5643,8 +5768,8 @@ public Builder setDetectIntentResponseId(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearDetectIntentResponseId() {
-
detectIntentResponseId_ = getDefaultInstance().getDetectIntentResponseId();
+ bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
@@ -5652,8 +5777,9 @@ public Builder clearDetectIntentResponseId() {
*
*
*
- * Always present. The unique identifier of the [DetectIntentResponse][google.cloud.dialogflow.cx.v3.DetectIntentResponse] that
- * will be returned to the API caller.
+ * Always present. The unique identifier of the
+ * [DetectIntentResponse][google.cloud.dialogflow.cx.v3.DetectIntentResponse]
+ * that will be returned to the API caller.
*
*
* string detect_intent_response_id = 1;
@@ -5666,8 +5792,8 @@ public Builder setDetectIntentResponseIdBytes(com.google.protobuf.ByteString val
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
-
detectIntentResponseId_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -5676,8 +5802,8 @@ public Builder setDetectIntentResponseIdBytes(com.google.protobuf.ByteString val
*
*
*
- * If [natural language text][google.cloud.dialogflow.cx.v3.TextInput] was provided as input, this field
- * will contain a copy of the text.
+ * If [natural language text][google.cloud.dialogflow.cx.v3.TextInput] was
+ * provided as input, this field will contain a copy of the text.
*
*
* string text = 10;
@@ -5692,8 +5818,8 @@ public boolean hasText() {
*
*
*
- * If [natural language text][google.cloud.dialogflow.cx.v3.TextInput] was provided as input, this field
- * will contain a copy of the text.
+ * If [natural language text][google.cloud.dialogflow.cx.v3.TextInput] was
+ * provided as input, this field will contain a copy of the text.
*
*
* string text = 10;
@@ -5721,8 +5847,8 @@ public java.lang.String getText() {
*
*
*
- * If [natural language text][google.cloud.dialogflow.cx.v3.TextInput] was provided as input, this field
- * will contain a copy of the text.
+ * If [natural language text][google.cloud.dialogflow.cx.v3.TextInput] was
+ * provided as input, this field will contain a copy of the text.
*
*
* string text = 10;
@@ -5750,8 +5876,8 @@ public com.google.protobuf.ByteString getTextBytes() {
*
*
*
- * If [natural language text][google.cloud.dialogflow.cx.v3.TextInput] was provided as input, this field
- * will contain a copy of the text.
+ * If [natural language text][google.cloud.dialogflow.cx.v3.TextInput] was
+ * provided as input, this field will contain a copy of the text.
*
*
* string text = 10;
@@ -5772,8 +5898,8 @@ public Builder setText(java.lang.String value) {
*
*
*
- * If [natural language text][google.cloud.dialogflow.cx.v3.TextInput] was provided as input, this field
- * will contain a copy of the text.
+ * If [natural language text][google.cloud.dialogflow.cx.v3.TextInput] was
+ * provided as input, this field will contain a copy of the text.
*
*
* string text = 10;
@@ -5792,8 +5918,8 @@ public Builder clearText() {
*
*
*
- * If [natural language text][google.cloud.dialogflow.cx.v3.TextInput] was provided as input, this field
- * will contain a copy of the text.
+ * If [natural language text][google.cloud.dialogflow.cx.v3.TextInput] was
+ * provided as input, this field will contain a copy of the text.
*
*
* string text = 10;
@@ -5816,9 +5942,9 @@ public Builder setTextBytes(com.google.protobuf.ByteString value) {
*
*
*
- * If an [intent][google.cloud.dialogflow.cx.v3.IntentInput] was provided as input, this field will
- * contain a copy of the intent identifier.
- * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+ * If an [intent][google.cloud.dialogflow.cx.v3.IntentInput] was provided as
+ * input, this field will contain a copy of the intent identifier. Format:
+ * `projects/<Project ID>/locations/<Location ID>/agents/<Agent
* ID>/intents/<Intent ID>`.
*
*
@@ -5834,9 +5960,9 @@ public boolean hasTriggerIntent() {
*
*
*
- * If an [intent][google.cloud.dialogflow.cx.v3.IntentInput] was provided as input, this field will
- * contain a copy of the intent identifier.
- * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+ * If an [intent][google.cloud.dialogflow.cx.v3.IntentInput] was provided as
+ * input, this field will contain a copy of the intent identifier. Format:
+ * `projects/<Project ID>/locations/<Location ID>/agents/<Agent
* ID>/intents/<Intent ID>`.
*
*
@@ -5865,9 +5991,9 @@ public java.lang.String getTriggerIntent() {
*
*
*
- * If an [intent][google.cloud.dialogflow.cx.v3.IntentInput] was provided as input, this field will
- * contain a copy of the intent identifier.
- * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+ * If an [intent][google.cloud.dialogflow.cx.v3.IntentInput] was provided as
+ * input, this field will contain a copy of the intent identifier. Format:
+ * `projects/<Project ID>/locations/<Location ID>/agents/<Agent
* ID>/intents/<Intent ID>`.
*
*
@@ -5896,9 +6022,9 @@ public com.google.protobuf.ByteString getTriggerIntentBytes() {
*
*
*
- * If an [intent][google.cloud.dialogflow.cx.v3.IntentInput] was provided as input, this field will
- * contain a copy of the intent identifier.
- * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+ * If an [intent][google.cloud.dialogflow.cx.v3.IntentInput] was provided as
+ * input, this field will contain a copy of the intent identifier. Format:
+ * `projects/<Project ID>/locations/<Location ID>/agents/<Agent
* ID>/intents/<Intent ID>`.
*
*
@@ -5920,9 +6046,9 @@ public Builder setTriggerIntent(java.lang.String value) {
*
*
*
- * If an [intent][google.cloud.dialogflow.cx.v3.IntentInput] was provided as input, this field will
- * contain a copy of the intent identifier.
- * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+ * If an [intent][google.cloud.dialogflow.cx.v3.IntentInput] was provided as
+ * input, this field will contain a copy of the intent identifier. Format:
+ * `projects/<Project ID>/locations/<Location ID>/agents/<Agent
* ID>/intents/<Intent ID>`.
*
*
@@ -5942,9 +6068,9 @@ public Builder clearTriggerIntent() {
*
*
*
- * If an [intent][google.cloud.dialogflow.cx.v3.IntentInput] was provided as input, this field will
- * contain a copy of the intent identifier.
- * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+ * If an [intent][google.cloud.dialogflow.cx.v3.IntentInput] was provided as
+ * input, this field will contain a copy of the intent identifier. Format:
+ * `projects/<Project ID>/locations/<Location ID>/agents/<Agent
* ID>/intents/<Intent ID>`.
*
*
@@ -5968,7 +6094,8 @@ public Builder setTriggerIntentBytes(com.google.protobuf.ByteString value) {
*
*
*
- * If [natural language speech audio][google.cloud.dialogflow.cx.v3.AudioInput] was provided as input,
+ * If [natural language speech
+ * audio][google.cloud.dialogflow.cx.v3.AudioInput] was provided as input,
* this field will contain the transcript for the audio.
*
*
@@ -5984,7 +6111,8 @@ public boolean hasTranscript() {
*
*
*
- * If [natural language speech audio][google.cloud.dialogflow.cx.v3.AudioInput] was provided as input,
+ * If [natural language speech
+ * audio][google.cloud.dialogflow.cx.v3.AudioInput] was provided as input,
* this field will contain the transcript for the audio.
*
*
@@ -6013,7 +6141,8 @@ public java.lang.String getTranscript() {
*
*
*
- * If [natural language speech audio][google.cloud.dialogflow.cx.v3.AudioInput] was provided as input,
+ * If [natural language speech
+ * audio][google.cloud.dialogflow.cx.v3.AudioInput] was provided as input,
* this field will contain the transcript for the audio.
*
*
@@ -6042,7 +6171,8 @@ public com.google.protobuf.ByteString getTranscriptBytes() {
*
*
*
- * If [natural language speech audio][google.cloud.dialogflow.cx.v3.AudioInput] was provided as input,
+ * If [natural language speech
+ * audio][google.cloud.dialogflow.cx.v3.AudioInput] was provided as input,
* this field will contain the transcript for the audio.
*
*
@@ -6064,7 +6194,8 @@ public Builder setTranscript(java.lang.String value) {
*
*
*
- * If [natural language speech audio][google.cloud.dialogflow.cx.v3.AudioInput] was provided as input,
+ * If [natural language speech
+ * audio][google.cloud.dialogflow.cx.v3.AudioInput] was provided as input,
* this field will contain the transcript for the audio.
*
*
@@ -6084,7 +6215,8 @@ public Builder clearTranscript() {
*
*
*
- * If [natural language speech audio][google.cloud.dialogflow.cx.v3.AudioInput] was provided as input,
+ * If [natural language speech
+ * audio][google.cloud.dialogflow.cx.v3.AudioInput] was provided as input,
* this field will contain the transcript for the audio.
*
*
@@ -6108,8 +6240,8 @@ public Builder setTranscriptBytes(com.google.protobuf.ByteString value) {
*
*
*
- * If an [event][google.cloud.dialogflow.cx.v3.EventInput] was provided as input, this field will contain
- * the name of the event.
+ * If an [event][google.cloud.dialogflow.cx.v3.EventInput] was provided as
+ * input, this field will contain the name of the event.
*
*
* string trigger_event = 14;
@@ -6124,8 +6256,8 @@ public boolean hasTriggerEvent() {
*
*
*
- * If an [event][google.cloud.dialogflow.cx.v3.EventInput] was provided as input, this field will contain
- * the name of the event.
+ * If an [event][google.cloud.dialogflow.cx.v3.EventInput] was provided as
+ * input, this field will contain the name of the event.
*
*
* string trigger_event = 14;
@@ -6153,8 +6285,8 @@ public java.lang.String getTriggerEvent() {
*
*
*
- * If an [event][google.cloud.dialogflow.cx.v3.EventInput] was provided as input, this field will contain
- * the name of the event.
+ * If an [event][google.cloud.dialogflow.cx.v3.EventInput] was provided as
+ * input, this field will contain the name of the event.
*
*
* string trigger_event = 14;
@@ -6182,8 +6314,8 @@ public com.google.protobuf.ByteString getTriggerEventBytes() {
*
*
*
- * If an [event][google.cloud.dialogflow.cx.v3.EventInput] was provided as input, this field will contain
- * the name of the event.
+ * If an [event][google.cloud.dialogflow.cx.v3.EventInput] was provided as
+ * input, this field will contain the name of the event.
*
*
* string trigger_event = 14;
@@ -6204,8 +6336,8 @@ public Builder setTriggerEvent(java.lang.String value) {
*
*
*
- * If an [event][google.cloud.dialogflow.cx.v3.EventInput] was provided as input, this field will contain
- * the name of the event.
+ * If an [event][google.cloud.dialogflow.cx.v3.EventInput] was provided as
+ * input, this field will contain the name of the event.
*
*
* string trigger_event = 14;
@@ -6224,8 +6356,8 @@ public Builder clearTriggerEvent() {
*
*
*
- * If an [event][google.cloud.dialogflow.cx.v3.EventInput] was provided as input, this field will contain
- * the name of the event.
+ * If an [event][google.cloud.dialogflow.cx.v3.EventInput] was provided as
+ * input, this field will contain the name of the event.
*
*
* string trigger_event = 14;
@@ -6308,8 +6440,8 @@ public Builder setLanguageCode(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
-
languageCode_ = value;
+ bitField0_ |= 0x00000020;
onChanged();
return this;
}
@@ -6326,8 +6458,8 @@ public Builder setLanguageCode(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearLanguageCode() {
-
languageCode_ = getDefaultInstance().getLanguageCode();
+ bitField0_ = (bitField0_ & ~0x00000020);
onChanged();
return this;
}
@@ -6349,8 +6481,8 @@ public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
-
languageCode_ = value;
+ bitField0_ |= 0x00000020;
onChanged();
return this;
}
@@ -6375,7 +6507,7 @@ public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) {
* @return Whether the fulfillmentInfo field is set.
*/
public boolean hasFulfillmentInfo() {
- return fulfillmentInfoBuilder_ != null || fulfillmentInfo_ != null;
+ return ((bitField0_ & 0x00000040) != 0);
}
/**
*
@@ -6417,11 +6549,11 @@ public Builder setFulfillmentInfo(
throw new NullPointerException();
}
fulfillmentInfo_ = value;
- onChanged();
} else {
fulfillmentInfoBuilder_.setMessage(value);
}
-
+ bitField0_ |= 0x00000040;
+ onChanged();
return this;
}
/**
@@ -6439,11 +6571,11 @@ public Builder setFulfillmentInfo(
com.google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo.Builder builderForValue) {
if (fulfillmentInfoBuilder_ == null) {
fulfillmentInfo_ = builderForValue.build();
- onChanged();
} else {
fulfillmentInfoBuilder_.setMessage(builderForValue.build());
}
-
+ bitField0_ |= 0x00000040;
+ onChanged();
return this;
}
/**
@@ -6460,20 +6592,20 @@ public Builder setFulfillmentInfo(
public Builder mergeFulfillmentInfo(
com.google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo value) {
if (fulfillmentInfoBuilder_ == null) {
- if (fulfillmentInfo_ != null) {
- fulfillmentInfo_ =
- com.google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo.newBuilder(
- fulfillmentInfo_)
- .mergeFrom(value)
- .buildPartial();
+ if (((bitField0_ & 0x00000040) != 0)
+ && fulfillmentInfo_ != null
+ && fulfillmentInfo_
+ != com.google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo
+ .getDefaultInstance()) {
+ getFulfillmentInfoBuilder().mergeFrom(value);
} else {
fulfillmentInfo_ = value;
}
- onChanged();
} else {
fulfillmentInfoBuilder_.mergeFrom(value);
}
-
+ bitField0_ |= 0x00000040;
+ onChanged();
return this;
}
/**
@@ -6488,14 +6620,13 @@ public Builder mergeFulfillmentInfo(
*
*/
public Builder clearFulfillmentInfo() {
- if (fulfillmentInfoBuilder_ == null) {
- fulfillmentInfo_ = null;
- onChanged();
- } else {
- fulfillmentInfo_ = null;
+ bitField0_ = (bitField0_ & ~0x00000040);
+ fulfillmentInfo_ = null;
+ if (fulfillmentInfoBuilder_ != null) {
+ fulfillmentInfoBuilder_.dispose();
fulfillmentInfoBuilder_ = null;
}
-
+ onChanged();
return this;
}
/**
@@ -6511,7 +6642,7 @@ public Builder clearFulfillmentInfo() {
*/
public com.google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo.Builder
getFulfillmentInfoBuilder() {
-
+ bitField0_ |= 0x00000040;
onChanged();
return getFulfillmentInfoFieldBuilder().getBuilder();
}
@@ -6582,7 +6713,7 @@ public Builder clearFulfillmentInfo() {
* @return Whether the intentInfo field is set.
*/
public boolean hasIntentInfo() {
- return intentInfoBuilder_ != null || intentInfo_ != null;
+ return ((bitField0_ & 0x00000080) != 0);
}
/**
*
@@ -6620,11 +6751,11 @@ public Builder setIntentInfo(
throw new NullPointerException();
}
intentInfo_ = value;
- onChanged();
} else {
intentInfoBuilder_.setMessage(value);
}
-
+ bitField0_ |= 0x00000080;
+ onChanged();
return this;
}
/**
@@ -6640,11 +6771,11 @@ public Builder setIntentInfo(
com.google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.Builder builderForValue) {
if (intentInfoBuilder_ == null) {
intentInfo_ = builderForValue.build();
- onChanged();
} else {
intentInfoBuilder_.setMessage(builderForValue.build());
}
-
+ bitField0_ |= 0x00000080;
+ onChanged();
return this;
}
/**
@@ -6659,19 +6790,20 @@ public Builder setIntentInfo(
public Builder mergeIntentInfo(
com.google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo value) {
if (intentInfoBuilder_ == null) {
- if (intentInfo_ != null) {
- intentInfo_ =
- com.google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.newBuilder(intentInfo_)
- .mergeFrom(value)
- .buildPartial();
+ if (((bitField0_ & 0x00000080) != 0)
+ && intentInfo_ != null
+ && intentInfo_
+ != com.google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo
+ .getDefaultInstance()) {
+ getIntentInfoBuilder().mergeFrom(value);
} else {
intentInfo_ = value;
}
- onChanged();
} else {
intentInfoBuilder_.mergeFrom(value);
}
-
+ bitField0_ |= 0x00000080;
+ onChanged();
return this;
}
/**
@@ -6684,14 +6816,13 @@ public Builder mergeIntentInfo(
* .google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo intent_info = 3;
*/
public Builder clearIntentInfo() {
- if (intentInfoBuilder_ == null) {
- intentInfo_ = null;
- onChanged();
- } else {
- intentInfo_ = null;
+ bitField0_ = (bitField0_ & ~0x00000080);
+ intentInfo_ = null;
+ if (intentInfoBuilder_ != null) {
+ intentInfoBuilder_.dispose();
intentInfoBuilder_ = null;
}
-
+ onChanged();
return this;
}
/**
@@ -6705,7 +6836,7 @@ public Builder clearIntentInfo() {
*/
public com.google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.Builder
getIntentInfoBuilder() {
-
+ bitField0_ |= 0x00000080;
onChanged();
return getIntentInfoFieldBuilder().getBuilder();
}
@@ -6772,7 +6903,7 @@ public Builder clearIntentInfo() {
* @return Whether the pageInfo field is set.
*/
public boolean hasPageInfo() {
- return pageInfoBuilder_ != null || pageInfo_ != null;
+ return ((bitField0_ & 0x00000100) != 0);
}
/**
*
@@ -6809,11 +6940,11 @@ public Builder setPageInfo(com.google.cloud.dialogflow.cx.v3.PageInfo value) {
throw new NullPointerException();
}
pageInfo_ = value;
- onChanged();
} else {
pageInfoBuilder_.setMessage(value);
}
-
+ bitField0_ |= 0x00000100;
+ onChanged();
return this;
}
/**
@@ -6828,11 +6959,11 @@ public Builder setPageInfo(com.google.cloud.dialogflow.cx.v3.PageInfo value) {
public Builder setPageInfo(com.google.cloud.dialogflow.cx.v3.PageInfo.Builder builderForValue) {
if (pageInfoBuilder_ == null) {
pageInfo_ = builderForValue.build();
- onChanged();
} else {
pageInfoBuilder_.setMessage(builderForValue.build());
}
-
+ bitField0_ |= 0x00000100;
+ onChanged();
return this;
}
/**
@@ -6846,19 +6977,18 @@ public Builder setPageInfo(com.google.cloud.dialogflow.cx.v3.PageInfo.Builder bu
*/
public Builder mergePageInfo(com.google.cloud.dialogflow.cx.v3.PageInfo value) {
if (pageInfoBuilder_ == null) {
- if (pageInfo_ != null) {
- pageInfo_ =
- com.google.cloud.dialogflow.cx.v3.PageInfo.newBuilder(pageInfo_)
- .mergeFrom(value)
- .buildPartial();
+ if (((bitField0_ & 0x00000100) != 0)
+ && pageInfo_ != null
+ && pageInfo_ != com.google.cloud.dialogflow.cx.v3.PageInfo.getDefaultInstance()) {
+ getPageInfoBuilder().mergeFrom(value);
} else {
pageInfo_ = value;
}
- onChanged();
} else {
pageInfoBuilder_.mergeFrom(value);
}
-
+ bitField0_ |= 0x00000100;
+ onChanged();
return this;
}
/**
@@ -6871,14 +7001,13 @@ public Builder mergePageInfo(com.google.cloud.dialogflow.cx.v3.PageInfo value) {
* .google.cloud.dialogflow.cx.v3.PageInfo page_info = 4;
*/
public Builder clearPageInfo() {
- if (pageInfoBuilder_ == null) {
- pageInfo_ = null;
- onChanged();
- } else {
- pageInfo_ = null;
+ bitField0_ = (bitField0_ & ~0x00000100);
+ pageInfo_ = null;
+ if (pageInfoBuilder_ != null) {
+ pageInfoBuilder_.dispose();
pageInfoBuilder_ = null;
}
-
+ onChanged();
return this;
}
/**
@@ -6891,7 +7020,7 @@ public Builder clearPageInfo() {
* .google.cloud.dialogflow.cx.v3.PageInfo page_info = 4;
*/
public com.google.cloud.dialogflow.cx.v3.PageInfo.Builder getPageInfoBuilder() {
-
+ bitField0_ |= 0x00000100;
onChanged();
return getPageInfoFieldBuilder().getBuilder();
}
@@ -6957,7 +7086,7 @@ public com.google.cloud.dialogflow.cx.v3.PageInfoOrBuilder getPageInfoOrBuilder(
* @return Whether the sessionInfo field is set.
*/
public boolean hasSessionInfo() {
- return sessionInfoBuilder_ != null || sessionInfo_ != null;
+ return ((bitField0_ & 0x00000200) != 0);
}
/**
*
@@ -6994,11 +7123,11 @@ public Builder setSessionInfo(com.google.cloud.dialogflow.cx.v3.SessionInfo valu
throw new NullPointerException();
}
sessionInfo_ = value;
- onChanged();
} else {
sessionInfoBuilder_.setMessage(value);
}
-
+ bitField0_ |= 0x00000200;
+ onChanged();
return this;
}
/**
@@ -7014,11 +7143,11 @@ public Builder setSessionInfo(
com.google.cloud.dialogflow.cx.v3.SessionInfo.Builder builderForValue) {
if (sessionInfoBuilder_ == null) {
sessionInfo_ = builderForValue.build();
- onChanged();
} else {
sessionInfoBuilder_.setMessage(builderForValue.build());
}
-
+ bitField0_ |= 0x00000200;
+ onChanged();
return this;
}
/**
@@ -7032,19 +7161,18 @@ public Builder setSessionInfo(
*/
public Builder mergeSessionInfo(com.google.cloud.dialogflow.cx.v3.SessionInfo value) {
if (sessionInfoBuilder_ == null) {
- if (sessionInfo_ != null) {
- sessionInfo_ =
- com.google.cloud.dialogflow.cx.v3.SessionInfo.newBuilder(sessionInfo_)
- .mergeFrom(value)
- .buildPartial();
+ if (((bitField0_ & 0x00000200) != 0)
+ && sessionInfo_ != null
+ && sessionInfo_ != com.google.cloud.dialogflow.cx.v3.SessionInfo.getDefaultInstance()) {
+ getSessionInfoBuilder().mergeFrom(value);
} else {
sessionInfo_ = value;
}
- onChanged();
} else {
sessionInfoBuilder_.mergeFrom(value);
}
-
+ bitField0_ |= 0x00000200;
+ onChanged();
return this;
}
/**
@@ -7057,14 +7185,13 @@ public Builder mergeSessionInfo(com.google.cloud.dialogflow.cx.v3.SessionInfo va
* .google.cloud.dialogflow.cx.v3.SessionInfo session_info = 5;
*/
public Builder clearSessionInfo() {
- if (sessionInfoBuilder_ == null) {
- sessionInfo_ = null;
- onChanged();
- } else {
- sessionInfo_ = null;
+ bitField0_ = (bitField0_ & ~0x00000200);
+ sessionInfo_ = null;
+ if (sessionInfoBuilder_ != null) {
+ sessionInfoBuilder_.dispose();
sessionInfoBuilder_ = null;
}
-
+ onChanged();
return this;
}
/**
@@ -7077,7 +7204,7 @@ public Builder clearSessionInfo() {
* .google.cloud.dialogflow.cx.v3.SessionInfo session_info = 5;
*/
public com.google.cloud.dialogflow.cx.v3.SessionInfo.Builder getSessionInfoBuilder() {
-
+ bitField0_ |= 0x00000200;
onChanged();
return getSessionInfoFieldBuilder().getBuilder();
}
@@ -7129,10 +7256,10 @@ public com.google.cloud.dialogflow.cx.v3.SessionInfoOrBuilder getSessionInfoOrBu
java.util.Collections.emptyList();
private void ensureMessagesIsMutable() {
- if (!((bitField0_ & 0x00000001) != 0)) {
+ if (!((bitField0_ & 0x00000400) != 0)) {
messages_ =
new java.util.ArrayList(messages_);
- bitField0_ |= 0x00000001;
+ bitField0_ |= 0x00000400;
}
}
@@ -7370,7 +7497,7 @@ public Builder addAllMessages(
public Builder clearMessages() {
if (messagesBuilder_ == null) {
messages_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000001);
+ bitField0_ = (bitField0_ & ~0x00000400);
onChanged();
} else {
messagesBuilder_.clear();
@@ -7508,7 +7635,7 @@ public com.google.cloud.dialogflow.cx.v3.ResponseMessage.Builder addMessagesBuil
com.google.cloud.dialogflow.cx.v3.ResponseMessage,
com.google.cloud.dialogflow.cx.v3.ResponseMessage.Builder,
com.google.cloud.dialogflow.cx.v3.ResponseMessageOrBuilder>(
- messages_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
+ messages_, ((bitField0_ & 0x00000400) != 0), getParentForChildren(), isClean());
messages_ = null;
}
return messagesBuilder_;
@@ -7524,7 +7651,8 @@ public com.google.cloud.dialogflow.cx.v3.ResponseMessage.Builder addMessagesBuil
*
*
*
- * Custom data set in [QueryParameters.payload][google.cloud.dialogflow.cx.v3.QueryParameters.payload].
+ * Custom data set in
+ * [QueryParameters.payload][google.cloud.dialogflow.cx.v3.QueryParameters.payload].
*
*
* .google.protobuf.Struct payload = 8;
@@ -7532,13 +7660,14 @@ public com.google.cloud.dialogflow.cx.v3.ResponseMessage.Builder addMessagesBuil
* @return Whether the payload field is set.
*/
public boolean hasPayload() {
- return payloadBuilder_ != null || payload_ != null;
+ return ((bitField0_ & 0x00000800) != 0);
}
/**
*
*
*
- * Custom data set in [QueryParameters.payload][google.cloud.dialogflow.cx.v3.QueryParameters.payload].
+ * Custom data set in
+ * [QueryParameters.payload][google.cloud.dialogflow.cx.v3.QueryParameters.payload].
*
*
* .google.protobuf.Struct payload = 8;
@@ -7556,7 +7685,8 @@ public com.google.protobuf.Struct getPayload() {
*
*
*
- * Custom data set in [QueryParameters.payload][google.cloud.dialogflow.cx.v3.QueryParameters.payload].
+ * Custom data set in
+ * [QueryParameters.payload][google.cloud.dialogflow.cx.v3.QueryParameters.payload].
*
*
* .google.protobuf.Struct payload = 8;
@@ -7567,18 +7697,19 @@ public Builder setPayload(com.google.protobuf.Struct value) {
throw new NullPointerException();
}
payload_ = value;
- onChanged();
} else {
payloadBuilder_.setMessage(value);
}
-
+ bitField0_ |= 0x00000800;
+ onChanged();
return this;
}
/**
*
*
*
- * Custom data set in [QueryParameters.payload][google.cloud.dialogflow.cx.v3.QueryParameters.payload].
+ * Custom data set in
+ * [QueryParameters.payload][google.cloud.dialogflow.cx.v3.QueryParameters.payload].
*
*
* .google.protobuf.Struct payload = 8;
@@ -7586,68 +7717,71 @@ public Builder setPayload(com.google.protobuf.Struct value) {
public Builder setPayload(com.google.protobuf.Struct.Builder builderForValue) {
if (payloadBuilder_ == null) {
payload_ = builderForValue.build();
- onChanged();
} else {
payloadBuilder_.setMessage(builderForValue.build());
}
-
+ bitField0_ |= 0x00000800;
+ onChanged();
return this;
}
/**
*
*
*
- * Custom data set in [QueryParameters.payload][google.cloud.dialogflow.cx.v3.QueryParameters.payload].
+ * Custom data set in
+ * [QueryParameters.payload][google.cloud.dialogflow.cx.v3.QueryParameters.payload].
*
*
* .google.protobuf.Struct payload = 8;
*/
public Builder mergePayload(com.google.protobuf.Struct value) {
if (payloadBuilder_ == null) {
- if (payload_ != null) {
- payload_ =
- com.google.protobuf.Struct.newBuilder(payload_).mergeFrom(value).buildPartial();
+ if (((bitField0_ & 0x00000800) != 0)
+ && payload_ != null
+ && payload_ != com.google.protobuf.Struct.getDefaultInstance()) {
+ getPayloadBuilder().mergeFrom(value);
} else {
payload_ = value;
}
- onChanged();
} else {
payloadBuilder_.mergeFrom(value);
}
-
+ bitField0_ |= 0x00000800;
+ onChanged();
return this;
}
/**
*
*
*
- * Custom data set in [QueryParameters.payload][google.cloud.dialogflow.cx.v3.QueryParameters.payload].
+ * Custom data set in
+ * [QueryParameters.payload][google.cloud.dialogflow.cx.v3.QueryParameters.payload].
*
*
* .google.protobuf.Struct payload = 8;
*/
public Builder clearPayload() {
- if (payloadBuilder_ == null) {
- payload_ = null;
- onChanged();
- } else {
- payload_ = null;
+ bitField0_ = (bitField0_ & ~0x00000800);
+ payload_ = null;
+ if (payloadBuilder_ != null) {
+ payloadBuilder_.dispose();
payloadBuilder_ = null;
}
-
+ onChanged();
return this;
}
/**
*
*
*
- * Custom data set in [QueryParameters.payload][google.cloud.dialogflow.cx.v3.QueryParameters.payload].
+ * Custom data set in
+ * [QueryParameters.payload][google.cloud.dialogflow.cx.v3.QueryParameters.payload].
*
*
* .google.protobuf.Struct payload = 8;
*/
public com.google.protobuf.Struct.Builder getPayloadBuilder() {
-
+ bitField0_ |= 0x00000800;
onChanged();
return getPayloadFieldBuilder().getBuilder();
}
@@ -7655,7 +7789,8 @@ public com.google.protobuf.Struct.Builder getPayloadBuilder() {
*
*
*
- * Custom data set in [QueryParameters.payload][google.cloud.dialogflow.cx.v3.QueryParameters.payload].
+ * Custom data set in
+ * [QueryParameters.payload][google.cloud.dialogflow.cx.v3.QueryParameters.payload].
*
*
* .google.protobuf.Struct payload = 8;
@@ -7671,7 +7806,8 @@ public com.google.protobuf.StructOrBuilder getPayloadOrBuilder() {
*
*
*
- * Custom data set in [QueryParameters.payload][google.cloud.dialogflow.cx.v3.QueryParameters.payload].
+ * Custom data set in
+ * [QueryParameters.payload][google.cloud.dialogflow.cx.v3.QueryParameters.payload].
*
*
* .google.protobuf.Struct payload = 8;
@@ -7715,7 +7851,7 @@ public com.google.protobuf.StructOrBuilder getPayloadOrBuilder() {
* @return Whether the sentimentAnalysisResult field is set.
*/
public boolean hasSentimentAnalysisResult() {
- return sentimentAnalysisResultBuilder_ != null || sentimentAnalysisResult_ != null;
+ return ((bitField0_ & 0x00001000) != 0);
}
/**
*
@@ -7761,11 +7897,11 @@ public Builder setSentimentAnalysisResult(
throw new NullPointerException();
}
sentimentAnalysisResult_ = value;
- onChanged();
} else {
sentimentAnalysisResultBuilder_.setMessage(value);
}
-
+ bitField0_ |= 0x00001000;
+ onChanged();
return this;
}
/**
@@ -7785,11 +7921,11 @@ public Builder setSentimentAnalysisResult(
builderForValue) {
if (sentimentAnalysisResultBuilder_ == null) {
sentimentAnalysisResult_ = builderForValue.build();
- onChanged();
} else {
sentimentAnalysisResultBuilder_.setMessage(builderForValue.build());
}
-
+ bitField0_ |= 0x00001000;
+ onChanged();
return this;
}
/**
@@ -7807,20 +7943,20 @@ public Builder setSentimentAnalysisResult(
public Builder mergeSentimentAnalysisResult(
com.google.cloud.dialogflow.cx.v3.WebhookRequest.SentimentAnalysisResult value) {
if (sentimentAnalysisResultBuilder_ == null) {
- if (sentimentAnalysisResult_ != null) {
- sentimentAnalysisResult_ =
- com.google.cloud.dialogflow.cx.v3.WebhookRequest.SentimentAnalysisResult.newBuilder(
- sentimentAnalysisResult_)
- .mergeFrom(value)
- .buildPartial();
+ if (((bitField0_ & 0x00001000) != 0)
+ && sentimentAnalysisResult_ != null
+ && sentimentAnalysisResult_
+ != com.google.cloud.dialogflow.cx.v3.WebhookRequest.SentimentAnalysisResult
+ .getDefaultInstance()) {
+ getSentimentAnalysisResultBuilder().mergeFrom(value);
} else {
sentimentAnalysisResult_ = value;
}
- onChanged();
} else {
sentimentAnalysisResultBuilder_.mergeFrom(value);
}
-
+ bitField0_ |= 0x00001000;
+ onChanged();
return this;
}
/**
@@ -7836,14 +7972,13 @@ public Builder mergeSentimentAnalysisResult(
*
*/
public Builder clearSentimentAnalysisResult() {
- if (sentimentAnalysisResultBuilder_ == null) {
- sentimentAnalysisResult_ = null;
- onChanged();
- } else {
- sentimentAnalysisResult_ = null;
+ bitField0_ = (bitField0_ & ~0x00001000);
+ sentimentAnalysisResult_ = null;
+ if (sentimentAnalysisResultBuilder_ != null) {
+ sentimentAnalysisResultBuilder_.dispose();
sentimentAnalysisResultBuilder_ = null;
}
-
+ onChanged();
return this;
}
/**
@@ -7860,7 +7995,7 @@ public Builder clearSentimentAnalysisResult() {
*/
public com.google.cloud.dialogflow.cx.v3.WebhookRequest.SentimentAnalysisResult.Builder
getSentimentAnalysisResultBuilder() {
-
+ bitField0_ |= 0x00001000;
onChanged();
return getSentimentAnalysisResultFieldBuilder().getBuilder();
}
diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/WebhookRequestOrBuilder.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/WebhookRequestOrBuilder.java
index e3683c1b8f59..d3ab944c7ec6 100644
--- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/WebhookRequestOrBuilder.java
+++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/WebhookRequestOrBuilder.java
@@ -27,8 +27,9 @@ public interface WebhookRequestOrBuilder
*
*
*
- * Always present. The unique identifier of the [DetectIntentResponse][google.cloud.dialogflow.cx.v3.DetectIntentResponse] that
- * will be returned to the API caller.
+ * Always present. The unique identifier of the
+ * [DetectIntentResponse][google.cloud.dialogflow.cx.v3.DetectIntentResponse]
+ * that will be returned to the API caller.
*
*
* string detect_intent_response_id = 1;
@@ -40,8 +41,9 @@ public interface WebhookRequestOrBuilder
*
*
*
- * Always present. The unique identifier of the [DetectIntentResponse][google.cloud.dialogflow.cx.v3.DetectIntentResponse] that
- * will be returned to the API caller.
+ * Always present. The unique identifier of the
+ * [DetectIntentResponse][google.cloud.dialogflow.cx.v3.DetectIntentResponse]
+ * that will be returned to the API caller.
*
*
* string detect_intent_response_id = 1;
@@ -54,8 +56,8 @@ public interface WebhookRequestOrBuilder
*
*
*
- * If [natural language text][google.cloud.dialogflow.cx.v3.TextInput] was provided as input, this field
- * will contain a copy of the text.
+ * If [natural language text][google.cloud.dialogflow.cx.v3.TextInput] was
+ * provided as input, this field will contain a copy of the text.
*
*
* string text = 10;
@@ -67,8 +69,8 @@ public interface WebhookRequestOrBuilder
*
*
*
- * If [natural language text][google.cloud.dialogflow.cx.v3.TextInput] was provided as input, this field
- * will contain a copy of the text.
+ * If [natural language text][google.cloud.dialogflow.cx.v3.TextInput] was
+ * provided as input, this field will contain a copy of the text.
*
*
* string text = 10;
@@ -80,8 +82,8 @@ public interface WebhookRequestOrBuilder
*
*
*
- * If [natural language text][google.cloud.dialogflow.cx.v3.TextInput] was provided as input, this field
- * will contain a copy of the text.
+ * If [natural language text][google.cloud.dialogflow.cx.v3.TextInput] was
+ * provided as input, this field will contain a copy of the text.
*
*
* string text = 10;
@@ -94,9 +96,9 @@ public interface WebhookRequestOrBuilder
*
*
*
- * If an [intent][google.cloud.dialogflow.cx.v3.IntentInput] was provided as input, this field will
- * contain a copy of the intent identifier.
- * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+ * If an [intent][google.cloud.dialogflow.cx.v3.IntentInput] was provided as
+ * input, this field will contain a copy of the intent identifier. Format:
+ * `projects/<Project ID>/locations/<Location ID>/agents/<Agent
* ID>/intents/<Intent ID>`.
*
*
@@ -109,9 +111,9 @@ public interface WebhookRequestOrBuilder
*
*
*
- * If an [intent][google.cloud.dialogflow.cx.v3.IntentInput] was provided as input, this field will
- * contain a copy of the intent identifier.
- * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+ * If an [intent][google.cloud.dialogflow.cx.v3.IntentInput] was provided as
+ * input, this field will contain a copy of the intent identifier. Format:
+ * `projects/<Project ID>/locations/<Location ID>/agents/<Agent
* ID>/intents/<Intent ID>`.
*
*
@@ -124,9 +126,9 @@ public interface WebhookRequestOrBuilder
*
*
*
- * If an [intent][google.cloud.dialogflow.cx.v3.IntentInput] was provided as input, this field will
- * contain a copy of the intent identifier.
- * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+ * If an [intent][google.cloud.dialogflow.cx.v3.IntentInput] was provided as
+ * input, this field will contain a copy of the intent identifier. Format:
+ * `projects/<Project ID>/locations/<Location ID>/agents/<Agent
* ID>/intents/<Intent ID>`.
*
*
@@ -140,7 +142,8 @@ public interface WebhookRequestOrBuilder
*
*
*
- * If [natural language speech audio][google.cloud.dialogflow.cx.v3.AudioInput] was provided as input,
+ * If [natural language speech
+ * audio][google.cloud.dialogflow.cx.v3.AudioInput] was provided as input,
* this field will contain the transcript for the audio.
*
*
@@ -153,7 +156,8 @@ public interface WebhookRequestOrBuilder
*
*
*
- * If [natural language speech audio][google.cloud.dialogflow.cx.v3.AudioInput] was provided as input,
+ * If [natural language speech
+ * audio][google.cloud.dialogflow.cx.v3.AudioInput] was provided as input,
* this field will contain the transcript for the audio.
*
*
@@ -166,7 +170,8 @@ public interface WebhookRequestOrBuilder
*
*
*
- * If [natural language speech audio][google.cloud.dialogflow.cx.v3.AudioInput] was provided as input,
+ * If [natural language speech
+ * audio][google.cloud.dialogflow.cx.v3.AudioInput] was provided as input,
* this field will contain the transcript for the audio.
*
*
@@ -180,8 +185,8 @@ public interface WebhookRequestOrBuilder
*
*
*
- * If an [event][google.cloud.dialogflow.cx.v3.EventInput] was provided as input, this field will contain
- * the name of the event.
+ * If an [event][google.cloud.dialogflow.cx.v3.EventInput] was provided as
+ * input, this field will contain the name of the event.
*
*
* string trigger_event = 14;
@@ -193,8 +198,8 @@ public interface WebhookRequestOrBuilder
*
*
*
- * If an [event][google.cloud.dialogflow.cx.v3.EventInput] was provided as input, this field will contain
- * the name of the event.
+ * If an [event][google.cloud.dialogflow.cx.v3.EventInput] was provided as
+ * input, this field will contain the name of the event.
*
*
* string trigger_event = 14;
@@ -206,8 +211,8 @@ public interface WebhookRequestOrBuilder
*
*
*
- * If an [event][google.cloud.dialogflow.cx.v3.EventInput] was provided as input, this field will contain
- * the name of the event.
+ * If an [event][google.cloud.dialogflow.cx.v3.EventInput] was provided as
+ * input, this field will contain the name of the event.
*
*
* string trigger_event = 14;
@@ -456,7 +461,8 @@ public interface WebhookRequestOrBuilder
*
*
*
- * Custom data set in [QueryParameters.payload][google.cloud.dialogflow.cx.v3.QueryParameters.payload].
+ * Custom data set in
+ * [QueryParameters.payload][google.cloud.dialogflow.cx.v3.QueryParameters.payload].
*
*
* .google.protobuf.Struct payload = 8;
@@ -468,7 +474,8 @@ public interface WebhookRequestOrBuilder
*
*
*
- * Custom data set in [QueryParameters.payload][google.cloud.dialogflow.cx.v3.QueryParameters.payload].
+ * Custom data set in
+ * [QueryParameters.payload][google.cloud.dialogflow.cx.v3.QueryParameters.payload].
*
*
* .google.protobuf.Struct payload = 8;
@@ -480,7 +487,8 @@ public interface WebhookRequestOrBuilder
*
*
*
- * Custom data set in [QueryParameters.payload][google.cloud.dialogflow.cx.v3.QueryParameters.payload].
+ * Custom data set in
+ * [QueryParameters.payload][google.cloud.dialogflow.cx.v3.QueryParameters.payload].
*
*
* .google.protobuf.Struct payload = 8;
diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/WebhookResponse.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/WebhookResponse.java
index 5ddf2ebf05a9..204455f1d2e2 100644
--- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/WebhookResponse.java
+++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/WebhookResponse.java
@@ -369,6 +369,8 @@ private MergeBehavior(int value) {
}
public static final int MESSAGES_FIELD_NUMBER = 1;
+
+ @SuppressWarnings("serial")
private java.util.List messages_;
/**
*
@@ -439,7 +441,7 @@ public com.google.cloud.dialogflow.cx.v3.ResponseMessageOrBuilder getMessagesOrB
}
public static final int MERGE_BEHAVIOR_FIELD_NUMBER = 2;
- private int mergeBehavior_;
+ private int mergeBehavior_ = 0;
/**
*
*
@@ -473,10 +475,9 @@ public int getMergeBehaviorValue() {
@java.lang.Override
public com.google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse.MergeBehavior
getMergeBehavior() {
- @SuppressWarnings("deprecation")
com.google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse.MergeBehavior result =
com.google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse.MergeBehavior
- .valueOf(mergeBehavior_);
+ .forNumber(mergeBehavior_);
return result == null
? com.google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse.MergeBehavior
.UNRECOGNIZED
@@ -703,6 +704,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
@java.lang.Override
public Builder clear() {
super.clear();
+ bitField0_ = 0;
if (messagesBuilder_ == null) {
messages_ = java.util.Collections.emptyList();
} else {
@@ -711,7 +713,6 @@ public Builder clear() {
}
bitField0_ = (bitField0_ & ~0x00000001);
mergeBehavior_ = 0;
-
return this;
}
@@ -742,7 +743,16 @@ public com.google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse bui
public com.google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse buildPartial() {
com.google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse result =
new com.google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse(this);
- int from_bitField0_ = bitField0_;
+ buildPartialRepeatedFields(result);
+ if (bitField0_ != 0) {
+ buildPartial0(result);
+ }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartialRepeatedFields(
+ com.google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse result) {
if (messagesBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
messages_ = java.util.Collections.unmodifiableList(messages_);
@@ -752,9 +762,14 @@ public com.google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse bui
} else {
result.messages_ = messagesBuilder_.build();
}
- result.mergeBehavior_ = mergeBehavior_;
- onBuilt();
- return result;
+ }
+
+ private void buildPartial0(
+ com.google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.mergeBehavior_ = mergeBehavior_;
+ }
}
@java.lang.Override
@@ -882,7 +897,7 @@ public Builder mergeFrom(
case 16:
{
mergeBehavior_ = input.readEnum();
-
+ bitField0_ |= 0x00000002;
break;
} // case 16
default:
@@ -1294,8 +1309,8 @@ public int getMergeBehaviorValue() {
* @return This builder for chaining.
*/
public Builder setMergeBehaviorValue(int value) {
-
mergeBehavior_ = value;
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -1315,10 +1330,9 @@ public Builder setMergeBehaviorValue(int value) {
@java.lang.Override
public com.google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse.MergeBehavior
getMergeBehavior() {
- @SuppressWarnings("deprecation")
com.google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse.MergeBehavior result =
com.google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse.MergeBehavior
- .valueOf(mergeBehavior_);
+ .forNumber(mergeBehavior_);
return result == null
? com.google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse.MergeBehavior
.UNRECOGNIZED
@@ -1344,7 +1358,7 @@ public Builder setMergeBehavior(
if (value == null) {
throw new NullPointerException();
}
-
+ bitField0_ |= 0x00000002;
mergeBehavior_ = value.getNumber();
onChanged();
return this;
@@ -1363,7 +1377,7 @@ public Builder setMergeBehavior(
* @return This builder for chaining.
*/
public Builder clearMergeBehavior() {
-
+ bitField0_ = (bitField0_ & ~0x00000002);
mergeBehavior_ = 0;
onChanged();
return this;
@@ -1541,7 +1555,9 @@ public boolean hasFulfillmentResponse() {
@java.lang.Override
public com.google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponseOrBuilder
getFulfillmentResponseOrBuilder() {
- return getFulfillmentResponse();
+ return fulfillmentResponse_ == null
+ ? com.google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse.getDefaultInstance()
+ : fulfillmentResponse_;
}
public static final int PAGE_INFO_FIELD_NUMBER = 2;
@@ -1592,7 +1608,9 @@ public com.google.cloud.dialogflow.cx.v3.PageInfo getPageInfo() {
*/
@java.lang.Override
public com.google.cloud.dialogflow.cx.v3.PageInfoOrBuilder getPageInfoOrBuilder() {
- return getPageInfo();
+ return pageInfo_ == null
+ ? com.google.cloud.dialogflow.cx.v3.PageInfo.getDefaultInstance()
+ : pageInfo_;
}
public static final int SESSION_INFO_FIELD_NUMBER = 3;
@@ -1643,7 +1661,9 @@ public com.google.cloud.dialogflow.cx.v3.SessionInfo getSessionInfo() {
*/
@java.lang.Override
public com.google.cloud.dialogflow.cx.v3.SessionInfoOrBuilder getSessionInfoOrBuilder() {
- return getSessionInfo();
+ return sessionInfo_ == null
+ ? com.google.cloud.dialogflow.cx.v3.SessionInfo.getDefaultInstance()
+ : sessionInfo_;
}
public static final int PAYLOAD_FIELD_NUMBER = 4;
@@ -1652,7 +1672,8 @@ public com.google.cloud.dialogflow.cx.v3.SessionInfoOrBuilder getSessionInfoOrBu
*
*
*
- * Value to append directly to [QueryResult.webhook_payloads][google.cloud.dialogflow.cx.v3.QueryResult.webhook_payloads].
+ * Value to append directly to
+ * [QueryResult.webhook_payloads][google.cloud.dialogflow.cx.v3.QueryResult.webhook_payloads].
*
*
* .google.protobuf.Struct payload = 4;
@@ -1667,7 +1688,8 @@ public boolean hasPayload() {
*
*
*
- * Value to append directly to [QueryResult.webhook_payloads][google.cloud.dialogflow.cx.v3.QueryResult.webhook_payloads].
+ * Value to append directly to
+ * [QueryResult.webhook_payloads][google.cloud.dialogflow.cx.v3.QueryResult.webhook_payloads].
*
*
* .google.protobuf.Struct payload = 4;
@@ -1682,14 +1704,15 @@ public com.google.protobuf.Struct getPayload() {
*
*
*
- * Value to append directly to [QueryResult.webhook_payloads][google.cloud.dialogflow.cx.v3.QueryResult.webhook_payloads].
+ * Value to append directly to
+ * [QueryResult.webhook_payloads][google.cloud.dialogflow.cx.v3.QueryResult.webhook_payloads].
*
*
* .google.protobuf.Struct payload = 4;
*/
@java.lang.Override
public com.google.protobuf.StructOrBuilder getPayloadOrBuilder() {
- return getPayload();
+ return payload_ == null ? com.google.protobuf.Struct.getDefaultInstance() : payload_;
}
public static final int TARGET_PAGE_FIELD_NUMBER = 5;
@@ -2123,28 +2146,25 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
@java.lang.Override
public Builder clear() {
super.clear();
- if (fulfillmentResponseBuilder_ == null) {
- fulfillmentResponse_ = null;
- } else {
- fulfillmentResponse_ = null;
+ bitField0_ = 0;
+ fulfillmentResponse_ = null;
+ if (fulfillmentResponseBuilder_ != null) {
+ fulfillmentResponseBuilder_.dispose();
fulfillmentResponseBuilder_ = null;
}
- if (pageInfoBuilder_ == null) {
- pageInfo_ = null;
- } else {
- pageInfo_ = null;
+ pageInfo_ = null;
+ if (pageInfoBuilder_ != null) {
+ pageInfoBuilder_.dispose();
pageInfoBuilder_ = null;
}
- if (sessionInfoBuilder_ == null) {
- sessionInfo_ = null;
- } else {
- sessionInfo_ = null;
+ sessionInfo_ = null;
+ if (sessionInfoBuilder_ != null) {
+ sessionInfoBuilder_.dispose();
sessionInfoBuilder_ = null;
}
- if (payloadBuilder_ == null) {
- payload_ = null;
- } else {
- payload_ = null;
+ payload_ = null;
+ if (payloadBuilder_ != null) {
+ payloadBuilder_.dispose();
payloadBuilder_ = null;
}
transitionCase_ = 0;
@@ -2176,35 +2196,37 @@ public com.google.cloud.dialogflow.cx.v3.WebhookResponse build() {
public com.google.cloud.dialogflow.cx.v3.WebhookResponse buildPartial() {
com.google.cloud.dialogflow.cx.v3.WebhookResponse result =
new com.google.cloud.dialogflow.cx.v3.WebhookResponse(this);
- if (fulfillmentResponseBuilder_ == null) {
- result.fulfillmentResponse_ = fulfillmentResponse_;
- } else {
- result.fulfillmentResponse_ = fulfillmentResponseBuilder_.build();
+ if (bitField0_ != 0) {
+ buildPartial0(result);
}
- if (pageInfoBuilder_ == null) {
- result.pageInfo_ = pageInfo_;
- } else {
- result.pageInfo_ = pageInfoBuilder_.build();
- }
- if (sessionInfoBuilder_ == null) {
- result.sessionInfo_ = sessionInfo_;
- } else {
- result.sessionInfo_ = sessionInfoBuilder_.build();
+ buildPartialOneofs(result);
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartial0(com.google.cloud.dialogflow.cx.v3.WebhookResponse result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.fulfillmentResponse_ =
+ fulfillmentResponseBuilder_ == null
+ ? fulfillmentResponse_
+ : fulfillmentResponseBuilder_.build();
}
- if (payloadBuilder_ == null) {
- result.payload_ = payload_;
- } else {
- result.payload_ = payloadBuilder_.build();
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.pageInfo_ = pageInfoBuilder_ == null ? pageInfo_ : pageInfoBuilder_.build();
}
- if (transitionCase_ == 5) {
- result.transition_ = transition_;
+ if (((from_bitField0_ & 0x00000004) != 0)) {
+ result.sessionInfo_ =
+ sessionInfoBuilder_ == null ? sessionInfo_ : sessionInfoBuilder_.build();
}
- if (transitionCase_ == 6) {
- result.transition_ = transition_;
+ if (((from_bitField0_ & 0x00000008) != 0)) {
+ result.payload_ = payloadBuilder_ == null ? payload_ : payloadBuilder_.build();
}
+ }
+
+ private void buildPartialOneofs(com.google.cloud.dialogflow.cx.v3.WebhookResponse result) {
result.transitionCase_ = transitionCase_;
- onBuilt();
- return result;
+ result.transition_ = this.transition_;
}
@java.lang.Override
@@ -2315,25 +2337,25 @@ public Builder mergeFrom(
{
input.readMessage(
getFulfillmentResponseFieldBuilder().getBuilder(), extensionRegistry);
-
+ bitField0_ |= 0x00000001;
break;
} // case 10
case 18:
{
input.readMessage(getPageInfoFieldBuilder().getBuilder(), extensionRegistry);
-
+ bitField0_ |= 0x00000002;
break;
} // case 18
case 26:
{
input.readMessage(getSessionInfoFieldBuilder().getBuilder(), extensionRegistry);
-
+ bitField0_ |= 0x00000004;
break;
} // case 26
case 34:
{
input.readMessage(getPayloadFieldBuilder().getBuilder(), extensionRegistry);
-
+ bitField0_ |= 0x00000008;
break;
} // case 34
case 42:
@@ -2381,6 +2403,8 @@ public Builder clearTransition() {
return this;
}
+ private int bitField0_;
+
private com.google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse
fulfillmentResponse_;
private com.google.protobuf.SingleFieldBuilderV3<
@@ -2403,7 +2427,7 @@ public Builder clearTransition() {
* @return Whether the fulfillmentResponse field is set.
*/
public boolean hasFulfillmentResponse() {
- return fulfillmentResponseBuilder_ != null || fulfillmentResponse_ != null;
+ return ((bitField0_ & 0x00000001) != 0);
}
/**
*
@@ -2449,11 +2473,11 @@ public Builder setFulfillmentResponse(
throw new NullPointerException();
}
fulfillmentResponse_ = value;
- onChanged();
} else {
fulfillmentResponseBuilder_.setMessage(value);
}
-
+ bitField0_ |= 0x00000001;
+ onChanged();
return this;
}
/**
@@ -2473,11 +2497,11 @@ public Builder setFulfillmentResponse(
builderForValue) {
if (fulfillmentResponseBuilder_ == null) {
fulfillmentResponse_ = builderForValue.build();
- onChanged();
} else {
fulfillmentResponseBuilder_.setMessage(builderForValue.build());
}
-
+ bitField0_ |= 0x00000001;
+ onChanged();
return this;
}
/**
@@ -2495,20 +2519,20 @@ public Builder setFulfillmentResponse(
public Builder mergeFulfillmentResponse(
com.google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse value) {
if (fulfillmentResponseBuilder_ == null) {
- if (fulfillmentResponse_ != null) {
- fulfillmentResponse_ =
- com.google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse.newBuilder(
- fulfillmentResponse_)
- .mergeFrom(value)
- .buildPartial();
+ if (((bitField0_ & 0x00000001) != 0)
+ && fulfillmentResponse_ != null
+ && fulfillmentResponse_
+ != com.google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse
+ .getDefaultInstance()) {
+ getFulfillmentResponseBuilder().mergeFrom(value);
} else {
fulfillmentResponse_ = value;
}
- onChanged();
} else {
fulfillmentResponseBuilder_.mergeFrom(value);
}
-
+ bitField0_ |= 0x00000001;
+ onChanged();
return this;
}
/**
@@ -2524,14 +2548,13 @@ public Builder mergeFulfillmentResponse(
*
*/
public Builder clearFulfillmentResponse() {
- if (fulfillmentResponseBuilder_ == null) {
- fulfillmentResponse_ = null;
- onChanged();
- } else {
- fulfillmentResponse_ = null;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ fulfillmentResponse_ = null;
+ if (fulfillmentResponseBuilder_ != null) {
+ fulfillmentResponseBuilder_.dispose();
fulfillmentResponseBuilder_ = null;
}
-
+ onChanged();
return this;
}
/**
@@ -2548,7 +2571,7 @@ public Builder clearFulfillmentResponse() {
*/
public com.google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse.Builder
getFulfillmentResponseBuilder() {
-
+ bitField0_ |= 0x00000001;
onChanged();
return getFulfillmentResponseFieldBuilder().getBuilder();
}
@@ -2623,7 +2646,7 @@ public Builder clearFulfillmentResponse() {
* @return Whether the pageInfo field is set.
*/
public boolean hasPageInfo() {
- return pageInfoBuilder_ != null || pageInfo_ != null;
+ return ((bitField0_ & 0x00000002) != 0);
}
/**
*
@@ -2662,11 +2685,11 @@ public Builder setPageInfo(com.google.cloud.dialogflow.cx.v3.PageInfo value) {
throw new NullPointerException();
}
pageInfo_ = value;
- onChanged();
} else {
pageInfoBuilder_.setMessage(value);
}
-
+ bitField0_ |= 0x00000002;
+ onChanged();
return this;
}
/**
@@ -2682,11 +2705,11 @@ public Builder setPageInfo(com.google.cloud.dialogflow.cx.v3.PageInfo value) {
public Builder setPageInfo(com.google.cloud.dialogflow.cx.v3.PageInfo.Builder builderForValue) {
if (pageInfoBuilder_ == null) {
pageInfo_ = builderForValue.build();
- onChanged();
} else {
pageInfoBuilder_.setMessage(builderForValue.build());
}
-
+ bitField0_ |= 0x00000002;
+ onChanged();
return this;
}
/**
@@ -2701,19 +2724,18 @@ public Builder setPageInfo(com.google.cloud.dialogflow.cx.v3.PageInfo.Builder bu
*/
public Builder mergePageInfo(com.google.cloud.dialogflow.cx.v3.PageInfo value) {
if (pageInfoBuilder_ == null) {
- if (pageInfo_ != null) {
- pageInfo_ =
- com.google.cloud.dialogflow.cx.v3.PageInfo.newBuilder(pageInfo_)
- .mergeFrom(value)
- .buildPartial();
+ if (((bitField0_ & 0x00000002) != 0)
+ && pageInfo_ != null
+ && pageInfo_ != com.google.cloud.dialogflow.cx.v3.PageInfo.getDefaultInstance()) {
+ getPageInfoBuilder().mergeFrom(value);
} else {
pageInfo_ = value;
}
- onChanged();
} else {
pageInfoBuilder_.mergeFrom(value);
}
-
+ bitField0_ |= 0x00000002;
+ onChanged();
return this;
}
/**
@@ -2727,14 +2749,13 @@ public Builder mergePageInfo(com.google.cloud.dialogflow.cx.v3.PageInfo value) {
* .google.cloud.dialogflow.cx.v3.PageInfo page_info = 2;
*/
public Builder clearPageInfo() {
- if (pageInfoBuilder_ == null) {
- pageInfo_ = null;
- onChanged();
- } else {
- pageInfo_ = null;
+ bitField0_ = (bitField0_ & ~0x00000002);
+ pageInfo_ = null;
+ if (pageInfoBuilder_ != null) {
+ pageInfoBuilder_.dispose();
pageInfoBuilder_ = null;
}
-
+ onChanged();
return this;
}
/**
@@ -2748,7 +2769,7 @@ public Builder clearPageInfo() {
* .google.cloud.dialogflow.cx.v3.PageInfo page_info = 2;
*/
public com.google.cloud.dialogflow.cx.v3.PageInfo.Builder getPageInfoBuilder() {
-
+ bitField0_ |= 0x00000002;
onChanged();
return getPageInfoFieldBuilder().getBuilder();
}
@@ -2817,7 +2838,7 @@ public com.google.cloud.dialogflow.cx.v3.PageInfoOrBuilder getPageInfoOrBuilder(
* @return Whether the sessionInfo field is set.
*/
public boolean hasSessionInfo() {
- return sessionInfoBuilder_ != null || sessionInfo_ != null;
+ return ((bitField0_ & 0x00000004) != 0);
}
/**
*
@@ -2856,11 +2877,11 @@ public Builder setSessionInfo(com.google.cloud.dialogflow.cx.v3.SessionInfo valu
throw new NullPointerException();
}
sessionInfo_ = value;
- onChanged();
} else {
sessionInfoBuilder_.setMessage(value);
}
-
+ bitField0_ |= 0x00000004;
+ onChanged();
return this;
}
/**
@@ -2877,11 +2898,11 @@ public Builder setSessionInfo(
com.google.cloud.dialogflow.cx.v3.SessionInfo.Builder builderForValue) {
if (sessionInfoBuilder_ == null) {
sessionInfo_ = builderForValue.build();
- onChanged();
} else {
sessionInfoBuilder_.setMessage(builderForValue.build());
}
-
+ bitField0_ |= 0x00000004;
+ onChanged();
return this;
}
/**
@@ -2896,19 +2917,18 @@ public Builder setSessionInfo(
*/
public Builder mergeSessionInfo(com.google.cloud.dialogflow.cx.v3.SessionInfo value) {
if (sessionInfoBuilder_ == null) {
- if (sessionInfo_ != null) {
- sessionInfo_ =
- com.google.cloud.dialogflow.cx.v3.SessionInfo.newBuilder(sessionInfo_)
- .mergeFrom(value)
- .buildPartial();
+ if (((bitField0_ & 0x00000004) != 0)
+ && sessionInfo_ != null
+ && sessionInfo_ != com.google.cloud.dialogflow.cx.v3.SessionInfo.getDefaultInstance()) {
+ getSessionInfoBuilder().mergeFrom(value);
} else {
sessionInfo_ = value;
}
- onChanged();
} else {
sessionInfoBuilder_.mergeFrom(value);
}
-
+ bitField0_ |= 0x00000004;
+ onChanged();
return this;
}
/**
@@ -2922,14 +2942,13 @@ public Builder mergeSessionInfo(com.google.cloud.dialogflow.cx.v3.SessionInfo va
* .google.cloud.dialogflow.cx.v3.SessionInfo session_info = 3;
*/
public Builder clearSessionInfo() {
- if (sessionInfoBuilder_ == null) {
- sessionInfo_ = null;
- onChanged();
- } else {
- sessionInfo_ = null;
+ bitField0_ = (bitField0_ & ~0x00000004);
+ sessionInfo_ = null;
+ if (sessionInfoBuilder_ != null) {
+ sessionInfoBuilder_.dispose();
sessionInfoBuilder_ = null;
}
-
+ onChanged();
return this;
}
/**
@@ -2943,7 +2962,7 @@ public Builder clearSessionInfo() {
* .google.cloud.dialogflow.cx.v3.SessionInfo session_info = 3;
*/
public com.google.cloud.dialogflow.cx.v3.SessionInfo.Builder getSessionInfoBuilder() {
-
+ bitField0_ |= 0x00000004;
onChanged();
return getSessionInfoFieldBuilder().getBuilder();
}
@@ -3003,7 +3022,8 @@ public com.google.cloud.dialogflow.cx.v3.SessionInfoOrBuilder getSessionInfoOrBu
*
*
*
- * Value to append directly to [QueryResult.webhook_payloads][google.cloud.dialogflow.cx.v3.QueryResult.webhook_payloads].
+ * Value to append directly to
+ * [QueryResult.webhook_payloads][google.cloud.dialogflow.cx.v3.QueryResult.webhook_payloads].
*
*
* .google.protobuf.Struct payload = 4;
@@ -3011,13 +3031,14 @@ public com.google.cloud.dialogflow.cx.v3.SessionInfoOrBuilder getSessionInfoOrBu
* @return Whether the payload field is set.
*/
public boolean hasPayload() {
- return payloadBuilder_ != null || payload_ != null;
+ return ((bitField0_ & 0x00000008) != 0);
}
/**
*
*
*
- * Value to append directly to [QueryResult.webhook_payloads][google.cloud.dialogflow.cx.v3.QueryResult.webhook_payloads].
+ * Value to append directly to
+ * [QueryResult.webhook_payloads][google.cloud.dialogflow.cx.v3.QueryResult.webhook_payloads].
*
*
* .google.protobuf.Struct payload = 4;
@@ -3035,7 +3056,8 @@ public com.google.protobuf.Struct getPayload() {
*
*
*
- * Value to append directly to [QueryResult.webhook_payloads][google.cloud.dialogflow.cx.v3.QueryResult.webhook_payloads].
+ * Value to append directly to
+ * [QueryResult.webhook_payloads][google.cloud.dialogflow.cx.v3.QueryResult.webhook_payloads].
*
*
* .google.protobuf.Struct payload = 4;
@@ -3046,18 +3068,19 @@ public Builder setPayload(com.google.protobuf.Struct value) {
throw new NullPointerException();
}
payload_ = value;
- onChanged();
} else {
payloadBuilder_.setMessage(value);
}
-
+ bitField0_ |= 0x00000008;
+ onChanged();
return this;
}
/**
*
*
*
- * Value to append directly to [QueryResult.webhook_payloads][google.cloud.dialogflow.cx.v3.QueryResult.webhook_payloads].
+ * Value to append directly to
+ * [QueryResult.webhook_payloads][google.cloud.dialogflow.cx.v3.QueryResult.webhook_payloads].
*
*
* .google.protobuf.Struct payload = 4;
@@ -3065,68 +3088,71 @@ public Builder setPayload(com.google.protobuf.Struct value) {
public Builder setPayload(com.google.protobuf.Struct.Builder builderForValue) {
if (payloadBuilder_ == null) {
payload_ = builderForValue.build();
- onChanged();
} else {
payloadBuilder_.setMessage(builderForValue.build());
}
-
+ bitField0_ |= 0x00000008;
+ onChanged();
return this;
}
/**
*
*
*
- * Value to append directly to [QueryResult.webhook_payloads][google.cloud.dialogflow.cx.v3.QueryResult.webhook_payloads].
+ * Value to append directly to
+ * [QueryResult.webhook_payloads][google.cloud.dialogflow.cx.v3.QueryResult.webhook_payloads].
*
*
* .google.protobuf.Struct payload = 4;
*/
public Builder mergePayload(com.google.protobuf.Struct value) {
if (payloadBuilder_ == null) {
- if (payload_ != null) {
- payload_ =
- com.google.protobuf.Struct.newBuilder(payload_).mergeFrom(value).buildPartial();
+ if (((bitField0_ & 0x00000008) != 0)
+ && payload_ != null
+ && payload_ != com.google.protobuf.Struct.getDefaultInstance()) {
+ getPayloadBuilder().mergeFrom(value);
} else {
payload_ = value;
}
- onChanged();
} else {
payloadBuilder_.mergeFrom(value);
}
-
+ bitField0_ |= 0x00000008;
+ onChanged();
return this;
}
/**
*
*
*
- * Value to append directly to [QueryResult.webhook_payloads][google.cloud.dialogflow.cx.v3.QueryResult.webhook_payloads].
+ * Value to append directly to
+ * [QueryResult.webhook_payloads][google.cloud.dialogflow.cx.v3.QueryResult.webhook_payloads].
*
*
* .google.protobuf.Struct payload = 4;
*/
public Builder clearPayload() {
- if (payloadBuilder_ == null) {
- payload_ = null;
- onChanged();
- } else {
- payload_ = null;
+ bitField0_ = (bitField0_ & ~0x00000008);
+ payload_ = null;
+ if (payloadBuilder_ != null) {
+ payloadBuilder_.dispose();
payloadBuilder_ = null;
}
-
+ onChanged();
return this;
}
/**
*
*
*
- * Value to append directly to [QueryResult.webhook_payloads][google.cloud.dialogflow.cx.v3.QueryResult.webhook_payloads].
+ * Value to append directly to
+ * [QueryResult.webhook_payloads][google.cloud.dialogflow.cx.v3.QueryResult.webhook_payloads].
*
*
* .google.protobuf.Struct payload = 4;
*/
public com.google.protobuf.Struct.Builder getPayloadBuilder() {
-
+ bitField0_ |= 0x00000008;
onChanged();
return getPayloadFieldBuilder().getBuilder();
}
@@ -3134,7 +3160,8 @@ public com.google.protobuf.Struct.Builder getPayloadBuilder() {
*
*
*
- * Value to append directly to [QueryResult.webhook_payloads][google.cloud.dialogflow.cx.v3.QueryResult.webhook_payloads].
+ * Value to append directly to
+ * [QueryResult.webhook_payloads][google.cloud.dialogflow.cx.v3.QueryResult.webhook_payloads].
*
*
* .google.protobuf.Struct payload = 4;
@@ -3150,7 +3177,8 @@ public com.google.protobuf.StructOrBuilder getPayloadOrBuilder() {
*
*
*
- * Value to append directly to [QueryResult.webhook_payloads][google.cloud.dialogflow.cx.v3.QueryResult.webhook_payloads].
+ * Value to append directly to
+ * [QueryResult.webhook_payloads][google.cloud.dialogflow.cx.v3.QueryResult.webhook_payloads].
*
*
* .google.protobuf.Struct payload = 4;
diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/WebhookResponseOrBuilder.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/WebhookResponseOrBuilder.java
index 81a52ec057c4..5432bb234361 100644
--- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/WebhookResponseOrBuilder.java
+++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/WebhookResponseOrBuilder.java
@@ -148,7 +148,8 @@ public interface WebhookResponseOrBuilder
*
*
*
- * Value to append directly to [QueryResult.webhook_payloads][google.cloud.dialogflow.cx.v3.QueryResult.webhook_payloads].
+ * Value to append directly to
+ * [QueryResult.webhook_payloads][google.cloud.dialogflow.cx.v3.QueryResult.webhook_payloads].
*
*
* .google.protobuf.Struct payload = 4;
@@ -160,7 +161,8 @@ public interface WebhookResponseOrBuilder
*
*
*
- * Value to append directly to [QueryResult.webhook_payloads][google.cloud.dialogflow.cx.v3.QueryResult.webhook_payloads].
+ * Value to append directly to
+ * [QueryResult.webhook_payloads][google.cloud.dialogflow.cx.v3.QueryResult.webhook_payloads].
*
*
* .google.protobuf.Struct payload = 4;
@@ -172,7 +174,8 @@ public interface WebhookResponseOrBuilder
*
*
*
- * Value to append directly to [QueryResult.webhook_payloads][google.cloud.dialogflow.cx.v3.QueryResult.webhook_payloads].
+ * Value to append directly to
+ * [QueryResult.webhook_payloads][google.cloud.dialogflow.cx.v3.QueryResult.webhook_payloads].
*
*
* .google.protobuf.Struct payload = 4;
diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/advanced_settings.proto b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/advanced_settings.proto
index d2de5b1fc2e6..01d0485775ed 100644
--- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/advanced_settings.proto
+++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/advanced_settings.proto
@@ -20,7 +20,7 @@ import "google/api/field_behavior.proto";
option cc_enable_arenas = true;
option csharp_namespace = "Google.Cloud.Dialogflow.Cx.V3";
-option go_package = "google.golang.org/genproto/googleapis/cloud/dialogflow/cx/v3;cx";
+option go_package = "cloud.google.com/go/dialogflow/cx/apiv3/cxpb;cxpb";
option java_multiple_files = true;
option java_outer_classname = "AdvancedSettingsProto";
option java_package = "com.google.cloud.dialogflow.cx.v3";
diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/agent.proto b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/agent.proto
index 0c4fb140b62d..a019767cd61d 100644
--- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/agent.proto
+++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/agent.proto
@@ -28,7 +28,7 @@ import "google/protobuf/field_mask.proto";
option cc_enable_arenas = true;
option csharp_namespace = "Google.Cloud.Dialogflow.Cx.V3";
-option go_package = "google.golang.org/genproto/googleapis/cloud/dialogflow/cx/v3;cx";
+option go_package = "cloud.google.com/go/dialogflow/cx/apiv3/cxpb;cxpb";
option java_multiple_files = true;
option java_outer_classname = "AgentProto";
option java_package = "com.google.cloud.dialogflow.cx.v3";
@@ -100,7 +100,8 @@ service Agents {
//
// - `metadata`: An empty [Struct
// message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct)
- // - `response`: [ExportAgentResponse][google.cloud.dialogflow.cx.v3.ExportAgentResponse]
+ // - `response`:
+ // [ExportAgentResponse][google.cloud.dialogflow.cx.v3.ExportAgentResponse]
rpc ExportAgent(ExportAgentRequest) returns (google.longrunning.Operation) {
option (google.api.http) = {
post: "/v3/{name=projects/*/locations/*/agents/*}:export"
@@ -152,7 +153,8 @@ service Agents {
// Gets the latest agent validation result. Agent validation is performed
// when ValidateAgent is called.
- rpc GetAgentValidationResult(GetAgentValidationResultRequest) returns (AgentValidationResult) {
+ rpc GetAgentValidationResult(GetAgentValidationResultRequest)
+ returns (AgentValidationResult) {
option (google.api.http) = {
get: "/v3/{name=projects/*/locations/*/agents/*/validationResult}"
};
@@ -171,9 +173,13 @@ message SpeechToTextSettings {
// in your app, product, or service to determine user intent and respond to the
// user in a natural way.
//
-// After you create an agent, you can add [Intents][google.cloud.dialogflow.cx.v3.Intent],
-// [Entity Types][google.cloud.dialogflow.cx.v3.EntityType], [Flows][google.cloud.dialogflow.cx.v3.Flow], [Fulfillments][google.cloud.dialogflow.cx.v3.Fulfillment],
-// [Webhooks][google.cloud.dialogflow.cx.v3.Webhook], and so on to manage the conversation flows..
+// After you create an agent, you can add
+// [Intents][google.cloud.dialogflow.cx.v3.Intent], [Entity
+// Types][google.cloud.dialogflow.cx.v3.EntityType],
+// [Flows][google.cloud.dialogflow.cx.v3.Flow],
+// [Fulfillments][google.cloud.dialogflow.cx.v3.Fulfillment],
+// [Webhooks][google.cloud.dialogflow.cx.v3.Webhook], and so on to manage the
+// conversation flows..
message Agent {
option (google.api.resource) = {
type: "dialogflow.googleapis.com/Agent"
@@ -181,7 +187,10 @@ message Agent {
};
// The unique identifier of the agent.
- // Required for the [Agents.UpdateAgent][google.cloud.dialogflow.cx.v3.Agents.UpdateAgent] method. [Agents.CreateAgent][google.cloud.dialogflow.cx.v3.Agents.CreateAgent]
+ // Required for the
+ // [Agents.UpdateAgent][google.cloud.dialogflow.cx.v3.Agents.UpdateAgent]
+ // method.
+ // [Agents.CreateAgent][google.cloud.dialogflow.cx.v3.Agents.CreateAgent]
// populates the name automatically.
// Format: `projects//locations//agents/`.
string name = 1;
@@ -193,7 +202,9 @@ message Agent {
// See [Language
// Support](https://cloud.google.com/dialogflow/cx/docs/reference/language)
// for a list of the currently supported language codes.
- // This field cannot be set by the [Agents.UpdateAgent][google.cloud.dialogflow.cx.v3.Agents.UpdateAgent] method.
+ // This field cannot be set by the
+ // [Agents.UpdateAgent][google.cloud.dialogflow.cx.v3.Agents.UpdateAgent]
+ // method.
string default_language_code = 3 [
(google.api.field_behavior) = REQUIRED,
(google.api.field_behavior) = IMMUTABLE
@@ -221,27 +232,26 @@ message Agent {
// Speech recognition related settings.
SpeechToTextSettings speech_to_text_settings = 13;
- // Immutable. Name of the start flow in this agent. A start flow will be automatically
- // created when the agent is created, and can only be deleted by deleting the
- // agent.
- // Format: `projects//locations//agents//flows/`.
+ // Immutable. Name of the start flow in this agent. A start flow will be
+ // automatically created when the agent is created, and can only be deleted by
+ // deleting the agent. Format: `projects//locations//agents//flows/`.
string start_flow = 16 [
(google.api.field_behavior) = IMMUTABLE,
- (google.api.resource_reference) = {
- type: "dialogflow.googleapis.com/Flow"
- }
+ (google.api.resource_reference) = { type: "dialogflow.googleapis.com/Flow" }
];
- // Name of the [SecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettings] reference for the agent.
- // Format: `projects//locations//locations//securitySettings/`.
string security_settings = 17 [(google.api.resource_reference) = {
- type: "dialogflow.googleapis.com/SecuritySettings"
- }];
+ type: "dialogflow.googleapis.com/SecuritySettings"
+ }];
// Indicates if stackdriver logging is enabled for the agent.
- // Please use [agent.advanced_settings][google.cloud.dialogflow.cx.v3.AdvancedSettings.LoggingSettings]
+ // Please use
+ // [agent.advanced_settings][google.cloud.dialogflow.cx.v3.AdvancedSettings.LoggingSettings]
// instead.
bool enable_stackdriver_logging = 18 [deprecated = true];
@@ -258,7 +268,8 @@ message Agent {
AdvancedSettings advanced_settings = 22;
}
-// The request message for [Agents.ListAgents][google.cloud.dialogflow.cx.v3.Agents.ListAgents].
+// The request message for
+// [Agents.ListAgents][google.cloud.dialogflow.cx.v3.Agents.ListAgents].
message ListAgentsRequest {
// Required. The location to list all agents for.
// Format: `projects//locations/`.
@@ -277,7 +288,8 @@ message ListAgentsRequest {
string page_token = 3;
}
-// The response message for [Agents.ListAgents][google.cloud.dialogflow.cx.v3.Agents.ListAgents].
+// The response message for
+// [Agents.ListAgents][google.cloud.dialogflow.cx.v3.Agents.ListAgents].
message ListAgentsResponse {
// The list of agents. There will be a maximum number of items returned based
// on the page_size field in the request.
@@ -288,7 +300,8 @@ message ListAgentsResponse {
string next_page_token = 2;
}
-// The request message for [Agents.GetAgent][google.cloud.dialogflow.cx.v3.Agents.GetAgent].
+// The request message for
+// [Agents.GetAgent][google.cloud.dialogflow.cx.v3.Agents.GetAgent].
message GetAgentRequest {
// Required. The name of the agent.
// Format: `projects//locations//agents/`.
@@ -300,7 +313,8 @@ message GetAgentRequest {
];
}
-// The request message for [Agents.CreateAgent][google.cloud.dialogflow.cx.v3.Agents.CreateAgent].
+// The request message for
+// [Agents.CreateAgent][google.cloud.dialogflow.cx.v3.Agents.CreateAgent].
message CreateAgentRequest {
// Required. The location to create a agent for.
// Format: `projects//locations/`.
@@ -315,7 +329,8 @@ message CreateAgentRequest {
Agent agent = 2 [(google.api.field_behavior) = REQUIRED];
}
-// The request message for [Agents.UpdateAgent][google.cloud.dialogflow.cx.v3.Agents.UpdateAgent].
+// The request message for
+// [Agents.UpdateAgent][google.cloud.dialogflow.cx.v3.Agents.UpdateAgent].
message UpdateAgentRequest {
// Required. The agent to update.
Agent agent = 1 [(google.api.field_behavior) = REQUIRED];
@@ -325,7 +340,8 @@ message UpdateAgentRequest {
google.protobuf.FieldMask update_mask = 2;
}
-// The request message for [Agents.DeleteAgent][google.cloud.dialogflow.cx.v3.Agents.DeleteAgent].
+// The request message for
+// [Agents.DeleteAgent][google.cloud.dialogflow.cx.v3.Agents.DeleteAgent].
message DeleteAgentRequest {
// Required. The name of the agent to delete.
// Format: `projects//locations//agents/`.
@@ -337,7 +353,8 @@ message DeleteAgentRequest {
];
}
-// The request message for [Agents.ExportAgent][google.cloud.dialogflow.cx.v3.Agents.ExportAgent].
+// The request message for
+// [Agents.ExportAgent][google.cloud.dialogflow.cx.v3.Agents.ExportAgent].
message ExportAgentRequest {
// Data format of the exported agent.
enum DataFormat {
@@ -357,10 +374,10 @@ message ExportAgentRequest {
}
];
- // Optional. The [Google Cloud Storage](https://cloud.google.com/storage/docs/) URI to
- // export the agent to. The format of this URI must be
- // `gs:///`.
- // If left unspecified, the serialized agent is returned inline.
+ // Optional. The [Google Cloud
+ // Storage](https://cloud.google.com/storage/docs/) URI to export the agent
+ // to. The format of this URI must be `gs:///`. If
+ // left unspecified, the serialized agent is returned inline.
//
// Dialogflow performs a write operation for the Cloud Storage object
// on the caller's behalf, so your request authentication must
@@ -369,7 +386,8 @@ message ExportAgentRequest {
// control](https://cloud.google.com/dialogflow/cx/docs/concept/access-control#storage).
string agent_uri = 2 [(google.api.field_behavior) = OPTIONAL];
- // Optional. The data format of the exported agent. If not specified, `BLOB` is assumed.
+ // Optional. The data format of the exported agent. If not specified, `BLOB`
+ // is assumed.
DataFormat data_format = 3 [(google.api.field_behavior) = OPTIONAL];
// Optional. Environment name. If not set, draft environment is assumed.
@@ -383,12 +401,14 @@ message ExportAgentRequest {
];
}
-// The response message for [Agents.ExportAgent][google.cloud.dialogflow.cx.v3.Agents.ExportAgent].
+// The response message for
+// [Agents.ExportAgent][google.cloud.dialogflow.cx.v3.Agents.ExportAgent].
message ExportAgentResponse {
// The exported agent.
oneof agent {
// The URI to a file containing the exported agent. This field is populated
- // only if `agent_uri` is specified in [ExportAgentRequest][google.cloud.dialogflow.cx.v3.ExportAgentRequest].
+ // only if `agent_uri` is specified in
+ // [ExportAgentRequest][google.cloud.dialogflow.cx.v3.ExportAgentRequest].
string agent_uri = 1;
// Uncompressed raw byte content for agent.
@@ -396,7 +416,8 @@ message ExportAgentResponse {
}
}
-// The request message for [Agents.RestoreAgent][google.cloud.dialogflow.cx.v3.Agents.RestoreAgent].
+// The request message for
+// [Agents.RestoreAgent][google.cloud.dialogflow.cx.v3.Agents.RestoreAgent].
message RestoreAgentRequest {
// Restore option.
enum RestoreOption {
@@ -443,7 +464,8 @@ message RestoreAgentRequest {
RestoreOption restore_option = 5;
}
-// The request message for [Agents.ValidateAgent][google.cloud.dialogflow.cx.v3.Agents.ValidateAgent].
+// The request message for
+// [Agents.ValidateAgent][google.cloud.dialogflow.cx.v3.Agents.ValidateAgent].
message ValidateAgentRequest {
// Required. The agent to validate.
// Format: `projects//locations//agents/`.
@@ -458,7 +480,8 @@ message ValidateAgentRequest {
string language_code = 2;
}
-// The request message for [Agents.GetAgentValidationResult][google.cloud.dialogflow.cx.v3.Agents.GetAgentValidationResult].
+// The request message for
+// [Agents.GetAgentValidationResult][google.cloud.dialogflow.cx.v3.Agents.GetAgentValidationResult].
message GetAgentValidationResultRequest {
// Required. The agent name.
// Format: `projects//locations//agents//locations//agents/`.
@@ -96,7 +97,8 @@ message ListChangelogsRequest {
string page_token = 4;
}
-// The response message for [Changelogs.ListChangelogs][google.cloud.dialogflow.cx.v3.Changelogs.ListChangelogs].
+// The response message for
+// [Changelogs.ListChangelogs][google.cloud.dialogflow.cx.v3.Changelogs.ListChangelogs].
message ListChangelogsResponse {
// The list of changelogs. There will be a maximum number of items returned
// based on the page_size field in the request. The changelogs will be ordered
@@ -108,7 +110,8 @@ message ListChangelogsResponse {
string next_page_token = 2;
}
-// The request message for [Changelogs.GetChangelog][google.cloud.dialogflow.cx.v3.Changelogs.GetChangelog].
+// The request message for
+// [Changelogs.GetChangelog][google.cloud.dialogflow.cx.v3.Changelogs.GetChangelog].
message GetChangelogRequest {
// Required. The name of the changelog to get.
// Format: `projects//locations//agents//locations//agents//testCases//results/`.
- repeated string deployment_test_results = 1 [(google.api.resource_reference) = {
- type: "dialogflow.googleapis.com/TestCaseResult"
- }];
+ repeated string deployment_test_results = 1
+ [(google.api.resource_reference) = {
+ type: "dialogflow.googleapis.com/TestCaseResult"
+ }];
// The name of the experiment triggered by this deployment.
// Format: projects//locations//agents//environments//experiments/.
string experiment = 2 [(google.api.resource_reference) = {
- type: "dialogflow.googleapis.com/Experiment"
- }];
+ type: "dialogflow.googleapis.com/Experiment"
+ }];
}
// The name of the deployment.
@@ -106,8 +110,8 @@ message Deployment {
// Format: projects//locations//agents//flows//versions/.
string flow_version = 2 [(google.api.resource_reference) = {
- type: "dialogflow.googleapis.com/Version"
- }];
+ type: "dialogflow.googleapis.com/Version"
+ }];
// The current state of the deployment.
State state = 3;
@@ -122,11 +126,13 @@ message Deployment {
google.protobuf.Timestamp end_time = 6;
}
-// The request message for [Deployments.ListDeployments][google.cloud.dialogflow.cx.v3.Deployments.ListDeployments].
+// The request message for
+// [Deployments.ListDeployments][google.cloud.dialogflow.cx.v3.Deployments.ListDeployments].
message ListDeploymentsRequest {
- // Required. The [Environment][google.cloud.dialogflow.cx.v3.Environment] to list all environments for.
- // Format: `projects//locations//agents//environments/`.
+ // Required. The [Environment][google.cloud.dialogflow.cx.v3.Environment] to
+ // list all environments for. Format: `projects//locations//agents//environments/`.
string parent = 1 [
(google.api.field_behavior) = REQUIRED,
(google.api.resource_reference) = {
@@ -142,7 +148,8 @@ message ListDeploymentsRequest {
string page_token = 3;
}
-// The response message for [Deployments.ListDeployments][google.cloud.dialogflow.cx.v3.Deployments.ListDeployments].
+// The response message for
+// [Deployments.ListDeployments][google.cloud.dialogflow.cx.v3.Deployments.ListDeployments].
message ListDeploymentsResponse {
// The list of deployments. There will be a maximum number of items
// returned based on the page_size field in the request. The list may in some
@@ -155,10 +162,12 @@ message ListDeploymentsResponse {
string next_page_token = 2;
}
-// The request message for [Deployments.GetDeployment][google.cloud.dialogflow.cx.v3.Deployments.GetDeployment].
+// The request message for
+// [Deployments.GetDeployment][google.cloud.dialogflow.cx.v3.Deployments.GetDeployment].
message GetDeploymentRequest {
- // Required. The name of the [Deployment][google.cloud.dialogflow.cx.v3.Deployment].
- // Format: `projects//locations//agents//locations//agents//environments//deployments/`.
string name = 1 [
(google.api.field_behavior) = REQUIRED,
diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/entity_type.proto b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/entity_type.proto
index 92c689e3952a..a0222a3f0ef7 100644
--- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/entity_type.proto
+++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/entity_type.proto
@@ -25,7 +25,7 @@ import "google/protobuf/field_mask.proto";
option cc_enable_arenas = true;
option csharp_namespace = "Google.Cloud.Dialogflow.Cx.V3";
-option go_package = "google.golang.org/genproto/googleapis/cloud/dialogflow/cx/v3;cx";
+option go_package = "cloud.google.com/go/dialogflow/cx/apiv3/cxpb;cxpb";
option java_multiple_files = true;
option java_outer_classname = "EntityTypeProto";
option java_package = "com.google.cloud.dialogflow.cx.v3";
@@ -40,7 +40,8 @@ service EntityTypes {
"https://www.googleapis.com/auth/dialogflow";
// Returns the list of all entity types in the specified agent.
- rpc ListEntityTypes(ListEntityTypesRequest) returns (ListEntityTypesResponse) {
+ rpc ListEntityTypes(ListEntityTypesRequest)
+ returns (ListEntityTypesResponse) {
option (google.api.http) = {
get: "/v3/{parent=projects/*/locations/*/agents/*}/entityTypes"
};
@@ -86,7 +87,8 @@ service EntityTypes {
// Note: You should always train a flow prior to sending it queries. See the
// [training
// documentation](https://cloud.google.com/dialogflow/cx/docs/concept/training).
- rpc DeleteEntityType(DeleteEntityTypeRequest) returns (google.protobuf.Empty) {
+ rpc DeleteEntityType(DeleteEntityTypeRequest)
+ returns (google.protobuf.Empty) {
option (google.api.http) = {
delete: "/v3/{name=projects/*/locations/*/agents/*/entityTypes/*}"
};
@@ -117,7 +119,9 @@ service EntityTypes {
//
// * **User** - entities that are built for an individual user such as
// favorites, preferences, playlists, and so on. A user entity is
-// represented by the [SessionEntityType][google.cloud.dialogflow.cx.v3.SessionEntityType] type.
+// represented by the
+// [SessionEntityType][google.cloud.dialogflow.cx.v3.SessionEntityType]
+// type.
//
// For more information about entity types, see the [Dialogflow
// documentation](https://cloud.google.com/dialogflow/docs/entities-overview).
@@ -191,12 +195,14 @@ message EntityType {
}
// The unique identifier of the entity type.
- // Required for [EntityTypes.UpdateEntityType][google.cloud.dialogflow.cx.v3.EntityTypes.UpdateEntityType].
+ // Required for
+ // [EntityTypes.UpdateEntityType][google.cloud.dialogflow.cx.v3.EntityTypes.UpdateEntityType].
// Format: `projects//locations//agents//entityTypes/`.
string name = 1;
- // Required. The human-readable name of the entity type, unique within the agent.
+ // Required. The human-readable name of the entity type, unique within the
+ // agent.
string display_name = 2 [(google.api.field_behavior) = REQUIRED];
// Required. Indicates the kind of entity type.
@@ -224,7 +230,8 @@ message EntityType {
bool redact = 9;
}
-// The request message for [EntityTypes.ListEntityTypes][google.cloud.dialogflow.cx.v3.EntityTypes.ListEntityTypes].
+// The request message for
+// [EntityTypes.ListEntityTypes][google.cloud.dialogflow.cx.v3.EntityTypes.ListEntityTypes].
message ListEntityTypesRequest {
// Required. The agent to list all entity types for.
// Format: `projects//locations//agents/`.
@@ -257,7 +264,8 @@ message ListEntityTypesRequest {
string page_token = 4;
}
-// The response message for [EntityTypes.ListEntityTypes][google.cloud.dialogflow.cx.v3.EntityTypes.ListEntityTypes].
+// The response message for
+// [EntityTypes.ListEntityTypes][google.cloud.dialogflow.cx.v3.EntityTypes.ListEntityTypes].
message ListEntityTypesResponse {
// The list of entity types. There will be a maximum number of items returned
// based on the page_size field in the request.
@@ -268,7 +276,8 @@ message ListEntityTypesResponse {
string next_page_token = 2;
}
-// The request message for [EntityTypes.GetEntityType][google.cloud.dialogflow.cx.v3.EntityTypes.GetEntityType].
+// The request message for
+// [EntityTypes.GetEntityType][google.cloud.dialogflow.cx.v3.EntityTypes.GetEntityType].
message GetEntityTypeRequest {
// Required. The name of the entity type.
// Format: `projects//locations//agents//locations//agents/`.
@@ -323,7 +333,8 @@ message CreateEntityTypeRequest {
string language_code = 3;
}
-// The request message for [EntityTypes.UpdateEntityType][google.cloud.dialogflow.cx.v3.EntityTypes.UpdateEntityType].
+// The request message for
+// [EntityTypes.UpdateEntityType][google.cloud.dialogflow.cx.v3.EntityTypes.UpdateEntityType].
message UpdateEntityTypeRequest {
// Required. The entity type to update.
EntityType entity_type = 1 [(google.api.field_behavior) = REQUIRED];
@@ -345,7 +356,8 @@ message UpdateEntityTypeRequest {
google.protobuf.FieldMask update_mask = 3;
}
-// The request message for [EntityTypes.DeleteEntityType][google.cloud.dialogflow.cx.v3.EntityTypes.DeleteEntityType].
+// The request message for
+// [EntityTypes.DeleteEntityType][google.cloud.dialogflow.cx.v3.EntityTypes.DeleteEntityType].
message DeleteEntityTypeRequest {
// Required. The name of the entity type to delete.
// Format: `projects//locations//agents//locations//agents//flows//versions/.
+ // Required. Format: projects//locations//agents//flows//versions/.
string version = 1 [
(google.api.field_behavior) = REQUIRED,
(google.api.resource_reference) = {
@@ -196,15 +216,17 @@ message Environment {
// Format of each test case name: `projects//locations/
// /agents//testCases/`
repeated string test_cases = 1 [(google.api.resource_reference) = {
- type: "dialogflow.googleapis.com/TestCase"
- }];
+ type: "dialogflow.googleapis.com/TestCase"
+ }];
- // Whether to run test cases in [TestCasesConfig.test_cases][google.cloud.dialogflow.cx.v3.Environment.TestCasesConfig.test_cases] periodically.
- // Default false. If set to true, run once a day.
+ // Whether to run test cases in
+ // [TestCasesConfig.test_cases][google.cloud.dialogflow.cx.v3.Environment.TestCasesConfig.test_cases]
+ // periodically. Default false. If set to true, run once a day.
bool enable_continuous_run = 2;
- // Whether to run test cases in [TestCasesConfig.test_cases][google.cloud.dialogflow.cx.v3.Environment.TestCasesConfig.test_cases] before
- // deploying a flow version to the environment. Default false.
+ // Whether to run test cases in
+ // [TestCasesConfig.test_cases][google.cloud.dialogflow.cx.v3.Environment.TestCasesConfig.test_cases]
+ // before deploying a flow version to the environment. Default false.
bool enable_predeployment_run = 3;
}
@@ -212,7 +234,8 @@ message Environment {
message WebhookConfig {
// The list of webhooks to override for the agent environment. The webhook
// must exist in the agent. You can override fields in
- // [`generic_web_service`][google.cloud.dialogflow.cx.v3.Webhook.generic_web_service] and
+ // [`generic_web_service`][google.cloud.dialogflow.cx.v3.Webhook.generic_web_service]
+ // and
// [`service_directory`][google.cloud.dialogflow.cx.v3.Webhook.service_directory].
repeated Webhook webhook_overrides = 1;
}
@@ -222,22 +245,24 @@ message Environment {
// ID>/environments/`.
string name = 1;
- // Required. The human-readable name of the environment (unique in an agent). Limit of
- // 64 characters.
+ // Required. The human-readable name of the environment (unique in an agent).
+ // Limit of 64 characters.
string display_name = 2 [(google.api.field_behavior) = REQUIRED];
// The human-readable description of the environment. The maximum length is
// 500 characters. If exceeded, the request is rejected.
string description = 3;
- // Required. A list of configurations for flow versions. You should include version
- // configs for all flows that are reachable from [`Start
+ // Required. A list of configurations for flow versions. You should include
+ // version configs for all flows that are reachable from [`Start
// Flow`][Agent.start_flow] in the agent. Otherwise, an error will be
// returned.
- repeated VersionConfig version_configs = 6 [(google.api.field_behavior) = REQUIRED];
+ repeated VersionConfig version_configs = 6
+ [(google.api.field_behavior) = REQUIRED];
// Output only. Update time of this environment.
- google.protobuf.Timestamp update_time = 5 [(google.api.field_behavior) = OUTPUT_ONLY];
+ google.protobuf.Timestamp update_time = 5
+ [(google.api.field_behavior) = OUTPUT_ONLY];
// The test cases config for continuous tests of this environment.
TestCasesConfig test_cases_config = 7;
@@ -246,10 +271,12 @@ message Environment {
WebhookConfig webhook_config = 10;
}
-// The request message for [Environments.ListEnvironments][google.cloud.dialogflow.cx.v3.Environments.ListEnvironments].
+// The request message for
+// [Environments.ListEnvironments][google.cloud.dialogflow.cx.v3.Environments.ListEnvironments].
message ListEnvironmentsRequest {
- // Required. The [Agent][google.cloud.dialogflow.cx.v3.Agent] to list all environments for.
- // Format: `projects//locations//agents/`.
+ // Required. The [Agent][google.cloud.dialogflow.cx.v3.Agent] to list all
+ // environments for. Format: `projects//locations//agents/`.
string parent = 1 [
(google.api.field_behavior) = REQUIRED,
(google.api.resource_reference) = {
@@ -265,7 +292,8 @@ message ListEnvironmentsRequest {
string page_token = 3;
}
-// The response message for [Environments.ListEnvironments][google.cloud.dialogflow.cx.v3.Environments.ListEnvironments].
+// The response message for
+// [Environments.ListEnvironments][google.cloud.dialogflow.cx.v3.Environments.ListEnvironments].
message ListEnvironmentsResponse {
// The list of environments. There will be a maximum number of items
// returned based on the page_size field in the request. The list may in some
@@ -278,10 +306,12 @@ message ListEnvironmentsResponse {
string next_page_token = 2;
}
-// The request message for [Environments.GetEnvironment][google.cloud.dialogflow.cx.v3.Environments.GetEnvironment].
+// The request message for
+// [Environments.GetEnvironment][google.cloud.dialogflow.cx.v3.Environments.GetEnvironment].
message GetEnvironmentRequest {
- // Required. The name of the [Environment][google.cloud.dialogflow.cx.v3.Environment].
- // Format: `projects//locations//agents//locations//agents//environments/`.
string name = 1 [
(google.api.field_behavior) = REQUIRED,
@@ -291,10 +321,12 @@ message GetEnvironmentRequest {
];
}
-// The request message for [Environments.CreateEnvironment][google.cloud.dialogflow.cx.v3.Environments.CreateEnvironment].
+// The request message for
+// [Environments.CreateEnvironment][google.cloud.dialogflow.cx.v3.Environments.CreateEnvironment].
message CreateEnvironmentRequest {
- // Required. The [Agent][google.cloud.dialogflow.cx.v3.Agent] to create an [Environment][google.cloud.dialogflow.cx.v3.Environment] for.
- // Format: `projects//locations//agents/`.
+ // Required. The [Agent][google.cloud.dialogflow.cx.v3.Agent] to create an
+ // [Environment][google.cloud.dialogflow.cx.v3.Environment] for. Format:
+ // `projects//locations//agents/`.
string parent = 1 [
(google.api.field_behavior) = REQUIRED,
(google.api.resource_reference) = {
@@ -306,19 +338,23 @@ message CreateEnvironmentRequest {
Environment environment = 2 [(google.api.field_behavior) = REQUIRED];
}
-// The request message for [Environments.UpdateEnvironment][google.cloud.dialogflow.cx.v3.Environments.UpdateEnvironment].
+// The request message for
+// [Environments.UpdateEnvironment][google.cloud.dialogflow.cx.v3.Environments.UpdateEnvironment].
message UpdateEnvironmentRequest {
// Required. The environment to update.
Environment environment = 1 [(google.api.field_behavior) = REQUIRED];
// Required. The mask to control which fields get updated.
- google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED];
+ google.protobuf.FieldMask update_mask = 2
+ [(google.api.field_behavior) = REQUIRED];
}
-// The request message for [Environments.DeleteEnvironment][google.cloud.dialogflow.cx.v3.Environments.DeleteEnvironment].
+// The request message for
+// [Environments.DeleteEnvironment][google.cloud.dialogflow.cx.v3.Environments.DeleteEnvironment].
message DeleteEnvironmentRequest {
- // Required. The name of the [Environment][google.cloud.dialogflow.cx.v3.Environment] to delete.
- // Format: `projects//locations//agents//locations//agents//environments/`.
string name = 1 [
(google.api.field_behavior) = REQUIRED,
@@ -328,7 +364,8 @@ message DeleteEnvironmentRequest {
];
}
-// The request message for [Environments.LookupEnvironmentHistory][google.cloud.dialogflow.cx.v3.Environments.LookupEnvironmentHistory].
+// The request message for
+// [Environments.LookupEnvironmentHistory][google.cloud.dialogflow.cx.v3.Environments.LookupEnvironmentHistory].
message LookupEnvironmentHistoryRequest {
// Required. Resource name of the environment to look up the history for.
// Format: `projects//locations//agents//locations//agents//environments/`.
+ // Required. Format: `projects//locations//agents//environments/`.
string environment = 1 [
(google.api.field_behavior) = REQUIRED,
(google.api.resource_reference) = {
@@ -409,20 +449,23 @@ message RunContinuousTestRequest {
];
}
-// The response message for [Environments.RunContinuousTest][google.cloud.dialogflow.cx.v3.Environments.RunContinuousTest].
+// The response message for
+// [Environments.RunContinuousTest][google.cloud.dialogflow.cx.v3.Environments.RunContinuousTest].
message RunContinuousTestResponse {
// The result for a continuous test run.
ContinuousTestResult continuous_test_result = 1;
}
-// Metadata returned for the [Environments.RunContinuousTest][google.cloud.dialogflow.cx.v3.Environments.RunContinuousTest] long running
-// operation.
+// Metadata returned for the
+// [Environments.RunContinuousTest][google.cloud.dialogflow.cx.v3.Environments.RunContinuousTest]
+// long running operation.
message RunContinuousTestMetadata {
// The test errors.
repeated TestError errors = 1;
}
-// The request message for [Environments.ListContinuousTestResults][google.cloud.dialogflow.cx.v3.Environments.ListContinuousTestResults].
+// The request message for
+// [Environments.ListContinuousTestResults][google.cloud.dialogflow.cx.v3.Environments.ListContinuousTestResults].
message ListContinuousTestResultsRequest {
// Required. The environment to list results for.
// Format: `projects//locations//agents//
@@ -452,7 +495,8 @@ message ListContinuousTestResultsResponse {
string next_page_token = 2;
}
-// The request message for [Environments.DeployFlow][google.cloud.dialogflow.cx.v3.Environments.DeployFlow].
+// The request message for
+// [Environments.DeployFlow][google.cloud.dialogflow.cx.v3.Environments.DeployFlow].
message DeployFlowRequest {
// Required. The environment to deploy the flow to.
// Format: `projects//locations//agents//
@@ -475,19 +519,22 @@ message DeployFlowRequest {
];
}
-// The response message for [Environments.DeployFlow][google.cloud.dialogflow.cx.v3.Environments.DeployFlow].
+// The response message for
+// [Environments.DeployFlow][google.cloud.dialogflow.cx.v3.Environments.DeployFlow].
message DeployFlowResponse {
// The updated environment where the flow is deployed.
Environment environment = 1;
- // The name of the flow version [Deployment][google.cloud.dialogflow.cx.v3.Deployment].
- // Format: `projects//locations//agents//
+ // The name of the flow version
+ // [Deployment][google.cloud.dialogflow.cx.v3.Deployment]. Format:
+ // `projects//locations//agents//
// environments//deployments/`.
string deployment = 2;
}
-// Metadata returned for the [Environments.DeployFlow][google.cloud.dialogflow.cx.v3.Environments.DeployFlow] long running
-// operation.
+// Metadata returned for the
+// [Environments.DeployFlow][google.cloud.dialogflow.cx.v3.Environments.DeployFlow]
+// long running operation.
message DeployFlowMetadata {
// Errors of running deployment tests.
repeated TestError test_errors = 1;
diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/experiment.proto b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/experiment.proto
index 6b5216dd5c0c..c7f44775355f 100644
--- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/experiment.proto
+++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/experiment.proto
@@ -27,7 +27,7 @@ import "google/protobuf/timestamp.proto";
option cc_enable_arenas = true;
option csharp_namespace = "Google.Cloud.Dialogflow.Cx.V3";
-option go_package = "google.golang.org/genproto/googleapis/cloud/dialogflow/cx/v3;cx";
+option go_package = "cloud.google.com/go/dialogflow/cx/apiv3/cxpb;cxpb";
option java_multiple_files = true;
option java_outer_classname = "ExperimentProto";
option java_package = "com.google.cloud.dialogflow.cx.v3";
@@ -41,15 +41,18 @@ service Experiments {
"https://www.googleapis.com/auth/cloud-platform,"
"https://www.googleapis.com/auth/dialogflow";
- // Returns the list of all experiments in the specified [Environment][google.cloud.dialogflow.cx.v3.Environment].
- rpc ListExperiments(ListExperimentsRequest) returns (ListExperimentsResponse) {
+ // Returns the list of all experiments in the specified
+ // [Environment][google.cloud.dialogflow.cx.v3.Environment].
+ rpc ListExperiments(ListExperimentsRequest)
+ returns (ListExperimentsResponse) {
option (google.api.http) = {
get: "/v3/{parent=projects/*/locations/*/agents/*/environments/*}/experiments"
};
option (google.api.method_signature) = "parent";
}
- // Retrieves the specified [Experiment][google.cloud.dialogflow.cx.v3.Experiment].
+ // Retrieves the specified
+ // [Experiment][google.cloud.dialogflow.cx.v3.Experiment].
rpc GetExperiment(GetExperimentRequest) returns (Experiment) {
option (google.api.http) = {
get: "/v3/{name=projects/*/locations/*/agents/*/environments/*/experiments/*}"
@@ -57,7 +60,8 @@ service Experiments {
option (google.api.method_signature) = "name";
}
- // Creates an [Experiment][google.cloud.dialogflow.cx.v3.Experiment] in the specified [Environment][google.cloud.dialogflow.cx.v3.Environment].
+ // Creates an [Experiment][google.cloud.dialogflow.cx.v3.Experiment] in the
+ // specified [Environment][google.cloud.dialogflow.cx.v3.Environment].
rpc CreateExperiment(CreateExperimentRequest) returns (Experiment) {
option (google.api.http) = {
post: "/v3/{parent=projects/*/locations/*/agents/*/environments/*}/experiments"
@@ -66,7 +70,8 @@ service Experiments {
option (google.api.method_signature) = "parent,experiment";
}
- // Updates the specified [Experiment][google.cloud.dialogflow.cx.v3.Experiment].
+ // Updates the specified
+ // [Experiment][google.cloud.dialogflow.cx.v3.Experiment].
rpc UpdateExperiment(UpdateExperimentRequest) returns (Experiment) {
option (google.api.http) = {
patch: "/v3/{experiment.name=projects/*/locations/*/agents/*/environments/*/experiments/*}"
@@ -75,16 +80,19 @@ service Experiments {
option (google.api.method_signature) = "experiment,update_mask";
}
- // Deletes the specified [Experiment][google.cloud.dialogflow.cx.v3.Experiment].
- rpc DeleteExperiment(DeleteExperimentRequest) returns (google.protobuf.Empty) {
+ // Deletes the specified
+ // [Experiment][google.cloud.dialogflow.cx.v3.Experiment].
+ rpc DeleteExperiment(DeleteExperimentRequest)
+ returns (google.protobuf.Empty) {
option (google.api.http) = {
delete: "/v3/{name=projects/*/locations/*/agents/*/environments/*/experiments/*}"
};
option (google.api.method_signature) = "name";
}
- // Starts the specified [Experiment][google.cloud.dialogflow.cx.v3.Experiment]. This rpc only changes the state of
- // experiment from PENDING to RUNNING.
+ // Starts the specified
+ // [Experiment][google.cloud.dialogflow.cx.v3.Experiment]. This rpc only
+ // changes the state of experiment from PENDING to RUNNING.
rpc StartExperiment(StartExperimentRequest) returns (Experiment) {
option (google.api.http) = {
post: "/v3/{name=projects/*/locations/*/agents/*/environments/*/experiments/*}:start"
@@ -93,8 +101,8 @@ service Experiments {
option (google.api.method_signature) = "name";
}
- // Stops the specified [Experiment][google.cloud.dialogflow.cx.v3.Experiment]. This rpc only changes the state of
- // experiment from RUNNING to DONE.
+ // Stops the specified [Experiment][google.cloud.dialogflow.cx.v3.Experiment].
+ // This rpc only changes the state of experiment from RUNNING to DONE.
rpc StopExperiment(StopExperimentRequest) returns (Experiment) {
option (google.api.http) = {
post: "/v3/{name=projects/*/locations/*/agents/*/environments/*/experiments/*}:stop"
@@ -233,8 +241,8 @@ message Experiment {
// Format: `projects//locations//agents/