This method is a [long-running + * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The + * returned `Operation` type has the following method-specific fields: + * + *
- `metadata`: + * [ImportIntentsMetadata][google.cloud.dialogflow.cx.v3beta1.ImportIntentsMetadata] - `response`: + * [ImportIntentsResponse][google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse] + * + *
Sample code: + * + *
{@code + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + * try (IntentsClient intentsClient = IntentsClient.create()) { + * ImportIntentsRequest request = + * ImportIntentsRequest.newBuilder() + * .setParent(AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString()) + * .build(); + * ImportIntentsResponse response = intentsClient.importIntentsAsync(request).get(); + * } + * }+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture
This method is a [long-running + * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The + * returned `Operation` type has the following method-specific fields: + * + *
- `metadata`: + * [ImportIntentsMetadata][google.cloud.dialogflow.cx.v3beta1.ImportIntentsMetadata] - `response`: + * [ImportIntentsResponse][google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse] + * + *
Sample code: + * + *
{@code + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + * try (IntentsClient intentsClient = IntentsClient.create()) { + * ImportIntentsRequest request = + * ImportIntentsRequest.newBuilder() + * .setParent(AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString()) + * .build(); + * OperationFuture+ */ + public final OperationCallablefuture = + * intentsClient.importIntentsOperationCallable().futureCall(request); + * // Do something. + * ImportIntentsResponse response = future.get(); + * } + * }
This method is a [long-running + * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The + * returned `Operation` type has the following method-specific fields: + * + *
- `metadata`: + * [ImportIntentsMetadata][google.cloud.dialogflow.cx.v3beta1.ImportIntentsMetadata] - `response`: + * [ImportIntentsResponse][google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse] + * + *
Sample code: + * + *
{@code + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + * try (IntentsClient intentsClient = IntentsClient.create()) { + * ImportIntentsRequest request = + * ImportIntentsRequest.newBuilder() + * .setParent(AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString()) + * .build(); + * ApiFuture+ */ + public final UnaryCallablefuture = intentsClient.importIntentsCallable().futureCall(request); + * // Do something. + * Operation response = future.get(); + * } + * }
This method is a [long-running + * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The + * returned `Operation` type has the following method-specific fields: + * + *
- `metadata`: + * [ExportIntentsMetadata][google.cloud.dialogflow.cx.v3beta1.ExportIntentsMetadata] - `response`: + * [ExportIntentsResponse][google.cloud.dialogflow.cx.v3beta1.ExportIntentsResponse] + * + *
Sample code: + * + *
{@code + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + * try (IntentsClient intentsClient = IntentsClient.create()) { + * ExportIntentsRequest request = + * ExportIntentsRequest.newBuilder() + * .setParent(AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString()) + * .addAllIntents(new ArrayList+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture()) + * .build(); + * ExportIntentsResponse response = intentsClient.exportIntentsAsync(request).get(); + * } + * }
This method is a [long-running + * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The + * returned `Operation` type has the following method-specific fields: + * + *
- `metadata`: + * [ExportIntentsMetadata][google.cloud.dialogflow.cx.v3beta1.ExportIntentsMetadata] - `response`: + * [ExportIntentsResponse][google.cloud.dialogflow.cx.v3beta1.ExportIntentsResponse] + * + *
Sample code: + * + *
{@code + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + * try (IntentsClient intentsClient = IntentsClient.create()) { + * ExportIntentsRequest request = + * ExportIntentsRequest.newBuilder() + * .setParent(AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString()) + * .addAllIntents(new ArrayList+ */ + public final OperationCallable()) + * .build(); + * OperationFuture future = + * intentsClient.exportIntentsOperationCallable().futureCall(request); + * // Do something. + * ExportIntentsResponse response = future.get(); + * } + * }
This method is a [long-running + * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The + * returned `Operation` type has the following method-specific fields: + * + *
- `metadata`: + * [ExportIntentsMetadata][google.cloud.dialogflow.cx.v3beta1.ExportIntentsMetadata] - `response`: + * [ExportIntentsResponse][google.cloud.dialogflow.cx.v3beta1.ExportIntentsResponse] + * + *
Sample code: + * + *
{@code + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + * try (IntentsClient intentsClient = IntentsClient.create()) { + * ExportIntentsRequest request = + * ExportIntentsRequest.newBuilder() + * .setParent(AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString()) + * .addAllIntents(new ArrayList+ */ + public final UnaryCallable()) + * .build(); + * ApiFuture future = intentsClient.exportIntentsCallable().futureCall(request); + * // Do something. + * Operation response = future.get(); + * } + * }
+ * Imports the specified intents into the agent. + * This method is a [long-running + * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). + * The returned `Operation` type has the following method-specific fields: + * - `metadata`: + * [ImportIntentsMetadata][google.cloud.dialogflow.cx.v3beta1.ImportIntentsMetadata] + * - `response`: + * [ImportIntentsResponse][google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse] + *+ */ + default void importIntents( + com.google.cloud.dialogflow.cx.v3beta1.ImportIntentsRequest request, + io.grpc.stub.StreamObserver
+ * Exports the selected intents. + * This method is a [long-running + * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). + * The returned `Operation` type has the following method-specific fields: + * - `metadata`: + * [ExportIntentsMetadata][google.cloud.dialogflow.cx.v3beta1.ExportIntentsMetadata] + * - `response`: + * [ExportIntentsResponse][google.cloud.dialogflow.cx.v3beta1.ExportIntentsResponse] + *+ */ + default void exportIntents( + com.google.cloud.dialogflow.cx.v3beta1.ExportIntentsRequest request, + io.grpc.stub.StreamObserver
+ * Imports the specified intents into the agent. + * This method is a [long-running + * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). + * The returned `Operation` type has the following method-specific fields: + * - `metadata`: + * [ImportIntentsMetadata][google.cloud.dialogflow.cx.v3beta1.ImportIntentsMetadata] + * - `response`: + * [ImportIntentsResponse][google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse] + *+ */ + public void importIntents( + com.google.cloud.dialogflow.cx.v3beta1.ImportIntentsRequest request, + io.grpc.stub.StreamObserver
+ * Exports the selected intents. + * This method is a [long-running + * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). + * The returned `Operation` type has the following method-specific fields: + * - `metadata`: + * [ExportIntentsMetadata][google.cloud.dialogflow.cx.v3beta1.ExportIntentsMetadata] + * - `response`: + * [ExportIntentsResponse][google.cloud.dialogflow.cx.v3beta1.ExportIntentsResponse] + *+ */ + public void exportIntents( + com.google.cloud.dialogflow.cx.v3beta1.ExportIntentsRequest request, + io.grpc.stub.StreamObserver
+ * Imports the specified intents into the agent. + * This method is a [long-running + * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). + * The returned `Operation` type has the following method-specific fields: + * - `metadata`: + * [ImportIntentsMetadata][google.cloud.dialogflow.cx.v3beta1.ImportIntentsMetadata] + * - `response`: + * [ImportIntentsResponse][google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse] + *+ */ + public com.google.longrunning.Operation importIntents( + com.google.cloud.dialogflow.cx.v3beta1.ImportIntentsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getImportIntentsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+ * Exports the selected intents. + * This method is a [long-running + * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). + * The returned `Operation` type has the following method-specific fields: + * - `metadata`: + * [ExportIntentsMetadata][google.cloud.dialogflow.cx.v3beta1.ExportIntentsMetadata] + * - `response`: + * [ExportIntentsResponse][google.cloud.dialogflow.cx.v3beta1.ExportIntentsResponse] + *+ */ + public com.google.longrunning.Operation exportIntents( + com.google.cloud.dialogflow.cx.v3beta1.ExportIntentsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getExportIntentsMethod(), getCallOptions(), request); + } } /** @@ -702,6 +920,46 @@ protected IntentsFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions c return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getDeleteIntentMethod(), getCallOptions()), request); } + + /** + * + * + *
+ * Imports the specified intents into the agent. + * This method is a [long-running + * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). + * The returned `Operation` type has the following method-specific fields: + * - `metadata`: + * [ImportIntentsMetadata][google.cloud.dialogflow.cx.v3beta1.ImportIntentsMetadata] + * - `response`: + * [ImportIntentsResponse][google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse] + *+ */ + public com.google.common.util.concurrent.ListenableFuture
+ * Exports the selected intents. + * This method is a [long-running + * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). + * The returned `Operation` type has the following method-specific fields: + * - `metadata`: + * [ExportIntentsMetadata][google.cloud.dialogflow.cx.v3beta1.ExportIntentsMetadata] + * - `response`: + * [ExportIntentsResponse][google.cloud.dialogflow.cx.v3beta1.ExportIntentsResponse] + *+ */ + public com.google.common.util.concurrent.ListenableFuture
+ * If true, incoming audio is processed for DTMF (dual tone multi frequency) + * events. For example, if the caller presses a button on their telephone + * keypad and DTMF processing is enabled, Dialogflow will detect the + * event (e.g. a "3" was pressed) in the incoming audio and pass the event + * to the bot to drive business logic (e.g. when 3 is pressed, return the + * account balance). + *+ * + *
bool enabled = 1;
+ *
+ * @return The enabled.
+ */
+ boolean getEnabled();
+
+ /**
+ *
+ *
+ * + * Max length of DTMF digits. + *+ * + *
int32 max_digits = 2;
+ *
+ * @return The maxDigits.
+ */
+ int getMaxDigits();
+
+ /**
+ *
+ *
+ * + * The digit that terminates a DTMF digit sequence. + *+ * + *
string finish_digit = 3;
+ *
+ * @return The finishDigit.
+ */
+ java.lang.String getFinishDigit();
+ /**
+ *
+ *
+ * + * The digit that terminates a DTMF digit sequence. + *+ * + *
string finish_digit = 3;
+ *
+ * @return The bytes for finishDigit.
+ */
+ com.google.protobuf.ByteString getFinishDigitBytes();
+ }
+ /**
+ *
+ *
+ * + * Define behaviors for DTMF (dual tone multi frequency). + *+ * + * Protobuf type {@code google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.DtmfSettings} + */ + public static final class DtmfSettings extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.DtmfSettings) + DtmfSettingsOrBuilder { + private static final long serialVersionUID = 0L; + // Use DtmfSettings.newBuilder() to construct. + private DtmfSettings(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private DtmfSettings() { + finishDigit_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DtmfSettings(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.cx.v3beta1.AdvancedSettingsProto + .internal_static_google_cloud_dialogflow_cx_v3beta1_AdvancedSettings_DtmfSettings_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.cx.v3beta1.AdvancedSettingsProto + .internal_static_google_cloud_dialogflow_cx_v3beta1_AdvancedSettings_DtmfSettings_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.DtmfSettings.class, + com.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.DtmfSettings.Builder.class); + } + + public static final int ENABLED_FIELD_NUMBER = 1; + private boolean enabled_ = false; + /** + * + * + *
+ * If true, incoming audio is processed for DTMF (dual tone multi frequency) + * events. For example, if the caller presses a button on their telephone + * keypad and DTMF processing is enabled, Dialogflow will detect the + * event (e.g. a "3" was pressed) in the incoming audio and pass the event + * to the bot to drive business logic (e.g. when 3 is pressed, return the + * account balance). + *+ * + *
bool enabled = 1;
+ *
+ * @return The enabled.
+ */
+ @java.lang.Override
+ public boolean getEnabled() {
+ return enabled_;
+ }
+
+ public static final int MAX_DIGITS_FIELD_NUMBER = 2;
+ private int maxDigits_ = 0;
+ /**
+ *
+ *
+ * + * Max length of DTMF digits. + *+ * + *
int32 max_digits = 2;
+ *
+ * @return The maxDigits.
+ */
+ @java.lang.Override
+ public int getMaxDigits() {
+ return maxDigits_;
+ }
+
+ public static final int FINISH_DIGIT_FIELD_NUMBER = 3;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object finishDigit_ = "";
+ /**
+ *
+ *
+ * + * The digit that terminates a DTMF digit sequence. + *+ * + *
string finish_digit = 3;
+ *
+ * @return The finishDigit.
+ */
+ @java.lang.Override
+ public java.lang.String getFinishDigit() {
+ java.lang.Object ref = finishDigit_;
+ 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();
+ finishDigit_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * The digit that terminates a DTMF digit sequence. + *+ * + *
string finish_digit = 3;
+ *
+ * @return The bytes for finishDigit.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getFinishDigitBytes() {
+ java.lang.Object ref = finishDigit_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ finishDigit_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (enabled_ != false) {
+ output.writeBool(1, enabled_);
+ }
+ if (maxDigits_ != 0) {
+ output.writeInt32(2, maxDigits_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(finishDigit_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 3, finishDigit_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (enabled_ != false) {
+ size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, enabled_);
+ }
+ if (maxDigits_ != 0) {
+ size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, maxDigits_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(finishDigit_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, finishDigit_);
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.DtmfSettings)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.DtmfSettings other =
+ (com.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.DtmfSettings) obj;
+
+ if (getEnabled() != other.getEnabled()) return false;
+ if (getMaxDigits() != other.getMaxDigits()) return false;
+ if (!getFinishDigit().equals(other.getFinishDigit())) return false;
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + ENABLED_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnabled());
+ hash = (37 * hash) + MAX_DIGITS_FIELD_NUMBER;
+ hash = (53 * hash) + getMaxDigits();
+ hash = (37 * hash) + FINISH_DIGIT_FIELD_NUMBER;
+ hash = (53 * hash) + getFinishDigit().hashCode();
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.DtmfSettings parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.DtmfSettings parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.DtmfSettings parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.DtmfSettings parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.DtmfSettings parseFrom(
+ byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.DtmfSettings parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.DtmfSettings parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.DtmfSettings parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.DtmfSettings
+ parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.DtmfSettings
+ parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.DtmfSettings parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.DtmfSettings parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(
+ com.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.DtmfSettings prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ *
+ *
+ * + * Define behaviors for DTMF (dual tone multi frequency). + *+ * + * Protobuf type {@code google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.DtmfSettings} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder
+ * If true, incoming audio is processed for DTMF (dual tone multi frequency) + * events. For example, if the caller presses a button on their telephone + * keypad and DTMF processing is enabled, Dialogflow will detect the + * event (e.g. a "3" was pressed) in the incoming audio and pass the event + * to the bot to drive business logic (e.g. when 3 is pressed, return the + * account balance). + *+ * + *
bool enabled = 1;
+ *
+ * @return The enabled.
+ */
+ @java.lang.Override
+ public boolean getEnabled() {
+ return enabled_;
+ }
+ /**
+ *
+ *
+ * + * If true, incoming audio is processed for DTMF (dual tone multi frequency) + * events. For example, if the caller presses a button on their telephone + * keypad and DTMF processing is enabled, Dialogflow will detect the + * event (e.g. a "3" was pressed) in the incoming audio and pass the event + * to the bot to drive business logic (e.g. when 3 is pressed, return the + * account balance). + *+ * + *
bool enabled = 1;
+ *
+ * @param value The enabled to set.
+ * @return This builder for chaining.
+ */
+ public Builder setEnabled(boolean value) {
+
+ enabled_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * If true, incoming audio is processed for DTMF (dual tone multi frequency) + * events. For example, if the caller presses a button on their telephone + * keypad and DTMF processing is enabled, Dialogflow will detect the + * event (e.g. a "3" was pressed) in the incoming audio and pass the event + * to the bot to drive business logic (e.g. when 3 is pressed, return the + * account balance). + *+ * + *
bool enabled = 1;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearEnabled() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ enabled_ = false;
+ onChanged();
+ return this;
+ }
+
+ private int maxDigits_;
+ /**
+ *
+ *
+ * + * Max length of DTMF digits. + *+ * + *
int32 max_digits = 2;
+ *
+ * @return The maxDigits.
+ */
+ @java.lang.Override
+ public int getMaxDigits() {
+ return maxDigits_;
+ }
+ /**
+ *
+ *
+ * + * Max length of DTMF digits. + *+ * + *
int32 max_digits = 2;
+ *
+ * @param value The maxDigits to set.
+ * @return This builder for chaining.
+ */
+ public Builder setMaxDigits(int value) {
+
+ maxDigits_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Max length of DTMF digits. + *+ * + *
int32 max_digits = 2;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearMaxDigits() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ maxDigits_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object finishDigit_ = "";
+ /**
+ *
+ *
+ * + * The digit that terminates a DTMF digit sequence. + *+ * + *
string finish_digit = 3;
+ *
+ * @return The finishDigit.
+ */
+ public java.lang.String getFinishDigit() {
+ java.lang.Object ref = finishDigit_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ finishDigit_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * The digit that terminates a DTMF digit sequence. + *+ * + *
string finish_digit = 3;
+ *
+ * @return The bytes for finishDigit.
+ */
+ public com.google.protobuf.ByteString getFinishDigitBytes() {
+ java.lang.Object ref = finishDigit_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ finishDigit_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * The digit that terminates a DTMF digit sequence. + *+ * + *
string finish_digit = 3;
+ *
+ * @param value The finishDigit to set.
+ * @return This builder for chaining.
+ */
+ public Builder setFinishDigit(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ finishDigit_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The digit that terminates a DTMF digit sequence. + *+ * + *
string finish_digit = 3;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearFinishDigit() {
+ finishDigit_ = getDefaultInstance().getFinishDigit();
+ bitField0_ = (bitField0_ & ~0x00000004);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The digit that terminates a DTMF digit sequence. + *+ * + *
string finish_digit = 3;
+ *
+ * @param value The bytes for finishDigit to set.
+ * @return This builder for chaining.
+ */
+ public Builder setFinishDigitBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ finishDigit_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.DtmfSettings)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.DtmfSettings)
+ private static final com.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.DtmfSettings
+ DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.DtmfSettings();
+ }
+
+ public static com.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.DtmfSettings
+ getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * Settings for DTMF. + * Exposed at the following levels: + * - Agent level + * - Flow level + * - Page level + * - Parameter level. + *+ * + *
.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.DtmfSettings dtmf_settings = 5;
+ *
+ *
+ * @return Whether the dtmfSettings field is set.
+ */
+ @java.lang.Override
+ public boolean hasDtmfSettings() {
+ return dtmfSettings_ != null;
+ }
+ /**
+ *
+ *
+ * + * Settings for DTMF. + * Exposed at the following levels: + * - Agent level + * - Flow level + * - Page level + * - Parameter level. + *+ * + *
.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.DtmfSettings dtmf_settings = 5;
+ *
+ *
+ * @return The dtmfSettings.
+ */
+ @java.lang.Override
+ public com.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.DtmfSettings getDtmfSettings() {
+ return dtmfSettings_ == null
+ ? com.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.DtmfSettings.getDefaultInstance()
+ : dtmfSettings_;
+ }
+ /**
+ *
+ *
+ * + * Settings for DTMF. + * Exposed at the following levels: + * - Agent level + * - Flow level + * - Page level + * - Parameter level. + *+ * + *
.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.DtmfSettings dtmf_settings = 5;
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.DtmfSettingsOrBuilder
+ getDtmfSettingsOrBuilder() {
+ return dtmfSettings_ == null
+ ? com.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.DtmfSettings.getDefaultInstance()
+ : dtmfSettings_;
+ }
+
public static final int LOGGING_SETTINGS_FIELD_NUMBER = 6;
private com.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.LoggingSettings loggingSettings_;
/**
@@ -889,6 +1849,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (audioExportGcsDestination_ != null) {
output.writeMessage(2, getAudioExportGcsDestination());
}
+ if (dtmfSettings_ != null) {
+ output.writeMessage(5, getDtmfSettings());
+ }
if (loggingSettings_ != null) {
output.writeMessage(6, getLoggingSettings());
}
@@ -906,6 +1869,9 @@ public int getSerializedSize() {
com.google.protobuf.CodedOutputStream.computeMessageSize(
2, getAudioExportGcsDestination());
}
+ if (dtmfSettings_ != null) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getDtmfSettings());
+ }
if (loggingSettings_ != null) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getLoggingSettings());
}
@@ -930,6 +1896,10 @@ public boolean equals(final java.lang.Object obj) {
if (!getAudioExportGcsDestination().equals(other.getAudioExportGcsDestination()))
return false;
}
+ if (hasDtmfSettings() != other.hasDtmfSettings()) return false;
+ if (hasDtmfSettings()) {
+ if (!getDtmfSettings().equals(other.getDtmfSettings())) return false;
+ }
if (hasLoggingSettings() != other.hasLoggingSettings()) return false;
if (hasLoggingSettings()) {
if (!getLoggingSettings().equals(other.getLoggingSettings())) return false;
@@ -949,6 +1919,10 @@ public int hashCode() {
hash = (37 * hash) + AUDIO_EXPORT_GCS_DESTINATION_FIELD_NUMBER;
hash = (53 * hash) + getAudioExportGcsDestination().hashCode();
}
+ if (hasDtmfSettings()) {
+ hash = (37 * hash) + DTMF_SETTINGS_FIELD_NUMBER;
+ hash = (53 * hash) + getDtmfSettings().hashCode();
+ }
if (hasLoggingSettings()) {
hash = (37 * hash) + LOGGING_SETTINGS_FIELD_NUMBER;
hash = (53 * hash) + getLoggingSettings().hashCode();
@@ -1108,6 +2082,11 @@ public Builder clear() {
audioExportGcsDestinationBuilder_.dispose();
audioExportGcsDestinationBuilder_ = null;
}
+ dtmfSettings_ = null;
+ if (dtmfSettingsBuilder_ != null) {
+ dtmfSettingsBuilder_.dispose();
+ dtmfSettingsBuilder_ = null;
+ }
loggingSettings_ = null;
if (loggingSettingsBuilder_ != null) {
loggingSettingsBuilder_.dispose();
@@ -1156,6 +2135,10 @@ private void buildPartial0(com.google.cloud.dialogflow.cx.v3beta1.AdvancedSettin
: audioExportGcsDestinationBuilder_.build();
}
if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.dtmfSettings_ =
+ dtmfSettingsBuilder_ == null ? dtmfSettings_ : dtmfSettingsBuilder_.build();
+ }
+ if (((from_bitField0_ & 0x00000004) != 0)) {
result.loggingSettings_ =
loggingSettingsBuilder_ == null ? loggingSettings_ : loggingSettingsBuilder_.build();
}
@@ -1210,6 +2193,9 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings
if (other.hasAudioExportGcsDestination()) {
mergeAudioExportGcsDestination(other.getAudioExportGcsDestination());
}
+ if (other.hasDtmfSettings()) {
+ mergeDtmfSettings(other.getDtmfSettings());
+ }
if (other.hasLoggingSettings()) {
mergeLoggingSettings(other.getLoggingSettings());
}
@@ -1246,10 +2232,16 @@ public Builder mergeFrom(
bitField0_ |= 0x00000001;
break;
} // case 18
+ case 42:
+ {
+ input.readMessage(getDtmfSettingsFieldBuilder().getBuilder(), extensionRegistry);
+ bitField0_ |= 0x00000002;
+ break;
+ } // case 42
case 50:
{
input.readMessage(getLoggingSettingsFieldBuilder().getBuilder(), extensionRegistry);
- bitField0_ |= 0x00000002;
+ bitField0_ |= 0x00000004;
break;
} // case 50
default:
@@ -1505,6 +2497,253 @@ public Builder clearAudioExportGcsDestination() {
return audioExportGcsDestinationBuilder_;
}
+ private com.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.DtmfSettings dtmfSettings_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.DtmfSettings,
+ com.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.DtmfSettings.Builder,
+ com.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.DtmfSettingsOrBuilder>
+ dtmfSettingsBuilder_;
+ /**
+ *
+ *
+ * + * Settings for DTMF. + * Exposed at the following levels: + * - Agent level + * - Flow level + * - Page level + * - Parameter level. + *+ * + *
.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.DtmfSettings dtmf_settings = 5;
+ *
+ *
+ * @return Whether the dtmfSettings field is set.
+ */
+ public boolean hasDtmfSettings() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+ /**
+ *
+ *
+ * + * Settings for DTMF. + * Exposed at the following levels: + * - Agent level + * - Flow level + * - Page level + * - Parameter level. + *+ * + *
.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.DtmfSettings dtmf_settings = 5;
+ *
+ *
+ * @return The dtmfSettings.
+ */
+ public com.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.DtmfSettings getDtmfSettings() {
+ if (dtmfSettingsBuilder_ == null) {
+ return dtmfSettings_ == null
+ ? com.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.DtmfSettings
+ .getDefaultInstance()
+ : dtmfSettings_;
+ } else {
+ return dtmfSettingsBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ * + * Settings for DTMF. + * Exposed at the following levels: + * - Agent level + * - Flow level + * - Page level + * - Parameter level. + *+ * + *
.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.DtmfSettings dtmf_settings = 5;
+ *
+ */
+ public Builder setDtmfSettings(
+ com.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.DtmfSettings value) {
+ if (dtmfSettingsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ dtmfSettings_ = value;
+ } else {
+ dtmfSettingsBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Settings for DTMF. + * Exposed at the following levels: + * - Agent level + * - Flow level + * - Page level + * - Parameter level. + *+ * + *
.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.DtmfSettings dtmf_settings = 5;
+ *
+ */
+ public Builder setDtmfSettings(
+ com.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.DtmfSettings.Builder
+ builderForValue) {
+ if (dtmfSettingsBuilder_ == null) {
+ dtmfSettings_ = builderForValue.build();
+ } else {
+ dtmfSettingsBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Settings for DTMF. + * Exposed at the following levels: + * - Agent level + * - Flow level + * - Page level + * - Parameter level. + *+ * + *
.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.DtmfSettings dtmf_settings = 5;
+ *
+ */
+ public Builder mergeDtmfSettings(
+ com.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.DtmfSettings value) {
+ if (dtmfSettingsBuilder_ == null) {
+ if (((bitField0_ & 0x00000002) != 0)
+ && dtmfSettings_ != null
+ && dtmfSettings_
+ != com.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.DtmfSettings
+ .getDefaultInstance()) {
+ getDtmfSettingsBuilder().mergeFrom(value);
+ } else {
+ dtmfSettings_ = value;
+ }
+ } else {
+ dtmfSettingsBuilder_.mergeFrom(value);
+ }
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Settings for DTMF. + * Exposed at the following levels: + * - Agent level + * - Flow level + * - Page level + * - Parameter level. + *+ * + *
.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.DtmfSettings dtmf_settings = 5;
+ *
+ */
+ public Builder clearDtmfSettings() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ dtmfSettings_ = null;
+ if (dtmfSettingsBuilder_ != null) {
+ dtmfSettingsBuilder_.dispose();
+ dtmfSettingsBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Settings for DTMF. + * Exposed at the following levels: + * - Agent level + * - Flow level + * - Page level + * - Parameter level. + *+ * + *
.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.DtmfSettings dtmf_settings = 5;
+ *
+ */
+ public com.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.DtmfSettings.Builder
+ getDtmfSettingsBuilder() {
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return getDtmfSettingsFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * Settings for DTMF. + * Exposed at the following levels: + * - Agent level + * - Flow level + * - Page level + * - Parameter level. + *+ * + *
.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.DtmfSettings dtmf_settings = 5;
+ *
+ */
+ public com.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.DtmfSettingsOrBuilder
+ getDtmfSettingsOrBuilder() {
+ if (dtmfSettingsBuilder_ != null) {
+ return dtmfSettingsBuilder_.getMessageOrBuilder();
+ } else {
+ return dtmfSettings_ == null
+ ? com.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.DtmfSettings
+ .getDefaultInstance()
+ : dtmfSettings_;
+ }
+ }
+ /**
+ *
+ *
+ * + * Settings for DTMF. + * Exposed at the following levels: + * - Agent level + * - Flow level + * - Page level + * - Parameter level. + *+ * + *
.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.DtmfSettings dtmf_settings = 5;
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.DtmfSettings,
+ com.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.DtmfSettings.Builder,
+ com.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.DtmfSettingsOrBuilder>
+ getDtmfSettingsFieldBuilder() {
+ if (dtmfSettingsBuilder_ == null) {
+ dtmfSettingsBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.DtmfSettings,
+ com.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.DtmfSettings.Builder,
+ com.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.DtmfSettingsOrBuilder>(
+ getDtmfSettings(), getParentForChildren(), isClean());
+ dtmfSettings_ = null;
+ }
+ return dtmfSettingsBuilder_;
+ }
+
private com.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.LoggingSettings
loggingSettings_;
private com.google.protobuf.SingleFieldBuilderV3<
@@ -1530,7 +2769,7 @@ public Builder clearAudioExportGcsDestination() {
* @return Whether the loggingSettings field is set.
*/
public boolean hasLoggingSettings() {
- return ((bitField0_ & 0x00000002) != 0);
+ return ((bitField0_ & 0x00000004) != 0);
}
/**
*
@@ -1585,7 +2824,7 @@ public Builder setLoggingSettings(
} else {
loggingSettingsBuilder_.setMessage(value);
}
- bitField0_ |= 0x00000002;
+ bitField0_ |= 0x00000004;
onChanged();
return this;
}
@@ -1612,7 +2851,7 @@ public Builder setLoggingSettings(
} else {
loggingSettingsBuilder_.setMessage(builderForValue.build());
}
- bitField0_ |= 0x00000002;
+ bitField0_ |= 0x00000004;
onChanged();
return this;
}
@@ -1634,7 +2873,7 @@ public Builder setLoggingSettings(
public Builder mergeLoggingSettings(
com.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.LoggingSettings value) {
if (loggingSettingsBuilder_ == null) {
- if (((bitField0_ & 0x00000002) != 0)
+ if (((bitField0_ & 0x00000004) != 0)
&& loggingSettings_ != null
&& loggingSettings_
!= com.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.LoggingSettings
@@ -1646,7 +2885,7 @@ public Builder mergeLoggingSettings(
} else {
loggingSettingsBuilder_.mergeFrom(value);
}
- bitField0_ |= 0x00000002;
+ bitField0_ |= 0x00000004;
onChanged();
return this;
}
@@ -1666,7 +2905,7 @@ public Builder mergeLoggingSettings(
*
*/
public Builder clearLoggingSettings() {
- bitField0_ = (bitField0_ & ~0x00000002);
+ bitField0_ = (bitField0_ & ~0x00000004);
loggingSettings_ = null;
if (loggingSettingsBuilder_ != null) {
loggingSettingsBuilder_.dispose();
@@ -1692,7 +2931,7 @@ public Builder clearLoggingSettings() {
*/
public com.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.LoggingSettings.Builder
getLoggingSettingsBuilder() {
- bitField0_ |= 0x00000002;
+ bitField0_ |= 0x00000004;
onChanged();
return getLoggingSettingsFieldBuilder().getBuilder();
}
diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/AdvancedSettingsOrBuilder.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/AdvancedSettingsOrBuilder.java
index 070281c6a33b..07523d19f357 100644
--- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/AdvancedSettingsOrBuilder.java
+++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/AdvancedSettingsOrBuilder.java
@@ -74,6 +74,60 @@ public interface AdvancedSettingsOrBuilder
com.google.cloud.dialogflow.cx.v3beta1.GcsDestinationOrBuilder
getAudioExportGcsDestinationOrBuilder();
+ /**
+ *
+ *
+ * + * Settings for DTMF. + * Exposed at the following levels: + * - Agent level + * - Flow level + * - Page level + * - Parameter level. + *+ * + *
.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.DtmfSettings dtmf_settings = 5;
+ *
+ *
+ * @return Whether the dtmfSettings field is set.
+ */
+ boolean hasDtmfSettings();
+ /**
+ *
+ *
+ * + * Settings for DTMF. + * Exposed at the following levels: + * - Agent level + * - Flow level + * - Page level + * - Parameter level. + *+ * + *
.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.DtmfSettings dtmf_settings = 5;
+ *
+ *
+ * @return The dtmfSettings.
+ */
+ com.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.DtmfSettings getDtmfSettings();
+ /**
+ *
+ *
+ * + * Settings for DTMF. + * Exposed at the following levels: + * - Agent level + * - Flow level + * - Page level + * - Parameter level. + *+ * + *
.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.DtmfSettings dtmf_settings = 5;
+ *
+ */
+ com.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.DtmfSettingsOrBuilder
+ getDtmfSettingsOrBuilder();
+
/**
*
*
diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/AdvancedSettingsProto.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/AdvancedSettingsProto.java
index 0086d5df3256..00e7dc7eba58 100644
--- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/AdvancedSettingsProto.java
+++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/AdvancedSettingsProto.java
@@ -31,6 +31,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r
internal_static_google_cloud_dialogflow_cx_v3beta1_AdvancedSettings_descriptor;
static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_google_cloud_dialogflow_cx_v3beta1_AdvancedSettings_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_dialogflow_cx_v3beta1_AdvancedSettings_DtmfSettings_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_dialogflow_cx_v3beta1_AdvancedSettings_DtmfSettings_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_google_cloud_dialogflow_cx_v3beta1_AdvancedSettings_LoggingSettings_descriptor;
static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
@@ -48,20 +52,24 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "anced_settings.proto\022\"google.cloud.dialo"
+ "gflow.cx.v3beta1\032\037google/api/field_behav"
+ "ior.proto\032,google/cloud/dialogflow/cx/v3"
- + "beta1/gcs.proto\"\247\002\n\020AdvancedSettings\022X\n\034"
+ + "beta1/gcs.proto\"\314\003\n\020AdvancedSettings\022X\n\034"
+ "audio_export_gcs_destination\030\002 \001(\01322.goo"
+ "gle.cloud.dialogflow.cx.v3beta1.GcsDesti"
- + "nation\022^\n\020logging_settings\030\006 \001(\0132D.googl"
- + "e.cloud.dialogflow.cx.v3beta1.AdvancedSe"
- + "ttings.LoggingSettings\032Y\n\017LoggingSetting"
- + "s\022\"\n\032enable_stackdriver_logging\030\002 \001(\010\022\"\n"
- + "\032enable_interaction_logging\030\003 \001(\010B\317\001\n&co"
- + "m.google.cloud.dialogflow.cx.v3beta1B\025Ad"
- + "vancedSettingsProtoP\001Z6cloud.google.com/"
- + "go/dialogflow/cx/apiv3beta1/cxpb;cxpb\370\001\001"
- + "\242\002\002DF\252\002\"Google.Cloud.Dialogflow.Cx.V3Bet"
- + "a1\352\002&Google::Cloud::Dialogflow::CX::V3be"
- + "ta1b\006proto3"
+ + "nation\022X\n\rdtmf_settings\030\005 \001(\0132A.google.c"
+ + "loud.dialogflow.cx.v3beta1.AdvancedSetti"
+ + "ngs.DtmfSettings\022^\n\020logging_settings\030\006 \001"
+ + "(\0132D.google.cloud.dialogflow.cx.v3beta1."
+ + "AdvancedSettings.LoggingSettings\032I\n\014Dtmf"
+ + "Settings\022\017\n\007enabled\030\001 \001(\010\022\022\n\nmax_digits\030"
+ + "\002 \001(\005\022\024\n\014finish_digit\030\003 \001(\t\032Y\n\017LoggingSe"
+ + "ttings\022\"\n\032enable_stackdriver_logging\030\002 \001"
+ + "(\010\022\"\n\032enable_interaction_logging\030\003 \001(\010B\317"
+ + "\001\n&com.google.cloud.dialogflow.cx.v3beta"
+ + "1B\025AdvancedSettingsProtoP\001Z6cloud.google"
+ + ".com/go/dialogflow/cx/apiv3beta1/cxpb;cx"
+ + "pb\370\001\001\242\002\002DF\252\002\"Google.Cloud.Dialogflow.Cx."
+ + "V3Beta1\352\002&Google::Cloud::Dialogflow::CX:"
+ + ":V3beta1b\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
@@ -76,12 +84,22 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_cloud_dialogflow_cx_v3beta1_AdvancedSettings_descriptor,
new java.lang.String[] {
- "AudioExportGcsDestination", "LoggingSettings",
+ "AudioExportGcsDestination", "DtmfSettings", "LoggingSettings",
});
- internal_static_google_cloud_dialogflow_cx_v3beta1_AdvancedSettings_LoggingSettings_descriptor =
+ internal_static_google_cloud_dialogflow_cx_v3beta1_AdvancedSettings_DtmfSettings_descriptor =
internal_static_google_cloud_dialogflow_cx_v3beta1_AdvancedSettings_descriptor
.getNestedTypes()
.get(0);
+ internal_static_google_cloud_dialogflow_cx_v3beta1_AdvancedSettings_DtmfSettings_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_dialogflow_cx_v3beta1_AdvancedSettings_DtmfSettings_descriptor,
+ new java.lang.String[] {
+ "Enabled", "MaxDigits", "FinishDigit",
+ });
+ internal_static_google_cloud_dialogflow_cx_v3beta1_AdvancedSettings_LoggingSettings_descriptor =
+ internal_static_google_cloud_dialogflow_cx_v3beta1_AdvancedSettings_descriptor
+ .getNestedTypes()
+ .get(1);
internal_static_google_cloud_dialogflow_cx_v3beta1_AdvancedSettings_LoggingSettings_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_cloud_dialogflow_cx_v3beta1_AdvancedSettings_LoggingSettings_descriptor,
diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ExportIntentsMetadata.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ExportIntentsMetadata.java
new file mode 100644
index 000000000000..c11e9813d3a5
--- /dev/null
+++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ExportIntentsMetadata.java
@@ -0,0 +1,439 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/dialogflow/cx/v3beta1/intent.proto
+
+package com.google.cloud.dialogflow.cx.v3beta1;
+
+/**
+ *
+ *
+ * + * Metadata returned for the + * [Intents.ExportIntents][google.cloud.dialogflow.cx.v3beta1.Intents.ExportIntents] + * long running operation. + *+ * + * Protobuf type {@code google.cloud.dialogflow.cx.v3beta1.ExportIntentsMetadata} + */ +public final class ExportIntentsMetadata extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.cx.v3beta1.ExportIntentsMetadata) + ExportIntentsMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use ExportIntentsMetadata.newBuilder() to construct. + private ExportIntentsMetadata(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private ExportIntentsMetadata() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ExportIntentsMetadata(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.cx.v3beta1.IntentProto + .internal_static_google_cloud_dialogflow_cx_v3beta1_ExportIntentsMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.cx.v3beta1.IntentProto + .internal_static_google_cloud_dialogflow_cx_v3beta1_ExportIntentsMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.cx.v3beta1.ExportIntentsMetadata.class, + com.google.cloud.dialogflow.cx.v3beta1.ExportIntentsMetadata.Builder.class); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dialogflow.cx.v3beta1.ExportIntentsMetadata)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.cx.v3beta1.ExportIntentsMetadata other = + (com.google.cloud.dialogflow.cx.v3beta1.ExportIntentsMetadata) obj; + + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.cx.v3beta1.ExportIntentsMetadata parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.ExportIntentsMetadata parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.ExportIntentsMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.ExportIntentsMetadata parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.ExportIntentsMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.ExportIntentsMetadata parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.ExportIntentsMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.ExportIntentsMetadata parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.ExportIntentsMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.ExportIntentsMetadata parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.ExportIntentsMetadata parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.ExportIntentsMetadata parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dialogflow.cx.v3beta1.ExportIntentsMetadata prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+ * Metadata returned for the + * [Intents.ExportIntents][google.cloud.dialogflow.cx.v3beta1.Intents.ExportIntents] + * long running operation. + *+ * + * Protobuf type {@code google.cloud.dialogflow.cx.v3beta1.ExportIntentsMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * The request message for + * [Intents.ExportIntents][google.cloud.dialogflow.cx.v3beta1.Intents.ExportIntents]. + *+ * + * Protobuf type {@code google.cloud.dialogflow.cx.v3beta1.ExportIntentsRequest} + */ +public final class ExportIntentsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.cx.v3beta1.ExportIntentsRequest) + ExportIntentsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ExportIntentsRequest.newBuilder() to construct. + private ExportIntentsRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private ExportIntentsRequest() { + parent_ = ""; + intents_ = com.google.protobuf.LazyStringArrayList.emptyList(); + dataFormat_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ExportIntentsRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.cx.v3beta1.IntentProto + .internal_static_google_cloud_dialogflow_cx_v3beta1_ExportIntentsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.cx.v3beta1.IntentProto + .internal_static_google_cloud_dialogflow_cx_v3beta1_ExportIntentsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.cx.v3beta1.ExportIntentsRequest.class, + com.google.cloud.dialogflow.cx.v3beta1.ExportIntentsRequest.Builder.class); + } + + /** + * + * + *
+ * Data format of the exported intents. + *+ * + * Protobuf enum {@code google.cloud.dialogflow.cx.v3beta1.ExportIntentsRequest.DataFormat} + */ + public enum DataFormat implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+ * Unspecified format. Treated as `BLOB`. + *+ * + *
DATA_FORMAT_UNSPECIFIED = 0;
+ */
+ DATA_FORMAT_UNSPECIFIED(0),
+ /**
+ *
+ *
+ * + * Intents will be exported as raw bytes. + *+ * + *
BLOB = 1;
+ */
+ BLOB(1),
+ /**
+ *
+ *
+ * + * Intents will be exported in JSON format. + *+ * + *
JSON = 2;
+ */
+ JSON(2),
+ /**
+ *
+ *
+ * + * Intents will be exported in CSV format. + *+ * + *
CSV = 3;
+ */
+ CSV(3),
+ UNRECOGNIZED(-1),
+ ;
+
+ /**
+ *
+ *
+ * + * Unspecified format. Treated as `BLOB`. + *+ * + *
DATA_FORMAT_UNSPECIFIED = 0;
+ */
+ public static final int DATA_FORMAT_UNSPECIFIED_VALUE = 0;
+ /**
+ *
+ *
+ * + * Intents will be exported as raw bytes. + *+ * + *
BLOB = 1;
+ */
+ public static final int BLOB_VALUE = 1;
+ /**
+ *
+ *
+ * + * Intents will be exported in JSON format. + *+ * + *
JSON = 2;
+ */
+ public static final int JSON_VALUE = 2;
+ /**
+ *
+ *
+ * + * Intents will be exported in CSV format. + *+ * + *
CSV = 3;
+ */
+ public static final int CSV_VALUE = 3;
+
+ public final int getNumber() {
+ if (this == UNRECOGNIZED) {
+ throw new java.lang.IllegalArgumentException(
+ "Can't get the number of an unknown enum value.");
+ }
+ return value;
+ }
+
+ /**
+ * @param value The numeric wire value of the corresponding enum entry.
+ * @return The enum associated with the given numeric wire value.
+ * @deprecated Use {@link #forNumber(int)} instead.
+ */
+ @java.lang.Deprecated
+ public static DataFormat valueOf(int value) {
+ return forNumber(value);
+ }
+
+ /**
+ * @param value The numeric wire value of the corresponding enum entry.
+ * @return The enum associated with the given numeric wire value.
+ */
+ public static DataFormat forNumber(int value) {
+ switch (value) {
+ case 0:
+ return DATA_FORMAT_UNSPECIFIED;
+ case 1:
+ return BLOB;
+ case 2:
+ return JSON;
+ case 3:
+ return CSV;
+ default:
+ return null;
+ }
+ }
+
+ public static com.google.protobuf.Internal.EnumLiteMap+ * Required. The name of the parent agent to export intents. + * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent + * ID>`. + *+ * + *
+ * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The parent.
+ */
+ @java.lang.Override
+ public java.lang.String getParent() {
+ java.lang.Object ref = parent_;
+ 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();
+ parent_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * Required. The name of the parent agent to export intents. + * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent + * ID>`. + *+ * + *
+ * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The bytes for parent.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getParentBytes() {
+ java.lang.Object ref = parent_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ parent_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int INTENTS_FIELD_NUMBER = 2;
+
+ @SuppressWarnings("serial")
+ private com.google.protobuf.LazyStringArrayList intents_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
+ /**
+ *
+ *
+ * + * Required. The name of the intents to export. + * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent + * ID>/intents/<Intent ID>`. + *+ * + *
repeated string intents = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return A list containing the intents.
+ */
+ public com.google.protobuf.ProtocolStringList getIntentsList() {
+ return intents_;
+ }
+ /**
+ *
+ *
+ * + * Required. The name of the intents to export. + * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent + * ID>/intents/<Intent ID>`. + *+ * + *
repeated string intents = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The count of intents.
+ */
+ public int getIntentsCount() {
+ return intents_.size();
+ }
+ /**
+ *
+ *
+ * + * Required. The name of the intents to export. + * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent + * ID>/intents/<Intent ID>`. + *+ * + *
repeated string intents = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @param index The index of the element to return.
+ * @return The intents at the given index.
+ */
+ public java.lang.String getIntents(int index) {
+ return intents_.get(index);
+ }
+ /**
+ *
+ *
+ * + * Required. The name of the intents to export. + * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent + * ID>/intents/<Intent ID>`. + *+ * + *
repeated string intents = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @param index The index of the value to return.
+ * @return The bytes of the intents at the given index.
+ */
+ public com.google.protobuf.ByteString getIntentsBytes(int index) {
+ return intents_.getByteString(index);
+ }
+
+ public static final int INTENTS_URI_FIELD_NUMBER = 3;
+ /**
+ *
+ *
+ * + * Optional. The [Google Cloud + * Storage](https://cloud.google.com/storage/docs/) URI to export the + * intents to. The format of this URI must be + * `gs://<bucket-name>/<object-name>`. + * + * Dialogflow performs a write operation for the Cloud Storage object + * on the caller's behalf, so your request authentication must + * have write permissions for the object. For more information, see + * [Dialogflow access + * control](https://cloud.google.com/dialogflow/cx/docs/concept/access-control#storage). + *+ * + *
string intents_uri = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return Whether the intentsUri field is set.
+ */
+ public boolean hasIntentsUri() {
+ return destinationCase_ == 3;
+ }
+ /**
+ *
+ *
+ * + * Optional. The [Google Cloud + * Storage](https://cloud.google.com/storage/docs/) URI to export the + * intents to. The format of this URI must be + * `gs://<bucket-name>/<object-name>`. + * + * Dialogflow performs a write operation for the Cloud Storage object + * on the caller's behalf, so your request authentication must + * have write permissions for the object. For more information, see + * [Dialogflow access + * control](https://cloud.google.com/dialogflow/cx/docs/concept/access-control#storage). + *+ * + *
string intents_uri = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The intentsUri.
+ */
+ public java.lang.String getIntentsUri() {
+ java.lang.Object ref = "";
+ if (destinationCase_ == 3) {
+ ref = destination_;
+ }
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (destinationCase_ == 3) {
+ destination_ = s;
+ }
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * Optional. The [Google Cloud + * Storage](https://cloud.google.com/storage/docs/) URI to export the + * intents to. The format of this URI must be + * `gs://<bucket-name>/<object-name>`. + * + * Dialogflow performs a write operation for the Cloud Storage object + * on the caller's behalf, so your request authentication must + * have write permissions for the object. For more information, see + * [Dialogflow access + * control](https://cloud.google.com/dialogflow/cx/docs/concept/access-control#storage). + *+ * + *
string intents_uri = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for intentsUri.
+ */
+ public com.google.protobuf.ByteString getIntentsUriBytes() {
+ java.lang.Object ref = "";
+ if (destinationCase_ == 3) {
+ ref = destination_;
+ }
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ if (destinationCase_ == 3) {
+ destination_ = b;
+ }
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int INTENTS_CONTENT_INLINE_FIELD_NUMBER = 4;
+ /**
+ *
+ *
+ * + * Optional. The option to return the serialized intents inline. + *+ * + *
bool intents_content_inline = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return Whether the intentsContentInline field is set.
+ */
+ @java.lang.Override
+ public boolean hasIntentsContentInline() {
+ return destinationCase_ == 4;
+ }
+ /**
+ *
+ *
+ * + * Optional. The option to return the serialized intents inline. + *+ * + *
bool intents_content_inline = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The intentsContentInline.
+ */
+ @java.lang.Override
+ public boolean getIntentsContentInline() {
+ if (destinationCase_ == 4) {
+ return (java.lang.Boolean) destination_;
+ }
+ return false;
+ }
+
+ public static final int DATA_FORMAT_FIELD_NUMBER = 5;
+ private int dataFormat_ = 0;
+ /**
+ *
+ *
+ * + * Optional. The data format of the exported intents. If not specified, `BLOB` + * is assumed. + *+ * + *
+ * .google.cloud.dialogflow.cx.v3beta1.ExportIntentsRequest.DataFormat data_format = 5 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The enum numeric value on the wire for dataFormat.
+ */
+ @java.lang.Override
+ public int getDataFormatValue() {
+ return dataFormat_;
+ }
+ /**
+ *
+ *
+ * + * Optional. The data format of the exported intents. If not specified, `BLOB` + * is assumed. + *+ * + *
+ * .google.cloud.dialogflow.cx.v3beta1.ExportIntentsRequest.DataFormat data_format = 5 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The dataFormat.
+ */
+ @java.lang.Override
+ public com.google.cloud.dialogflow.cx.v3beta1.ExportIntentsRequest.DataFormat getDataFormat() {
+ com.google.cloud.dialogflow.cx.v3beta1.ExportIntentsRequest.DataFormat result =
+ com.google.cloud.dialogflow.cx.v3beta1.ExportIntentsRequest.DataFormat.forNumber(
+ dataFormat_);
+ return result == null
+ ? com.google.cloud.dialogflow.cx.v3beta1.ExportIntentsRequest.DataFormat.UNRECOGNIZED
+ : result;
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_);
+ }
+ for (int i = 0; i < intents_.size(); i++) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, intents_.getRaw(i));
+ }
+ if (destinationCase_ == 3) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 3, destination_);
+ }
+ if (destinationCase_ == 4) {
+ output.writeBool(4, (boolean) ((java.lang.Boolean) destination_));
+ }
+ if (dataFormat_
+ != com.google.cloud.dialogflow.cx.v3beta1.ExportIntentsRequest.DataFormat
+ .DATA_FORMAT_UNSPECIFIED
+ .getNumber()) {
+ output.writeEnum(5, dataFormat_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_);
+ }
+ {
+ int dataSize = 0;
+ for (int i = 0; i < intents_.size(); i++) {
+ dataSize += computeStringSizeNoTag(intents_.getRaw(i));
+ }
+ size += dataSize;
+ size += 1 * getIntentsList().size();
+ }
+ if (destinationCase_ == 3) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, destination_);
+ }
+ if (destinationCase_ == 4) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeBoolSize(
+ 4, (boolean) ((java.lang.Boolean) destination_));
+ }
+ if (dataFormat_
+ != com.google.cloud.dialogflow.cx.v3beta1.ExportIntentsRequest.DataFormat
+ .DATA_FORMAT_UNSPECIFIED
+ .getNumber()) {
+ size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, dataFormat_);
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.google.cloud.dialogflow.cx.v3beta1.ExportIntentsRequest)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.dialogflow.cx.v3beta1.ExportIntentsRequest other =
+ (com.google.cloud.dialogflow.cx.v3beta1.ExportIntentsRequest) obj;
+
+ if (!getParent().equals(other.getParent())) return false;
+ if (!getIntentsList().equals(other.getIntentsList())) return false;
+ if (dataFormat_ != other.dataFormat_) return false;
+ if (!getDestinationCase().equals(other.getDestinationCase())) return false;
+ switch (destinationCase_) {
+ case 3:
+ if (!getIntentsUri().equals(other.getIntentsUri())) return false;
+ break;
+ case 4:
+ if (getIntentsContentInline() != other.getIntentsContentInline()) return false;
+ break;
+ case 0:
+ default:
+ }
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + PARENT_FIELD_NUMBER;
+ hash = (53 * hash) + getParent().hashCode();
+ if (getIntentsCount() > 0) {
+ hash = (37 * hash) + INTENTS_FIELD_NUMBER;
+ hash = (53 * hash) + getIntentsList().hashCode();
+ }
+ hash = (37 * hash) + DATA_FORMAT_FIELD_NUMBER;
+ hash = (53 * hash) + dataFormat_;
+ switch (destinationCase_) {
+ case 3:
+ hash = (37 * hash) + INTENTS_URI_FIELD_NUMBER;
+ hash = (53 * hash) + getIntentsUri().hashCode();
+ break;
+ case 4:
+ hash = (37 * hash) + INTENTS_CONTENT_INLINE_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIntentsContentInline());
+ break;
+ case 0:
+ default:
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.dialogflow.cx.v3beta1.ExportIntentsRequest parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.dialogflow.cx.v3beta1.ExportIntentsRequest parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.dialogflow.cx.v3beta1.ExportIntentsRequest parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.dialogflow.cx.v3beta1.ExportIntentsRequest parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.dialogflow.cx.v3beta1.ExportIntentsRequest parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.dialogflow.cx.v3beta1.ExportIntentsRequest parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.dialogflow.cx.v3beta1.ExportIntentsRequest parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.dialogflow.cx.v3beta1.ExportIntentsRequest parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.dialogflow.cx.v3beta1.ExportIntentsRequest parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.dialogflow.cx.v3beta1.ExportIntentsRequest parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.dialogflow.cx.v3beta1.ExportIntentsRequest parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.dialogflow.cx.v3beta1.ExportIntentsRequest parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(
+ com.google.cloud.dialogflow.cx.v3beta1.ExportIntentsRequest prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ *
+ *
+ * + * The request message for + * [Intents.ExportIntents][google.cloud.dialogflow.cx.v3beta1.Intents.ExportIntents]. + *+ * + * Protobuf type {@code google.cloud.dialogflow.cx.v3beta1.ExportIntentsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * Required. The name of the parent agent to export intents. + * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent + * ID>`. + *+ * + *
+ * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The parent.
+ */
+ public java.lang.String getParent() {
+ java.lang.Object ref = parent_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ parent_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Required. The name of the parent agent to export intents. + * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent + * ID>`. + *+ * + *
+ * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The bytes for parent.
+ */
+ public com.google.protobuf.ByteString getParentBytes() {
+ java.lang.Object ref = parent_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ parent_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Required. The name of the parent agent to export intents. + * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent + * ID>`. + *+ * + *
+ * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @param value The parent to set.
+ * @return This builder for chaining.
+ */
+ public Builder setParent(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ parent_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. The name of the parent agent to export intents. + * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent + * ID>`. + *+ * + *
+ * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearParent() {
+ parent_ = getDefaultInstance().getParent();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. The name of the parent agent to export intents. + * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent + * ID>`. + *+ * + *
+ * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @param value The bytes for parent to set.
+ * @return This builder for chaining.
+ */
+ public Builder setParentBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ parent_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ private com.google.protobuf.LazyStringArrayList intents_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
+
+ private void ensureIntentsIsMutable() {
+ if (!intents_.isModifiable()) {
+ intents_ = new com.google.protobuf.LazyStringArrayList(intents_);
+ }
+ bitField0_ |= 0x00000002;
+ }
+ /**
+ *
+ *
+ * + * Required. The name of the intents to export. + * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent + * ID>/intents/<Intent ID>`. + *+ * + *
repeated string intents = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return A list containing the intents.
+ */
+ public com.google.protobuf.ProtocolStringList getIntentsList() {
+ intents_.makeImmutable();
+ return intents_;
+ }
+ /**
+ *
+ *
+ * + * Required. The name of the intents to export. + * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent + * ID>/intents/<Intent ID>`. + *+ * + *
repeated string intents = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The count of intents.
+ */
+ public int getIntentsCount() {
+ return intents_.size();
+ }
+ /**
+ *
+ *
+ * + * Required. The name of the intents to export. + * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent + * ID>/intents/<Intent ID>`. + *+ * + *
repeated string intents = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @param index The index of the element to return.
+ * @return The intents at the given index.
+ */
+ public java.lang.String getIntents(int index) {
+ return intents_.get(index);
+ }
+ /**
+ *
+ *
+ * + * Required. The name of the intents to export. + * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent + * ID>/intents/<Intent ID>`. + *+ * + *
repeated string intents = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @param index The index of the value to return.
+ * @return The bytes of the intents at the given index.
+ */
+ public com.google.protobuf.ByteString getIntentsBytes(int index) {
+ return intents_.getByteString(index);
+ }
+ /**
+ *
+ *
+ * + * Required. The name of the intents to export. + * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent + * ID>/intents/<Intent ID>`. + *+ * + *
repeated string intents = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @param index The index to set the value at.
+ * @param value The intents to set.
+ * @return This builder for chaining.
+ */
+ public Builder setIntents(int index, java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureIntentsIsMutable();
+ intents_.set(index, value);
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. The name of the intents to export. + * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent + * ID>/intents/<Intent ID>`. + *+ * + *
repeated string intents = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @param value The intents to add.
+ * @return This builder for chaining.
+ */
+ public Builder addIntents(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureIntentsIsMutable();
+ intents_.add(value);
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. The name of the intents to export. + * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent + * ID>/intents/<Intent ID>`. + *+ * + *
repeated string intents = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @param values The intents to add.
+ * @return This builder for chaining.
+ */
+ public Builder addAllIntents(java.lang.Iterable+ * Required. The name of the intents to export. + * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent + * ID>/intents/<Intent ID>`. + *+ * + *
repeated string intents = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearIntents() {
+ intents_ = com.google.protobuf.LazyStringArrayList.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ ;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. The name of the intents to export. + * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent + * ID>/intents/<Intent ID>`. + *+ * + *
repeated string intents = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @param value The bytes of the intents to add.
+ * @return This builder for chaining.
+ */
+ public Builder addIntentsBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ ensureIntentsIsMutable();
+ intents_.add(value);
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The [Google Cloud + * Storage](https://cloud.google.com/storage/docs/) URI to export the + * intents to. The format of this URI must be + * `gs://<bucket-name>/<object-name>`. + * + * Dialogflow performs a write operation for the Cloud Storage object + * on the caller's behalf, so your request authentication must + * have write permissions for the object. For more information, see + * [Dialogflow access + * control](https://cloud.google.com/dialogflow/cx/docs/concept/access-control#storage). + *+ * + *
string intents_uri = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return Whether the intentsUri field is set.
+ */
+ @java.lang.Override
+ public boolean hasIntentsUri() {
+ return destinationCase_ == 3;
+ }
+ /**
+ *
+ *
+ * + * Optional. The [Google Cloud + * Storage](https://cloud.google.com/storage/docs/) URI to export the + * intents to. The format of this URI must be + * `gs://<bucket-name>/<object-name>`. + * + * Dialogflow performs a write operation for the Cloud Storage object + * on the caller's behalf, so your request authentication must + * have write permissions for the object. For more information, see + * [Dialogflow access + * control](https://cloud.google.com/dialogflow/cx/docs/concept/access-control#storage). + *+ * + *
string intents_uri = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The intentsUri.
+ */
+ @java.lang.Override
+ public java.lang.String getIntentsUri() {
+ java.lang.Object ref = "";
+ if (destinationCase_ == 3) {
+ ref = destination_;
+ }
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (destinationCase_ == 3) {
+ destination_ = s;
+ }
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Optional. The [Google Cloud + * Storage](https://cloud.google.com/storage/docs/) URI to export the + * intents to. The format of this URI must be + * `gs://<bucket-name>/<object-name>`. + * + * Dialogflow performs a write operation for the Cloud Storage object + * on the caller's behalf, so your request authentication must + * have write permissions for the object. For more information, see + * [Dialogflow access + * control](https://cloud.google.com/dialogflow/cx/docs/concept/access-control#storage). + *+ * + *
string intents_uri = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for intentsUri.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getIntentsUriBytes() {
+ java.lang.Object ref = "";
+ if (destinationCase_ == 3) {
+ ref = destination_;
+ }
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ if (destinationCase_ == 3) {
+ destination_ = b;
+ }
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Optional. The [Google Cloud + * Storage](https://cloud.google.com/storage/docs/) URI to export the + * intents to. The format of this URI must be + * `gs://<bucket-name>/<object-name>`. + * + * Dialogflow performs a write operation for the Cloud Storage object + * on the caller's behalf, so your request authentication must + * have write permissions for the object. For more information, see + * [Dialogflow access + * control](https://cloud.google.com/dialogflow/cx/docs/concept/access-control#storage). + *+ * + *
string intents_uri = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param value The intentsUri to set.
+ * @return This builder for chaining.
+ */
+ public Builder setIntentsUri(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ destinationCase_ = 3;
+ destination_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. The [Google Cloud + * Storage](https://cloud.google.com/storage/docs/) URI to export the + * intents to. The format of this URI must be + * `gs://<bucket-name>/<object-name>`. + * + * Dialogflow performs a write operation for the Cloud Storage object + * on the caller's behalf, so your request authentication must + * have write permissions for the object. For more information, see + * [Dialogflow access + * control](https://cloud.google.com/dialogflow/cx/docs/concept/access-control#storage). + *+ * + *
string intents_uri = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearIntentsUri() {
+ if (destinationCase_ == 3) {
+ destinationCase_ = 0;
+ destination_ = null;
+ onChanged();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. The [Google Cloud + * Storage](https://cloud.google.com/storage/docs/) URI to export the + * intents to. The format of this URI must be + * `gs://<bucket-name>/<object-name>`. + * + * Dialogflow performs a write operation for the Cloud Storage object + * on the caller's behalf, so your request authentication must + * have write permissions for the object. For more information, see + * [Dialogflow access + * control](https://cloud.google.com/dialogflow/cx/docs/concept/access-control#storage). + *+ * + *
string intents_uri = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param value The bytes for intentsUri to set.
+ * @return This builder for chaining.
+ */
+ public Builder setIntentsUriBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ destinationCase_ = 3;
+ destination_ = value;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The option to return the serialized intents inline. + *+ * + *
bool intents_content_inline = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return Whether the intentsContentInline field is set.
+ */
+ public boolean hasIntentsContentInline() {
+ return destinationCase_ == 4;
+ }
+ /**
+ *
+ *
+ * + * Optional. The option to return the serialized intents inline. + *+ * + *
bool intents_content_inline = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The intentsContentInline.
+ */
+ public boolean getIntentsContentInline() {
+ if (destinationCase_ == 4) {
+ return (java.lang.Boolean) destination_;
+ }
+ return false;
+ }
+ /**
+ *
+ *
+ * + * Optional. The option to return the serialized intents inline. + *+ * + *
bool intents_content_inline = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param value The intentsContentInline to set.
+ * @return This builder for chaining.
+ */
+ public Builder setIntentsContentInline(boolean value) {
+
+ destinationCase_ = 4;
+ destination_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. The option to return the serialized intents inline. + *+ * + *
bool intents_content_inline = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearIntentsContentInline() {
+ if (destinationCase_ == 4) {
+ destinationCase_ = 0;
+ destination_ = null;
+ onChanged();
+ }
+ return this;
+ }
+
+ private int dataFormat_ = 0;
+ /**
+ *
+ *
+ * + * Optional. The data format of the exported intents. If not specified, `BLOB` + * is assumed. + *+ * + *
+ * .google.cloud.dialogflow.cx.v3beta1.ExportIntentsRequest.DataFormat data_format = 5 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The enum numeric value on the wire for dataFormat.
+ */
+ @java.lang.Override
+ public int getDataFormatValue() {
+ return dataFormat_;
+ }
+ /**
+ *
+ *
+ * + * Optional. The data format of the exported intents. If not specified, `BLOB` + * is assumed. + *+ * + *
+ * .google.cloud.dialogflow.cx.v3beta1.ExportIntentsRequest.DataFormat data_format = 5 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @param value The enum numeric value on the wire for dataFormat to set.
+ * @return This builder for chaining.
+ */
+ public Builder setDataFormatValue(int value) {
+ dataFormat_ = value;
+ bitField0_ |= 0x00000010;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. The data format of the exported intents. If not specified, `BLOB` + * is assumed. + *+ * + *
+ * .google.cloud.dialogflow.cx.v3beta1.ExportIntentsRequest.DataFormat data_format = 5 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The dataFormat.
+ */
+ @java.lang.Override
+ public com.google.cloud.dialogflow.cx.v3beta1.ExportIntentsRequest.DataFormat getDataFormat() {
+ com.google.cloud.dialogflow.cx.v3beta1.ExportIntentsRequest.DataFormat result =
+ com.google.cloud.dialogflow.cx.v3beta1.ExportIntentsRequest.DataFormat.forNumber(
+ dataFormat_);
+ return result == null
+ ? com.google.cloud.dialogflow.cx.v3beta1.ExportIntentsRequest.DataFormat.UNRECOGNIZED
+ : result;
+ }
+ /**
+ *
+ *
+ * + * Optional. The data format of the exported intents. If not specified, `BLOB` + * is assumed. + *+ * + *
+ * .google.cloud.dialogflow.cx.v3beta1.ExportIntentsRequest.DataFormat data_format = 5 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @param value The dataFormat to set.
+ * @return This builder for chaining.
+ */
+ public Builder setDataFormat(
+ com.google.cloud.dialogflow.cx.v3beta1.ExportIntentsRequest.DataFormat value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000010;
+ dataFormat_ = value.getNumber();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. The data format of the exported intents. If not specified, `BLOB` + * is assumed. + *+ * + *
+ * .google.cloud.dialogflow.cx.v3beta1.ExportIntentsRequest.DataFormat data_format = 5 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearDataFormat() {
+ bitField0_ = (bitField0_ & ~0x00000010);
+ dataFormat_ = 0;
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.cx.v3beta1.ExportIntentsRequest)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.cx.v3beta1.ExportIntentsRequest)
+ private static final com.google.cloud.dialogflow.cx.v3beta1.ExportIntentsRequest DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.dialogflow.cx.v3beta1.ExportIntentsRequest();
+ }
+
+ public static com.google.cloud.dialogflow.cx.v3beta1.ExportIntentsRequest getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * Required. The name of the parent agent to export intents. + * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent + * ID>`. + *+ * + *
+ * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The parent.
+ */
+ java.lang.String getParent();
+ /**
+ *
+ *
+ * + * Required. The name of the parent agent to export intents. + * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent + * ID>`. + *+ * + *
+ * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The bytes for parent.
+ */
+ com.google.protobuf.ByteString getParentBytes();
+
+ /**
+ *
+ *
+ * + * Required. The name of the intents to export. + * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent + * ID>/intents/<Intent ID>`. + *+ * + *
repeated string intents = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return A list containing the intents.
+ */
+ java.util.List+ * Required. The name of the intents to export. + * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent + * ID>/intents/<Intent ID>`. + *+ * + *
repeated string intents = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The count of intents.
+ */
+ int getIntentsCount();
+ /**
+ *
+ *
+ * + * Required. The name of the intents to export. + * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent + * ID>/intents/<Intent ID>`. + *+ * + *
repeated string intents = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @param index The index of the element to return.
+ * @return The intents at the given index.
+ */
+ java.lang.String getIntents(int index);
+ /**
+ *
+ *
+ * + * Required. The name of the intents to export. + * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent + * ID>/intents/<Intent ID>`. + *+ * + *
repeated string intents = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @param index The index of the value to return.
+ * @return The bytes of the intents at the given index.
+ */
+ com.google.protobuf.ByteString getIntentsBytes(int index);
+
+ /**
+ *
+ *
+ * + * Optional. The [Google Cloud + * Storage](https://cloud.google.com/storage/docs/) URI to export the + * intents to. The format of this URI must be + * `gs://<bucket-name>/<object-name>`. + * + * Dialogflow performs a write operation for the Cloud Storage object + * on the caller's behalf, so your request authentication must + * have write permissions for the object. For more information, see + * [Dialogflow access + * control](https://cloud.google.com/dialogflow/cx/docs/concept/access-control#storage). + *+ * + *
string intents_uri = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return Whether the intentsUri field is set.
+ */
+ boolean hasIntentsUri();
+ /**
+ *
+ *
+ * + * Optional. The [Google Cloud + * Storage](https://cloud.google.com/storage/docs/) URI to export the + * intents to. The format of this URI must be + * `gs://<bucket-name>/<object-name>`. + * + * Dialogflow performs a write operation for the Cloud Storage object + * on the caller's behalf, so your request authentication must + * have write permissions for the object. For more information, see + * [Dialogflow access + * control](https://cloud.google.com/dialogflow/cx/docs/concept/access-control#storage). + *+ * + *
string intents_uri = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The intentsUri.
+ */
+ java.lang.String getIntentsUri();
+ /**
+ *
+ *
+ * + * Optional. The [Google Cloud + * Storage](https://cloud.google.com/storage/docs/) URI to export the + * intents to. The format of this URI must be + * `gs://<bucket-name>/<object-name>`. + * + * Dialogflow performs a write operation for the Cloud Storage object + * on the caller's behalf, so your request authentication must + * have write permissions for the object. For more information, see + * [Dialogflow access + * control](https://cloud.google.com/dialogflow/cx/docs/concept/access-control#storage). + *+ * + *
string intents_uri = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for intentsUri.
+ */
+ com.google.protobuf.ByteString getIntentsUriBytes();
+
+ /**
+ *
+ *
+ * + * Optional. The option to return the serialized intents inline. + *+ * + *
bool intents_content_inline = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return Whether the intentsContentInline field is set.
+ */
+ boolean hasIntentsContentInline();
+ /**
+ *
+ *
+ * + * Optional. The option to return the serialized intents inline. + *+ * + *
bool intents_content_inline = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The intentsContentInline.
+ */
+ boolean getIntentsContentInline();
+
+ /**
+ *
+ *
+ * + * Optional. The data format of the exported intents. If not specified, `BLOB` + * is assumed. + *+ * + *
+ * .google.cloud.dialogflow.cx.v3beta1.ExportIntentsRequest.DataFormat data_format = 5 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The enum numeric value on the wire for dataFormat.
+ */
+ int getDataFormatValue();
+ /**
+ *
+ *
+ * + * Optional. The data format of the exported intents. If not specified, `BLOB` + * is assumed. + *+ * + *
+ * .google.cloud.dialogflow.cx.v3beta1.ExportIntentsRequest.DataFormat data_format = 5 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The dataFormat.
+ */
+ com.google.cloud.dialogflow.cx.v3beta1.ExportIntentsRequest.DataFormat getDataFormat();
+
+ com.google.cloud.dialogflow.cx.v3beta1.ExportIntentsRequest.DestinationCase getDestinationCase();
+}
diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ExportIntentsResponse.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ExportIntentsResponse.java
new file mode 100644
index 000000000000..886b71d30f2d
--- /dev/null
+++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ExportIntentsResponse.java
@@ -0,0 +1,1106 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/dialogflow/cx/v3beta1/intent.proto
+
+package com.google.cloud.dialogflow.cx.v3beta1;
+
+/**
+ *
+ *
+ * + * The response message for + * [Intents.ExportIntents][google.cloud.dialogflow.cx.v3beta1.Intents.ExportIntents]. + *+ * + * Protobuf type {@code google.cloud.dialogflow.cx.v3beta1.ExportIntentsResponse} + */ +public final class ExportIntentsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.cx.v3beta1.ExportIntentsResponse) + ExportIntentsResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ExportIntentsResponse.newBuilder() to construct. + private ExportIntentsResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private ExportIntentsResponse() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ExportIntentsResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.cx.v3beta1.IntentProto + .internal_static_google_cloud_dialogflow_cx_v3beta1_ExportIntentsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.cx.v3beta1.IntentProto + .internal_static_google_cloud_dialogflow_cx_v3beta1_ExportIntentsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.cx.v3beta1.ExportIntentsResponse.class, + com.google.cloud.dialogflow.cx.v3beta1.ExportIntentsResponse.Builder.class); + } + + private int intentsCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object intents_; + + public enum IntentsCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + INTENTS_URI(1), + INTENTS_CONTENT(2), + INTENTS_NOT_SET(0); + private final int value; + + private IntentsCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static IntentsCase valueOf(int value) { + return forNumber(value); + } + + public static IntentsCase forNumber(int value) { + switch (value) { + case 1: + return INTENTS_URI; + case 2: + return INTENTS_CONTENT; + case 0: + return INTENTS_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public IntentsCase getIntentsCase() { + return IntentsCase.forNumber(intentsCase_); + } + + public static final int INTENTS_URI_FIELD_NUMBER = 1; + /** + * + * + *
+ * The URI to a file containing the exported intents. This field is + * populated only if `intents_uri` is specified in + * [ExportIntentsRequest][google.cloud.dialogflow.cx.v3beta1.ExportIntentsRequest]. + *+ * + *
string intents_uri = 1;
+ *
+ * @return Whether the intentsUri field is set.
+ */
+ public boolean hasIntentsUri() {
+ return intentsCase_ == 1;
+ }
+ /**
+ *
+ *
+ * + * The URI to a file containing the exported intents. This field is + * populated only if `intents_uri` is specified in + * [ExportIntentsRequest][google.cloud.dialogflow.cx.v3beta1.ExportIntentsRequest]. + *+ * + *
string intents_uri = 1;
+ *
+ * @return The intentsUri.
+ */
+ public java.lang.String getIntentsUri() {
+ java.lang.Object ref = "";
+ if (intentsCase_ == 1) {
+ ref = intents_;
+ }
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (intentsCase_ == 1) {
+ intents_ = s;
+ }
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * The URI to a file containing the exported intents. This field is + * populated only if `intents_uri` is specified in + * [ExportIntentsRequest][google.cloud.dialogflow.cx.v3beta1.ExportIntentsRequest]. + *+ * + *
string intents_uri = 1;
+ *
+ * @return The bytes for intentsUri.
+ */
+ public com.google.protobuf.ByteString getIntentsUriBytes() {
+ java.lang.Object ref = "";
+ if (intentsCase_ == 1) {
+ ref = intents_;
+ }
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ if (intentsCase_ == 1) {
+ intents_ = b;
+ }
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int INTENTS_CONTENT_FIELD_NUMBER = 2;
+ /**
+ *
+ *
+ * + * Uncompressed byte content for intents. This field is populated only if + * `intents_content_inline` is set to true in + * [ExportIntentsRequest][google.cloud.dialogflow.cx.v3beta1.ExportIntentsRequest]. + *+ * + *
.google.cloud.dialogflow.cx.v3beta1.InlineDestination intents_content = 2;
+ *
+ * @return Whether the intentsContent field is set.
+ */
+ @java.lang.Override
+ public boolean hasIntentsContent() {
+ return intentsCase_ == 2;
+ }
+ /**
+ *
+ *
+ * + * Uncompressed byte content for intents. This field is populated only if + * `intents_content_inline` is set to true in + * [ExportIntentsRequest][google.cloud.dialogflow.cx.v3beta1.ExportIntentsRequest]. + *+ * + *
.google.cloud.dialogflow.cx.v3beta1.InlineDestination intents_content = 2;
+ *
+ * @return The intentsContent.
+ */
+ @java.lang.Override
+ public com.google.cloud.dialogflow.cx.v3beta1.InlineDestination getIntentsContent() {
+ if (intentsCase_ == 2) {
+ return (com.google.cloud.dialogflow.cx.v3beta1.InlineDestination) intents_;
+ }
+ return com.google.cloud.dialogflow.cx.v3beta1.InlineDestination.getDefaultInstance();
+ }
+ /**
+ *
+ *
+ * + * Uncompressed byte content for intents. This field is populated only if + * `intents_content_inline` is set to true in + * [ExportIntentsRequest][google.cloud.dialogflow.cx.v3beta1.ExportIntentsRequest]. + *+ * + *
.google.cloud.dialogflow.cx.v3beta1.InlineDestination intents_content = 2;
+ */
+ @java.lang.Override
+ public com.google.cloud.dialogflow.cx.v3beta1.InlineDestinationOrBuilder
+ getIntentsContentOrBuilder() {
+ if (intentsCase_ == 2) {
+ return (com.google.cloud.dialogflow.cx.v3beta1.InlineDestination) intents_;
+ }
+ return com.google.cloud.dialogflow.cx.v3beta1.InlineDestination.getDefaultInstance();
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (intentsCase_ == 1) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, intents_);
+ }
+ if (intentsCase_ == 2) {
+ output.writeMessage(2, (com.google.cloud.dialogflow.cx.v3beta1.InlineDestination) intents_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (intentsCase_ == 1) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, intents_);
+ }
+ if (intentsCase_ == 2) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 2, (com.google.cloud.dialogflow.cx.v3beta1.InlineDestination) intents_);
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.google.cloud.dialogflow.cx.v3beta1.ExportIntentsResponse)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.dialogflow.cx.v3beta1.ExportIntentsResponse other =
+ (com.google.cloud.dialogflow.cx.v3beta1.ExportIntentsResponse) obj;
+
+ if (!getIntentsCase().equals(other.getIntentsCase())) return false;
+ switch (intentsCase_) {
+ case 1:
+ if (!getIntentsUri().equals(other.getIntentsUri())) return false;
+ break;
+ case 2:
+ if (!getIntentsContent().equals(other.getIntentsContent())) return false;
+ break;
+ case 0:
+ default:
+ }
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ switch (intentsCase_) {
+ case 1:
+ hash = (37 * hash) + INTENTS_URI_FIELD_NUMBER;
+ hash = (53 * hash) + getIntentsUri().hashCode();
+ break;
+ case 2:
+ hash = (37 * hash) + INTENTS_CONTENT_FIELD_NUMBER;
+ hash = (53 * hash) + getIntentsContent().hashCode();
+ break;
+ case 0:
+ default:
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.dialogflow.cx.v3beta1.ExportIntentsResponse parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.dialogflow.cx.v3beta1.ExportIntentsResponse parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.dialogflow.cx.v3beta1.ExportIntentsResponse parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.dialogflow.cx.v3beta1.ExportIntentsResponse parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.dialogflow.cx.v3beta1.ExportIntentsResponse parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.dialogflow.cx.v3beta1.ExportIntentsResponse parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.dialogflow.cx.v3beta1.ExportIntentsResponse parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.dialogflow.cx.v3beta1.ExportIntentsResponse parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.dialogflow.cx.v3beta1.ExportIntentsResponse parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.dialogflow.cx.v3beta1.ExportIntentsResponse parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.dialogflow.cx.v3beta1.ExportIntentsResponse parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.dialogflow.cx.v3beta1.ExportIntentsResponse parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(
+ com.google.cloud.dialogflow.cx.v3beta1.ExportIntentsResponse prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ *
+ *
+ * + * The response message for + * [Intents.ExportIntents][google.cloud.dialogflow.cx.v3beta1.Intents.ExportIntents]. + *+ * + * Protobuf type {@code google.cloud.dialogflow.cx.v3beta1.ExportIntentsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * The URI to a file containing the exported intents. This field is + * populated only if `intents_uri` is specified in + * [ExportIntentsRequest][google.cloud.dialogflow.cx.v3beta1.ExportIntentsRequest]. + *+ * + *
string intents_uri = 1;
+ *
+ * @return Whether the intentsUri field is set.
+ */
+ @java.lang.Override
+ public boolean hasIntentsUri() {
+ return intentsCase_ == 1;
+ }
+ /**
+ *
+ *
+ * + * The URI to a file containing the exported intents. This field is + * populated only if `intents_uri` is specified in + * [ExportIntentsRequest][google.cloud.dialogflow.cx.v3beta1.ExportIntentsRequest]. + *+ * + *
string intents_uri = 1;
+ *
+ * @return The intentsUri.
+ */
+ @java.lang.Override
+ public java.lang.String getIntentsUri() {
+ java.lang.Object ref = "";
+ if (intentsCase_ == 1) {
+ ref = intents_;
+ }
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (intentsCase_ == 1) {
+ intents_ = s;
+ }
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * The URI to a file containing the exported intents. This field is + * populated only if `intents_uri` is specified in + * [ExportIntentsRequest][google.cloud.dialogflow.cx.v3beta1.ExportIntentsRequest]. + *+ * + *
string intents_uri = 1;
+ *
+ * @return The bytes for intentsUri.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getIntentsUriBytes() {
+ java.lang.Object ref = "";
+ if (intentsCase_ == 1) {
+ ref = intents_;
+ }
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ if (intentsCase_ == 1) {
+ intents_ = b;
+ }
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * The URI to a file containing the exported intents. This field is + * populated only if `intents_uri` is specified in + * [ExportIntentsRequest][google.cloud.dialogflow.cx.v3beta1.ExportIntentsRequest]. + *+ * + *
string intents_uri = 1;
+ *
+ * @param value The intentsUri to set.
+ * @return This builder for chaining.
+ */
+ public Builder setIntentsUri(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ intentsCase_ = 1;
+ intents_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The URI to a file containing the exported intents. This field is + * populated only if `intents_uri` is specified in + * [ExportIntentsRequest][google.cloud.dialogflow.cx.v3beta1.ExportIntentsRequest]. + *+ * + *
string intents_uri = 1;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearIntentsUri() {
+ if (intentsCase_ == 1) {
+ intentsCase_ = 0;
+ intents_ = null;
+ onChanged();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The URI to a file containing the exported intents. This field is + * populated only if `intents_uri` is specified in + * [ExportIntentsRequest][google.cloud.dialogflow.cx.v3beta1.ExportIntentsRequest]. + *+ * + *
string intents_uri = 1;
+ *
+ * @param value The bytes for intentsUri to set.
+ * @return This builder for chaining.
+ */
+ public Builder setIntentsUriBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ intentsCase_ = 1;
+ intents_ = value;
+ onChanged();
+ return this;
+ }
+
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.dialogflow.cx.v3beta1.InlineDestination,
+ com.google.cloud.dialogflow.cx.v3beta1.InlineDestination.Builder,
+ com.google.cloud.dialogflow.cx.v3beta1.InlineDestinationOrBuilder>
+ intentsContentBuilder_;
+ /**
+ *
+ *
+ * + * Uncompressed byte content for intents. This field is populated only if + * `intents_content_inline` is set to true in + * [ExportIntentsRequest][google.cloud.dialogflow.cx.v3beta1.ExportIntentsRequest]. + *+ * + *
.google.cloud.dialogflow.cx.v3beta1.InlineDestination intents_content = 2;
+ *
+ * @return Whether the intentsContent field is set.
+ */
+ @java.lang.Override
+ public boolean hasIntentsContent() {
+ return intentsCase_ == 2;
+ }
+ /**
+ *
+ *
+ * + * Uncompressed byte content for intents. This field is populated only if + * `intents_content_inline` is set to true in + * [ExportIntentsRequest][google.cloud.dialogflow.cx.v3beta1.ExportIntentsRequest]. + *+ * + *
.google.cloud.dialogflow.cx.v3beta1.InlineDestination intents_content = 2;
+ *
+ * @return The intentsContent.
+ */
+ @java.lang.Override
+ public com.google.cloud.dialogflow.cx.v3beta1.InlineDestination getIntentsContent() {
+ if (intentsContentBuilder_ == null) {
+ if (intentsCase_ == 2) {
+ return (com.google.cloud.dialogflow.cx.v3beta1.InlineDestination) intents_;
+ }
+ return com.google.cloud.dialogflow.cx.v3beta1.InlineDestination.getDefaultInstance();
+ } else {
+ if (intentsCase_ == 2) {
+ return intentsContentBuilder_.getMessage();
+ }
+ return com.google.cloud.dialogflow.cx.v3beta1.InlineDestination.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ * + * Uncompressed byte content for intents. This field is populated only if + * `intents_content_inline` is set to true in + * [ExportIntentsRequest][google.cloud.dialogflow.cx.v3beta1.ExportIntentsRequest]. + *+ * + *
.google.cloud.dialogflow.cx.v3beta1.InlineDestination intents_content = 2;
+ */
+ public Builder setIntentsContent(
+ com.google.cloud.dialogflow.cx.v3beta1.InlineDestination value) {
+ if (intentsContentBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ intents_ = value;
+ onChanged();
+ } else {
+ intentsContentBuilder_.setMessage(value);
+ }
+ intentsCase_ = 2;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Uncompressed byte content for intents. This field is populated only if + * `intents_content_inline` is set to true in + * [ExportIntentsRequest][google.cloud.dialogflow.cx.v3beta1.ExportIntentsRequest]. + *+ * + *
.google.cloud.dialogflow.cx.v3beta1.InlineDestination intents_content = 2;
+ */
+ public Builder setIntentsContent(
+ com.google.cloud.dialogflow.cx.v3beta1.InlineDestination.Builder builderForValue) {
+ if (intentsContentBuilder_ == null) {
+ intents_ = builderForValue.build();
+ onChanged();
+ } else {
+ intentsContentBuilder_.setMessage(builderForValue.build());
+ }
+ intentsCase_ = 2;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Uncompressed byte content for intents. This field is populated only if + * `intents_content_inline` is set to true in + * [ExportIntentsRequest][google.cloud.dialogflow.cx.v3beta1.ExportIntentsRequest]. + *+ * + *
.google.cloud.dialogflow.cx.v3beta1.InlineDestination intents_content = 2;
+ */
+ public Builder mergeIntentsContent(
+ com.google.cloud.dialogflow.cx.v3beta1.InlineDestination value) {
+ if (intentsContentBuilder_ == null) {
+ if (intentsCase_ == 2
+ && intents_
+ != com.google.cloud.dialogflow.cx.v3beta1.InlineDestination.getDefaultInstance()) {
+ intents_ =
+ com.google.cloud.dialogflow.cx.v3beta1.InlineDestination.newBuilder(
+ (com.google.cloud.dialogflow.cx.v3beta1.InlineDestination) intents_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ intents_ = value;
+ }
+ onChanged();
+ } else {
+ if (intentsCase_ == 2) {
+ intentsContentBuilder_.mergeFrom(value);
+ } else {
+ intentsContentBuilder_.setMessage(value);
+ }
+ }
+ intentsCase_ = 2;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Uncompressed byte content for intents. This field is populated only if + * `intents_content_inline` is set to true in + * [ExportIntentsRequest][google.cloud.dialogflow.cx.v3beta1.ExportIntentsRequest]. + *+ * + *
.google.cloud.dialogflow.cx.v3beta1.InlineDestination intents_content = 2;
+ */
+ public Builder clearIntentsContent() {
+ if (intentsContentBuilder_ == null) {
+ if (intentsCase_ == 2) {
+ intentsCase_ = 0;
+ intents_ = null;
+ onChanged();
+ }
+ } else {
+ if (intentsCase_ == 2) {
+ intentsCase_ = 0;
+ intents_ = null;
+ }
+ intentsContentBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Uncompressed byte content for intents. This field is populated only if + * `intents_content_inline` is set to true in + * [ExportIntentsRequest][google.cloud.dialogflow.cx.v3beta1.ExportIntentsRequest]. + *+ * + *
.google.cloud.dialogflow.cx.v3beta1.InlineDestination intents_content = 2;
+ */
+ public com.google.cloud.dialogflow.cx.v3beta1.InlineDestination.Builder
+ getIntentsContentBuilder() {
+ return getIntentsContentFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * Uncompressed byte content for intents. This field is populated only if + * `intents_content_inline` is set to true in + * [ExportIntentsRequest][google.cloud.dialogflow.cx.v3beta1.ExportIntentsRequest]. + *+ * + *
.google.cloud.dialogflow.cx.v3beta1.InlineDestination intents_content = 2;
+ */
+ @java.lang.Override
+ public com.google.cloud.dialogflow.cx.v3beta1.InlineDestinationOrBuilder
+ getIntentsContentOrBuilder() {
+ if ((intentsCase_ == 2) && (intentsContentBuilder_ != null)) {
+ return intentsContentBuilder_.getMessageOrBuilder();
+ } else {
+ if (intentsCase_ == 2) {
+ return (com.google.cloud.dialogflow.cx.v3beta1.InlineDestination) intents_;
+ }
+ return com.google.cloud.dialogflow.cx.v3beta1.InlineDestination.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ * + * Uncompressed byte content for intents. This field is populated only if + * `intents_content_inline` is set to true in + * [ExportIntentsRequest][google.cloud.dialogflow.cx.v3beta1.ExportIntentsRequest]. + *+ * + *
.google.cloud.dialogflow.cx.v3beta1.InlineDestination intents_content = 2;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.dialogflow.cx.v3beta1.InlineDestination,
+ com.google.cloud.dialogflow.cx.v3beta1.InlineDestination.Builder,
+ com.google.cloud.dialogflow.cx.v3beta1.InlineDestinationOrBuilder>
+ getIntentsContentFieldBuilder() {
+ if (intentsContentBuilder_ == null) {
+ if (!(intentsCase_ == 2)) {
+ intents_ = com.google.cloud.dialogflow.cx.v3beta1.InlineDestination.getDefaultInstance();
+ }
+ intentsContentBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.dialogflow.cx.v3beta1.InlineDestination,
+ com.google.cloud.dialogflow.cx.v3beta1.InlineDestination.Builder,
+ com.google.cloud.dialogflow.cx.v3beta1.InlineDestinationOrBuilder>(
+ (com.google.cloud.dialogflow.cx.v3beta1.InlineDestination) intents_,
+ getParentForChildren(),
+ isClean());
+ intents_ = null;
+ }
+ intentsCase_ = 2;
+ onChanged();
+ return intentsContentBuilder_;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.cx.v3beta1.ExportIntentsResponse)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.cx.v3beta1.ExportIntentsResponse)
+ private static final com.google.cloud.dialogflow.cx.v3beta1.ExportIntentsResponse
+ DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.dialogflow.cx.v3beta1.ExportIntentsResponse();
+ }
+
+ public static com.google.cloud.dialogflow.cx.v3beta1.ExportIntentsResponse getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * The URI to a file containing the exported intents. This field is + * populated only if `intents_uri` is specified in + * [ExportIntentsRequest][google.cloud.dialogflow.cx.v3beta1.ExportIntentsRequest]. + *+ * + *
string intents_uri = 1;
+ *
+ * @return Whether the intentsUri field is set.
+ */
+ boolean hasIntentsUri();
+ /**
+ *
+ *
+ * + * The URI to a file containing the exported intents. This field is + * populated only if `intents_uri` is specified in + * [ExportIntentsRequest][google.cloud.dialogflow.cx.v3beta1.ExportIntentsRequest]. + *+ * + *
string intents_uri = 1;
+ *
+ * @return The intentsUri.
+ */
+ java.lang.String getIntentsUri();
+ /**
+ *
+ *
+ * + * The URI to a file containing the exported intents. This field is + * populated only if `intents_uri` is specified in + * [ExportIntentsRequest][google.cloud.dialogflow.cx.v3beta1.ExportIntentsRequest]. + *+ * + *
string intents_uri = 1;
+ *
+ * @return The bytes for intentsUri.
+ */
+ com.google.protobuf.ByteString getIntentsUriBytes();
+
+ /**
+ *
+ *
+ * + * Uncompressed byte content for intents. This field is populated only if + * `intents_content_inline` is set to true in + * [ExportIntentsRequest][google.cloud.dialogflow.cx.v3beta1.ExportIntentsRequest]. + *+ * + *
.google.cloud.dialogflow.cx.v3beta1.InlineDestination intents_content = 2;
+ *
+ * @return Whether the intentsContent field is set.
+ */
+ boolean hasIntentsContent();
+ /**
+ *
+ *
+ * + * Uncompressed byte content for intents. This field is populated only if + * `intents_content_inline` is set to true in + * [ExportIntentsRequest][google.cloud.dialogflow.cx.v3beta1.ExportIntentsRequest]. + *+ * + *
.google.cloud.dialogflow.cx.v3beta1.InlineDestination intents_content = 2;
+ *
+ * @return The intentsContent.
+ */
+ com.google.cloud.dialogflow.cx.v3beta1.InlineDestination getIntentsContent();
+ /**
+ *
+ *
+ * + * Uncompressed byte content for intents. This field is populated only if + * `intents_content_inline` is set to true in + * [ExportIntentsRequest][google.cloud.dialogflow.cx.v3beta1.ExportIntentsRequest]. + *+ * + *
.google.cloud.dialogflow.cx.v3beta1.InlineDestination intents_content = 2;
+ */
+ com.google.cloud.dialogflow.cx.v3beta1.InlineDestinationOrBuilder getIntentsContentOrBuilder();
+
+ com.google.cloud.dialogflow.cx.v3beta1.ExportIntentsResponse.IntentsCase getIntentsCase();
+}
diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/Flow.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/Flow.java
index 5f96de3d7fbe..fe4dabe87072 100644
--- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/Flow.java
+++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/Flow.java
@@ -691,6 +691,60 @@ public com.google.cloud.dialogflow.cx.v3beta1.NluSettingsOrBuilder getNluSetting
: nluSettings_;
}
+ public static final int ADVANCED_SETTINGS_FIELD_NUMBER = 14;
+ private com.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings advancedSettings_;
+ /**
+ *
+ *
+ * + * Hierarchical advanced settings for this flow. The settings exposed at the + * lower level overrides the settings exposed at the higher level. + *+ * + *
.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings advanced_settings = 14;
+ *
+ * @return Whether the advancedSettings field is set.
+ */
+ @java.lang.Override
+ public boolean hasAdvancedSettings() {
+ return advancedSettings_ != null;
+ }
+ /**
+ *
+ *
+ * + * Hierarchical advanced settings for this flow. The settings exposed at the + * lower level overrides the settings exposed at the higher level. + *+ * + *
.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings advanced_settings = 14;
+ *
+ * @return The advancedSettings.
+ */
+ @java.lang.Override
+ public com.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings getAdvancedSettings() {
+ return advancedSettings_ == null
+ ? com.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.getDefaultInstance()
+ : advancedSettings_;
+ }
+ /**
+ *
+ *
+ * + * Hierarchical advanced settings for this flow. The settings exposed at the + * lower level overrides the settings exposed at the higher level. + *+ * + *
.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings advanced_settings = 14;
+ */
+ @java.lang.Override
+ public com.google.cloud.dialogflow.cx.v3beta1.AdvancedSettingsOrBuilder
+ getAdvancedSettingsOrBuilder() {
+ return advancedSettings_ == null
+ ? com.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.getDefaultInstance()
+ : advancedSettings_;
+ }
+
public static final int KNOWLEDGE_CONNECTOR_SETTINGS_FIELD_NUMBER = 18;
private com.google.cloud.dialogflow.cx.v3beta1.KnowledgeConnectorSettings
knowledgeConnectorSettings_;
@@ -782,6 +836,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (nluSettings_ != null) {
output.writeMessage(11, getNluSettings());
}
+ if (advancedSettings_ != null) {
+ output.writeMessage(14, getAdvancedSettings());
+ }
for (int i = 0; i < transitionRouteGroups_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(
output, 15, transitionRouteGroups_.getRaw(i));
@@ -816,6 +873,9 @@ public int getSerializedSize() {
if (nluSettings_ != null) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, getNluSettings());
}
+ if (advancedSettings_ != null) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(14, getAdvancedSettings());
+ }
{
int dataSize = 0;
for (int i = 0; i < transitionRouteGroups_.size(); i++) {
@@ -855,6 +915,10 @@ public boolean equals(final java.lang.Object obj) {
if (hasNluSettings()) {
if (!getNluSettings().equals(other.getNluSettings())) return false;
}
+ if (hasAdvancedSettings() != other.hasAdvancedSettings()) return false;
+ if (hasAdvancedSettings()) {
+ if (!getAdvancedSettings().equals(other.getAdvancedSettings())) return false;
+ }
if (hasKnowledgeConnectorSettings() != other.hasKnowledgeConnectorSettings()) return false;
if (hasKnowledgeConnectorSettings()) {
if (!getKnowledgeConnectorSettings().equals(other.getKnowledgeConnectorSettings()))
@@ -893,6 +957,10 @@ public int hashCode() {
hash = (37 * hash) + NLU_SETTINGS_FIELD_NUMBER;
hash = (53 * hash) + getNluSettings().hashCode();
}
+ if (hasAdvancedSettings()) {
+ hash = (37 * hash) + ADVANCED_SETTINGS_FIELD_NUMBER;
+ hash = (53 * hash) + getAdvancedSettings().hashCode();
+ }
if (hasKnowledgeConnectorSettings()) {
hash = (37 * hash) + KNOWLEDGE_CONNECTOR_SETTINGS_FIELD_NUMBER;
hash = (53 * hash) + getKnowledgeConnectorSettings().hashCode();
@@ -1072,6 +1140,11 @@ public Builder clear() {
nluSettingsBuilder_.dispose();
nluSettingsBuilder_ = null;
}
+ advancedSettings_ = null;
+ if (advancedSettingsBuilder_ != null) {
+ advancedSettingsBuilder_.dispose();
+ advancedSettingsBuilder_ = null;
+ }
knowledgeConnectorSettings_ = null;
if (knowledgeConnectorSettingsBuilder_ != null) {
knowledgeConnectorSettingsBuilder_.dispose();
@@ -1153,6 +1226,10 @@ private void buildPartial0(com.google.cloud.dialogflow.cx.v3beta1.Flow result) {
nluSettingsBuilder_ == null ? nluSettings_ : nluSettingsBuilder_.build();
}
if (((from_bitField0_ & 0x00000080) != 0)) {
+ result.advancedSettings_ =
+ advancedSettingsBuilder_ == null ? advancedSettings_ : advancedSettingsBuilder_.build();
+ }
+ if (((from_bitField0_ & 0x00000100) != 0)) {
result.knowledgeConnectorSettings_ =
knowledgeConnectorSettingsBuilder_ == null
? knowledgeConnectorSettings_
@@ -1287,6 +1364,9 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.Flow other) {
if (other.hasNluSettings()) {
mergeNluSettings(other.getNluSettings());
}
+ if (other.hasAdvancedSettings()) {
+ mergeAdvancedSettings(other.getAdvancedSettings());
+ }
if (other.hasKnowledgeConnectorSettings()) {
mergeKnowledgeConnectorSettings(other.getKnowledgeConnectorSettings());
}
@@ -1368,6 +1448,13 @@ public Builder mergeFrom(
bitField0_ |= 0x00000040;
break;
} // case 90
+ case 114:
+ {
+ input.readMessage(
+ getAdvancedSettingsFieldBuilder().getBuilder(), extensionRegistry);
+ bitField0_ |= 0x00000080;
+ break;
+ } // case 114
case 122:
{
java.lang.String s = input.readStringRequireUtf8();
@@ -1379,7 +1466,7 @@ public Builder mergeFrom(
{
input.readMessage(
getKnowledgeConnectorSettingsFieldBuilder().getBuilder(), extensionRegistry);
- bitField0_ |= 0x00000080;
+ bitField0_ |= 0x00000100;
break;
} // case 146
default:
@@ -3451,6 +3538,204 @@ public com.google.cloud.dialogflow.cx.v3beta1.NluSettingsOrBuilder getNluSetting
return nluSettingsBuilder_;
}
+ private com.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings advancedSettings_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings,
+ com.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.Builder,
+ com.google.cloud.dialogflow.cx.v3beta1.AdvancedSettingsOrBuilder>
+ advancedSettingsBuilder_;
+ /**
+ *
+ *
+ * + * Hierarchical advanced settings for this flow. The settings exposed at the + * lower level overrides the settings exposed at the higher level. + *+ * + *
.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings advanced_settings = 14;
+ *
+ * @return Whether the advancedSettings field is set.
+ */
+ public boolean hasAdvancedSettings() {
+ return ((bitField0_ & 0x00000080) != 0);
+ }
+ /**
+ *
+ *
+ * + * Hierarchical advanced settings for this flow. The settings exposed at the + * lower level overrides the settings exposed at the higher level. + *+ * + *
.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings advanced_settings = 14;
+ *
+ * @return The advancedSettings.
+ */
+ public com.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings getAdvancedSettings() {
+ if (advancedSettingsBuilder_ == null) {
+ return advancedSettings_ == null
+ ? com.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.getDefaultInstance()
+ : advancedSettings_;
+ } else {
+ return advancedSettingsBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ * + * Hierarchical advanced settings for this flow. The settings exposed at the + * lower level overrides the settings exposed at the higher level. + *+ * + *
.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings advanced_settings = 14;
+ */
+ public Builder setAdvancedSettings(
+ com.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings value) {
+ if (advancedSettingsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ advancedSettings_ = value;
+ } else {
+ advancedSettingsBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000080;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Hierarchical advanced settings for this flow. The settings exposed at the + * lower level overrides the settings exposed at the higher level. + *+ * + *
.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings advanced_settings = 14;
+ */
+ public Builder setAdvancedSettings(
+ com.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.Builder builderForValue) {
+ if (advancedSettingsBuilder_ == null) {
+ advancedSettings_ = builderForValue.build();
+ } else {
+ advancedSettingsBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000080;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Hierarchical advanced settings for this flow. The settings exposed at the + * lower level overrides the settings exposed at the higher level. + *+ * + *
.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings advanced_settings = 14;
+ */
+ public Builder mergeAdvancedSettings(
+ com.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings value) {
+ if (advancedSettingsBuilder_ == null) {
+ if (((bitField0_ & 0x00000080) != 0)
+ && advancedSettings_ != null
+ && advancedSettings_
+ != com.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.getDefaultInstance()) {
+ getAdvancedSettingsBuilder().mergeFrom(value);
+ } else {
+ advancedSettings_ = value;
+ }
+ } else {
+ advancedSettingsBuilder_.mergeFrom(value);
+ }
+ bitField0_ |= 0x00000080;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Hierarchical advanced settings for this flow. The settings exposed at the + * lower level overrides the settings exposed at the higher level. + *+ * + *
.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings advanced_settings = 14;
+ */
+ public Builder clearAdvancedSettings() {
+ bitField0_ = (bitField0_ & ~0x00000080);
+ advancedSettings_ = null;
+ if (advancedSettingsBuilder_ != null) {
+ advancedSettingsBuilder_.dispose();
+ advancedSettingsBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Hierarchical advanced settings for this flow. The settings exposed at the + * lower level overrides the settings exposed at the higher level. + *+ * + *
.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings advanced_settings = 14;
+ */
+ public com.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.Builder
+ getAdvancedSettingsBuilder() {
+ bitField0_ |= 0x00000080;
+ onChanged();
+ return getAdvancedSettingsFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * Hierarchical advanced settings for this flow. The settings exposed at the + * lower level overrides the settings exposed at the higher level. + *+ * + *
.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings advanced_settings = 14;
+ */
+ public com.google.cloud.dialogflow.cx.v3beta1.AdvancedSettingsOrBuilder
+ getAdvancedSettingsOrBuilder() {
+ if (advancedSettingsBuilder_ != null) {
+ return advancedSettingsBuilder_.getMessageOrBuilder();
+ } else {
+ return advancedSettings_ == null
+ ? com.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.getDefaultInstance()
+ : advancedSettings_;
+ }
+ }
+ /**
+ *
+ *
+ * + * Hierarchical advanced settings for this flow. The settings exposed at the + * lower level overrides the settings exposed at the higher level. + *+ * + *
.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings advanced_settings = 14;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings,
+ com.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.Builder,
+ com.google.cloud.dialogflow.cx.v3beta1.AdvancedSettingsOrBuilder>
+ getAdvancedSettingsFieldBuilder() {
+ if (advancedSettingsBuilder_ == null) {
+ advancedSettingsBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings,
+ com.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.Builder,
+ com.google.cloud.dialogflow.cx.v3beta1.AdvancedSettingsOrBuilder>(
+ getAdvancedSettings(), getParentForChildren(), isClean());
+ advancedSettings_ = null;
+ }
+ return advancedSettingsBuilder_;
+ }
+
private com.google.cloud.dialogflow.cx.v3beta1.KnowledgeConnectorSettings
knowledgeConnectorSettings_;
private com.google.protobuf.SingleFieldBuilderV3<
@@ -3472,7 +3757,7 @@ public com.google.cloud.dialogflow.cx.v3beta1.NluSettingsOrBuilder getNluSetting
* @return Whether the knowledgeConnectorSettings field is set.
*/
public boolean hasKnowledgeConnectorSettings() {
- return ((bitField0_ & 0x00000080) != 0);
+ return ((bitField0_ & 0x00000100) != 0);
}
/**
*
@@ -3518,7 +3803,7 @@ public Builder setKnowledgeConnectorSettings(
} else {
knowledgeConnectorSettingsBuilder_.setMessage(value);
}
- bitField0_ |= 0x00000080;
+ bitField0_ |= 0x00000100;
onChanged();
return this;
}
@@ -3540,7 +3825,7 @@ public Builder setKnowledgeConnectorSettings(
} else {
knowledgeConnectorSettingsBuilder_.setMessage(builderForValue.build());
}
- bitField0_ |= 0x00000080;
+ bitField0_ |= 0x00000100;
onChanged();
return this;
}
@@ -3558,7 +3843,7 @@ public Builder setKnowledgeConnectorSettings(
public Builder mergeKnowledgeConnectorSettings(
com.google.cloud.dialogflow.cx.v3beta1.KnowledgeConnectorSettings value) {
if (knowledgeConnectorSettingsBuilder_ == null) {
- if (((bitField0_ & 0x00000080) != 0)
+ if (((bitField0_ & 0x00000100) != 0)
&& knowledgeConnectorSettings_ != null
&& knowledgeConnectorSettings_
!= com.google.cloud.dialogflow.cx.v3beta1.KnowledgeConnectorSettings
@@ -3570,7 +3855,7 @@ public Builder mergeKnowledgeConnectorSettings(
} else {
knowledgeConnectorSettingsBuilder_.mergeFrom(value);
}
- bitField0_ |= 0x00000080;
+ bitField0_ |= 0x00000100;
onChanged();
return this;
}
@@ -3586,7 +3871,7 @@ public Builder mergeKnowledgeConnectorSettings(
*
*/
public Builder clearKnowledgeConnectorSettings() {
- bitField0_ = (bitField0_ & ~0x00000080);
+ bitField0_ = (bitField0_ & ~0x00000100);
knowledgeConnectorSettings_ = null;
if (knowledgeConnectorSettingsBuilder_ != null) {
knowledgeConnectorSettingsBuilder_.dispose();
@@ -3608,7 +3893,7 @@ public Builder clearKnowledgeConnectorSettings() {
*/
public com.google.cloud.dialogflow.cx.v3beta1.KnowledgeConnectorSettings.Builder
getKnowledgeConnectorSettingsBuilder() {
- bitField0_ |= 0x00000080;
+ bitField0_ |= 0x00000100;
onChanged();
return getKnowledgeConnectorSettingsFieldBuilder().getBuilder();
}
diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/FlowOrBuilder.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/FlowOrBuilder.java
index 4ed08d8b4a51..c91dc0fbdb1c 100644
--- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/FlowOrBuilder.java
+++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/FlowOrBuilder.java
@@ -487,6 +487,44 @@ com.google.cloud.dialogflow.cx.v3beta1.TransitionRouteOrBuilder getTransitionRou
*/
com.google.cloud.dialogflow.cx.v3beta1.NluSettingsOrBuilder getNluSettingsOrBuilder();
+ /**
+ *
+ *
+ * + * Hierarchical advanced settings for this flow. The settings exposed at the + * lower level overrides the settings exposed at the higher level. + *+ * + *
.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings advanced_settings = 14;
+ *
+ * @return Whether the advancedSettings field is set.
+ */
+ boolean hasAdvancedSettings();
+ /**
+ *
+ *
+ * + * Hierarchical advanced settings for this flow. The settings exposed at the + * lower level overrides the settings exposed at the higher level. + *+ * + *
.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings advanced_settings = 14;
+ *
+ * @return The advancedSettings.
+ */
+ com.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings getAdvancedSettings();
+ /**
+ *
+ *
+ * + * Hierarchical advanced settings for this flow. The settings exposed at the + * lower level overrides the settings exposed at the higher level. + *+ * + *
.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings advanced_settings = 14;
+ */
+ com.google.cloud.dialogflow.cx.v3beta1.AdvancedSettingsOrBuilder getAdvancedSettingsOrBuilder();
+
/**
*
*
diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/FlowProto.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/FlowProto.java
index b8fe0c2f2823..cb81ad4803f8 100644
--- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/FlowProto.java
+++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/FlowProto.java
@@ -108,156 +108,159 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "w.proto\022\"google.cloud.dialogflow.cx.v3be"
+ "ta1\032\034google/api/annotations.proto\032\027googl"
+ "e/api/client.proto\032\037google/api/field_beh"
- + "avior.proto\032\031google/api/resource.proto\0328"
- + "google/cloud/dialogflow/cx/v3beta1/impor"
- + "t_strategy.proto\032-google/cloud/dialogflo"
- + "w/cx/v3beta1/page.proto\032;google/cloud/di"
- + "alogflow/cx/v3beta1/validation_message.p"
- + "roto\032#google/longrunning/operations.prot"
- + "o\032\033google/protobuf/empty.proto\032 google/p"
- + "rotobuf/field_mask.proto\032\034google/protobu"
- + "f/struct.proto\032\037google/protobuf/timestam"
- + "p.proto\"\266\003\n\013NluSettings\022M\n\nmodel_type\030\001 "
- + "\001(\01629.google.cloud.dialogflow.cx.v3beta1"
- + ".NluSettings.ModelType\022 \n\030classification"
- + "_threshold\030\003 \001(\002\022^\n\023model_training_mode\030"
- + "\004 \001(\0162A.google.cloud.dialogflow.cx.v3bet"
- + "a1.NluSettings.ModelTrainingMode\"Y\n\tMode"
- + "lType\022\032\n\026MODEL_TYPE_UNSPECIFIED\020\000\022\027\n\023MOD"
- + "EL_TYPE_STANDARD\020\001\022\027\n\023MODEL_TYPE_ADVANCE"
- + "D\020\003\"{\n\021ModelTrainingMode\022#\n\037MODEL_TRAINI"
- + "NG_MODE_UNSPECIFIED\020\000\022!\n\035MODEL_TRAINING_"
- + "MODE_AUTOMATIC\020\001\022\036\n\032MODEL_TRAINING_MODE_"
- + "MANUAL\020\002\"\322\004\n\004Flow\022\014\n\004name\030\001 \001(\t\022\032\n\014displ"
- + "ay_name\030\002 \001(\tB\004\342A\001\002\022\023\n\013description\030\003 \001(\t"
- + "\022N\n\021transition_routes\030\004 \003(\01323.google.clo"
- + "ud.dialogflow.cx.v3beta1.TransitionRoute"
- + "\022H\n\016event_handlers\030\n \003(\01320.google.cloud."
- + "dialogflow.cx.v3beta1.EventHandler\022T\n\027tr"
- + "ansition_route_groups\030\017 \003(\tB3\372A0\n.dialog"
- + "flow.googleapis.com/TransitionRouteGroup"
- + "\022E\n\014nlu_settings\030\013 \001(\0132/.google.cloud.di"
- + "alogflow.cx.v3beta1.NluSettings\022j\n\034knowl"
- + "edge_connector_settings\030\022 \001(\0132>.google.c"
- + "loud.dialogflow.cx.v3beta1.KnowledgeConn"
- + "ectorSettingsB\004\342A\001\001:h\352Ae\n\036dialogflow.goo"
- + "gleapis.com/Flow\022Cprojects/{project}/loc"
- + "ations/{location}/agents/{agent}/flows/{"
- + "flow}\"\241\001\n\021CreateFlowRequest\0227\n\006parent\030\001 "
- + "\001(\tB\'\342A\001\002\372A \022\036dialogflow.googleapis.com/"
- + "Flow\022<\n\004flow\030\002 \001(\0132(.google.cloud.dialog"
- + "flow.cx.v3beta1.FlowB\004\342A\001\002\022\025\n\rlanguage_c"
- + "ode\030\003 \001(\t\"Y\n\021DeleteFlowRequest\0225\n\004name\030\001"
- + " \001(\tB\'\342A\001\002\372A \n\036dialogflow.googleapis.com"
- + "/Flow\022\r\n\005force\030\002 \001(\010\"\211\001\n\020ListFlowsReques"
- + "t\0227\n\006parent\030\001 \001(\tB\'\342A\001\002\372A \022\036dialogflow.g"
- + "oogleapis.com/Flow\022\021\n\tpage_size\030\002 \001(\005\022\022\n"
- + "\npage_token\030\003 \001(\t\022\025\n\rlanguage_code\030\004 \001(\t"
- + "\"e\n\021ListFlowsResponse\0227\n\005flows\030\001 \003(\0132(.g"
- + "oogle.cloud.dialogflow.cx.v3beta1.Flow\022\027"
- + "\n\017next_page_token\030\002 \001(\t\"^\n\016GetFlowReques"
- + "t\0225\n\004name\030\001 \001(\tB\'\342A\001\002\372A \n\036dialogflow.goo"
- + "gleapis.com/Flow\022\025\n\rlanguage_code\030\002 \001(\t\""
- + "\231\001\n\021UpdateFlowRequest\022<\n\004flow\030\001 \001(\0132(.go"
- + "ogle.cloud.dialogflow.cx.v3beta1.FlowB\004\342"
- + "A\001\002\022/\n\013update_mask\030\002 \001(\0132\032.google.protob"
- + "uf.FieldMask\022\025\n\rlanguage_code\030\003 \001(\t\"I\n\020T"
- + "rainFlowRequest\0225\n\004name\030\001 \001(\tB\'\342A\001\002\372A \n\036"
- + "dialogflow.googleapis.com/Flow\"c\n\023Valida"
- + "teFlowRequest\0225\n\004name\030\001 \001(\tB\'\342A\001\002\372A \n\036di"
- + "alogflow.googleapis.com/Flow\022\025\n\rlanguage"
- + "_code\030\002 \001(\t\"~\n\036GetFlowValidationResultRe"
- + "quest\022E\n\004name\030\001 \001(\tB7\342A\001\002\372A0\n.dialogflow"
- + ".googleapis.com/FlowValidationResult\022\025\n\r"
- + "language_code\030\002 \001(\t\"\266\002\n\024FlowValidationRe"
- + "sult\022\014\n\004name\030\001 \001(\t\022R\n\023validation_message"
- + "s\030\002 \003(\01325.google.cloud.dialogflow.cx.v3b"
- + "eta1.ValidationMessage\022/\n\013update_time\030\003 "
- + "\001(\0132\032.google.protobuf.Timestamp:\212\001\352A\206\001\n."
- + "dialogflow.googleapis.com/FlowValidation"
- + "Result\022Tprojects/{project}/locations/{lo"
- + "cation}/agents/{agent}/flows/{flow}/vali"
- + "dationResult\"\376\002\n\021ImportFlowRequest\0227\n\006pa"
- + "rent\030\001 \001(\tB\'\342A\001\002\372A \022\036dialogflow.googleap"
- + "is.com/Flow\022\022\n\010flow_uri\030\002 \001(\tH\000\022\026\n\014flow_"
- + "content\030\003 \001(\014H\000\022Y\n\rimport_option\030\004 \001(\0162B"
- + ".google.cloud.dialogflow.cx.v3beta1.Impo"
- + "rtFlowRequest.ImportOption\022Z\n\024flow_impor"
- + "t_strategy\030\005 \001(\01326.google.cloud.dialogfl"
- + "ow.cx.v3beta1.FlowImportStrategyB\004\342A\001\001\"E"
- + "\n\014ImportOption\022\035\n\031IMPORT_OPTION_UNSPECIF"
- + "IED\020\000\022\010\n\004KEEP\020\001\022\014\n\010FALLBACK\020\002B\006\n\004flow\"n\n"
- + "\022FlowImportStrategy\022X\n\026global_import_str"
- + "ategy\030\001 \001(\01622.google.cloud.dialogflow.cx"
- + ".v3beta1.ImportStrategyB\004\342A\001\001\"G\n\022ImportF"
- + "lowResponse\0221\n\004flow\030\001 \001(\tB#\372A \n\036dialogfl"
- + "ow.googleapis.com/Flow\"\212\001\n\021ExportFlowReq"
- + "uest\0225\n\004name\030\001 \001(\tB\'\342A\001\002\372A \n\036dialogflow."
- + "googleapis.com/Flow\022\026\n\010flow_uri\030\002 \001(\tB\004\342"
- + "A\001\001\022&\n\030include_referenced_flows\030\004 \001(\010B\004\342"
- + "A\001\001\"H\n\022ExportFlowResponse\022\022\n\010flow_uri\030\001 "
- + "\001(\tH\000\022\026\n\014flow_content\030\002 \001(\014H\000B\006\n\004flow2\233\021"
- + "\n\005Flows\022\302\001\n\nCreateFlow\0225.google.cloud.di"
- + "alogflow.cx.v3beta1.CreateFlowRequest\032(."
- + "google.cloud.dialogflow.cx.v3beta1.Flow\""
- + "S\332A\013parent,flow\202\323\344\223\002?\"7/v3beta1/{parent="
- + "projects/*/locations/*/agents/*}/flows:\004"
- + "flow\022\243\001\n\nDeleteFlow\0225.google.cloud.dialo"
- + "gflow.cx.v3beta1.DeleteFlowRequest\032\026.goo"
- + "gle.protobuf.Empty\"F\332A\004name\202\323\344\223\0029*7/v3be"
- + "ta1/{name=projects/*/locations/*/agents/"
- + "*/flows/*}\022\302\001\n\tListFlows\0224.google.cloud."
- + "dialogflow.cx.v3beta1.ListFlowsRequest\0325"
- + ".google.cloud.dialogflow.cx.v3beta1.List"
- + "FlowsResponse\"H\332A\006parent\202\323\344\223\0029\0227/v3beta1"
- + "/{parent=projects/*/locations/*/agents/*"
- + "}/flows\022\257\001\n\007GetFlow\0222.google.cloud.dialo"
- + "gflow.cx.v3beta1.GetFlowRequest\032(.google"
- + ".cloud.dialogflow.cx.v3beta1.Flow\"F\332A\004na"
- + "me\202\323\344\223\0029\0227/v3beta1/{name=projects/*/loca"
- + "tions/*/agents/*/flows/*}\022\314\001\n\nUpdateFlow"
- + "\0225.google.cloud.dialogflow.cx.v3beta1.Up"
- + "dateFlowRequest\032(.google.cloud.dialogflo"
- + "w.cx.v3beta1.Flow\"]\332A\020flow,update_mask\202\323"
- + "\344\223\002D2/v3beta"
- + "1/{parent=projects/*/locations/*/agents/"
- + "*}/flows:import:\001*\022\334\001\n\nExportFlow\0225.goog"
- + "le.cloud.dialogflow.cx.v3beta1.ExportFlo"
- + "wRequest\032\035.google.longrunning.Operation\""
- + "x\312A,\n\022ExportFlowResponse\022\026google.protobu"
- + "f.Struct\202\323\344\223\002C\">/v3beta1/{name=projects/"
- + "*/locations/*/agents/*/flows/*}:export:\001"
- + "*\032x\312A\031dialogflow.googleapis.com\322AYhttps:"
- + "//www.googleapis.com/auth/cloud-platform"
- + ",https://www.googleapis.com/auth/dialogf"
- + "lowB\303\001\n&com.google.cloud.dialogflow.cx.v"
- + "3beta1B\tFlowProtoP\001Z6cloud.google.com/go"
- + "/dialogflow/cx/apiv3beta1/cxpb;cxpb\370\001\001\242\002"
- + "\002DF\252\002\"Google.Cloud.Dialogflow.Cx.V3Beta1"
- + "\352\002&Google::Cloud::Dialogflow::CX::V3beta"
- + "1b\006proto3"
+ + "avior.proto\032\031google/api/resource.proto\032:"
+ + "google/cloud/dialogflow/cx/v3beta1/advan"
+ + "ced_settings.proto\0328google/cloud/dialogf"
+ + "low/cx/v3beta1/import_strategy.proto\032-go"
+ + "ogle/cloud/dialogflow/cx/v3beta1/page.pr"
+ + "oto\032;google/cloud/dialogflow/cx/v3beta1/"
+ + "validation_message.proto\032#google/longrun"
+ + "ning/operations.proto\032\033google/protobuf/e"
+ + "mpty.proto\032 google/protobuf/field_mask.p"
+ + "roto\032\034google/protobuf/struct.proto\032\037goog"
+ + "le/protobuf/timestamp.proto\"\266\003\n\013NluSetti"
+ + "ngs\022M\n\nmodel_type\030\001 \001(\01629.google.cloud.d"
+ + "ialogflow.cx.v3beta1.NluSettings.ModelTy"
+ + "pe\022 \n\030classification_threshold\030\003 \001(\002\022^\n\023"
+ + "model_training_mode\030\004 \001(\0162A.google.cloud"
+ + ".dialogflow.cx.v3beta1.NluSettings.Model"
+ + "TrainingMode\"Y\n\tModelType\022\032\n\026MODEL_TYPE_"
+ + "UNSPECIFIED\020\000\022\027\n\023MODEL_TYPE_STANDARD\020\001\022\027"
+ + "\n\023MODEL_TYPE_ADVANCED\020\003\"{\n\021ModelTraining"
+ + "Mode\022#\n\037MODEL_TRAINING_MODE_UNSPECIFIED\020"
+ + "\000\022!\n\035MODEL_TRAINING_MODE_AUTOMATIC\020\001\022\036\n\032"
+ + "MODEL_TRAINING_MODE_MANUAL\020\002\"\243\005\n\004Flow\022\014\n"
+ + "\004name\030\001 \001(\t\022\032\n\014display_name\030\002 \001(\tB\004\342A\001\002\022"
+ + "\023\n\013description\030\003 \001(\t\022N\n\021transition_route"
+ + "s\030\004 \003(\01323.google.cloud.dialogflow.cx.v3b"
+ + "eta1.TransitionRoute\022H\n\016event_handlers\030\n"
+ + " \003(\01320.google.cloud.dialogflow.cx.v3beta"
+ + "1.EventHandler\022T\n\027transition_route_group"
+ + "s\030\017 \003(\tB3\372A0\n.dialogflow.googleapis.com/"
+ + "TransitionRouteGroup\022E\n\014nlu_settings\030\013 \001"
+ + "(\0132/.google.cloud.dialogflow.cx.v3beta1."
+ + "NluSettings\022O\n\021advanced_settings\030\016 \001(\01324"
+ + ".google.cloud.dialogflow.cx.v3beta1.Adva"
+ + "ncedSettings\022j\n\034knowledge_connector_sett"
+ + "ings\030\022 \001(\0132>.google.cloud.dialogflow.cx."
+ + "v3beta1.KnowledgeConnectorSettingsB\004\342A\001\001"
+ + ":h\352Ae\n\036dialogflow.googleapis.com/Flow\022Cp"
+ + "rojects/{project}/locations/{location}/a"
+ + "gents/{agent}/flows/{flow}\"\241\001\n\021CreateFlo"
+ + "wRequest\0227\n\006parent\030\001 \001(\tB\'\342A\001\002\372A \022\036dialo"
+ + "gflow.googleapis.com/Flow\022<\n\004flow\030\002 \001(\0132"
+ + "(.google.cloud.dialogflow.cx.v3beta1.Flo"
+ + "wB\004\342A\001\002\022\025\n\rlanguage_code\030\003 \001(\t\"Y\n\021Delete"
+ + "FlowRequest\0225\n\004name\030\001 \001(\tB\'\342A\001\002\372A \n\036dial"
+ + "ogflow.googleapis.com/Flow\022\r\n\005force\030\002 \001("
+ + "\010\"\211\001\n\020ListFlowsRequest\0227\n\006parent\030\001 \001(\tB\'"
+ + "\342A\001\002\372A \022\036dialogflow.googleapis.com/Flow\022"
+ + "\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\022\025"
+ + "\n\rlanguage_code\030\004 \001(\t\"e\n\021ListFlowsRespon"
+ + "se\0227\n\005flows\030\001 \003(\0132(.google.cloud.dialogf"
+ + "low.cx.v3beta1.Flow\022\027\n\017next_page_token\030\002"
+ + " \001(\t\"^\n\016GetFlowRequest\0225\n\004name\030\001 \001(\tB\'\342A"
+ + "\001\002\372A \n\036dialogflow.googleapis.com/Flow\022\025\n"
+ + "\rlanguage_code\030\002 \001(\t\"\231\001\n\021UpdateFlowReque"
+ + "st\022<\n\004flow\030\001 \001(\0132(.google.cloud.dialogfl"
+ + "ow.cx.v3beta1.FlowB\004\342A\001\002\022/\n\013update_mask\030"
+ + "\002 \001(\0132\032.google.protobuf.FieldMask\022\025\n\rlan"
+ + "guage_code\030\003 \001(\t\"I\n\020TrainFlowRequest\0225\n\004"
+ + "name\030\001 \001(\tB\'\342A\001\002\372A \n\036dialogflow.googleap"
+ + "is.com/Flow\"c\n\023ValidateFlowRequest\0225\n\004na"
+ + "me\030\001 \001(\tB\'\342A\001\002\372A \n\036dialogflow.googleapis"
+ + ".com/Flow\022\025\n\rlanguage_code\030\002 \001(\t\"~\n\036GetF"
+ + "lowValidationResultRequest\022E\n\004name\030\001 \001(\t"
+ + "B7\342A\001\002\372A0\n.dialogflow.googleapis.com/Flo"
+ + "wValidationResult\022\025\n\rlanguage_code\030\002 \001(\t"
+ + "\"\266\002\n\024FlowValidationResult\022\014\n\004name\030\001 \001(\t\022"
+ + "R\n\023validation_messages\030\002 \003(\01325.google.cl"
+ + "oud.dialogflow.cx.v3beta1.ValidationMess"
+ + "age\022/\n\013update_time\030\003 \001(\0132\032.google.protob"
+ + "uf.Timestamp:\212\001\352A\206\001\n.dialogflow.googleap"
+ + "is.com/FlowValidationResult\022Tprojects/{p"
+ + "roject}/locations/{location}/agents/{age"
+ + "nt}/flows/{flow}/validationResult\"\376\002\n\021Im"
+ + "portFlowRequest\0227\n\006parent\030\001 \001(\tB\'\342A\001\002\372A "
+ + "\022\036dialogflow.googleapis.com/Flow\022\022\n\010flow"
+ + "_uri\030\002 \001(\tH\000\022\026\n\014flow_content\030\003 \001(\014H\000\022Y\n\r"
+ + "import_option\030\004 \001(\0162B.google.cloud.dialo"
+ + "gflow.cx.v3beta1.ImportFlowRequest.Impor"
+ + "tOption\022Z\n\024flow_import_strategy\030\005 \001(\01326."
+ + "google.cloud.dialogflow.cx.v3beta1.FlowI"
+ + "mportStrategyB\004\342A\001\001\"E\n\014ImportOption\022\035\n\031I"
+ + "MPORT_OPTION_UNSPECIFIED\020\000\022\010\n\004KEEP\020\001\022\014\n\010"
+ + "FALLBACK\020\002B\006\n\004flow\"n\n\022FlowImportStrategy"
+ + "\022X\n\026global_import_strategy\030\001 \001(\01622.googl"
+ + "e.cloud.dialogflow.cx.v3beta1.ImportStra"
+ + "tegyB\004\342A\001\001\"G\n\022ImportFlowResponse\0221\n\004flow"
+ + "\030\001 \001(\tB#\372A \n\036dialogflow.googleapis.com/F"
+ + "low\"\212\001\n\021ExportFlowRequest\0225\n\004name\030\001 \001(\tB"
+ + "\'\342A\001\002\372A \n\036dialogflow.googleapis.com/Flow"
+ + "\022\026\n\010flow_uri\030\002 \001(\tB\004\342A\001\001\022&\n\030include_refe"
+ + "renced_flows\030\004 \001(\010B\004\342A\001\001\"H\n\022ExportFlowRe"
+ + "sponse\022\022\n\010flow_uri\030\001 \001(\tH\000\022\026\n\014flow_conte"
+ + "nt\030\002 \001(\014H\000B\006\n\004flow2\233\021\n\005Flows\022\302\001\n\nCreateF"
+ + "low\0225.google.cloud.dialogflow.cx.v3beta1"
+ + ".CreateFlowRequest\032(.google.cloud.dialog"
+ + "flow.cx.v3beta1.Flow\"S\332A\013parent,flow\202\323\344\223"
+ + "\002?\"7/v3beta1/{parent=projects/*/location"
+ + "s/*/agents/*}/flows:\004flow\022\243\001\n\nDeleteFlow"
+ + "\0225.google.cloud.dialogflow.cx.v3beta1.De"
+ + "leteFlowRequest\032\026.google.protobuf.Empty\""
+ + "F\332A\004name\202\323\344\223\0029*7/v3beta1/{name=projects/"
+ + "*/locations/*/agents/*/flows/*}\022\302\001\n\tList"
+ + "Flows\0224.google.cloud.dialogflow.cx.v3bet"
+ + "a1.ListFlowsRequest\0325.google.cloud.dialo"
+ + "gflow.cx.v3beta1.ListFlowsResponse\"H\332A\006p"
+ + "arent\202\323\344\223\0029\0227/v3beta1/{parent=projects/*"
+ + "/locations/*/agents/*}/flows\022\257\001\n\007GetFlow"
+ + "\0222.google.cloud.dialogflow.cx.v3beta1.Ge"
+ + "tFlowRequest\032(.google.cloud.dialogflow.c"
+ + "x.v3beta1.Flow\"F\332A\004name\202\323\344\223\0029\0227/v3beta1/"
+ + "{name=projects/*/locations/*/agents/*/fl"
+ + "ows/*}\022\314\001\n\nUpdateFlow\0225.google.cloud.dia"
+ + "logflow.cx.v3beta1.UpdateFlowRequest\032(.g"
+ + "oogle.cloud.dialogflow.cx.v3beta1.Flow\"]"
+ + "\332A\020flow,update_mask\202\323\344\223\002D2/v3beta1/{parent=projects/"
+ + "*/locations/*/agents/*}/flows:import:\001*\022"
+ + "\334\001\n\nExportFlow\0225.google.cloud.dialogflow"
+ + ".cx.v3beta1.ExportFlowRequest\032\035.google.l"
+ + "ongrunning.Operation\"x\312A,\n\022ExportFlowRes"
+ + "ponse\022\026google.protobuf.Struct\202\323\344\223\002C\">/v3"
+ + "beta1/{name=projects/*/locations/*/agent"
+ + "s/*/flows/*}:export:\001*\032x\312A\031dialogflow.go"
+ + "ogleapis.com\322AYhttps://www.googleapis.co"
+ + "m/auth/cloud-platform,https://www.google"
+ + "apis.com/auth/dialogflowB\303\001\n&com.google."
+ + "cloud.dialogflow.cx.v3beta1B\tFlowProtoP\001"
+ + "Z6cloud.google.com/go/dialogflow/cx/apiv"
+ + "3beta1/cxpb;cxpb\370\001\001\242\002\002DF\252\002\"Google.Cloud."
+ + "Dialogflow.Cx.V3Beta1\352\002&Google::Cloud::D"
+ + "ialogflow::CX::V3beta1b\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
@@ -267,6 +270,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
com.google.api.ClientProto.getDescriptor(),
com.google.api.FieldBehaviorProto.getDescriptor(),
com.google.api.ResourceProto.getDescriptor(),
+ com.google.cloud.dialogflow.cx.v3beta1.AdvancedSettingsProto.getDescriptor(),
com.google.cloud.dialogflow.cx.v3beta1.ImportStrategyProto.getDescriptor(),
com.google.cloud.dialogflow.cx.v3beta1.PageProto.getDescriptor(),
com.google.cloud.dialogflow.cx.v3beta1.ValidationMessageProto.getDescriptor(),
@@ -297,6 +301,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"EventHandlers",
"TransitionRouteGroups",
"NluSettings",
+ "AdvancedSettings",
"KnowledgeConnectorSettings",
});
internal_static_google_cloud_dialogflow_cx_v3beta1_CreateFlowRequest_descriptor =
@@ -435,6 +440,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
com.google.api.ClientProto.getDescriptor();
com.google.api.FieldBehaviorProto.getDescriptor();
com.google.api.ResourceProto.getDescriptor();
+ com.google.cloud.dialogflow.cx.v3beta1.AdvancedSettingsProto.getDescriptor();
com.google.cloud.dialogflow.cx.v3beta1.ImportStrategyProto.getDescriptor();
com.google.cloud.dialogflow.cx.v3beta1.PageProto.getDescriptor();
com.google.cloud.dialogflow.cx.v3beta1.ValidationMessageProto.getDescriptor();
diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/Form.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/Form.java
index 7692d4f4dab3..01db1ae3cd06 100644
--- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/Form.java
+++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/Form.java
@@ -264,6 +264,44 @@ public interface ParameterOrBuilder
* @return The redact.
*/
boolean getRedact();
+
+ /**
+ *
+ *
+ * + * Hierarchical advanced settings for this parameter. The settings exposed + * at the lower level overrides the settings exposed at the higher level. + *+ * + *
.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings advanced_settings = 12;
+ *
+ * @return Whether the advancedSettings field is set.
+ */
+ boolean hasAdvancedSettings();
+ /**
+ *
+ *
+ * + * Hierarchical advanced settings for this parameter. The settings exposed + * at the lower level overrides the settings exposed at the higher level. + *+ * + *
.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings advanced_settings = 12;
+ *
+ * @return The advancedSettings.
+ */
+ com.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings getAdvancedSettings();
+ /**
+ *
+ *
+ * + * Hierarchical advanced settings for this parameter. The settings exposed + * at the lower level overrides the settings exposed at the higher level. + *+ * + *
.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings advanced_settings = 12;
+ */
+ com.google.cloud.dialogflow.cx.v3beta1.AdvancedSettingsOrBuilder getAdvancedSettingsOrBuilder();
}
/**
*
@@ -2903,6 +2941,60 @@ public boolean getRedact() {
return redact_;
}
+ public static final int ADVANCED_SETTINGS_FIELD_NUMBER = 12;
+ private com.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings advancedSettings_;
+ /**
+ *
+ *
+ * + * Hierarchical advanced settings for this parameter. The settings exposed + * at the lower level overrides the settings exposed at the higher level. + *+ * + *
.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings advanced_settings = 12;
+ *
+ * @return Whether the advancedSettings field is set.
+ */
+ @java.lang.Override
+ public boolean hasAdvancedSettings() {
+ return advancedSettings_ != null;
+ }
+ /**
+ *
+ *
+ * + * Hierarchical advanced settings for this parameter. The settings exposed + * at the lower level overrides the settings exposed at the higher level. + *+ * + *
.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings advanced_settings = 12;
+ *
+ * @return The advancedSettings.
+ */
+ @java.lang.Override
+ public com.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings getAdvancedSettings() {
+ return advancedSettings_ == null
+ ? com.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.getDefaultInstance()
+ : advancedSettings_;
+ }
+ /**
+ *
+ *
+ * + * Hierarchical advanced settings for this parameter. The settings exposed + * at the lower level overrides the settings exposed at the higher level. + *+ * + *
.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings advanced_settings = 12;
+ */
+ @java.lang.Override
+ public com.google.cloud.dialogflow.cx.v3beta1.AdvancedSettingsOrBuilder
+ getAdvancedSettingsOrBuilder() {
+ return advancedSettings_ == null
+ ? com.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.getDefaultInstance()
+ : advancedSettings_;
+ }
+
private byte memoizedIsInitialized = -1;
@java.lang.Override
@@ -2938,6 +3030,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (redact_ != false) {
output.writeBool(11, redact_);
}
+ if (advancedSettings_ != null) {
+ output.writeMessage(12, getAdvancedSettings());
+ }
getUnknownFields().writeTo(output);
}
@@ -2968,6 +3063,9 @@ public int getSerializedSize() {
if (redact_ != false) {
size += com.google.protobuf.CodedOutputStream.computeBoolSize(11, redact_);
}
+ if (advancedSettings_ != null) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, getAdvancedSettings());
+ }
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
@@ -2997,6 +3095,10 @@ public boolean equals(final java.lang.Object obj) {
if (!getDefaultValue().equals(other.getDefaultValue())) return false;
}
if (getRedact() != other.getRedact()) return false;
+ if (hasAdvancedSettings() != other.hasAdvancedSettings()) return false;
+ if (hasAdvancedSettings()) {
+ if (!getAdvancedSettings().equals(other.getAdvancedSettings())) return false;
+ }
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@@ -3026,6 +3128,10 @@ public int hashCode() {
}
hash = (37 * hash) + REDACT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getRedact());
+ if (hasAdvancedSettings()) {
+ hash = (37 * hash) + ADVANCED_SETTINGS_FIELD_NUMBER;
+ hash = (53 * hash) + getAdvancedSettings().hashCode();
+ }
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
@@ -3183,6 +3289,11 @@ public Builder clear() {
defaultValueBuilder_ = null;
}
redact_ = false;
+ advancedSettings_ = null;
+ if (advancedSettingsBuilder_ != null) {
+ advancedSettingsBuilder_.dispose();
+ advancedSettingsBuilder_ = null;
+ }
return this;
}
@@ -3242,6 +3353,12 @@ private void buildPartial0(com.google.cloud.dialogflow.cx.v3beta1.Form.Parameter
if (((from_bitField0_ & 0x00000040) != 0)) {
result.redact_ = redact_;
}
+ if (((from_bitField0_ & 0x00000080) != 0)) {
+ result.advancedSettings_ =
+ advancedSettingsBuilder_ == null
+ ? advancedSettings_
+ : advancedSettingsBuilder_.build();
+ }
}
@java.lang.Override
@@ -3317,6 +3434,9 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.Form.Parameter o
if (other.getRedact() != false) {
setRedact(other.getRedact());
}
+ if (other.hasAdvancedSettings()) {
+ mergeAdvancedSettings(other.getAdvancedSettings());
+ }
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
@@ -3385,6 +3505,13 @@ public Builder mergeFrom(
bitField0_ |= 0x00000040;
break;
} // case 88
+ case 98:
+ {
+ input.readMessage(
+ getAdvancedSettingsFieldBuilder().getBuilder(), extensionRegistry);
+ bitField0_ |= 0x00000080;
+ break;
+ } // case 98
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
@@ -4242,6 +4369,204 @@ public Builder clearRedact() {
return this;
}
+ private com.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings advancedSettings_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings,
+ com.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.Builder,
+ com.google.cloud.dialogflow.cx.v3beta1.AdvancedSettingsOrBuilder>
+ advancedSettingsBuilder_;
+ /**
+ *
+ *
+ * + * Hierarchical advanced settings for this parameter. The settings exposed + * at the lower level overrides the settings exposed at the higher level. + *+ * + *
.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings advanced_settings = 12;
+ *
+ * @return Whether the advancedSettings field is set.
+ */
+ public boolean hasAdvancedSettings() {
+ return ((bitField0_ & 0x00000080) != 0);
+ }
+ /**
+ *
+ *
+ * + * Hierarchical advanced settings for this parameter. The settings exposed + * at the lower level overrides the settings exposed at the higher level. + *+ * + *
.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings advanced_settings = 12;
+ *
+ * @return The advancedSettings.
+ */
+ public com.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings getAdvancedSettings() {
+ if (advancedSettingsBuilder_ == null) {
+ return advancedSettings_ == null
+ ? com.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.getDefaultInstance()
+ : advancedSettings_;
+ } else {
+ return advancedSettingsBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ * + * Hierarchical advanced settings for this parameter. The settings exposed + * at the lower level overrides the settings exposed at the higher level. + *+ * + *
.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings advanced_settings = 12;
+ */
+ public Builder setAdvancedSettings(
+ com.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings value) {
+ if (advancedSettingsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ advancedSettings_ = value;
+ } else {
+ advancedSettingsBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000080;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Hierarchical advanced settings for this parameter. The settings exposed + * at the lower level overrides the settings exposed at the higher level. + *+ * + *
.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings advanced_settings = 12;
+ */
+ public Builder setAdvancedSettings(
+ com.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.Builder builderForValue) {
+ if (advancedSettingsBuilder_ == null) {
+ advancedSettings_ = builderForValue.build();
+ } else {
+ advancedSettingsBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000080;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Hierarchical advanced settings for this parameter. The settings exposed + * at the lower level overrides the settings exposed at the higher level. + *+ * + *
.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings advanced_settings = 12;
+ */
+ public Builder mergeAdvancedSettings(
+ com.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings value) {
+ if (advancedSettingsBuilder_ == null) {
+ if (((bitField0_ & 0x00000080) != 0)
+ && advancedSettings_ != null
+ && advancedSettings_
+ != com.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.getDefaultInstance()) {
+ getAdvancedSettingsBuilder().mergeFrom(value);
+ } else {
+ advancedSettings_ = value;
+ }
+ } else {
+ advancedSettingsBuilder_.mergeFrom(value);
+ }
+ bitField0_ |= 0x00000080;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Hierarchical advanced settings for this parameter. The settings exposed + * at the lower level overrides the settings exposed at the higher level. + *+ * + *
.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings advanced_settings = 12;
+ */
+ public Builder clearAdvancedSettings() {
+ bitField0_ = (bitField0_ & ~0x00000080);
+ advancedSettings_ = null;
+ if (advancedSettingsBuilder_ != null) {
+ advancedSettingsBuilder_.dispose();
+ advancedSettingsBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Hierarchical advanced settings for this parameter. The settings exposed + * at the lower level overrides the settings exposed at the higher level. + *+ * + *
.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings advanced_settings = 12;
+ */
+ public com.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.Builder
+ getAdvancedSettingsBuilder() {
+ bitField0_ |= 0x00000080;
+ onChanged();
+ return getAdvancedSettingsFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * Hierarchical advanced settings for this parameter. The settings exposed + * at the lower level overrides the settings exposed at the higher level. + *+ * + *
.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings advanced_settings = 12;
+ */
+ public com.google.cloud.dialogflow.cx.v3beta1.AdvancedSettingsOrBuilder
+ getAdvancedSettingsOrBuilder() {
+ if (advancedSettingsBuilder_ != null) {
+ return advancedSettingsBuilder_.getMessageOrBuilder();
+ } else {
+ return advancedSettings_ == null
+ ? com.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.getDefaultInstance()
+ : advancedSettings_;
+ }
+ }
+ /**
+ *
+ *
+ * + * Hierarchical advanced settings for this parameter. The settings exposed + * at the lower level overrides the settings exposed at the higher level. + *+ * + *
.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings advanced_settings = 12;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings,
+ com.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.Builder,
+ com.google.cloud.dialogflow.cx.v3beta1.AdvancedSettingsOrBuilder>
+ getAdvancedSettingsFieldBuilder() {
+ if (advancedSettingsBuilder_ == null) {
+ advancedSettingsBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings,
+ com.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.Builder,
+ com.google.cloud.dialogflow.cx.v3beta1.AdvancedSettingsOrBuilder>(
+ getAdvancedSettings(), getParentForChildren(), isClean());
+ advancedSettings_ = null;
+ }
+ return advancedSettingsBuilder_;
+ }
+
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/Fulfillment.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/Fulfillment.java
index 4cdc47f2b770..5fb72797b3c4 100644
--- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/Fulfillment.java
+++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/Fulfillment.java
@@ -5232,6 +5232,82 @@ public com.google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases getCo
return conditionalCases_.get(index);
}
+ public static final int ADVANCED_SETTINGS_FIELD_NUMBER = 7;
+ private com.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings advancedSettings_;
+ /**
+ *
+ *
+ * + * Hierarchical advanced settings for this fulfillment. The settings exposed + * at the lower level overrides the settings exposed at the higher level. + *+ * + *
.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings advanced_settings = 7;
+ *
+ * @return Whether the advancedSettings field is set.
+ */
+ @java.lang.Override
+ public boolean hasAdvancedSettings() {
+ return advancedSettings_ != null;
+ }
+ /**
+ *
+ *
+ * + * Hierarchical advanced settings for this fulfillment. The settings exposed + * at the lower level overrides the settings exposed at the higher level. + *+ * + *
.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings advanced_settings = 7;
+ *
+ * @return The advancedSettings.
+ */
+ @java.lang.Override
+ public com.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings getAdvancedSettings() {
+ return advancedSettings_ == null
+ ? com.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.getDefaultInstance()
+ : advancedSettings_;
+ }
+ /**
+ *
+ *
+ * + * Hierarchical advanced settings for this fulfillment. The settings exposed + * at the lower level overrides the settings exposed at the higher level. + *+ * + *
.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings advanced_settings = 7;
+ */
+ @java.lang.Override
+ public com.google.cloud.dialogflow.cx.v3beta1.AdvancedSettingsOrBuilder
+ getAdvancedSettingsOrBuilder() {
+ return advancedSettings_ == null
+ ? com.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.getDefaultInstance()
+ : advancedSettings_;
+ }
+
+ public static final int ENABLE_GENERATIVE_FALLBACK_FIELD_NUMBER = 12;
+ private boolean enableGenerativeFallback_ = false;
+ /**
+ *
+ *
+ * + * If the flag is true, the agent will utilize LLM to generate a text + * response. If LLM generation fails, the defined + * [responses][google.cloud.dialogflow.cx.v3beta1.Fulfillment.messages] in the + * fulfillment will be respected. This flag is only useful for fulfillments + * associated with no-match event handlers. + *+ * + *
bool enable_generative_fallback = 12;
+ *
+ * @return The enableGenerativeFallback.
+ */
+ @java.lang.Override
+ public boolean getEnableGenerativeFallback() {
+ return enableGenerativeFallback_;
+ }
+
private byte memoizedIsInitialized = -1;
@java.lang.Override
@@ -5261,9 +5337,15 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
for (int i = 0; i < conditionalCases_.size(); i++) {
output.writeMessage(5, conditionalCases_.get(i));
}
+ if (advancedSettings_ != null) {
+ output.writeMessage(7, getAdvancedSettings());
+ }
if (returnPartialResponses_ != false) {
output.writeBool(8, returnPartialResponses_);
}
+ if (enableGenerativeFallback_ != false) {
+ output.writeBool(12, enableGenerativeFallback_);
+ }
getUnknownFields().writeTo(output);
}
@@ -5289,9 +5371,15 @@ public int getSerializedSize() {
for (int i = 0; i < conditionalCases_.size(); i++) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, conditionalCases_.get(i));
}
+ if (advancedSettings_ != null) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getAdvancedSettings());
+ }
if (returnPartialResponses_ != false) {
size += com.google.protobuf.CodedOutputStream.computeBoolSize(8, returnPartialResponses_);
}
+ if (enableGenerativeFallback_ != false) {
+ size += com.google.protobuf.CodedOutputStream.computeBoolSize(12, enableGenerativeFallback_);
+ }
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
@@ -5314,6 +5402,11 @@ public boolean equals(final java.lang.Object obj) {
if (!getTag().equals(other.getTag())) return false;
if (!getSetParameterActionsList().equals(other.getSetParameterActionsList())) return false;
if (!getConditionalCasesList().equals(other.getConditionalCasesList())) return false;
+ if (hasAdvancedSettings() != other.hasAdvancedSettings()) return false;
+ if (hasAdvancedSettings()) {
+ if (!getAdvancedSettings().equals(other.getAdvancedSettings())) return false;
+ }
+ if (getEnableGenerativeFallback() != other.getEnableGenerativeFallback()) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@@ -5343,6 +5436,12 @@ public int hashCode() {
hash = (37 * hash) + CONDITIONAL_CASES_FIELD_NUMBER;
hash = (53 * hash) + getConditionalCasesList().hashCode();
}
+ if (hasAdvancedSettings()) {
+ hash = (37 * hash) + ADVANCED_SETTINGS_FIELD_NUMBER;
+ hash = (53 * hash) + getAdvancedSettings().hashCode();
+ }
+ hash = (37 * hash) + ENABLE_GENERATIVE_FALLBACK_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableGenerativeFallback());
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
@@ -5522,6 +5621,12 @@ public Builder clear() {
conditionalCasesBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000020);
+ advancedSettings_ = null;
+ if (advancedSettingsBuilder_ != null) {
+ advancedSettingsBuilder_.dispose();
+ advancedSettingsBuilder_ = null;
+ }
+ enableGenerativeFallback_ = false;
return this;
}
@@ -5599,6 +5704,13 @@ private void buildPartial0(com.google.cloud.dialogflow.cx.v3beta1.Fulfillment re
if (((from_bitField0_ & 0x00000008) != 0)) {
result.tag_ = tag_;
}
+ if (((from_bitField0_ & 0x00000040) != 0)) {
+ result.advancedSettings_ =
+ advancedSettingsBuilder_ == null ? advancedSettings_ : advancedSettingsBuilder_.build();
+ }
+ if (((from_bitField0_ & 0x00000080) != 0)) {
+ result.enableGenerativeFallback_ = enableGenerativeFallback_;
+ }
}
@java.lang.Override
@@ -5741,6 +5853,12 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.Fulfillment othe
}
}
}
+ if (other.hasAdvancedSettings()) {
+ mergeAdvancedSettings(other.getAdvancedSettings());
+ }
+ if (other.getEnableGenerativeFallback() != false) {
+ setEnableGenerativeFallback(other.getEnableGenerativeFallback());
+ }
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
@@ -5823,12 +5941,25 @@ public Builder mergeFrom(
}
break;
} // case 42
+ case 58:
+ {
+ input.readMessage(
+ getAdvancedSettingsFieldBuilder().getBuilder(), extensionRegistry);
+ bitField0_ |= 0x00000040;
+ break;
+ } // case 58
case 64:
{
returnPartialResponses_ = input.readBool();
bitField0_ |= 0x00000004;
break;
} // case 64
+ case 96:
+ {
+ enableGenerativeFallback_ = input.readBool();
+ bitField0_ |= 0x00000080;
+ break;
+ } // case 96
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
@@ -7368,6 +7499,269 @@ public Builder removeConditionalCases(int index) {
return conditionalCasesBuilder_;
}
+ private com.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings advancedSettings_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings,
+ com.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.Builder,
+ com.google.cloud.dialogflow.cx.v3beta1.AdvancedSettingsOrBuilder>
+ advancedSettingsBuilder_;
+ /**
+ *
+ *
+ * + * Hierarchical advanced settings for this fulfillment. The settings exposed + * at the lower level overrides the settings exposed at the higher level. + *+ * + *
.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings advanced_settings = 7;
+ *
+ * @return Whether the advancedSettings field is set.
+ */
+ public boolean hasAdvancedSettings() {
+ return ((bitField0_ & 0x00000040) != 0);
+ }
+ /**
+ *
+ *
+ * + * Hierarchical advanced settings for this fulfillment. The settings exposed + * at the lower level overrides the settings exposed at the higher level. + *+ * + *
.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings advanced_settings = 7;
+ *
+ * @return The advancedSettings.
+ */
+ public com.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings getAdvancedSettings() {
+ if (advancedSettingsBuilder_ == null) {
+ return advancedSettings_ == null
+ ? com.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.getDefaultInstance()
+ : advancedSettings_;
+ } else {
+ return advancedSettingsBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ * + * Hierarchical advanced settings for this fulfillment. The settings exposed + * at the lower level overrides the settings exposed at the higher level. + *+ * + *
.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings advanced_settings = 7;
+ */
+ public Builder setAdvancedSettings(
+ com.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings value) {
+ if (advancedSettingsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ advancedSettings_ = value;
+ } else {
+ advancedSettingsBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000040;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Hierarchical advanced settings for this fulfillment. The settings exposed + * at the lower level overrides the settings exposed at the higher level. + *+ * + *
.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings advanced_settings = 7;
+ */
+ public Builder setAdvancedSettings(
+ com.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.Builder builderForValue) {
+ if (advancedSettingsBuilder_ == null) {
+ advancedSettings_ = builderForValue.build();
+ } else {
+ advancedSettingsBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000040;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Hierarchical advanced settings for this fulfillment. The settings exposed + * at the lower level overrides the settings exposed at the higher level. + *+ * + *
.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings advanced_settings = 7;
+ */
+ public Builder mergeAdvancedSettings(
+ com.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings value) {
+ if (advancedSettingsBuilder_ == null) {
+ if (((bitField0_ & 0x00000040) != 0)
+ && advancedSettings_ != null
+ && advancedSettings_
+ != com.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.getDefaultInstance()) {
+ getAdvancedSettingsBuilder().mergeFrom(value);
+ } else {
+ advancedSettings_ = value;
+ }
+ } else {
+ advancedSettingsBuilder_.mergeFrom(value);
+ }
+ bitField0_ |= 0x00000040;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Hierarchical advanced settings for this fulfillment. The settings exposed + * at the lower level overrides the settings exposed at the higher level. + *+ * + *
.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings advanced_settings = 7;
+ */
+ public Builder clearAdvancedSettings() {
+ bitField0_ = (bitField0_ & ~0x00000040);
+ advancedSettings_ = null;
+ if (advancedSettingsBuilder_ != null) {
+ advancedSettingsBuilder_.dispose();
+ advancedSettingsBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Hierarchical advanced settings for this fulfillment. The settings exposed + * at the lower level overrides the settings exposed at the higher level. + *+ * + *
.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings advanced_settings = 7;
+ */
+ public com.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.Builder
+ getAdvancedSettingsBuilder() {
+ bitField0_ |= 0x00000040;
+ onChanged();
+ return getAdvancedSettingsFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * Hierarchical advanced settings for this fulfillment. The settings exposed + * at the lower level overrides the settings exposed at the higher level. + *+ * + *
.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings advanced_settings = 7;
+ */
+ public com.google.cloud.dialogflow.cx.v3beta1.AdvancedSettingsOrBuilder
+ getAdvancedSettingsOrBuilder() {
+ if (advancedSettingsBuilder_ != null) {
+ return advancedSettingsBuilder_.getMessageOrBuilder();
+ } else {
+ return advancedSettings_ == null
+ ? com.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.getDefaultInstance()
+ : advancedSettings_;
+ }
+ }
+ /**
+ *
+ *
+ * + * Hierarchical advanced settings for this fulfillment. The settings exposed + * at the lower level overrides the settings exposed at the higher level. + *+ * + *
.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings advanced_settings = 7;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings,
+ com.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.Builder,
+ com.google.cloud.dialogflow.cx.v3beta1.AdvancedSettingsOrBuilder>
+ getAdvancedSettingsFieldBuilder() {
+ if (advancedSettingsBuilder_ == null) {
+ advancedSettingsBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings,
+ com.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.Builder,
+ com.google.cloud.dialogflow.cx.v3beta1.AdvancedSettingsOrBuilder>(
+ getAdvancedSettings(), getParentForChildren(), isClean());
+ advancedSettings_ = null;
+ }
+ return advancedSettingsBuilder_;
+ }
+
+ private boolean enableGenerativeFallback_;
+ /**
+ *
+ *
+ * + * If the flag is true, the agent will utilize LLM to generate a text + * response. If LLM generation fails, the defined + * [responses][google.cloud.dialogflow.cx.v3beta1.Fulfillment.messages] in the + * fulfillment will be respected. This flag is only useful for fulfillments + * associated with no-match event handlers. + *+ * + *
bool enable_generative_fallback = 12;
+ *
+ * @return The enableGenerativeFallback.
+ */
+ @java.lang.Override
+ public boolean getEnableGenerativeFallback() {
+ return enableGenerativeFallback_;
+ }
+ /**
+ *
+ *
+ * + * If the flag is true, the agent will utilize LLM to generate a text + * response. If LLM generation fails, the defined + * [responses][google.cloud.dialogflow.cx.v3beta1.Fulfillment.messages] in the + * fulfillment will be respected. This flag is only useful for fulfillments + * associated with no-match event handlers. + *+ * + *
bool enable_generative_fallback = 12;
+ *
+ * @param value The enableGenerativeFallback to set.
+ * @return This builder for chaining.
+ */
+ public Builder setEnableGenerativeFallback(boolean value) {
+
+ enableGenerativeFallback_ = value;
+ bitField0_ |= 0x00000080;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * If the flag is true, the agent will utilize LLM to generate a text + * response. If LLM generation fails, the defined + * [responses][google.cloud.dialogflow.cx.v3beta1.Fulfillment.messages] in the + * fulfillment will be respected. This flag is only useful for fulfillments + * associated with no-match event handlers. + *+ * + *
bool enable_generative_fallback = 12;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearEnableGenerativeFallback() {
+ bitField0_ = (bitField0_ & ~0x00000080);
+ enableGenerativeFallback_ = false;
+ 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-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/FulfillmentOrBuilder.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/FulfillmentOrBuilder.java
index 0b5c3be4468f..e14ba52c7325 100644
--- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/FulfillmentOrBuilder.java
+++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/FulfillmentOrBuilder.java
@@ -293,4 +293,59 @@ com.google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases getCondition
*/
com.google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCasesOrBuilder
getConditionalCasesOrBuilder(int index);
+
+ /**
+ *
+ *
+ * + * Hierarchical advanced settings for this fulfillment. The settings exposed + * at the lower level overrides the settings exposed at the higher level. + *+ * + *
.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings advanced_settings = 7;
+ *
+ * @return Whether the advancedSettings field is set.
+ */
+ boolean hasAdvancedSettings();
+ /**
+ *
+ *
+ * + * Hierarchical advanced settings for this fulfillment. The settings exposed + * at the lower level overrides the settings exposed at the higher level. + *+ * + *
.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings advanced_settings = 7;
+ *
+ * @return The advancedSettings.
+ */
+ com.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings getAdvancedSettings();
+ /**
+ *
+ *
+ * + * Hierarchical advanced settings for this fulfillment. The settings exposed + * at the lower level overrides the settings exposed at the higher level. + *+ * + *
.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings advanced_settings = 7;
+ */
+ com.google.cloud.dialogflow.cx.v3beta1.AdvancedSettingsOrBuilder getAdvancedSettingsOrBuilder();
+
+ /**
+ *
+ *
+ * + * If the flag is true, the agent will utilize LLM to generate a text + * response. If LLM generation fails, the defined + * [responses][google.cloud.dialogflow.cx.v3beta1.Fulfillment.messages] in the + * fulfillment will be respected. This flag is only useful for fulfillments + * associated with no-match event handlers. + *+ * + *
bool enable_generative_fallback = 12;
+ *
+ * @return The enableGenerativeFallback.
+ */
+ boolean getEnableGenerativeFallback();
}
diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/FulfillmentProto.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/FulfillmentProto.java
index b6100f62b3e5..c6b0a6bcd3a0 100644
--- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/FulfillmentProto.java
+++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/FulfillmentProto.java
@@ -58,44 +58,49 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
java.lang.String[] descriptorData = {
"\n4google/cloud/dialogflow/cx/v3beta1/ful"
+ "fillment.proto\022\"google.cloud.dialogflow."
- + "cx.v3beta1\032\031google/api/resource.proto\0329g"
- + "oogle/cloud/dialogflow/cx/v3beta1/respon"
- + "se_message.proto\032\034google/protobuf/struct"
- + ".proto\"\206\007\n\013Fulfillment\022E\n\010messages\030\001 \003(\013"
- + "23.google.cloud.dialogflow.cx.v3beta1.Re"
- + "sponseMessage\0227\n\007webhook\030\002 \001(\tB&\372A#\n!dia"
- + "logflow.googleapis.com/Webhook\022 \n\030return"
- + "_partial_responses\030\010 \001(\010\022\013\n\003tag\030\003 \001(\t\022a\n"
- + "\025set_parameter_actions\030\004 \003(\0132B.google.cl"
- + "oud.dialogflow.cx.v3beta1.Fulfillment.Se"
- + "tParameterAction\022[\n\021conditional_cases\030\005 "
- + "\003(\0132@.google.cloud.dialogflow.cx.v3beta1"
- + ".Fulfillment.ConditionalCases\032N\n\022SetPara"
- + "meterAction\022\021\n\tparameter\030\001 \001(\t\022%\n\005value\030"
- + "\002 \001(\0132\026.google.protobuf.Value\032\267\003\n\020Condit"
- + "ionalCases\022T\n\005cases\030\001 \003(\0132E.google.cloud"
- + ".dialogflow.cx.v3beta1.Fulfillment.Condi"
- + "tionalCases.Case\032\314\002\n\004Case\022\021\n\tcondition\030\001"
- + " \001(\t\022g\n\014case_content\030\002 \003(\0132Q.google.clou"
- + "d.dialogflow.cx.v3beta1.Fulfillment.Cond"
- + "itionalCases.Case.CaseContent\032\307\001\n\013CaseCo"
- + "ntent\022F\n\007message\030\001 \001(\01323.google.cloud.di"
- + "alogflow.cx.v3beta1.ResponseMessageH\000\022\\\n"
- + "\020additional_cases\030\002 \001(\0132@.google.cloud.d"
+ + "cx.v3beta1\032\031google/api/resource.proto\032:g"
+ + "oogle/cloud/dialogflow/cx/v3beta1/advanc"
+ + "ed_settings.proto\0329google/cloud/dialogfl"
+ + "ow/cx/v3beta1/response_message.proto\032\034go"
+ + "ogle/protobuf/struct.proto\"\373\007\n\013Fulfillme"
+ + "nt\022E\n\010messages\030\001 \003(\01323.google.cloud.dial"
+ + "ogflow.cx.v3beta1.ResponseMessage\0227\n\007web"
+ + "hook\030\002 \001(\tB&\372A#\n!dialogflow.googleapis.c"
+ + "om/Webhook\022 \n\030return_partial_responses\030\010"
+ + " \001(\010\022\013\n\003tag\030\003 \001(\t\022a\n\025set_parameter_actio"
+ + "ns\030\004 \003(\0132B.google.cloud.dialogflow.cx.v3"
+ + "beta1.Fulfillment.SetParameterAction\022[\n\021"
+ + "conditional_cases\030\005 \003(\0132@.google.cloud.d"
+ "ialogflow.cx.v3beta1.Fulfillment.Conditi"
- + "onalCasesH\000B\022\n\020cases_or_messageB\312\001\n&com."
- + "google.cloud.dialogflow.cx.v3beta1B\020Fulf"
- + "illmentProtoP\001Z6cloud.google.com/go/dial"
- + "ogflow/cx/apiv3beta1/cxpb;cxpb\370\001\001\242\002\002DF\252\002"
- + "\"Google.Cloud.Dialogflow.Cx.V3Beta1\352\002&Go"
- + "ogle::Cloud::Dialogflow::CX::V3beta1b\006pr"
- + "oto3"
+ + "onalCases\022O\n\021advanced_settings\030\007 \001(\01324.g"
+ + "oogle.cloud.dialogflow.cx.v3beta1.Advanc"
+ + "edSettings\022\"\n\032enable_generative_fallback"
+ + "\030\014 \001(\010\032N\n\022SetParameterAction\022\021\n\tparamete"
+ + "r\030\001 \001(\t\022%\n\005value\030\002 \001(\0132\026.google.protobuf"
+ + ".Value\032\267\003\n\020ConditionalCases\022T\n\005cases\030\001 \003"
+ + "(\0132E.google.cloud.dialogflow.cx.v3beta1."
+ + "Fulfillment.ConditionalCases.Case\032\314\002\n\004Ca"
+ + "se\022\021\n\tcondition\030\001 \001(\t\022g\n\014case_content\030\002 "
+ + "\003(\0132Q.google.cloud.dialogflow.cx.v3beta1"
+ + ".Fulfillment.ConditionalCases.Case.CaseC"
+ + "ontent\032\307\001\n\013CaseContent\022F\n\007message\030\001 \001(\0132"
+ + "3.google.cloud.dialogflow.cx.v3beta1.Res"
+ + "ponseMessageH\000\022\\\n\020additional_cases\030\002 \001(\013"
+ + "2@.google.cloud.dialogflow.cx.v3beta1.Fu"
+ + "lfillment.ConditionalCasesH\000B\022\n\020cases_or"
+ + "_messageB\312\001\n&com.google.cloud.dialogflow"
+ + ".cx.v3beta1B\020FulfillmentProtoP\001Z6cloud.g"
+ + "oogle.com/go/dialogflow/cx/apiv3beta1/cx"
+ + "pb;cxpb\370\001\001\242\002\002DF\252\002\"Google.Cloud.Dialogflo"
+ + "w.Cx.V3Beta1\352\002&Google::Cloud::Dialogflow"
+ + "::CX::V3beta1b\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
com.google.api.ResourceProto.getDescriptor(),
+ com.google.cloud.dialogflow.cx.v3beta1.AdvancedSettingsProto.getDescriptor(),
com.google.cloud.dialogflow.cx.v3beta1.ResponseMessageProto.getDescriptor(),
com.google.protobuf.StructProto.getDescriptor(),
});
@@ -111,6 +116,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"Tag",
"SetParameterActions",
"ConditionalCases",
+ "AdvancedSettings",
+ "EnableGenerativeFallback",
});
internal_static_google_cloud_dialogflow_cx_v3beta1_Fulfillment_SetParameterAction_descriptor =
internal_static_google_cloud_dialogflow_cx_v3beta1_Fulfillment_descriptor
@@ -158,6 +165,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor(
descriptor, registry);
com.google.api.ResourceProto.getDescriptor();
+ com.google.cloud.dialogflow.cx.v3beta1.AdvancedSettingsProto.getDescriptor();
com.google.cloud.dialogflow.cx.v3beta1.ResponseMessageProto.getDescriptor();
com.google.protobuf.StructProto.getDescriptor();
}
diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ImportIntentsMetadata.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ImportIntentsMetadata.java
new file mode 100644
index 000000000000..932f936be181
--- /dev/null
+++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ImportIntentsMetadata.java
@@ -0,0 +1,439 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/dialogflow/cx/v3beta1/intent.proto
+
+package com.google.cloud.dialogflow.cx.v3beta1;
+
+/**
+ *
+ *
+ * + * Metadata returned for the + * [Intents.ImportIntents][google.cloud.dialogflow.cx.v3beta1.Intents.ImportIntents] + * long running operation. + *+ * + * Protobuf type {@code google.cloud.dialogflow.cx.v3beta1.ImportIntentsMetadata} + */ +public final class ImportIntentsMetadata extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.cx.v3beta1.ImportIntentsMetadata) + ImportIntentsMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use ImportIntentsMetadata.newBuilder() to construct. + private ImportIntentsMetadata(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private ImportIntentsMetadata() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ImportIntentsMetadata(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.cx.v3beta1.IntentProto + .internal_static_google_cloud_dialogflow_cx_v3beta1_ImportIntentsMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.cx.v3beta1.IntentProto + .internal_static_google_cloud_dialogflow_cx_v3beta1_ImportIntentsMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.cx.v3beta1.ImportIntentsMetadata.class, + com.google.cloud.dialogflow.cx.v3beta1.ImportIntentsMetadata.Builder.class); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dialogflow.cx.v3beta1.ImportIntentsMetadata)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.cx.v3beta1.ImportIntentsMetadata other = + (com.google.cloud.dialogflow.cx.v3beta1.ImportIntentsMetadata) obj; + + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.cx.v3beta1.ImportIntentsMetadata parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.ImportIntentsMetadata parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.ImportIntentsMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.ImportIntentsMetadata parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.ImportIntentsMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.ImportIntentsMetadata parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.ImportIntentsMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.ImportIntentsMetadata parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.ImportIntentsMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.ImportIntentsMetadata parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.ImportIntentsMetadata parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.ImportIntentsMetadata parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dialogflow.cx.v3beta1.ImportIntentsMetadata prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+ * Metadata returned for the + * [Intents.ImportIntents][google.cloud.dialogflow.cx.v3beta1.Intents.ImportIntents] + * long running operation. + *+ * + * Protobuf type {@code google.cloud.dialogflow.cx.v3beta1.ImportIntentsMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * The request message for + * [Intents.ImportIntents][google.cloud.dialogflow.cx.v3beta1.Intents.ImportIntents]. + *+ * + * Protobuf type {@code google.cloud.dialogflow.cx.v3beta1.ImportIntentsRequest} + */ +public final class ImportIntentsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.cx.v3beta1.ImportIntentsRequest) + ImportIntentsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ImportIntentsRequest.newBuilder() to construct. + private ImportIntentsRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private ImportIntentsRequest() { + parent_ = ""; + mergeOption_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ImportIntentsRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.cx.v3beta1.IntentProto + .internal_static_google_cloud_dialogflow_cx_v3beta1_ImportIntentsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.cx.v3beta1.IntentProto + .internal_static_google_cloud_dialogflow_cx_v3beta1_ImportIntentsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.cx.v3beta1.ImportIntentsRequest.class, + com.google.cloud.dialogflow.cx.v3beta1.ImportIntentsRequest.Builder.class); + } + + /** + * + * + *
+ * Merge option when display name conflicts exist during import. + *+ * + * Protobuf enum {@code google.cloud.dialogflow.cx.v3beta1.ImportIntentsRequest.MergeOption} + */ + public enum MergeOption implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+ * Unspecified. Should not be used. + *+ * + *
MERGE_OPTION_UNSPECIFIED = 0;
+ */
+ MERGE_OPTION_UNSPECIFIED(0),
+ /**
+ *
+ *
+ * + * DEPRECATED: Please use + * [REPORT_CONFLICT][ImportIntentsRequest.REPORT_CONFLICT] instead. + * Fail the request if there are intents whose display names conflict with + * the display names of intents in the agent. + *+ * + *
REJECT = 1 [deprecated = true];
+ */
+ @java.lang.Deprecated
+ REJECT(1),
+ /**
+ *
+ *
+ * + * Replace the original intent in the agent with the new intent when display + * name conflicts exist. + *+ * + *
REPLACE = 2;
+ */
+ REPLACE(2),
+ /**
+ *
+ *
+ * + * Merge the original intent with the new intent when display name conflicts + * exist. + *+ * + *
MERGE = 3;
+ */
+ MERGE(3),
+ /**
+ *
+ *
+ * + * Create new intents with new display names to differentiate them from the + * existing intents when display name conflicts exist. + *+ * + *
RENAME = 4;
+ */
+ RENAME(4),
+ /**
+ *
+ *
+ * + * Report conflict information if display names conflict is detected. + * Otherwise, import intents. + *+ * + *
REPORT_CONFLICT = 5;
+ */
+ REPORT_CONFLICT(5),
+ /**
+ *
+ *
+ * + * Keep the original intent and discard the conflicting new intent when + * display name conflicts exist. + *+ * + *
KEEP = 6;
+ */
+ KEEP(6),
+ UNRECOGNIZED(-1),
+ ;
+
+ /**
+ *
+ *
+ * + * Unspecified. Should not be used. + *+ * + *
MERGE_OPTION_UNSPECIFIED = 0;
+ */
+ public static final int MERGE_OPTION_UNSPECIFIED_VALUE = 0;
+ /**
+ *
+ *
+ * + * DEPRECATED: Please use + * [REPORT_CONFLICT][ImportIntentsRequest.REPORT_CONFLICT] instead. + * Fail the request if there are intents whose display names conflict with + * the display names of intents in the agent. + *+ * + *
REJECT = 1 [deprecated = true];
+ */
+ @java.lang.Deprecated public static final int REJECT_VALUE = 1;
+ /**
+ *
+ *
+ * + * Replace the original intent in the agent with the new intent when display + * name conflicts exist. + *+ * + *
REPLACE = 2;
+ */
+ public static final int REPLACE_VALUE = 2;
+ /**
+ *
+ *
+ * + * Merge the original intent with the new intent when display name conflicts + * exist. + *+ * + *
MERGE = 3;
+ */
+ public static final int MERGE_VALUE = 3;
+ /**
+ *
+ *
+ * + * Create new intents with new display names to differentiate them from the + * existing intents when display name conflicts exist. + *+ * + *
RENAME = 4;
+ */
+ public static final int RENAME_VALUE = 4;
+ /**
+ *
+ *
+ * + * Report conflict information if display names conflict is detected. + * Otherwise, import intents. + *+ * + *
REPORT_CONFLICT = 5;
+ */
+ public static final int REPORT_CONFLICT_VALUE = 5;
+ /**
+ *
+ *
+ * + * Keep the original intent and discard the conflicting new intent when + * display name conflicts exist. + *+ * + *
KEEP = 6;
+ */
+ public static final int KEEP_VALUE = 6;
+
+ public final int getNumber() {
+ if (this == UNRECOGNIZED) {
+ throw new java.lang.IllegalArgumentException(
+ "Can't get the number of an unknown enum value.");
+ }
+ return value;
+ }
+
+ /**
+ * @param value The numeric wire value of the corresponding enum entry.
+ * @return The enum associated with the given numeric wire value.
+ * @deprecated Use {@link #forNumber(int)} instead.
+ */
+ @java.lang.Deprecated
+ public static MergeOption valueOf(int value) {
+ return forNumber(value);
+ }
+
+ /**
+ * @param value The numeric wire value of the corresponding enum entry.
+ * @return The enum associated with the given numeric wire value.
+ */
+ public static MergeOption forNumber(int value) {
+ switch (value) {
+ case 0:
+ return MERGE_OPTION_UNSPECIFIED;
+ case 1:
+ return REJECT;
+ case 2:
+ return REPLACE;
+ case 3:
+ return MERGE;
+ case 4:
+ return RENAME;
+ case 5:
+ return REPORT_CONFLICT;
+ case 6:
+ return KEEP;
+ default:
+ return null;
+ }
+ }
+
+ public static com.google.protobuf.Internal.EnumLiteMap+ * Required. The agent to import the intents into. + * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>`. + *+ * + *
+ * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The parent.
+ */
+ @java.lang.Override
+ public java.lang.String getParent() {
+ java.lang.Object ref = parent_;
+ 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();
+ parent_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * Required. The agent to import the intents into. + * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>`. + *+ * + *
+ * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The bytes for parent.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getParentBytes() {
+ java.lang.Object ref = parent_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ parent_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int INTENTS_URI_FIELD_NUMBER = 2;
+ /**
+ *
+ *
+ * + * The [Google Cloud Storage](https://cloud.google.com/storage/docs/) URI + * to import intents from. The format of this URI must be + * `gs://<bucket-name>/<object-name>`. + * + * Dialogflow performs a read operation for the Cloud Storage object + * on the caller's behalf, so your request authentication must + * have read permissions for the object. For more information, see + * [Dialogflow access + * control](https://cloud.google.com/dialogflow/cx/docs/concept/access-control#storage). + *+ * + *
string intents_uri = 2;
+ *
+ * @return Whether the intentsUri field is set.
+ */
+ public boolean hasIntentsUri() {
+ return intentsCase_ == 2;
+ }
+ /**
+ *
+ *
+ * + * The [Google Cloud Storage](https://cloud.google.com/storage/docs/) URI + * to import intents from. The format of this URI must be + * `gs://<bucket-name>/<object-name>`. + * + * Dialogflow performs a read operation for the Cloud Storage object + * on the caller's behalf, so your request authentication must + * have read permissions for the object. For more information, see + * [Dialogflow access + * control](https://cloud.google.com/dialogflow/cx/docs/concept/access-control#storage). + *+ * + *
string intents_uri = 2;
+ *
+ * @return The intentsUri.
+ */
+ public java.lang.String getIntentsUri() {
+ java.lang.Object ref = "";
+ if (intentsCase_ == 2) {
+ ref = intents_;
+ }
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (intentsCase_ == 2) {
+ intents_ = s;
+ }
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * The [Google Cloud Storage](https://cloud.google.com/storage/docs/) URI + * to import intents from. The format of this URI must be + * `gs://<bucket-name>/<object-name>`. + * + * Dialogflow performs a read operation for the Cloud Storage object + * on the caller's behalf, so your request authentication must + * have read permissions for the object. For more information, see + * [Dialogflow access + * control](https://cloud.google.com/dialogflow/cx/docs/concept/access-control#storage). + *+ * + *
string intents_uri = 2;
+ *
+ * @return The bytes for intentsUri.
+ */
+ public com.google.protobuf.ByteString getIntentsUriBytes() {
+ java.lang.Object ref = "";
+ if (intentsCase_ == 2) {
+ ref = intents_;
+ }
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ if (intentsCase_ == 2) {
+ intents_ = b;
+ }
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int INTENTS_CONTENT_FIELD_NUMBER = 3;
+ /**
+ *
+ *
+ * + * Uncompressed byte content of intents. + *+ * + *
.google.cloud.dialogflow.cx.v3beta1.InlineSource intents_content = 3;
+ *
+ * @return Whether the intentsContent field is set.
+ */
+ @java.lang.Override
+ public boolean hasIntentsContent() {
+ return intentsCase_ == 3;
+ }
+ /**
+ *
+ *
+ * + * Uncompressed byte content of intents. + *+ * + *
.google.cloud.dialogflow.cx.v3beta1.InlineSource intents_content = 3;
+ *
+ * @return The intentsContent.
+ */
+ @java.lang.Override
+ public com.google.cloud.dialogflow.cx.v3beta1.InlineSource getIntentsContent() {
+ if (intentsCase_ == 3) {
+ return (com.google.cloud.dialogflow.cx.v3beta1.InlineSource) intents_;
+ }
+ return com.google.cloud.dialogflow.cx.v3beta1.InlineSource.getDefaultInstance();
+ }
+ /**
+ *
+ *
+ * + * Uncompressed byte content of intents. + *+ * + *
.google.cloud.dialogflow.cx.v3beta1.InlineSource intents_content = 3;
+ */
+ @java.lang.Override
+ public com.google.cloud.dialogflow.cx.v3beta1.InlineSourceOrBuilder getIntentsContentOrBuilder() {
+ if (intentsCase_ == 3) {
+ return (com.google.cloud.dialogflow.cx.v3beta1.InlineSource) intents_;
+ }
+ return com.google.cloud.dialogflow.cx.v3beta1.InlineSource.getDefaultInstance();
+ }
+
+ public static final int MERGE_OPTION_FIELD_NUMBER = 4;
+ private int mergeOption_ = 0;
+ /**
+ *
+ *
+ * + * Merge option for importing intents. If not specified, `REJECT` is assumed. + *+ * + *
.google.cloud.dialogflow.cx.v3beta1.ImportIntentsRequest.MergeOption merge_option = 4;
+ *
+ *
+ * @return The enum numeric value on the wire for mergeOption.
+ */
+ @java.lang.Override
+ public int getMergeOptionValue() {
+ return mergeOption_;
+ }
+ /**
+ *
+ *
+ * + * Merge option for importing intents. If not specified, `REJECT` is assumed. + *+ * + *
.google.cloud.dialogflow.cx.v3beta1.ImportIntentsRequest.MergeOption merge_option = 4;
+ *
+ *
+ * @return The mergeOption.
+ */
+ @java.lang.Override
+ public com.google.cloud.dialogflow.cx.v3beta1.ImportIntentsRequest.MergeOption getMergeOption() {
+ com.google.cloud.dialogflow.cx.v3beta1.ImportIntentsRequest.MergeOption result =
+ com.google.cloud.dialogflow.cx.v3beta1.ImportIntentsRequest.MergeOption.forNumber(
+ mergeOption_);
+ return result == null
+ ? com.google.cloud.dialogflow.cx.v3beta1.ImportIntentsRequest.MergeOption.UNRECOGNIZED
+ : result;
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_);
+ }
+ if (intentsCase_ == 2) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, intents_);
+ }
+ if (intentsCase_ == 3) {
+ output.writeMessage(3, (com.google.cloud.dialogflow.cx.v3beta1.InlineSource) intents_);
+ }
+ if (mergeOption_
+ != com.google.cloud.dialogflow.cx.v3beta1.ImportIntentsRequest.MergeOption
+ .MERGE_OPTION_UNSPECIFIED
+ .getNumber()) {
+ output.writeEnum(4, mergeOption_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_);
+ }
+ if (intentsCase_ == 2) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, intents_);
+ }
+ if (intentsCase_ == 3) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 3, (com.google.cloud.dialogflow.cx.v3beta1.InlineSource) intents_);
+ }
+ if (mergeOption_
+ != com.google.cloud.dialogflow.cx.v3beta1.ImportIntentsRequest.MergeOption
+ .MERGE_OPTION_UNSPECIFIED
+ .getNumber()) {
+ size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, mergeOption_);
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.google.cloud.dialogflow.cx.v3beta1.ImportIntentsRequest)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.dialogflow.cx.v3beta1.ImportIntentsRequest other =
+ (com.google.cloud.dialogflow.cx.v3beta1.ImportIntentsRequest) obj;
+
+ if (!getParent().equals(other.getParent())) return false;
+ if (mergeOption_ != other.mergeOption_) return false;
+ if (!getIntentsCase().equals(other.getIntentsCase())) return false;
+ switch (intentsCase_) {
+ case 2:
+ if (!getIntentsUri().equals(other.getIntentsUri())) return false;
+ break;
+ case 3:
+ if (!getIntentsContent().equals(other.getIntentsContent())) return false;
+ break;
+ case 0:
+ default:
+ }
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + PARENT_FIELD_NUMBER;
+ hash = (53 * hash) + getParent().hashCode();
+ hash = (37 * hash) + MERGE_OPTION_FIELD_NUMBER;
+ hash = (53 * hash) + mergeOption_;
+ switch (intentsCase_) {
+ case 2:
+ hash = (37 * hash) + INTENTS_URI_FIELD_NUMBER;
+ hash = (53 * hash) + getIntentsUri().hashCode();
+ break;
+ case 3:
+ hash = (37 * hash) + INTENTS_CONTENT_FIELD_NUMBER;
+ hash = (53 * hash) + getIntentsContent().hashCode();
+ break;
+ case 0:
+ default:
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.dialogflow.cx.v3beta1.ImportIntentsRequest parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.dialogflow.cx.v3beta1.ImportIntentsRequest parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.dialogflow.cx.v3beta1.ImportIntentsRequest parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.dialogflow.cx.v3beta1.ImportIntentsRequest parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.dialogflow.cx.v3beta1.ImportIntentsRequest parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.dialogflow.cx.v3beta1.ImportIntentsRequest parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.dialogflow.cx.v3beta1.ImportIntentsRequest parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.dialogflow.cx.v3beta1.ImportIntentsRequest parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.dialogflow.cx.v3beta1.ImportIntentsRequest parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.dialogflow.cx.v3beta1.ImportIntentsRequest parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.dialogflow.cx.v3beta1.ImportIntentsRequest parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.dialogflow.cx.v3beta1.ImportIntentsRequest parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(
+ com.google.cloud.dialogflow.cx.v3beta1.ImportIntentsRequest prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ *
+ *
+ * + * The request message for + * [Intents.ImportIntents][google.cloud.dialogflow.cx.v3beta1.Intents.ImportIntents]. + *+ * + * Protobuf type {@code google.cloud.dialogflow.cx.v3beta1.ImportIntentsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * Required. The agent to import the intents into. + * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>`. + *+ * + *
+ * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The parent.
+ */
+ public java.lang.String getParent() {
+ java.lang.Object ref = parent_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ parent_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Required. The agent to import the intents into. + * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>`. + *+ * + *
+ * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The bytes for parent.
+ */
+ public com.google.protobuf.ByteString getParentBytes() {
+ java.lang.Object ref = parent_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ parent_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Required. The agent to import the intents into. + * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>`. + *+ * + *
+ * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @param value The parent to set.
+ * @return This builder for chaining.
+ */
+ public Builder setParent(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ parent_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. The agent to import the intents into. + * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>`. + *+ * + *
+ * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearParent() {
+ parent_ = getDefaultInstance().getParent();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. The agent to import the intents into. + * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>`. + *+ * + *
+ * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @param value The bytes for parent to set.
+ * @return This builder for chaining.
+ */
+ public Builder setParentBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ parent_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * The [Google Cloud Storage](https://cloud.google.com/storage/docs/) URI + * to import intents from. The format of this URI must be + * `gs://<bucket-name>/<object-name>`. + * + * Dialogflow performs a read operation for the Cloud Storage object + * on the caller's behalf, so your request authentication must + * have read permissions for the object. For more information, see + * [Dialogflow access + * control](https://cloud.google.com/dialogflow/cx/docs/concept/access-control#storage). + *+ * + *
string intents_uri = 2;
+ *
+ * @return Whether the intentsUri field is set.
+ */
+ @java.lang.Override
+ public boolean hasIntentsUri() {
+ return intentsCase_ == 2;
+ }
+ /**
+ *
+ *
+ * + * The [Google Cloud Storage](https://cloud.google.com/storage/docs/) URI + * to import intents from. The format of this URI must be + * `gs://<bucket-name>/<object-name>`. + * + * Dialogflow performs a read operation for the Cloud Storage object + * on the caller's behalf, so your request authentication must + * have read permissions for the object. For more information, see + * [Dialogflow access + * control](https://cloud.google.com/dialogflow/cx/docs/concept/access-control#storage). + *+ * + *
string intents_uri = 2;
+ *
+ * @return The intentsUri.
+ */
+ @java.lang.Override
+ public java.lang.String getIntentsUri() {
+ java.lang.Object ref = "";
+ if (intentsCase_ == 2) {
+ ref = intents_;
+ }
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (intentsCase_ == 2) {
+ intents_ = s;
+ }
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * The [Google Cloud Storage](https://cloud.google.com/storage/docs/) URI + * to import intents from. The format of this URI must be + * `gs://<bucket-name>/<object-name>`. + * + * Dialogflow performs a read operation for the Cloud Storage object + * on the caller's behalf, so your request authentication must + * have read permissions for the object. For more information, see + * [Dialogflow access + * control](https://cloud.google.com/dialogflow/cx/docs/concept/access-control#storage). + *+ * + *
string intents_uri = 2;
+ *
+ * @return The bytes for intentsUri.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getIntentsUriBytes() {
+ java.lang.Object ref = "";
+ if (intentsCase_ == 2) {
+ ref = intents_;
+ }
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ if (intentsCase_ == 2) {
+ intents_ = b;
+ }
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * The [Google Cloud Storage](https://cloud.google.com/storage/docs/) URI + * to import intents from. The format of this URI must be + * `gs://<bucket-name>/<object-name>`. + * + * Dialogflow performs a read operation for the Cloud Storage object + * on the caller's behalf, so your request authentication must + * have read permissions for the object. For more information, see + * [Dialogflow access + * control](https://cloud.google.com/dialogflow/cx/docs/concept/access-control#storage). + *+ * + *
string intents_uri = 2;
+ *
+ * @param value The intentsUri to set.
+ * @return This builder for chaining.
+ */
+ public Builder setIntentsUri(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ intentsCase_ = 2;
+ intents_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The [Google Cloud Storage](https://cloud.google.com/storage/docs/) URI + * to import intents from. The format of this URI must be + * `gs://<bucket-name>/<object-name>`. + * + * Dialogflow performs a read operation for the Cloud Storage object + * on the caller's behalf, so your request authentication must + * have read permissions for the object. For more information, see + * [Dialogflow access + * control](https://cloud.google.com/dialogflow/cx/docs/concept/access-control#storage). + *+ * + *
string intents_uri = 2;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearIntentsUri() {
+ if (intentsCase_ == 2) {
+ intentsCase_ = 0;
+ intents_ = null;
+ onChanged();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The [Google Cloud Storage](https://cloud.google.com/storage/docs/) URI + * to import intents from. The format of this URI must be + * `gs://<bucket-name>/<object-name>`. + * + * Dialogflow performs a read operation for the Cloud Storage object + * on the caller's behalf, so your request authentication must + * have read permissions for the object. For more information, see + * [Dialogflow access + * control](https://cloud.google.com/dialogflow/cx/docs/concept/access-control#storage). + *+ * + *
string intents_uri = 2;
+ *
+ * @param value The bytes for intentsUri to set.
+ * @return This builder for chaining.
+ */
+ public Builder setIntentsUriBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ intentsCase_ = 2;
+ intents_ = value;
+ onChanged();
+ return this;
+ }
+
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.dialogflow.cx.v3beta1.InlineSource,
+ com.google.cloud.dialogflow.cx.v3beta1.InlineSource.Builder,
+ com.google.cloud.dialogflow.cx.v3beta1.InlineSourceOrBuilder>
+ intentsContentBuilder_;
+ /**
+ *
+ *
+ * + * Uncompressed byte content of intents. + *+ * + *
.google.cloud.dialogflow.cx.v3beta1.InlineSource intents_content = 3;
+ *
+ * @return Whether the intentsContent field is set.
+ */
+ @java.lang.Override
+ public boolean hasIntentsContent() {
+ return intentsCase_ == 3;
+ }
+ /**
+ *
+ *
+ * + * Uncompressed byte content of intents. + *+ * + *
.google.cloud.dialogflow.cx.v3beta1.InlineSource intents_content = 3;
+ *
+ * @return The intentsContent.
+ */
+ @java.lang.Override
+ public com.google.cloud.dialogflow.cx.v3beta1.InlineSource getIntentsContent() {
+ if (intentsContentBuilder_ == null) {
+ if (intentsCase_ == 3) {
+ return (com.google.cloud.dialogflow.cx.v3beta1.InlineSource) intents_;
+ }
+ return com.google.cloud.dialogflow.cx.v3beta1.InlineSource.getDefaultInstance();
+ } else {
+ if (intentsCase_ == 3) {
+ return intentsContentBuilder_.getMessage();
+ }
+ return com.google.cloud.dialogflow.cx.v3beta1.InlineSource.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ * + * Uncompressed byte content of intents. + *+ * + *
.google.cloud.dialogflow.cx.v3beta1.InlineSource intents_content = 3;
+ */
+ public Builder setIntentsContent(com.google.cloud.dialogflow.cx.v3beta1.InlineSource value) {
+ if (intentsContentBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ intents_ = value;
+ onChanged();
+ } else {
+ intentsContentBuilder_.setMessage(value);
+ }
+ intentsCase_ = 3;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Uncompressed byte content of intents. + *+ * + *
.google.cloud.dialogflow.cx.v3beta1.InlineSource intents_content = 3;
+ */
+ public Builder setIntentsContent(
+ com.google.cloud.dialogflow.cx.v3beta1.InlineSource.Builder builderForValue) {
+ if (intentsContentBuilder_ == null) {
+ intents_ = builderForValue.build();
+ onChanged();
+ } else {
+ intentsContentBuilder_.setMessage(builderForValue.build());
+ }
+ intentsCase_ = 3;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Uncompressed byte content of intents. + *+ * + *
.google.cloud.dialogflow.cx.v3beta1.InlineSource intents_content = 3;
+ */
+ public Builder mergeIntentsContent(com.google.cloud.dialogflow.cx.v3beta1.InlineSource value) {
+ if (intentsContentBuilder_ == null) {
+ if (intentsCase_ == 3
+ && intents_
+ != com.google.cloud.dialogflow.cx.v3beta1.InlineSource.getDefaultInstance()) {
+ intents_ =
+ com.google.cloud.dialogflow.cx.v3beta1.InlineSource.newBuilder(
+ (com.google.cloud.dialogflow.cx.v3beta1.InlineSource) intents_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ intents_ = value;
+ }
+ onChanged();
+ } else {
+ if (intentsCase_ == 3) {
+ intentsContentBuilder_.mergeFrom(value);
+ } else {
+ intentsContentBuilder_.setMessage(value);
+ }
+ }
+ intentsCase_ = 3;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Uncompressed byte content of intents. + *+ * + *
.google.cloud.dialogflow.cx.v3beta1.InlineSource intents_content = 3;
+ */
+ public Builder clearIntentsContent() {
+ if (intentsContentBuilder_ == null) {
+ if (intentsCase_ == 3) {
+ intentsCase_ = 0;
+ intents_ = null;
+ onChanged();
+ }
+ } else {
+ if (intentsCase_ == 3) {
+ intentsCase_ = 0;
+ intents_ = null;
+ }
+ intentsContentBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Uncompressed byte content of intents. + *+ * + *
.google.cloud.dialogflow.cx.v3beta1.InlineSource intents_content = 3;
+ */
+ public com.google.cloud.dialogflow.cx.v3beta1.InlineSource.Builder getIntentsContentBuilder() {
+ return getIntentsContentFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * Uncompressed byte content of intents. + *+ * + *
.google.cloud.dialogflow.cx.v3beta1.InlineSource intents_content = 3;
+ */
+ @java.lang.Override
+ public com.google.cloud.dialogflow.cx.v3beta1.InlineSourceOrBuilder
+ getIntentsContentOrBuilder() {
+ if ((intentsCase_ == 3) && (intentsContentBuilder_ != null)) {
+ return intentsContentBuilder_.getMessageOrBuilder();
+ } else {
+ if (intentsCase_ == 3) {
+ return (com.google.cloud.dialogflow.cx.v3beta1.InlineSource) intents_;
+ }
+ return com.google.cloud.dialogflow.cx.v3beta1.InlineSource.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ * + * Uncompressed byte content of intents. + *+ * + *
.google.cloud.dialogflow.cx.v3beta1.InlineSource intents_content = 3;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.dialogflow.cx.v3beta1.InlineSource,
+ com.google.cloud.dialogflow.cx.v3beta1.InlineSource.Builder,
+ com.google.cloud.dialogflow.cx.v3beta1.InlineSourceOrBuilder>
+ getIntentsContentFieldBuilder() {
+ if (intentsContentBuilder_ == null) {
+ if (!(intentsCase_ == 3)) {
+ intents_ = com.google.cloud.dialogflow.cx.v3beta1.InlineSource.getDefaultInstance();
+ }
+ intentsContentBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.dialogflow.cx.v3beta1.InlineSource,
+ com.google.cloud.dialogflow.cx.v3beta1.InlineSource.Builder,
+ com.google.cloud.dialogflow.cx.v3beta1.InlineSourceOrBuilder>(
+ (com.google.cloud.dialogflow.cx.v3beta1.InlineSource) intents_,
+ getParentForChildren(),
+ isClean());
+ intents_ = null;
+ }
+ intentsCase_ = 3;
+ onChanged();
+ return intentsContentBuilder_;
+ }
+
+ private int mergeOption_ = 0;
+ /**
+ *
+ *
+ * + * Merge option for importing intents. If not specified, `REJECT` is assumed. + *+ * + *
.google.cloud.dialogflow.cx.v3beta1.ImportIntentsRequest.MergeOption merge_option = 4;
+ *
+ *
+ * @return The enum numeric value on the wire for mergeOption.
+ */
+ @java.lang.Override
+ public int getMergeOptionValue() {
+ return mergeOption_;
+ }
+ /**
+ *
+ *
+ * + * Merge option for importing intents. If not specified, `REJECT` is assumed. + *+ * + *
.google.cloud.dialogflow.cx.v3beta1.ImportIntentsRequest.MergeOption merge_option = 4;
+ *
+ *
+ * @param value The enum numeric value on the wire for mergeOption to set.
+ * @return This builder for chaining.
+ */
+ public Builder setMergeOptionValue(int value) {
+ mergeOption_ = value;
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Merge option for importing intents. If not specified, `REJECT` is assumed. + *+ * + *
.google.cloud.dialogflow.cx.v3beta1.ImportIntentsRequest.MergeOption merge_option = 4;
+ *
+ *
+ * @return The mergeOption.
+ */
+ @java.lang.Override
+ public com.google.cloud.dialogflow.cx.v3beta1.ImportIntentsRequest.MergeOption
+ getMergeOption() {
+ com.google.cloud.dialogflow.cx.v3beta1.ImportIntentsRequest.MergeOption result =
+ com.google.cloud.dialogflow.cx.v3beta1.ImportIntentsRequest.MergeOption.forNumber(
+ mergeOption_);
+ return result == null
+ ? com.google.cloud.dialogflow.cx.v3beta1.ImportIntentsRequest.MergeOption.UNRECOGNIZED
+ : result;
+ }
+ /**
+ *
+ *
+ * + * Merge option for importing intents. If not specified, `REJECT` is assumed. + *+ * + *
.google.cloud.dialogflow.cx.v3beta1.ImportIntentsRequest.MergeOption merge_option = 4;
+ *
+ *
+ * @param value The mergeOption to set.
+ * @return This builder for chaining.
+ */
+ public Builder setMergeOption(
+ com.google.cloud.dialogflow.cx.v3beta1.ImportIntentsRequest.MergeOption value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000008;
+ mergeOption_ = value.getNumber();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Merge option for importing intents. If not specified, `REJECT` is assumed. + *+ * + *
.google.cloud.dialogflow.cx.v3beta1.ImportIntentsRequest.MergeOption merge_option = 4;
+ *
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearMergeOption() {
+ bitField0_ = (bitField0_ & ~0x00000008);
+ mergeOption_ = 0;
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.cx.v3beta1.ImportIntentsRequest)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.cx.v3beta1.ImportIntentsRequest)
+ private static final com.google.cloud.dialogflow.cx.v3beta1.ImportIntentsRequest DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.dialogflow.cx.v3beta1.ImportIntentsRequest();
+ }
+
+ public static com.google.cloud.dialogflow.cx.v3beta1.ImportIntentsRequest getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * Required. The agent to import the intents into. + * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>`. + *+ * + *
+ * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The parent.
+ */
+ java.lang.String getParent();
+ /**
+ *
+ *
+ * + * Required. The agent to import the intents into. + * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>`. + *+ * + *
+ * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The bytes for parent.
+ */
+ com.google.protobuf.ByteString getParentBytes();
+
+ /**
+ *
+ *
+ * + * The [Google Cloud Storage](https://cloud.google.com/storage/docs/) URI + * to import intents from. The format of this URI must be + * `gs://<bucket-name>/<object-name>`. + * + * Dialogflow performs a read operation for the Cloud Storage object + * on the caller's behalf, so your request authentication must + * have read permissions for the object. For more information, see + * [Dialogflow access + * control](https://cloud.google.com/dialogflow/cx/docs/concept/access-control#storage). + *+ * + *
string intents_uri = 2;
+ *
+ * @return Whether the intentsUri field is set.
+ */
+ boolean hasIntentsUri();
+ /**
+ *
+ *
+ * + * The [Google Cloud Storage](https://cloud.google.com/storage/docs/) URI + * to import intents from. The format of this URI must be + * `gs://<bucket-name>/<object-name>`. + * + * Dialogflow performs a read operation for the Cloud Storage object + * on the caller's behalf, so your request authentication must + * have read permissions for the object. For more information, see + * [Dialogflow access + * control](https://cloud.google.com/dialogflow/cx/docs/concept/access-control#storage). + *+ * + *
string intents_uri = 2;
+ *
+ * @return The intentsUri.
+ */
+ java.lang.String getIntentsUri();
+ /**
+ *
+ *
+ * + * The [Google Cloud Storage](https://cloud.google.com/storage/docs/) URI + * to import intents from. The format of this URI must be + * `gs://<bucket-name>/<object-name>`. + * + * Dialogflow performs a read operation for the Cloud Storage object + * on the caller's behalf, so your request authentication must + * have read permissions for the object. For more information, see + * [Dialogflow access + * control](https://cloud.google.com/dialogflow/cx/docs/concept/access-control#storage). + *+ * + *
string intents_uri = 2;
+ *
+ * @return The bytes for intentsUri.
+ */
+ com.google.protobuf.ByteString getIntentsUriBytes();
+
+ /**
+ *
+ *
+ * + * Uncompressed byte content of intents. + *+ * + *
.google.cloud.dialogflow.cx.v3beta1.InlineSource intents_content = 3;
+ *
+ * @return Whether the intentsContent field is set.
+ */
+ boolean hasIntentsContent();
+ /**
+ *
+ *
+ * + * Uncompressed byte content of intents. + *+ * + *
.google.cloud.dialogflow.cx.v3beta1.InlineSource intents_content = 3;
+ *
+ * @return The intentsContent.
+ */
+ com.google.cloud.dialogflow.cx.v3beta1.InlineSource getIntentsContent();
+ /**
+ *
+ *
+ * + * Uncompressed byte content of intents. + *+ * + *
.google.cloud.dialogflow.cx.v3beta1.InlineSource intents_content = 3;
+ */
+ com.google.cloud.dialogflow.cx.v3beta1.InlineSourceOrBuilder getIntentsContentOrBuilder();
+
+ /**
+ *
+ *
+ * + * Merge option for importing intents. If not specified, `REJECT` is assumed. + *+ * + *
.google.cloud.dialogflow.cx.v3beta1.ImportIntentsRequest.MergeOption merge_option = 4;
+ *
+ *
+ * @return The enum numeric value on the wire for mergeOption.
+ */
+ int getMergeOptionValue();
+ /**
+ *
+ *
+ * + * Merge option for importing intents. If not specified, `REJECT` is assumed. + *+ * + *
.google.cloud.dialogflow.cx.v3beta1.ImportIntentsRequest.MergeOption merge_option = 4;
+ *
+ *
+ * @return The mergeOption.
+ */
+ com.google.cloud.dialogflow.cx.v3beta1.ImportIntentsRequest.MergeOption getMergeOption();
+
+ com.google.cloud.dialogflow.cx.v3beta1.ImportIntentsRequest.IntentsCase getIntentsCase();
+}
diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ImportIntentsResponse.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ImportIntentsResponse.java
new file mode 100644
index 000000000000..834bc99a8571
--- /dev/null
+++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ImportIntentsResponse.java
@@ -0,0 +1,2225 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/dialogflow/cx/v3beta1/intent.proto
+
+package com.google.cloud.dialogflow.cx.v3beta1;
+
+/**
+ *
+ *
+ * + * The response message for + * [Intents.ImportIntents][google.cloud.dialogflow.cx.v3beta1.Intents.ImportIntents]. + *+ * + * Protobuf type {@code google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse} + */ +public final class ImportIntentsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse) + ImportIntentsResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ImportIntentsResponse.newBuilder() to construct. + private ImportIntentsResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private ImportIntentsResponse() { + intents_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ImportIntentsResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.cx.v3beta1.IntentProto + .internal_static_google_cloud_dialogflow_cx_v3beta1_ImportIntentsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.cx.v3beta1.IntentProto + .internal_static_google_cloud_dialogflow_cx_v3beta1_ImportIntentsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse.class, + com.google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse.Builder.class); + } + + public interface ConflictingResourcesOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse.ConflictingResources) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+ * Display names of conflicting intents. + *+ * + *
repeated string intent_display_names = 1;
+ *
+ * @return A list containing the intentDisplayNames.
+ */
+ java.util.List+ * Display names of conflicting intents. + *+ * + *
repeated string intent_display_names = 1;
+ *
+ * @return The count of intentDisplayNames.
+ */
+ int getIntentDisplayNamesCount();
+ /**
+ *
+ *
+ * + * Display names of conflicting intents. + *+ * + *
repeated string intent_display_names = 1;
+ *
+ * @param index The index of the element to return.
+ * @return The intentDisplayNames at the given index.
+ */
+ java.lang.String getIntentDisplayNames(int index);
+ /**
+ *
+ *
+ * + * Display names of conflicting intents. + *+ * + *
repeated string intent_display_names = 1;
+ *
+ * @param index The index of the value to return.
+ * @return The bytes of the intentDisplayNames at the given index.
+ */
+ com.google.protobuf.ByteString getIntentDisplayNamesBytes(int index);
+
+ /**
+ *
+ *
+ * + * Display names of conflicting entities. + *+ * + *
repeated string entity_display_names = 2;
+ *
+ * @return A list containing the entityDisplayNames.
+ */
+ java.util.List+ * Display names of conflicting entities. + *+ * + *
repeated string entity_display_names = 2;
+ *
+ * @return The count of entityDisplayNames.
+ */
+ int getEntityDisplayNamesCount();
+ /**
+ *
+ *
+ * + * Display names of conflicting entities. + *+ * + *
repeated string entity_display_names = 2;
+ *
+ * @param index The index of the element to return.
+ * @return The entityDisplayNames at the given index.
+ */
+ java.lang.String getEntityDisplayNames(int index);
+ /**
+ *
+ *
+ * + * Display names of conflicting entities. + *+ * + *
repeated string entity_display_names = 2;
+ *
+ * @param index The index of the value to return.
+ * @return The bytes of the entityDisplayNames at the given index.
+ */
+ com.google.protobuf.ByteString getEntityDisplayNamesBytes(int index);
+ }
+ /**
+ *
+ *
+ * + * Conflicting resources detected during the import process. Only filled when + * [REPORT_CONFLICT][ImportIntentsResponse.REPORT_CONFLICT] is set in the + * request and there are conflicts in the display names. + *+ * + * Protobuf type {@code + * google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse.ConflictingResources} + */ + public static final class ConflictingResources extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse.ConflictingResources) + ConflictingResourcesOrBuilder { + private static final long serialVersionUID = 0L; + // Use ConflictingResources.newBuilder() to construct. + private ConflictingResources(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private ConflictingResources() { + intentDisplayNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); + entityDisplayNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ConflictingResources(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.cx.v3beta1.IntentProto + .internal_static_google_cloud_dialogflow_cx_v3beta1_ImportIntentsResponse_ConflictingResources_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.cx.v3beta1.IntentProto + .internal_static_google_cloud_dialogflow_cx_v3beta1_ImportIntentsResponse_ConflictingResources_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse.ConflictingResources + .class, + com.google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse.ConflictingResources + .Builder.class); + } + + public static final int INTENT_DISPLAY_NAMES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList intentDisplayNames_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + * + * + *
+ * Display names of conflicting intents. + *+ * + *
repeated string intent_display_names = 1;
+ *
+ * @return A list containing the intentDisplayNames.
+ */
+ public com.google.protobuf.ProtocolStringList getIntentDisplayNamesList() {
+ return intentDisplayNames_;
+ }
+ /**
+ *
+ *
+ * + * Display names of conflicting intents. + *+ * + *
repeated string intent_display_names = 1;
+ *
+ * @return The count of intentDisplayNames.
+ */
+ public int getIntentDisplayNamesCount() {
+ return intentDisplayNames_.size();
+ }
+ /**
+ *
+ *
+ * + * Display names of conflicting intents. + *+ * + *
repeated string intent_display_names = 1;
+ *
+ * @param index The index of the element to return.
+ * @return The intentDisplayNames at the given index.
+ */
+ public java.lang.String getIntentDisplayNames(int index) {
+ return intentDisplayNames_.get(index);
+ }
+ /**
+ *
+ *
+ * + * Display names of conflicting intents. + *+ * + *
repeated string intent_display_names = 1;
+ *
+ * @param index The index of the value to return.
+ * @return The bytes of the intentDisplayNames at the given index.
+ */
+ public com.google.protobuf.ByteString getIntentDisplayNamesBytes(int index) {
+ return intentDisplayNames_.getByteString(index);
+ }
+
+ public static final int ENTITY_DISPLAY_NAMES_FIELD_NUMBER = 2;
+
+ @SuppressWarnings("serial")
+ private com.google.protobuf.LazyStringArrayList entityDisplayNames_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
+ /**
+ *
+ *
+ * + * Display names of conflicting entities. + *+ * + *
repeated string entity_display_names = 2;
+ *
+ * @return A list containing the entityDisplayNames.
+ */
+ public com.google.protobuf.ProtocolStringList getEntityDisplayNamesList() {
+ return entityDisplayNames_;
+ }
+ /**
+ *
+ *
+ * + * Display names of conflicting entities. + *+ * + *
repeated string entity_display_names = 2;
+ *
+ * @return The count of entityDisplayNames.
+ */
+ public int getEntityDisplayNamesCount() {
+ return entityDisplayNames_.size();
+ }
+ /**
+ *
+ *
+ * + * Display names of conflicting entities. + *+ * + *
repeated string entity_display_names = 2;
+ *
+ * @param index The index of the element to return.
+ * @return The entityDisplayNames at the given index.
+ */
+ public java.lang.String getEntityDisplayNames(int index) {
+ return entityDisplayNames_.get(index);
+ }
+ /**
+ *
+ *
+ * + * Display names of conflicting entities. + *+ * + *
repeated string entity_display_names = 2;
+ *
+ * @param index The index of the value to return.
+ * @return The bytes of the entityDisplayNames at the given index.
+ */
+ public com.google.protobuf.ByteString getEntityDisplayNamesBytes(int index) {
+ return entityDisplayNames_.getByteString(index);
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ for (int i = 0; i < intentDisplayNames_.size(); i++) {
+ com.google.protobuf.GeneratedMessageV3.writeString(
+ output, 1, intentDisplayNames_.getRaw(i));
+ }
+ for (int i = 0; i < entityDisplayNames_.size(); i++) {
+ com.google.protobuf.GeneratedMessageV3.writeString(
+ output, 2, entityDisplayNames_.getRaw(i));
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ {
+ int dataSize = 0;
+ for (int i = 0; i < intentDisplayNames_.size(); i++) {
+ dataSize += computeStringSizeNoTag(intentDisplayNames_.getRaw(i));
+ }
+ size += dataSize;
+ size += 1 * getIntentDisplayNamesList().size();
+ }
+ {
+ int dataSize = 0;
+ for (int i = 0; i < entityDisplayNames_.size(); i++) {
+ dataSize += computeStringSizeNoTag(entityDisplayNames_.getRaw(i));
+ }
+ size += dataSize;
+ size += 1 * getEntityDisplayNamesList().size();
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj
+ instanceof
+ com.google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse.ConflictingResources)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse.ConflictingResources other =
+ (com.google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse.ConflictingResources) obj;
+
+ if (!getIntentDisplayNamesList().equals(other.getIntentDisplayNamesList())) return false;
+ if (!getEntityDisplayNamesList().equals(other.getEntityDisplayNamesList())) return false;
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (getIntentDisplayNamesCount() > 0) {
+ hash = (37 * hash) + INTENT_DISPLAY_NAMES_FIELD_NUMBER;
+ hash = (53 * hash) + getIntentDisplayNamesList().hashCode();
+ }
+ if (getEntityDisplayNamesCount() > 0) {
+ hash = (37 * hash) + ENTITY_DISPLAY_NAMES_FIELD_NUMBER;
+ hash = (53 * hash) + getEntityDisplayNamesList().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse.ConflictingResources
+ parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse.ConflictingResources
+ parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse.ConflictingResources
+ parseFrom(com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse.ConflictingResources
+ parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse.ConflictingResources
+ parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse.ConflictingResources
+ parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse.ConflictingResources
+ parseFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse.ConflictingResources
+ parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse.ConflictingResources
+ parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse.ConflictingResources
+ parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse.ConflictingResources
+ parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse.ConflictingResources
+ parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(
+ com.google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse.ConflictingResources
+ prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ *
+ *
+ * + * Conflicting resources detected during the import process. Only filled when + * [REPORT_CONFLICT][ImportIntentsResponse.REPORT_CONFLICT] is set in the + * request and there are conflicts in the display names. + *+ * + * Protobuf type {@code + * google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse.ConflictingResources} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder
+ * Display names of conflicting intents. + *+ * + *
repeated string intent_display_names = 1;
+ *
+ * @return A list containing the intentDisplayNames.
+ */
+ public com.google.protobuf.ProtocolStringList getIntentDisplayNamesList() {
+ intentDisplayNames_.makeImmutable();
+ return intentDisplayNames_;
+ }
+ /**
+ *
+ *
+ * + * Display names of conflicting intents. + *+ * + *
repeated string intent_display_names = 1;
+ *
+ * @return The count of intentDisplayNames.
+ */
+ public int getIntentDisplayNamesCount() {
+ return intentDisplayNames_.size();
+ }
+ /**
+ *
+ *
+ * + * Display names of conflicting intents. + *+ * + *
repeated string intent_display_names = 1;
+ *
+ * @param index The index of the element to return.
+ * @return The intentDisplayNames at the given index.
+ */
+ public java.lang.String getIntentDisplayNames(int index) {
+ return intentDisplayNames_.get(index);
+ }
+ /**
+ *
+ *
+ * + * Display names of conflicting intents. + *+ * + *
repeated string intent_display_names = 1;
+ *
+ * @param index The index of the value to return.
+ * @return The bytes of the intentDisplayNames at the given index.
+ */
+ public com.google.protobuf.ByteString getIntentDisplayNamesBytes(int index) {
+ return intentDisplayNames_.getByteString(index);
+ }
+ /**
+ *
+ *
+ * + * Display names of conflicting intents. + *+ * + *
repeated string intent_display_names = 1;
+ *
+ * @param index The index to set the value at.
+ * @param value The intentDisplayNames to set.
+ * @return This builder for chaining.
+ */
+ public Builder setIntentDisplayNames(int index, java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureIntentDisplayNamesIsMutable();
+ intentDisplayNames_.set(index, value);
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Display names of conflicting intents. + *+ * + *
repeated string intent_display_names = 1;
+ *
+ * @param value The intentDisplayNames to add.
+ * @return This builder for chaining.
+ */
+ public Builder addIntentDisplayNames(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureIntentDisplayNamesIsMutable();
+ intentDisplayNames_.add(value);
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Display names of conflicting intents. + *+ * + *
repeated string intent_display_names = 1;
+ *
+ * @param values The intentDisplayNames to add.
+ * @return This builder for chaining.
+ */
+ public Builder addAllIntentDisplayNames(java.lang.Iterable+ * Display names of conflicting intents. + *+ * + *
repeated string intent_display_names = 1;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearIntentDisplayNames() {
+ intentDisplayNames_ = com.google.protobuf.LazyStringArrayList.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ ;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Display names of conflicting intents. + *+ * + *
repeated string intent_display_names = 1;
+ *
+ * @param value The bytes of the intentDisplayNames to add.
+ * @return This builder for chaining.
+ */
+ public Builder addIntentDisplayNamesBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ ensureIntentDisplayNamesIsMutable();
+ intentDisplayNames_.add(value);
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ private com.google.protobuf.LazyStringArrayList entityDisplayNames_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
+
+ private void ensureEntityDisplayNamesIsMutable() {
+ if (!entityDisplayNames_.isModifiable()) {
+ entityDisplayNames_ = new com.google.protobuf.LazyStringArrayList(entityDisplayNames_);
+ }
+ bitField0_ |= 0x00000002;
+ }
+ /**
+ *
+ *
+ * + * Display names of conflicting entities. + *+ * + *
repeated string entity_display_names = 2;
+ *
+ * @return A list containing the entityDisplayNames.
+ */
+ public com.google.protobuf.ProtocolStringList getEntityDisplayNamesList() {
+ entityDisplayNames_.makeImmutable();
+ return entityDisplayNames_;
+ }
+ /**
+ *
+ *
+ * + * Display names of conflicting entities. + *+ * + *
repeated string entity_display_names = 2;
+ *
+ * @return The count of entityDisplayNames.
+ */
+ public int getEntityDisplayNamesCount() {
+ return entityDisplayNames_.size();
+ }
+ /**
+ *
+ *
+ * + * Display names of conflicting entities. + *+ * + *
repeated string entity_display_names = 2;
+ *
+ * @param index The index of the element to return.
+ * @return The entityDisplayNames at the given index.
+ */
+ public java.lang.String getEntityDisplayNames(int index) {
+ return entityDisplayNames_.get(index);
+ }
+ /**
+ *
+ *
+ * + * Display names of conflicting entities. + *+ * + *
repeated string entity_display_names = 2;
+ *
+ * @param index The index of the value to return.
+ * @return The bytes of the entityDisplayNames at the given index.
+ */
+ public com.google.protobuf.ByteString getEntityDisplayNamesBytes(int index) {
+ return entityDisplayNames_.getByteString(index);
+ }
+ /**
+ *
+ *
+ * + * Display names of conflicting entities. + *+ * + *
repeated string entity_display_names = 2;
+ *
+ * @param index The index to set the value at.
+ * @param value The entityDisplayNames to set.
+ * @return This builder for chaining.
+ */
+ public Builder setEntityDisplayNames(int index, java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureEntityDisplayNamesIsMutable();
+ entityDisplayNames_.set(index, value);
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Display names of conflicting entities. + *+ * + *
repeated string entity_display_names = 2;
+ *
+ * @param value The entityDisplayNames to add.
+ * @return This builder for chaining.
+ */
+ public Builder addEntityDisplayNames(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureEntityDisplayNamesIsMutable();
+ entityDisplayNames_.add(value);
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Display names of conflicting entities. + *+ * + *
repeated string entity_display_names = 2;
+ *
+ * @param values The entityDisplayNames to add.
+ * @return This builder for chaining.
+ */
+ public Builder addAllEntityDisplayNames(java.lang.Iterable+ * Display names of conflicting entities. + *+ * + *
repeated string entity_display_names = 2;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearEntityDisplayNames() {
+ entityDisplayNames_ = com.google.protobuf.LazyStringArrayList.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ ;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Display names of conflicting entities. + *+ * + *
repeated string entity_display_names = 2;
+ *
+ * @param value The bytes of the entityDisplayNames to add.
+ * @return This builder for chaining.
+ */
+ public Builder addEntityDisplayNamesBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ ensureEntityDisplayNamesIsMutable();
+ entityDisplayNames_.add(value);
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse.ConflictingResources)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse.ConflictingResources)
+ private static final com.google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse
+ .ConflictingResources
+ DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE =
+ new com.google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse.ConflictingResources();
+ }
+
+ public static com.google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse.ConflictingResources
+ getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * The unique identifier of the imported intents. + * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent + * ID>/intents/<Intent ID>`. + *+ * + *
repeated string intents = 1 [(.google.api.resource_reference) = { ... }
+ *
+ * @return A list containing the intents.
+ */
+ public com.google.protobuf.ProtocolStringList getIntentsList() {
+ return intents_;
+ }
+ /**
+ *
+ *
+ * + * The unique identifier of the imported intents. + * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent + * ID>/intents/<Intent ID>`. + *+ * + *
repeated string intents = 1 [(.google.api.resource_reference) = { ... }
+ *
+ * @return The count of intents.
+ */
+ public int getIntentsCount() {
+ return intents_.size();
+ }
+ /**
+ *
+ *
+ * + * The unique identifier of the imported intents. + * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent + * ID>/intents/<Intent ID>`. + *+ * + *
repeated string intents = 1 [(.google.api.resource_reference) = { ... }
+ *
+ * @param index The index of the element to return.
+ * @return The intents at the given index.
+ */
+ public java.lang.String getIntents(int index) {
+ return intents_.get(index);
+ }
+ /**
+ *
+ *
+ * + * The unique identifier of the imported intents. + * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent + * ID>/intents/<Intent ID>`. + *+ * + *
repeated string intents = 1 [(.google.api.resource_reference) = { ... }
+ *
+ * @param index The index of the value to return.
+ * @return The bytes of the intents at the given index.
+ */
+ public com.google.protobuf.ByteString getIntentsBytes(int index) {
+ return intents_.getByteString(index);
+ }
+
+ public static final int CONFLICTING_RESOURCES_FIELD_NUMBER = 2;
+ private com.google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse.ConflictingResources
+ conflictingResources_;
+ /**
+ *
+ *
+ * + * Info which resources have conflicts when + * [REPORT_CONFLICT][ImportIntentsResponse.REPORT_CONFLICT] merge_option is + * set in ImportIntentsRequest. + *+ * + *
+ * .google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse.ConflictingResources conflicting_resources = 2;
+ *
+ *
+ * @return Whether the conflictingResources field is set.
+ */
+ @java.lang.Override
+ public boolean hasConflictingResources() {
+ return conflictingResources_ != null;
+ }
+ /**
+ *
+ *
+ * + * Info which resources have conflicts when + * [REPORT_CONFLICT][ImportIntentsResponse.REPORT_CONFLICT] merge_option is + * set in ImportIntentsRequest. + *+ * + *
+ * .google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse.ConflictingResources conflicting_resources = 2;
+ *
+ *
+ * @return The conflictingResources.
+ */
+ @java.lang.Override
+ public com.google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse.ConflictingResources
+ getConflictingResources() {
+ return conflictingResources_ == null
+ ? com.google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse.ConflictingResources
+ .getDefaultInstance()
+ : conflictingResources_;
+ }
+ /**
+ *
+ *
+ * + * Info which resources have conflicts when + * [REPORT_CONFLICT][ImportIntentsResponse.REPORT_CONFLICT] merge_option is + * set in ImportIntentsRequest. + *+ * + *
+ * .google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse.ConflictingResources conflicting_resources = 2;
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse.ConflictingResourcesOrBuilder
+ getConflictingResourcesOrBuilder() {
+ return conflictingResources_ == null
+ ? com.google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse.ConflictingResources
+ .getDefaultInstance()
+ : conflictingResources_;
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ for (int i = 0; i < intents_.size(); i++) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, intents_.getRaw(i));
+ }
+ if (conflictingResources_ != null) {
+ output.writeMessage(2, getConflictingResources());
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ {
+ int dataSize = 0;
+ for (int i = 0; i < intents_.size(); i++) {
+ dataSize += computeStringSizeNoTag(intents_.getRaw(i));
+ }
+ size += dataSize;
+ size += 1 * getIntentsList().size();
+ }
+ if (conflictingResources_ != null) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(2, getConflictingResources());
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse other =
+ (com.google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse) obj;
+
+ if (!getIntentsList().equals(other.getIntentsList())) return false;
+ if (hasConflictingResources() != other.hasConflictingResources()) return false;
+ if (hasConflictingResources()) {
+ if (!getConflictingResources().equals(other.getConflictingResources())) return false;
+ }
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (getIntentsCount() > 0) {
+ hash = (37 * hash) + INTENTS_FIELD_NUMBER;
+ hash = (53 * hash) + getIntentsList().hashCode();
+ }
+ if (hasConflictingResources()) {
+ hash = (37 * hash) + CONFLICTING_RESOURCES_FIELD_NUMBER;
+ hash = (53 * hash) + getConflictingResources().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(
+ com.google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ *
+ *
+ * + * The response message for + * [Intents.ImportIntents][google.cloud.dialogflow.cx.v3beta1.Intents.ImportIntents]. + *+ * + * Protobuf type {@code google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * The unique identifier of the imported intents. + * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent + * ID>/intents/<Intent ID>`. + *+ * + *
repeated string intents = 1 [(.google.api.resource_reference) = { ... }
+ *
+ * @return A list containing the intents.
+ */
+ public com.google.protobuf.ProtocolStringList getIntentsList() {
+ intents_.makeImmutable();
+ return intents_;
+ }
+ /**
+ *
+ *
+ * + * The unique identifier of the imported intents. + * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent + * ID>/intents/<Intent ID>`. + *+ * + *
repeated string intents = 1 [(.google.api.resource_reference) = { ... }
+ *
+ * @return The count of intents.
+ */
+ public int getIntentsCount() {
+ return intents_.size();
+ }
+ /**
+ *
+ *
+ * + * The unique identifier of the imported intents. + * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent + * ID>/intents/<Intent ID>`. + *+ * + *
repeated string intents = 1 [(.google.api.resource_reference) = { ... }
+ *
+ * @param index The index of the element to return.
+ * @return The intents at the given index.
+ */
+ public java.lang.String getIntents(int index) {
+ return intents_.get(index);
+ }
+ /**
+ *
+ *
+ * + * The unique identifier of the imported intents. + * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent + * ID>/intents/<Intent ID>`. + *+ * + *
repeated string intents = 1 [(.google.api.resource_reference) = { ... }
+ *
+ * @param index The index of the value to return.
+ * @return The bytes of the intents at the given index.
+ */
+ public com.google.protobuf.ByteString getIntentsBytes(int index) {
+ return intents_.getByteString(index);
+ }
+ /**
+ *
+ *
+ * + * The unique identifier of the imported intents. + * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent + * ID>/intents/<Intent ID>`. + *+ * + *
repeated string intents = 1 [(.google.api.resource_reference) = { ... }
+ *
+ * @param index The index to set the value at.
+ * @param value The intents to set.
+ * @return This builder for chaining.
+ */
+ public Builder setIntents(int index, java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureIntentsIsMutable();
+ intents_.set(index, value);
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The unique identifier of the imported intents. + * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent + * ID>/intents/<Intent ID>`. + *+ * + *
repeated string intents = 1 [(.google.api.resource_reference) = { ... }
+ *
+ * @param value The intents to add.
+ * @return This builder for chaining.
+ */
+ public Builder addIntents(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureIntentsIsMutable();
+ intents_.add(value);
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The unique identifier of the imported intents. + * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent + * ID>/intents/<Intent ID>`. + *+ * + *
repeated string intents = 1 [(.google.api.resource_reference) = { ... }
+ *
+ * @param values The intents to add.
+ * @return This builder for chaining.
+ */
+ public Builder addAllIntents(java.lang.Iterable+ * The unique identifier of the imported intents. + * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent + * ID>/intents/<Intent ID>`. + *+ * + *
repeated string intents = 1 [(.google.api.resource_reference) = { ... }
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearIntents() {
+ intents_ = com.google.protobuf.LazyStringArrayList.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ ;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The unique identifier of the imported intents. + * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent + * ID>/intents/<Intent ID>`. + *+ * + *
repeated string intents = 1 [(.google.api.resource_reference) = { ... }
+ *
+ * @param value The bytes of the intents to add.
+ * @return This builder for chaining.
+ */
+ public Builder addIntentsBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ ensureIntentsIsMutable();
+ intents_.add(value);
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ private com.google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse.ConflictingResources
+ conflictingResources_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse.ConflictingResources,
+ com.google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse.ConflictingResources
+ .Builder,
+ com.google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse
+ .ConflictingResourcesOrBuilder>
+ conflictingResourcesBuilder_;
+ /**
+ *
+ *
+ * + * Info which resources have conflicts when + * [REPORT_CONFLICT][ImportIntentsResponse.REPORT_CONFLICT] merge_option is + * set in ImportIntentsRequest. + *+ * + *
+ * .google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse.ConflictingResources conflicting_resources = 2;
+ *
+ *
+ * @return Whether the conflictingResources field is set.
+ */
+ public boolean hasConflictingResources() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+ /**
+ *
+ *
+ * + * Info which resources have conflicts when + * [REPORT_CONFLICT][ImportIntentsResponse.REPORT_CONFLICT] merge_option is + * set in ImportIntentsRequest. + *+ * + *
+ * .google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse.ConflictingResources conflicting_resources = 2;
+ *
+ *
+ * @return The conflictingResources.
+ */
+ public com.google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse.ConflictingResources
+ getConflictingResources() {
+ if (conflictingResourcesBuilder_ == null) {
+ return conflictingResources_ == null
+ ? com.google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse.ConflictingResources
+ .getDefaultInstance()
+ : conflictingResources_;
+ } else {
+ return conflictingResourcesBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ * + * Info which resources have conflicts when + * [REPORT_CONFLICT][ImportIntentsResponse.REPORT_CONFLICT] merge_option is + * set in ImportIntentsRequest. + *+ * + *
+ * .google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse.ConflictingResources conflicting_resources = 2;
+ *
+ */
+ public Builder setConflictingResources(
+ com.google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse.ConflictingResources value) {
+ if (conflictingResourcesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ conflictingResources_ = value;
+ } else {
+ conflictingResourcesBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Info which resources have conflicts when + * [REPORT_CONFLICT][ImportIntentsResponse.REPORT_CONFLICT] merge_option is + * set in ImportIntentsRequest. + *+ * + *
+ * .google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse.ConflictingResources conflicting_resources = 2;
+ *
+ */
+ public Builder setConflictingResources(
+ com.google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse.ConflictingResources.Builder
+ builderForValue) {
+ if (conflictingResourcesBuilder_ == null) {
+ conflictingResources_ = builderForValue.build();
+ } else {
+ conflictingResourcesBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Info which resources have conflicts when + * [REPORT_CONFLICT][ImportIntentsResponse.REPORT_CONFLICT] merge_option is + * set in ImportIntentsRequest. + *+ * + *
+ * .google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse.ConflictingResources conflicting_resources = 2;
+ *
+ */
+ public Builder mergeConflictingResources(
+ com.google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse.ConflictingResources value) {
+ if (conflictingResourcesBuilder_ == null) {
+ if (((bitField0_ & 0x00000002) != 0)
+ && conflictingResources_ != null
+ && conflictingResources_
+ != com.google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse.ConflictingResources
+ .getDefaultInstance()) {
+ getConflictingResourcesBuilder().mergeFrom(value);
+ } else {
+ conflictingResources_ = value;
+ }
+ } else {
+ conflictingResourcesBuilder_.mergeFrom(value);
+ }
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Info which resources have conflicts when + * [REPORT_CONFLICT][ImportIntentsResponse.REPORT_CONFLICT] merge_option is + * set in ImportIntentsRequest. + *+ * + *
+ * .google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse.ConflictingResources conflicting_resources = 2;
+ *
+ */
+ public Builder clearConflictingResources() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ conflictingResources_ = null;
+ if (conflictingResourcesBuilder_ != null) {
+ conflictingResourcesBuilder_.dispose();
+ conflictingResourcesBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Info which resources have conflicts when + * [REPORT_CONFLICT][ImportIntentsResponse.REPORT_CONFLICT] merge_option is + * set in ImportIntentsRequest. + *+ * + *
+ * .google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse.ConflictingResources conflicting_resources = 2;
+ *
+ */
+ public com.google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse.ConflictingResources.Builder
+ getConflictingResourcesBuilder() {
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return getConflictingResourcesFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * Info which resources have conflicts when + * [REPORT_CONFLICT][ImportIntentsResponse.REPORT_CONFLICT] merge_option is + * set in ImportIntentsRequest. + *+ * + *
+ * .google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse.ConflictingResources conflicting_resources = 2;
+ *
+ */
+ public com.google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse
+ .ConflictingResourcesOrBuilder
+ getConflictingResourcesOrBuilder() {
+ if (conflictingResourcesBuilder_ != null) {
+ return conflictingResourcesBuilder_.getMessageOrBuilder();
+ } else {
+ return conflictingResources_ == null
+ ? com.google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse.ConflictingResources
+ .getDefaultInstance()
+ : conflictingResources_;
+ }
+ }
+ /**
+ *
+ *
+ * + * Info which resources have conflicts when + * [REPORT_CONFLICT][ImportIntentsResponse.REPORT_CONFLICT] merge_option is + * set in ImportIntentsRequest. + *+ * + *
+ * .google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse.ConflictingResources conflicting_resources = 2;
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse.ConflictingResources,
+ com.google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse.ConflictingResources
+ .Builder,
+ com.google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse
+ .ConflictingResourcesOrBuilder>
+ getConflictingResourcesFieldBuilder() {
+ if (conflictingResourcesBuilder_ == null) {
+ conflictingResourcesBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse.ConflictingResources,
+ com.google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse.ConflictingResources
+ .Builder,
+ com.google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse
+ .ConflictingResourcesOrBuilder>(
+ getConflictingResources(), getParentForChildren(), isClean());
+ conflictingResources_ = null;
+ }
+ return conflictingResourcesBuilder_;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse)
+ private static final com.google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse
+ DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse();
+ }
+
+ public static com.google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser