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 (ContactCenterInsightsClient contactCenterInsightsClient =
+ * ContactCenterInsightsClient.create()) {
+ * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+ * String filter = "filter-1274492040";
+ * BulkDeleteConversationsResponse response =
+ * contactCenterInsightsClient.bulkDeleteConversationsAsync(parent, filter).get();
+ * }
+ * }
+ *
+ * @param parent Required. The parent resource to create analyses in. Format:
+ * projects/{project}/locations/{location}
+ * @param filter Filter used to select the subset of conversations to analyze.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFutureSample 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 (ContactCenterInsightsClient contactCenterInsightsClient =
+ * ContactCenterInsightsClient.create()) {
+ * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+ * String filter = "filter-1274492040";
+ * BulkDeleteConversationsResponse response =
+ * contactCenterInsightsClient.bulkDeleteConversationsAsync(parent, filter).get();
+ * }
+ * }
+ *
+ * @param parent Required. The parent resource to create analyses in. Format:
+ * projects/{project}/locations/{location}
+ * @param filter Filter used to select the subset of conversations to analyze.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFutureSample 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 (ContactCenterInsightsClient contactCenterInsightsClient =
+ * ContactCenterInsightsClient.create()) {
+ * BulkDeleteConversationsRequest request =
+ * BulkDeleteConversationsRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setFilter("filter-1274492040")
+ * .setMaxDeleteCount(1611707510)
+ * .setForce(true)
+ * .build();
+ * BulkDeleteConversationsResponse response =
+ * contactCenterInsightsClient.bulkDeleteConversationsAsync(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 OperationFutureSample 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 (ContactCenterInsightsClient contactCenterInsightsClient =
+ * ContactCenterInsightsClient.create()) {
+ * BulkDeleteConversationsRequest request =
+ * BulkDeleteConversationsRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setFilter("filter-1274492040")
+ * .setMaxDeleteCount(1611707510)
+ * .setForce(true)
+ * .build();
+ * OperationFuture future =
+ * contactCenterInsightsClient
+ * .bulkDeleteConversationsOperationCallable()
+ * .futureCall(request);
+ * // Do something.
+ * BulkDeleteConversationsResponse response = future.get();
+ * }
+ * }
+ */
+ public final OperationCallable<
+ BulkDeleteConversationsRequest,
+ BulkDeleteConversationsResponse,
+ BulkDeleteConversationsMetadata>
+ bulkDeleteConversationsOperationCallable() {
+ return stub.bulkDeleteConversationsOperationCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Deletes multiple conversations in a single request.
+ *
+ * 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 (ContactCenterInsightsClient contactCenterInsightsClient =
+ * ContactCenterInsightsClient.create()) {
+ * BulkDeleteConversationsRequest request =
+ * BulkDeleteConversationsRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setFilter("filter-1274492040")
+ * .setMaxDeleteCount(1611707510)
+ * .setForce(true)
+ * .build();
+ * ApiFuture future =
+ * contactCenterInsightsClient.bulkDeleteConversationsCallable().futureCall(request);
+ * // Do something.
+ * Operation response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable+ * Deletes multiple conversations in a single request. + *+ */ + default void bulkDeleteConversations( + com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsRequest request, + io.grpc.stub.StreamObserver
+ * Deletes multiple conversations in a single request. + *+ */ + public void bulkDeleteConversations( + com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsRequest request, + io.grpc.stub.StreamObserver
+ * Deletes multiple conversations in a single request. + *+ */ + public com.google.longrunning.Operation bulkDeleteConversations( + com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getBulkDeleteConversationsMethod(), getCallOptions(), request); + } + /** * * @@ -3823,6 +3918,20 @@ protected ContactCenterInsightsFutureStub build( getChannel().newCall(getBulkAnalyzeConversationsMethod(), getCallOptions()), request); } + /** + * + * + *
+ * Deletes multiple conversations in a single request. + *+ */ + public com.google.common.util.concurrent.ListenableFuture
- * The Insights baseline model.
+ * The CCAI baseline model.
*
*
* BASELINE_MODEL = 1;
@@ -251,7 +251,7 @@ public enum SummarizationModel implements com.google.protobuf.ProtocolMessageEnu
*
*
*
- * The Insights baseline model.
+ * The CCAI baseline model.
*
*
* BASELINE_MODEL = 1;
diff --git a/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/BulkAnalyzeConversationsMetadata.java b/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/BulkAnalyzeConversationsMetadata.java
index 98e960aa16fd..ae0fa23f201e 100644
--- a/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/BulkAnalyzeConversationsMetadata.java
+++ b/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/BulkAnalyzeConversationsMetadata.java
@@ -38,7 +38,9 @@ private BulkAnalyzeConversationsMetadata(
super(builder);
}
- private BulkAnalyzeConversationsMetadata() {}
+ private BulkAnalyzeConversationsMetadata() {
+ partialErrors_ = java.util.Collections.emptyList();
+ }
@java.lang.Override
@SuppressWarnings({"unused"})
@@ -265,6 +267,91 @@ public int getTotalRequestedAnalysesCount() {
return totalRequestedAnalysesCount_;
}
+ public static final int PARTIAL_ERRORS_FIELD_NUMBER = 7;
+
+ @SuppressWarnings("serial")
+ private java.util.List+ * Output only. Partial errors during bulk analyze operation that might cause + * the operation output to be incomplete. + *+ * + *
+ * repeated .google.rpc.Status partial_errors = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ @java.lang.Override
+ public java.util.List+ * Output only. Partial errors during bulk analyze operation that might cause + * the operation output to be incomplete. + *+ * + *
+ * repeated .google.rpc.Status partial_errors = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ @java.lang.Override
+ public java.util.List extends com.google.rpc.StatusOrBuilder> getPartialErrorsOrBuilderList() {
+ return partialErrors_;
+ }
+ /**
+ *
+ *
+ * + * Output only. Partial errors during bulk analyze operation that might cause + * the operation output to be incomplete. + *+ * + *
+ * repeated .google.rpc.Status partial_errors = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ @java.lang.Override
+ public int getPartialErrorsCount() {
+ return partialErrors_.size();
+ }
+ /**
+ *
+ *
+ * + * Output only. Partial errors during bulk analyze operation that might cause + * the operation output to be incomplete. + *+ * + *
+ * repeated .google.rpc.Status partial_errors = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ @java.lang.Override
+ public com.google.rpc.Status getPartialErrors(int index) {
+ return partialErrors_.get(index);
+ }
+ /**
+ *
+ *
+ * + * Output only. Partial errors during bulk analyze operation that might cause + * the operation output to be incomplete. + *+ * + *
+ * repeated .google.rpc.Status partial_errors = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ @java.lang.Override
+ public com.google.rpc.StatusOrBuilder getPartialErrorsOrBuilder(int index) {
+ return partialErrors_.get(index);
+ }
+
private byte memoizedIsInitialized = -1;
@java.lang.Override
@@ -297,6 +384,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (totalRequestedAnalysesCount_ != 0) {
output.writeInt32(6, totalRequestedAnalysesCount_);
}
+ for (int i = 0; i < partialErrors_.size(); i++) {
+ output.writeMessage(7, partialErrors_.get(i));
+ }
getUnknownFields().writeTo(output);
}
@@ -325,6 +415,9 @@ public int getSerializedSize() {
size +=
com.google.protobuf.CodedOutputStream.computeInt32Size(6, totalRequestedAnalysesCount_);
}
+ for (int i = 0; i < partialErrors_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, partialErrors_.get(i));
+ }
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
@@ -357,6 +450,7 @@ public boolean equals(final java.lang.Object obj) {
if (getCompletedAnalysesCount() != other.getCompletedAnalysesCount()) return false;
if (getFailedAnalysesCount() != other.getFailedAnalysesCount()) return false;
if (getTotalRequestedAnalysesCount() != other.getTotalRequestedAnalysesCount()) return false;
+ if (!getPartialErrorsList().equals(other.getPartialErrorsList())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@@ -386,6 +480,10 @@ public int hashCode() {
hash = (53 * hash) + getFailedAnalysesCount();
hash = (37 * hash) + TOTAL_REQUESTED_ANALYSES_COUNT_FIELD_NUMBER;
hash = (53 * hash) + getTotalRequestedAnalysesCount();
+ if (getPartialErrorsCount() > 0) {
+ hash = (37 * hash) + PARTIAL_ERRORS_FIELD_NUMBER;
+ hash = (53 * hash) + getPartialErrorsList().hashCode();
+ }
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
@@ -552,6 +650,13 @@ public Builder clear() {
completedAnalysesCount_ = 0;
failedAnalysesCount_ = 0;
totalRequestedAnalysesCount_ = 0;
+ if (partialErrorsBuilder_ == null) {
+ partialErrors_ = java.util.Collections.emptyList();
+ } else {
+ partialErrors_ = null;
+ partialErrorsBuilder_.clear();
+ }
+ bitField0_ = (bitField0_ & ~0x00000040);
return this;
}
@@ -583,6 +688,7 @@ public com.google.cloud.contactcenterinsights.v1.BulkAnalyzeConversationsMetadat
buildPartial() {
com.google.cloud.contactcenterinsights.v1.BulkAnalyzeConversationsMetadata result =
new com.google.cloud.contactcenterinsights.v1.BulkAnalyzeConversationsMetadata(this);
+ buildPartialRepeatedFields(result);
if (bitField0_ != 0) {
buildPartial0(result);
}
@@ -590,6 +696,19 @@ public com.google.cloud.contactcenterinsights.v1.BulkAnalyzeConversationsMetadat
return result;
}
+ private void buildPartialRepeatedFields(
+ com.google.cloud.contactcenterinsights.v1.BulkAnalyzeConversationsMetadata result) {
+ if (partialErrorsBuilder_ == null) {
+ if (((bitField0_ & 0x00000040) != 0)) {
+ partialErrors_ = java.util.Collections.unmodifiableList(partialErrors_);
+ bitField0_ = (bitField0_ & ~0x00000040);
+ }
+ result.partialErrors_ = partialErrors_;
+ } else {
+ result.partialErrors_ = partialErrorsBuilder_.build();
+ }
+ }
+
private void buildPartial0(
com.google.cloud.contactcenterinsights.v1.BulkAnalyzeConversationsMetadata result) {
int from_bitField0_ = bitField0_;
@@ -681,6 +800,33 @@ public Builder mergeFrom(
if (other.getTotalRequestedAnalysesCount() != 0) {
setTotalRequestedAnalysesCount(other.getTotalRequestedAnalysesCount());
}
+ if (partialErrorsBuilder_ == null) {
+ if (!other.partialErrors_.isEmpty()) {
+ if (partialErrors_.isEmpty()) {
+ partialErrors_ = other.partialErrors_;
+ bitField0_ = (bitField0_ & ~0x00000040);
+ } else {
+ ensurePartialErrorsIsMutable();
+ partialErrors_.addAll(other.partialErrors_);
+ }
+ onChanged();
+ }
+ } else {
+ if (!other.partialErrors_.isEmpty()) {
+ if (partialErrorsBuilder_.isEmpty()) {
+ partialErrorsBuilder_.dispose();
+ partialErrorsBuilder_ = null;
+ partialErrors_ = other.partialErrors_;
+ bitField0_ = (bitField0_ & ~0x00000040);
+ partialErrorsBuilder_ =
+ com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+ ? getPartialErrorsFieldBuilder()
+ : null;
+ } else {
+ partialErrorsBuilder_.addAllMessages(other.partialErrors_);
+ }
+ }
+ }
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
@@ -743,6 +889,18 @@ public Builder mergeFrom(
bitField0_ |= 0x00000020;
break;
} // case 48
+ case 58:
+ {
+ com.google.rpc.Status m =
+ input.readMessage(com.google.rpc.Status.parser(), extensionRegistry);
+ if (partialErrorsBuilder_ == null) {
+ ensurePartialErrorsIsMutable();
+ partialErrors_.add(m);
+ } else {
+ partialErrorsBuilder_.addMessage(m);
+ }
+ break;
+ } // case 58
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
@@ -1488,6 +1646,403 @@ public Builder clearTotalRequestedAnalysesCount() {
return this;
}
+ private java.util.List+ * Output only. Partial errors during bulk analyze operation that might cause + * the operation output to be incomplete. + *+ * + *
+ * repeated .google.rpc.Status partial_errors = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public java.util.List+ * Output only. Partial errors during bulk analyze operation that might cause + * the operation output to be incomplete. + *+ * + *
+ * repeated .google.rpc.Status partial_errors = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public int getPartialErrorsCount() {
+ if (partialErrorsBuilder_ == null) {
+ return partialErrors_.size();
+ } else {
+ return partialErrorsBuilder_.getCount();
+ }
+ }
+ /**
+ *
+ *
+ * + * Output only. Partial errors during bulk analyze operation that might cause + * the operation output to be incomplete. + *+ * + *
+ * repeated .google.rpc.Status partial_errors = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public com.google.rpc.Status getPartialErrors(int index) {
+ if (partialErrorsBuilder_ == null) {
+ return partialErrors_.get(index);
+ } else {
+ return partialErrorsBuilder_.getMessage(index);
+ }
+ }
+ /**
+ *
+ *
+ * + * Output only. Partial errors during bulk analyze operation that might cause + * the operation output to be incomplete. + *+ * + *
+ * repeated .google.rpc.Status partial_errors = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder setPartialErrors(int index, com.google.rpc.Status value) {
+ if (partialErrorsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensurePartialErrorsIsMutable();
+ partialErrors_.set(index, value);
+ onChanged();
+ } else {
+ partialErrorsBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Output only. Partial errors during bulk analyze operation that might cause + * the operation output to be incomplete. + *+ * + *
+ * repeated .google.rpc.Status partial_errors = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder setPartialErrors(int index, com.google.rpc.Status.Builder builderForValue) {
+ if (partialErrorsBuilder_ == null) {
+ ensurePartialErrorsIsMutable();
+ partialErrors_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ partialErrorsBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Output only. Partial errors during bulk analyze operation that might cause + * the operation output to be incomplete. + *+ * + *
+ * repeated .google.rpc.Status partial_errors = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder addPartialErrors(com.google.rpc.Status value) {
+ if (partialErrorsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensurePartialErrorsIsMutable();
+ partialErrors_.add(value);
+ onChanged();
+ } else {
+ partialErrorsBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Output only. Partial errors during bulk analyze operation that might cause + * the operation output to be incomplete. + *+ * + *
+ * repeated .google.rpc.Status partial_errors = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder addPartialErrors(int index, com.google.rpc.Status value) {
+ if (partialErrorsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensurePartialErrorsIsMutable();
+ partialErrors_.add(index, value);
+ onChanged();
+ } else {
+ partialErrorsBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Output only. Partial errors during bulk analyze operation that might cause + * the operation output to be incomplete. + *+ * + *
+ * repeated .google.rpc.Status partial_errors = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder addPartialErrors(com.google.rpc.Status.Builder builderForValue) {
+ if (partialErrorsBuilder_ == null) {
+ ensurePartialErrorsIsMutable();
+ partialErrors_.add(builderForValue.build());
+ onChanged();
+ } else {
+ partialErrorsBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Output only. Partial errors during bulk analyze operation that might cause + * the operation output to be incomplete. + *+ * + *
+ * repeated .google.rpc.Status partial_errors = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder addPartialErrors(int index, com.google.rpc.Status.Builder builderForValue) {
+ if (partialErrorsBuilder_ == null) {
+ ensurePartialErrorsIsMutable();
+ partialErrors_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ partialErrorsBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Output only. Partial errors during bulk analyze operation that might cause + * the operation output to be incomplete. + *+ * + *
+ * repeated .google.rpc.Status partial_errors = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder addAllPartialErrors(java.lang.Iterable extends com.google.rpc.Status> values) {
+ if (partialErrorsBuilder_ == null) {
+ ensurePartialErrorsIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, partialErrors_);
+ onChanged();
+ } else {
+ partialErrorsBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Output only. Partial errors during bulk analyze operation that might cause + * the operation output to be incomplete. + *+ * + *
+ * repeated .google.rpc.Status partial_errors = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder clearPartialErrors() {
+ if (partialErrorsBuilder_ == null) {
+ partialErrors_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000040);
+ onChanged();
+ } else {
+ partialErrorsBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Output only. Partial errors during bulk analyze operation that might cause + * the operation output to be incomplete. + *+ * + *
+ * repeated .google.rpc.Status partial_errors = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder removePartialErrors(int index) {
+ if (partialErrorsBuilder_ == null) {
+ ensurePartialErrorsIsMutable();
+ partialErrors_.remove(index);
+ onChanged();
+ } else {
+ partialErrorsBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Output only. Partial errors during bulk analyze operation that might cause + * the operation output to be incomplete. + *+ * + *
+ * repeated .google.rpc.Status partial_errors = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public com.google.rpc.Status.Builder getPartialErrorsBuilder(int index) {
+ return getPartialErrorsFieldBuilder().getBuilder(index);
+ }
+ /**
+ *
+ *
+ * + * Output only. Partial errors during bulk analyze operation that might cause + * the operation output to be incomplete. + *+ * + *
+ * repeated .google.rpc.Status partial_errors = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public com.google.rpc.StatusOrBuilder getPartialErrorsOrBuilder(int index) {
+ if (partialErrorsBuilder_ == null) {
+ return partialErrors_.get(index);
+ } else {
+ return partialErrorsBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ *
+ *
+ * + * Output only. Partial errors during bulk analyze operation that might cause + * the operation output to be incomplete. + *+ * + *
+ * repeated .google.rpc.Status partial_errors = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public java.util.List extends com.google.rpc.StatusOrBuilder>
+ getPartialErrorsOrBuilderList() {
+ if (partialErrorsBuilder_ != null) {
+ return partialErrorsBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(partialErrors_);
+ }
+ }
+ /**
+ *
+ *
+ * + * Output only. Partial errors during bulk analyze operation that might cause + * the operation output to be incomplete. + *+ * + *
+ * repeated .google.rpc.Status partial_errors = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public com.google.rpc.Status.Builder addPartialErrorsBuilder() {
+ return getPartialErrorsFieldBuilder().addBuilder(com.google.rpc.Status.getDefaultInstance());
+ }
+ /**
+ *
+ *
+ * + * Output only. Partial errors during bulk analyze operation that might cause + * the operation output to be incomplete. + *+ * + *
+ * repeated .google.rpc.Status partial_errors = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public com.google.rpc.Status.Builder addPartialErrorsBuilder(int index) {
+ return getPartialErrorsFieldBuilder()
+ .addBuilder(index, com.google.rpc.Status.getDefaultInstance());
+ }
+ /**
+ *
+ *
+ * + * Output only. Partial errors during bulk analyze operation that might cause + * the operation output to be incomplete. + *+ * + *
+ * repeated .google.rpc.Status partial_errors = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public java.util.List+ * Output only. Partial errors during bulk analyze operation that might cause + * the operation output to be incomplete. + *+ * + *
+ * repeated .google.rpc.Status partial_errors = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ java.util.List+ * Output only. Partial errors during bulk analyze operation that might cause + * the operation output to be incomplete. + *+ * + *
+ * repeated .google.rpc.Status partial_errors = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ com.google.rpc.Status getPartialErrors(int index);
+ /**
+ *
+ *
+ * + * Output only. Partial errors during bulk analyze operation that might cause + * the operation output to be incomplete. + *+ * + *
+ * repeated .google.rpc.Status partial_errors = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ int getPartialErrorsCount();
+ /**
+ *
+ *
+ * + * Output only. Partial errors during bulk analyze operation that might cause + * the operation output to be incomplete. + *+ * + *
+ * repeated .google.rpc.Status partial_errors = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ java.util.List extends com.google.rpc.StatusOrBuilder> getPartialErrorsOrBuilderList();
+ /**
+ *
+ *
+ * + * Output only. Partial errors during bulk analyze operation that might cause + * the operation output to be incomplete. + *+ * + *
+ * repeated .google.rpc.Status partial_errors = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ com.google.rpc.StatusOrBuilder getPartialErrorsOrBuilder(int index);
}
diff --git a/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/BulkDeleteConversationsMetadata.java b/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/BulkDeleteConversationsMetadata.java
new file mode 100644
index 000000000000..f39d2cdef50e
--- /dev/null
+++ b/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/BulkDeleteConversationsMetadata.java
@@ -0,0 +1,1772 @@
+/*
+ * 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/contactcenterinsights/v1/contact_center_insights.proto
+
+package com.google.cloud.contactcenterinsights.v1;
+
+/**
+ *
+ *
+ * + * The metadata for a bulk delete conversations operation. + *+ * + * Protobuf type {@code google.cloud.contactcenterinsights.v1.BulkDeleteConversationsMetadata} + */ +public final class BulkDeleteConversationsMetadata extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.contactcenterinsights.v1.BulkDeleteConversationsMetadata) + BulkDeleteConversationsMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use BulkDeleteConversationsMetadata.newBuilder() to construct. + private BulkDeleteConversationsMetadata( + com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private BulkDeleteConversationsMetadata() { + partialErrors_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new BulkDeleteConversationsMetadata(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.contactcenterinsights.v1.ContactCenterInsightsProto + .internal_static_google_cloud_contactcenterinsights_v1_BulkDeleteConversationsMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.contactcenterinsights.v1.ContactCenterInsightsProto + .internal_static_google_cloud_contactcenterinsights_v1_BulkDeleteConversationsMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsMetadata.class, + com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsMetadata.Builder + .class); + } + + public static final int CREATE_TIME_FIELD_NUMBER = 1; + private com.google.protobuf.Timestamp createTime_; + /** + * + * + *
+ * The time the operation was created. + *+ * + *
.google.protobuf.Timestamp create_time = 1;
+ *
+ * @return Whether the createTime field is set.
+ */
+ @java.lang.Override
+ public boolean hasCreateTime() {
+ return createTime_ != null;
+ }
+ /**
+ *
+ *
+ * + * The time the operation was created. + *+ * + *
.google.protobuf.Timestamp create_time = 1;
+ *
+ * @return The createTime.
+ */
+ @java.lang.Override
+ public com.google.protobuf.Timestamp getCreateTime() {
+ return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_;
+ }
+ /**
+ *
+ *
+ * + * The time the operation was created. + *+ * + *
.google.protobuf.Timestamp create_time = 1;
+ */
+ @java.lang.Override
+ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() {
+ return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_;
+ }
+
+ public static final int END_TIME_FIELD_NUMBER = 2;
+ private com.google.protobuf.Timestamp endTime_;
+ /**
+ *
+ *
+ * + * The time the operation finished running. + *+ * + *
.google.protobuf.Timestamp end_time = 2;
+ *
+ * @return Whether the endTime field is set.
+ */
+ @java.lang.Override
+ public boolean hasEndTime() {
+ return endTime_ != null;
+ }
+ /**
+ *
+ *
+ * + * The time the operation finished running. + *+ * + *
.google.protobuf.Timestamp end_time = 2;
+ *
+ * @return The endTime.
+ */
+ @java.lang.Override
+ public com.google.protobuf.Timestamp getEndTime() {
+ return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_;
+ }
+ /**
+ *
+ *
+ * + * The time the operation finished running. + *+ * + *
.google.protobuf.Timestamp end_time = 2;
+ */
+ @java.lang.Override
+ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
+ return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_;
+ }
+
+ public static final int REQUEST_FIELD_NUMBER = 3;
+ private com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsRequest request_;
+ /**
+ *
+ *
+ * + * The original request for bulk delete. + *+ * + *
.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsRequest request = 3;
+ *
+ * @return Whether the request field is set.
+ */
+ @java.lang.Override
+ public boolean hasRequest() {
+ return request_ != null;
+ }
+ /**
+ *
+ *
+ * + * The original request for bulk delete. + *+ * + *
.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsRequest request = 3;
+ *
+ * @return The request.
+ */
+ @java.lang.Override
+ public com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsRequest getRequest() {
+ return request_ == null
+ ? com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsRequest
+ .getDefaultInstance()
+ : request_;
+ }
+ /**
+ *
+ *
+ * + * The original request for bulk delete. + *+ * + *
.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsRequest request = 3;
+ */
+ @java.lang.Override
+ public com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsRequestOrBuilder
+ getRequestOrBuilder() {
+ return request_ == null
+ ? com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsRequest
+ .getDefaultInstance()
+ : request_;
+ }
+
+ public static final int PARTIAL_ERRORS_FIELD_NUMBER = 4;
+
+ @SuppressWarnings("serial")
+ private java.util.List+ * Partial errors during bulk delete conversations operation that might cause + * the operation output to be incomplete. + *+ * + *
repeated .google.rpc.Status partial_errors = 4;
+ */
+ @java.lang.Override
+ public java.util.List+ * Partial errors during bulk delete conversations operation that might cause + * the operation output to be incomplete. + *+ * + *
repeated .google.rpc.Status partial_errors = 4;
+ */
+ @java.lang.Override
+ public java.util.List extends com.google.rpc.StatusOrBuilder> getPartialErrorsOrBuilderList() {
+ return partialErrors_;
+ }
+ /**
+ *
+ *
+ * + * Partial errors during bulk delete conversations operation that might cause + * the operation output to be incomplete. + *+ * + *
repeated .google.rpc.Status partial_errors = 4;
+ */
+ @java.lang.Override
+ public int getPartialErrorsCount() {
+ return partialErrors_.size();
+ }
+ /**
+ *
+ *
+ * + * Partial errors during bulk delete conversations operation that might cause + * the operation output to be incomplete. + *+ * + *
repeated .google.rpc.Status partial_errors = 4;
+ */
+ @java.lang.Override
+ public com.google.rpc.Status getPartialErrors(int index) {
+ return partialErrors_.get(index);
+ }
+ /**
+ *
+ *
+ * + * Partial errors during bulk delete conversations operation that might cause + * the operation output to be incomplete. + *+ * + *
repeated .google.rpc.Status partial_errors = 4;
+ */
+ @java.lang.Override
+ public com.google.rpc.StatusOrBuilder getPartialErrorsOrBuilder(int index) {
+ return partialErrors_.get(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 {
+ if (createTime_ != null) {
+ output.writeMessage(1, getCreateTime());
+ }
+ if (endTime_ != null) {
+ output.writeMessage(2, getEndTime());
+ }
+ if (request_ != null) {
+ output.writeMessage(3, getRequest());
+ }
+ for (int i = 0; i < partialErrors_.size(); i++) {
+ output.writeMessage(4, partialErrors_.get(i));
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (createTime_ != null) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCreateTime());
+ }
+ if (endTime_ != null) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEndTime());
+ }
+ if (request_ != null) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getRequest());
+ }
+ for (int i = 0; i < partialErrors_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, partialErrors_.get(i));
+ }
+ 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.contactcenterinsights.v1.BulkDeleteConversationsMetadata)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsMetadata other =
+ (com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsMetadata) obj;
+
+ if (hasCreateTime() != other.hasCreateTime()) return false;
+ if (hasCreateTime()) {
+ if (!getCreateTime().equals(other.getCreateTime())) return false;
+ }
+ if (hasEndTime() != other.hasEndTime()) return false;
+ if (hasEndTime()) {
+ if (!getEndTime().equals(other.getEndTime())) return false;
+ }
+ if (hasRequest() != other.hasRequest()) return false;
+ if (hasRequest()) {
+ if (!getRequest().equals(other.getRequest())) return false;
+ }
+ if (!getPartialErrorsList().equals(other.getPartialErrorsList())) 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 (hasCreateTime()) {
+ hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER;
+ hash = (53 * hash) + getCreateTime().hashCode();
+ }
+ if (hasEndTime()) {
+ hash = (37 * hash) + END_TIME_FIELD_NUMBER;
+ hash = (53 * hash) + getEndTime().hashCode();
+ }
+ if (hasRequest()) {
+ hash = (37 * hash) + REQUEST_FIELD_NUMBER;
+ hash = (53 * hash) + getRequest().hashCode();
+ }
+ if (getPartialErrorsCount() > 0) {
+ hash = (37 * hash) + PARTIAL_ERRORS_FIELD_NUMBER;
+ hash = (53 * hash) + getPartialErrorsList().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsMetadata parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsMetadata 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.contactcenterinsights.v1.BulkDeleteConversationsMetadata parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsMetadata 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.contactcenterinsights.v1.BulkDeleteConversationsMetadata parseFrom(
+ byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsMetadata parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsMetadata parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsMetadata 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.contactcenterinsights.v1.BulkDeleteConversationsMetadata
+ parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsMetadata
+ 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.contactcenterinsights.v1.BulkDeleteConversationsMetadata parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsMetadata 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.contactcenterinsights.v1.BulkDeleteConversationsMetadata 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 metadata for a bulk delete conversations operation. + *+ * + * Protobuf type {@code google.cloud.contactcenterinsights.v1.BulkDeleteConversationsMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * The time the operation was created. + *+ * + *
.google.protobuf.Timestamp create_time = 1;
+ *
+ * @return Whether the createTime field is set.
+ */
+ public boolean hasCreateTime() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+ /**
+ *
+ *
+ * + * The time the operation was created. + *+ * + *
.google.protobuf.Timestamp create_time = 1;
+ *
+ * @return The createTime.
+ */
+ public com.google.protobuf.Timestamp getCreateTime() {
+ if (createTimeBuilder_ == null) {
+ return createTime_ == null
+ ? com.google.protobuf.Timestamp.getDefaultInstance()
+ : createTime_;
+ } else {
+ return createTimeBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ * + * The time the operation was created. + *+ * + *
.google.protobuf.Timestamp create_time = 1;
+ */
+ public Builder setCreateTime(com.google.protobuf.Timestamp value) {
+ if (createTimeBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ createTime_ = value;
+ } else {
+ createTimeBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The time the operation was created. + *+ * + *
.google.protobuf.Timestamp create_time = 1;
+ */
+ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) {
+ if (createTimeBuilder_ == null) {
+ createTime_ = builderForValue.build();
+ } else {
+ createTimeBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The time the operation was created. + *+ * + *
.google.protobuf.Timestamp create_time = 1;
+ */
+ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) {
+ if (createTimeBuilder_ == null) {
+ if (((bitField0_ & 0x00000001) != 0)
+ && createTime_ != null
+ && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
+ getCreateTimeBuilder().mergeFrom(value);
+ } else {
+ createTime_ = value;
+ }
+ } else {
+ createTimeBuilder_.mergeFrom(value);
+ }
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The time the operation was created. + *+ * + *
.google.protobuf.Timestamp create_time = 1;
+ */
+ public Builder clearCreateTime() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ createTime_ = null;
+ if (createTimeBuilder_ != null) {
+ createTimeBuilder_.dispose();
+ createTimeBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The time the operation was created. + *+ * + *
.google.protobuf.Timestamp create_time = 1;
+ */
+ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() {
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return getCreateTimeFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * The time the operation was created. + *+ * + *
.google.protobuf.Timestamp create_time = 1;
+ */
+ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() {
+ if (createTimeBuilder_ != null) {
+ return createTimeBuilder_.getMessageOrBuilder();
+ } else {
+ return createTime_ == null
+ ? com.google.protobuf.Timestamp.getDefaultInstance()
+ : createTime_;
+ }
+ }
+ /**
+ *
+ *
+ * + * The time the operation was created. + *+ * + *
.google.protobuf.Timestamp create_time = 1;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Timestamp,
+ com.google.protobuf.Timestamp.Builder,
+ com.google.protobuf.TimestampOrBuilder>
+ getCreateTimeFieldBuilder() {
+ if (createTimeBuilder_ == null) {
+ createTimeBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Timestamp,
+ com.google.protobuf.Timestamp.Builder,
+ com.google.protobuf.TimestampOrBuilder>(
+ getCreateTime(), getParentForChildren(), isClean());
+ createTime_ = null;
+ }
+ return createTimeBuilder_;
+ }
+
+ private com.google.protobuf.Timestamp endTime_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Timestamp,
+ com.google.protobuf.Timestamp.Builder,
+ com.google.protobuf.TimestampOrBuilder>
+ endTimeBuilder_;
+ /**
+ *
+ *
+ * + * The time the operation finished running. + *+ * + *
.google.protobuf.Timestamp end_time = 2;
+ *
+ * @return Whether the endTime field is set.
+ */
+ public boolean hasEndTime() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+ /**
+ *
+ *
+ * + * The time the operation finished running. + *+ * + *
.google.protobuf.Timestamp end_time = 2;
+ *
+ * @return The endTime.
+ */
+ public com.google.protobuf.Timestamp getEndTime() {
+ if (endTimeBuilder_ == null) {
+ return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_;
+ } else {
+ return endTimeBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ * + * The time the operation finished running. + *+ * + *
.google.protobuf.Timestamp end_time = 2;
+ */
+ public Builder setEndTime(com.google.protobuf.Timestamp value) {
+ if (endTimeBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ endTime_ = value;
+ } else {
+ endTimeBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The time the operation finished running. + *+ * + *
.google.protobuf.Timestamp end_time = 2;
+ */
+ public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) {
+ if (endTimeBuilder_ == null) {
+ endTime_ = builderForValue.build();
+ } else {
+ endTimeBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The time the operation finished running. + *+ * + *
.google.protobuf.Timestamp end_time = 2;
+ */
+ public Builder mergeEndTime(com.google.protobuf.Timestamp value) {
+ if (endTimeBuilder_ == null) {
+ if (((bitField0_ & 0x00000002) != 0)
+ && endTime_ != null
+ && endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
+ getEndTimeBuilder().mergeFrom(value);
+ } else {
+ endTime_ = value;
+ }
+ } else {
+ endTimeBuilder_.mergeFrom(value);
+ }
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The time the operation finished running. + *+ * + *
.google.protobuf.Timestamp end_time = 2;
+ */
+ public Builder clearEndTime() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ endTime_ = null;
+ if (endTimeBuilder_ != null) {
+ endTimeBuilder_.dispose();
+ endTimeBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The time the operation finished running. + *+ * + *
.google.protobuf.Timestamp end_time = 2;
+ */
+ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() {
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return getEndTimeFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * The time the operation finished running. + *+ * + *
.google.protobuf.Timestamp end_time = 2;
+ */
+ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
+ if (endTimeBuilder_ != null) {
+ return endTimeBuilder_.getMessageOrBuilder();
+ } else {
+ return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_;
+ }
+ }
+ /**
+ *
+ *
+ * + * The time the operation finished running. + *+ * + *
.google.protobuf.Timestamp end_time = 2;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Timestamp,
+ com.google.protobuf.Timestamp.Builder,
+ com.google.protobuf.TimestampOrBuilder>
+ getEndTimeFieldBuilder() {
+ if (endTimeBuilder_ == null) {
+ endTimeBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Timestamp,
+ com.google.protobuf.Timestamp.Builder,
+ com.google.protobuf.TimestampOrBuilder>(
+ getEndTime(), getParentForChildren(), isClean());
+ endTime_ = null;
+ }
+ return endTimeBuilder_;
+ }
+
+ private com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsRequest request_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsRequest,
+ com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsRequest.Builder,
+ com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsRequestOrBuilder>
+ requestBuilder_;
+ /**
+ *
+ *
+ * + * The original request for bulk delete. + *+ * + *
.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsRequest request = 3;
+ *
+ *
+ * @return Whether the request field is set.
+ */
+ public boolean hasRequest() {
+ return ((bitField0_ & 0x00000004) != 0);
+ }
+ /**
+ *
+ *
+ * + * The original request for bulk delete. + *+ * + *
.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsRequest request = 3;
+ *
+ *
+ * @return The request.
+ */
+ public com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsRequest getRequest() {
+ if (requestBuilder_ == null) {
+ return request_ == null
+ ? com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsRequest
+ .getDefaultInstance()
+ : request_;
+ } else {
+ return requestBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ * + * The original request for bulk delete. + *+ * + *
.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsRequest request = 3;
+ *
+ */
+ public Builder setRequest(
+ com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsRequest value) {
+ if (requestBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ request_ = value;
+ } else {
+ requestBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The original request for bulk delete. + *+ * + *
.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsRequest request = 3;
+ *
+ */
+ public Builder setRequest(
+ com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsRequest.Builder
+ builderForValue) {
+ if (requestBuilder_ == null) {
+ request_ = builderForValue.build();
+ } else {
+ requestBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The original request for bulk delete. + *+ * + *
.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsRequest request = 3;
+ *
+ */
+ public Builder mergeRequest(
+ com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsRequest value) {
+ if (requestBuilder_ == null) {
+ if (((bitField0_ & 0x00000004) != 0)
+ && request_ != null
+ && request_
+ != com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsRequest
+ .getDefaultInstance()) {
+ getRequestBuilder().mergeFrom(value);
+ } else {
+ request_ = value;
+ }
+ } else {
+ requestBuilder_.mergeFrom(value);
+ }
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The original request for bulk delete. + *+ * + *
.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsRequest request = 3;
+ *
+ */
+ public Builder clearRequest() {
+ bitField0_ = (bitField0_ & ~0x00000004);
+ request_ = null;
+ if (requestBuilder_ != null) {
+ requestBuilder_.dispose();
+ requestBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The original request for bulk delete. + *+ * + *
.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsRequest request = 3;
+ *
+ */
+ public com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsRequest.Builder
+ getRequestBuilder() {
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return getRequestFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * The original request for bulk delete. + *+ * + *
.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsRequest request = 3;
+ *
+ */
+ public com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsRequestOrBuilder
+ getRequestOrBuilder() {
+ if (requestBuilder_ != null) {
+ return requestBuilder_.getMessageOrBuilder();
+ } else {
+ return request_ == null
+ ? com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsRequest
+ .getDefaultInstance()
+ : request_;
+ }
+ }
+ /**
+ *
+ *
+ * + * The original request for bulk delete. + *+ * + *
.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsRequest request = 3;
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsRequest,
+ com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsRequest.Builder,
+ com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsRequestOrBuilder>
+ getRequestFieldBuilder() {
+ if (requestBuilder_ == null) {
+ requestBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsRequest,
+ com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsRequest.Builder,
+ com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsRequestOrBuilder>(
+ getRequest(), getParentForChildren(), isClean());
+ request_ = null;
+ }
+ return requestBuilder_;
+ }
+
+ private java.util.List+ * Partial errors during bulk delete conversations operation that might cause + * the operation output to be incomplete. + *+ * + *
repeated .google.rpc.Status partial_errors = 4;
+ */
+ public java.util.List+ * Partial errors during bulk delete conversations operation that might cause + * the operation output to be incomplete. + *+ * + *
repeated .google.rpc.Status partial_errors = 4;
+ */
+ public int getPartialErrorsCount() {
+ if (partialErrorsBuilder_ == null) {
+ return partialErrors_.size();
+ } else {
+ return partialErrorsBuilder_.getCount();
+ }
+ }
+ /**
+ *
+ *
+ * + * Partial errors during bulk delete conversations operation that might cause + * the operation output to be incomplete. + *+ * + *
repeated .google.rpc.Status partial_errors = 4;
+ */
+ public com.google.rpc.Status getPartialErrors(int index) {
+ if (partialErrorsBuilder_ == null) {
+ return partialErrors_.get(index);
+ } else {
+ return partialErrorsBuilder_.getMessage(index);
+ }
+ }
+ /**
+ *
+ *
+ * + * Partial errors during bulk delete conversations operation that might cause + * the operation output to be incomplete. + *+ * + *
repeated .google.rpc.Status partial_errors = 4;
+ */
+ public Builder setPartialErrors(int index, com.google.rpc.Status value) {
+ if (partialErrorsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensurePartialErrorsIsMutable();
+ partialErrors_.set(index, value);
+ onChanged();
+ } else {
+ partialErrorsBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Partial errors during bulk delete conversations operation that might cause + * the operation output to be incomplete. + *+ * + *
repeated .google.rpc.Status partial_errors = 4;
+ */
+ public Builder setPartialErrors(int index, com.google.rpc.Status.Builder builderForValue) {
+ if (partialErrorsBuilder_ == null) {
+ ensurePartialErrorsIsMutable();
+ partialErrors_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ partialErrorsBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Partial errors during bulk delete conversations operation that might cause + * the operation output to be incomplete. + *+ * + *
repeated .google.rpc.Status partial_errors = 4;
+ */
+ public Builder addPartialErrors(com.google.rpc.Status value) {
+ if (partialErrorsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensurePartialErrorsIsMutable();
+ partialErrors_.add(value);
+ onChanged();
+ } else {
+ partialErrorsBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Partial errors during bulk delete conversations operation that might cause + * the operation output to be incomplete. + *+ * + *
repeated .google.rpc.Status partial_errors = 4;
+ */
+ public Builder addPartialErrors(int index, com.google.rpc.Status value) {
+ if (partialErrorsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensurePartialErrorsIsMutable();
+ partialErrors_.add(index, value);
+ onChanged();
+ } else {
+ partialErrorsBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Partial errors during bulk delete conversations operation that might cause + * the operation output to be incomplete. + *+ * + *
repeated .google.rpc.Status partial_errors = 4;
+ */
+ public Builder addPartialErrors(com.google.rpc.Status.Builder builderForValue) {
+ if (partialErrorsBuilder_ == null) {
+ ensurePartialErrorsIsMutable();
+ partialErrors_.add(builderForValue.build());
+ onChanged();
+ } else {
+ partialErrorsBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Partial errors during bulk delete conversations operation that might cause + * the operation output to be incomplete. + *+ * + *
repeated .google.rpc.Status partial_errors = 4;
+ */
+ public Builder addPartialErrors(int index, com.google.rpc.Status.Builder builderForValue) {
+ if (partialErrorsBuilder_ == null) {
+ ensurePartialErrorsIsMutable();
+ partialErrors_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ partialErrorsBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Partial errors during bulk delete conversations operation that might cause + * the operation output to be incomplete. + *+ * + *
repeated .google.rpc.Status partial_errors = 4;
+ */
+ public Builder addAllPartialErrors(java.lang.Iterable extends com.google.rpc.Status> values) {
+ if (partialErrorsBuilder_ == null) {
+ ensurePartialErrorsIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, partialErrors_);
+ onChanged();
+ } else {
+ partialErrorsBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Partial errors during bulk delete conversations operation that might cause + * the operation output to be incomplete. + *+ * + *
repeated .google.rpc.Status partial_errors = 4;
+ */
+ public Builder clearPartialErrors() {
+ if (partialErrorsBuilder_ == null) {
+ partialErrors_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000008);
+ onChanged();
+ } else {
+ partialErrorsBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Partial errors during bulk delete conversations operation that might cause + * the operation output to be incomplete. + *+ * + *
repeated .google.rpc.Status partial_errors = 4;
+ */
+ public Builder removePartialErrors(int index) {
+ if (partialErrorsBuilder_ == null) {
+ ensurePartialErrorsIsMutable();
+ partialErrors_.remove(index);
+ onChanged();
+ } else {
+ partialErrorsBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Partial errors during bulk delete conversations operation that might cause + * the operation output to be incomplete. + *+ * + *
repeated .google.rpc.Status partial_errors = 4;
+ */
+ public com.google.rpc.Status.Builder getPartialErrorsBuilder(int index) {
+ return getPartialErrorsFieldBuilder().getBuilder(index);
+ }
+ /**
+ *
+ *
+ * + * Partial errors during bulk delete conversations operation that might cause + * the operation output to be incomplete. + *+ * + *
repeated .google.rpc.Status partial_errors = 4;
+ */
+ public com.google.rpc.StatusOrBuilder getPartialErrorsOrBuilder(int index) {
+ if (partialErrorsBuilder_ == null) {
+ return partialErrors_.get(index);
+ } else {
+ return partialErrorsBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ *
+ *
+ * + * Partial errors during bulk delete conversations operation that might cause + * the operation output to be incomplete. + *+ * + *
repeated .google.rpc.Status partial_errors = 4;
+ */
+ public java.util.List extends com.google.rpc.StatusOrBuilder>
+ getPartialErrorsOrBuilderList() {
+ if (partialErrorsBuilder_ != null) {
+ return partialErrorsBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(partialErrors_);
+ }
+ }
+ /**
+ *
+ *
+ * + * Partial errors during bulk delete conversations operation that might cause + * the operation output to be incomplete. + *+ * + *
repeated .google.rpc.Status partial_errors = 4;
+ */
+ public com.google.rpc.Status.Builder addPartialErrorsBuilder() {
+ return getPartialErrorsFieldBuilder().addBuilder(com.google.rpc.Status.getDefaultInstance());
+ }
+ /**
+ *
+ *
+ * + * Partial errors during bulk delete conversations operation that might cause + * the operation output to be incomplete. + *+ * + *
repeated .google.rpc.Status partial_errors = 4;
+ */
+ public com.google.rpc.Status.Builder addPartialErrorsBuilder(int index) {
+ return getPartialErrorsFieldBuilder()
+ .addBuilder(index, com.google.rpc.Status.getDefaultInstance());
+ }
+ /**
+ *
+ *
+ * + * Partial errors during bulk delete conversations operation that might cause + * the operation output to be incomplete. + *+ * + *
repeated .google.rpc.Status partial_errors = 4;
+ */
+ public java.util.List+ * The time the operation was created. + *+ * + *
.google.protobuf.Timestamp create_time = 1;
+ *
+ * @return Whether the createTime field is set.
+ */
+ boolean hasCreateTime();
+ /**
+ *
+ *
+ * + * The time the operation was created. + *+ * + *
.google.protobuf.Timestamp create_time = 1;
+ *
+ * @return The createTime.
+ */
+ com.google.protobuf.Timestamp getCreateTime();
+ /**
+ *
+ *
+ * + * The time the operation was created. + *+ * + *
.google.protobuf.Timestamp create_time = 1;
+ */
+ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder();
+
+ /**
+ *
+ *
+ * + * The time the operation finished running. + *+ * + *
.google.protobuf.Timestamp end_time = 2;
+ *
+ * @return Whether the endTime field is set.
+ */
+ boolean hasEndTime();
+ /**
+ *
+ *
+ * + * The time the operation finished running. + *+ * + *
.google.protobuf.Timestamp end_time = 2;
+ *
+ * @return The endTime.
+ */
+ com.google.protobuf.Timestamp getEndTime();
+ /**
+ *
+ *
+ * + * The time the operation finished running. + *+ * + *
.google.protobuf.Timestamp end_time = 2;
+ */
+ com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder();
+
+ /**
+ *
+ *
+ * + * The original request for bulk delete. + *+ * + *
.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsRequest request = 3;
+ *
+ * @return Whether the request field is set.
+ */
+ boolean hasRequest();
+ /**
+ *
+ *
+ * + * The original request for bulk delete. + *+ * + *
.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsRequest request = 3;
+ *
+ * @return The request.
+ */
+ com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsRequest getRequest();
+ /**
+ *
+ *
+ * + * The original request for bulk delete. + *+ * + *
.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsRequest request = 3;
+ */
+ com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsRequestOrBuilder
+ getRequestOrBuilder();
+
+ /**
+ *
+ *
+ * + * Partial errors during bulk delete conversations operation that might cause + * the operation output to be incomplete. + *+ * + *
repeated .google.rpc.Status partial_errors = 4;
+ */
+ java.util.List+ * Partial errors during bulk delete conversations operation that might cause + * the operation output to be incomplete. + *+ * + *
repeated .google.rpc.Status partial_errors = 4;
+ */
+ com.google.rpc.Status getPartialErrors(int index);
+ /**
+ *
+ *
+ * + * Partial errors during bulk delete conversations operation that might cause + * the operation output to be incomplete. + *+ * + *
repeated .google.rpc.Status partial_errors = 4;
+ */
+ int getPartialErrorsCount();
+ /**
+ *
+ *
+ * + * Partial errors during bulk delete conversations operation that might cause + * the operation output to be incomplete. + *+ * + *
repeated .google.rpc.Status partial_errors = 4;
+ */
+ java.util.List extends com.google.rpc.StatusOrBuilder> getPartialErrorsOrBuilderList();
+ /**
+ *
+ *
+ * + * Partial errors during bulk delete conversations operation that might cause + * the operation output to be incomplete. + *+ * + *
repeated .google.rpc.Status partial_errors = 4;
+ */
+ com.google.rpc.StatusOrBuilder getPartialErrorsOrBuilder(int index);
+}
diff --git a/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/BulkDeleteConversationsRequest.java b/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/BulkDeleteConversationsRequest.java
new file mode 100644
index 000000000000..6b6883dbc1c3
--- /dev/null
+++ b/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/BulkDeleteConversationsRequest.java
@@ -0,0 +1,1050 @@
+/*
+ * 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/contactcenterinsights/v1/contact_center_insights.proto
+
+package com.google.cloud.contactcenterinsights.v1;
+
+/**
+ *
+ *
+ * + * The request to delete conversations in bulk. + *+ * + * Protobuf type {@code google.cloud.contactcenterinsights.v1.BulkDeleteConversationsRequest} + */ +public final class BulkDeleteConversationsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.contactcenterinsights.v1.BulkDeleteConversationsRequest) + BulkDeleteConversationsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use BulkDeleteConversationsRequest.newBuilder() to construct. + private BulkDeleteConversationsRequest( + com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private BulkDeleteConversationsRequest() { + parent_ = ""; + filter_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new BulkDeleteConversationsRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.contactcenterinsights.v1.ContactCenterInsightsProto + .internal_static_google_cloud_contactcenterinsights_v1_BulkDeleteConversationsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.contactcenterinsights.v1.ContactCenterInsightsProto + .internal_static_google_cloud_contactcenterinsights_v1_BulkDeleteConversationsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsRequest.class, + com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
+ * Required. The parent resource to create analyses in.
+ * Format:
+ * projects/{project}/locations/{location}
+ *
+ *
+ *
+ * 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 parent resource to create analyses in.
+ * Format:
+ * projects/{project}/locations/{location}
+ *
+ *
+ *
+ * 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 FILTER_FIELD_NUMBER = 2;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object filter_ = "";
+ /**
+ *
+ *
+ * + * Filter used to select the subset of conversations to analyze. + *+ * + *
string filter = 2;
+ *
+ * @return The filter.
+ */
+ @java.lang.Override
+ public java.lang.String getFilter() {
+ java.lang.Object ref = filter_;
+ 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();
+ filter_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * Filter used to select the subset of conversations to analyze. + *+ * + *
string filter = 2;
+ *
+ * @return The bytes for filter.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getFilterBytes() {
+ java.lang.Object ref = filter_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ filter_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int MAX_DELETE_COUNT_FIELD_NUMBER = 3;
+ private int maxDeleteCount_ = 0;
+ /**
+ *
+ *
+ * + * Maximum number of conversations to delete. The default is 1000. It can be + * changed by setting the `max_delete_count` field. + *+ * + *
int32 max_delete_count = 3;
+ *
+ * @return The maxDeleteCount.
+ */
+ @java.lang.Override
+ public int getMaxDeleteCount() {
+ return maxDeleteCount_;
+ }
+
+ public static final int FORCE_FIELD_NUMBER = 4;
+ private boolean force_ = false;
+ /**
+ *
+ *
+ * + * If set to true, all of this conversation's analyses will also be deleted. + * Otherwise, the request will only succeed if the conversation has no + * analyses. + *+ * + *
bool force = 4;
+ *
+ * @return The force.
+ */
+ @java.lang.Override
+ public boolean getForce() {
+ return force_;
+ }
+
+ 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, filter_);
+ }
+ if (maxDeleteCount_ != 0) {
+ output.writeInt32(3, maxDeleteCount_);
+ }
+ if (force_ != false) {
+ output.writeBool(4, force_);
+ }
+ 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, filter_);
+ }
+ if (maxDeleteCount_ != 0) {
+ size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, maxDeleteCount_);
+ }
+ if (force_ != false) {
+ size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, force_);
+ }
+ 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.contactcenterinsights.v1.BulkDeleteConversationsRequest)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsRequest other =
+ (com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsRequest) obj;
+
+ if (!getParent().equals(other.getParent())) return false;
+ if (!getFilter().equals(other.getFilter())) return false;
+ if (getMaxDeleteCount() != other.getMaxDeleteCount()) return false;
+ if (getForce() != other.getForce()) 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) + PARENT_FIELD_NUMBER;
+ hash = (53 * hash) + getParent().hashCode();
+ hash = (37 * hash) + FILTER_FIELD_NUMBER;
+ hash = (53 * hash) + getFilter().hashCode();
+ hash = (37 * hash) + MAX_DELETE_COUNT_FIELD_NUMBER;
+ hash = (53 * hash) + getMaxDeleteCount();
+ hash = (37 * hash) + FORCE_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getForce());
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsRequest parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsRequest 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.contactcenterinsights.v1.BulkDeleteConversationsRequest parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsRequest 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.contactcenterinsights.v1.BulkDeleteConversationsRequest parseFrom(
+ byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsRequest parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsRequest parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsRequest 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.contactcenterinsights.v1.BulkDeleteConversationsRequest
+ parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsRequest
+ 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.contactcenterinsights.v1.BulkDeleteConversationsRequest parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsRequest 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.contactcenterinsights.v1.BulkDeleteConversationsRequest 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 to delete conversations in bulk. + *+ * + * Protobuf type {@code google.cloud.contactcenterinsights.v1.BulkDeleteConversationsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * Required. The parent resource to create analyses in.
+ * Format:
+ * projects/{project}/locations/{location}
+ *
+ *
+ *
+ * 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 parent resource to create analyses in.
+ * Format:
+ * projects/{project}/locations/{location}
+ *
+ *
+ *
+ * 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 parent resource to create analyses in.
+ * Format:
+ * projects/{project}/locations/{location}
+ *
+ *
+ *
+ * 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 parent resource to create analyses in.
+ * Format:
+ * projects/{project}/locations/{location}
+ *
+ *
+ *
+ * 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 parent resource to create analyses in.
+ * Format:
+ * projects/{project}/locations/{location}
+ *
+ *
+ *
+ * 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 java.lang.Object filter_ = "";
+ /**
+ *
+ *
+ * + * Filter used to select the subset of conversations to analyze. + *+ * + *
string filter = 2;
+ *
+ * @return The filter.
+ */
+ public java.lang.String getFilter() {
+ java.lang.Object ref = filter_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ filter_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Filter used to select the subset of conversations to analyze. + *+ * + *
string filter = 2;
+ *
+ * @return The bytes for filter.
+ */
+ public com.google.protobuf.ByteString getFilterBytes() {
+ java.lang.Object ref = filter_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ filter_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Filter used to select the subset of conversations to analyze. + *+ * + *
string filter = 2;
+ *
+ * @param value The filter to set.
+ * @return This builder for chaining.
+ */
+ public Builder setFilter(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ filter_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Filter used to select the subset of conversations to analyze. + *+ * + *
string filter = 2;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearFilter() {
+ filter_ = getDefaultInstance().getFilter();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Filter used to select the subset of conversations to analyze. + *+ * + *
string filter = 2;
+ *
+ * @param value The bytes for filter to set.
+ * @return This builder for chaining.
+ */
+ public Builder setFilterBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ filter_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ private int maxDeleteCount_;
+ /**
+ *
+ *
+ * + * Maximum number of conversations to delete. The default is 1000. It can be + * changed by setting the `max_delete_count` field. + *+ * + *
int32 max_delete_count = 3;
+ *
+ * @return The maxDeleteCount.
+ */
+ @java.lang.Override
+ public int getMaxDeleteCount() {
+ return maxDeleteCount_;
+ }
+ /**
+ *
+ *
+ * + * Maximum number of conversations to delete. The default is 1000. It can be + * changed by setting the `max_delete_count` field. + *+ * + *
int32 max_delete_count = 3;
+ *
+ * @param value The maxDeleteCount to set.
+ * @return This builder for chaining.
+ */
+ public Builder setMaxDeleteCount(int value) {
+
+ maxDeleteCount_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Maximum number of conversations to delete. The default is 1000. It can be + * changed by setting the `max_delete_count` field. + *+ * + *
int32 max_delete_count = 3;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearMaxDeleteCount() {
+ bitField0_ = (bitField0_ & ~0x00000004);
+ maxDeleteCount_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private boolean force_;
+ /**
+ *
+ *
+ * + * If set to true, all of this conversation's analyses will also be deleted. + * Otherwise, the request will only succeed if the conversation has no + * analyses. + *+ * + *
bool force = 4;
+ *
+ * @return The force.
+ */
+ @java.lang.Override
+ public boolean getForce() {
+ return force_;
+ }
+ /**
+ *
+ *
+ * + * If set to true, all of this conversation's analyses will also be deleted. + * Otherwise, the request will only succeed if the conversation has no + * analyses. + *+ * + *
bool force = 4;
+ *
+ * @param value The force to set.
+ * @return This builder for chaining.
+ */
+ public Builder setForce(boolean value) {
+
+ force_ = value;
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * If set to true, all of this conversation's analyses will also be deleted. + * Otherwise, the request will only succeed if the conversation has no + * analyses. + *+ * + *
bool force = 4;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearForce() {
+ bitField0_ = (bitField0_ & ~0x00000008);
+ force_ = false;
+ 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.contactcenterinsights.v1.BulkDeleteConversationsRequest)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.contactcenterinsights.v1.BulkDeleteConversationsRequest)
+ private static final com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsRequest
+ DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE =
+ new com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsRequest();
+ }
+
+ public static com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsRequest
+ getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ * Required. The parent resource to create analyses in.
+ * Format:
+ * projects/{project}/locations/{location}
+ *
+ *
+ *
+ * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The parent.
+ */
+ java.lang.String getParent();
+ /**
+ *
+ *
+ *
+ * Required. The parent resource to create analyses in.
+ * Format:
+ * projects/{project}/locations/{location}
+ *
+ *
+ *
+ * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The bytes for parent.
+ */
+ com.google.protobuf.ByteString getParentBytes();
+
+ /**
+ *
+ *
+ * + * Filter used to select the subset of conversations to analyze. + *+ * + *
string filter = 2;
+ *
+ * @return The filter.
+ */
+ java.lang.String getFilter();
+ /**
+ *
+ *
+ * + * Filter used to select the subset of conversations to analyze. + *+ * + *
string filter = 2;
+ *
+ * @return The bytes for filter.
+ */
+ com.google.protobuf.ByteString getFilterBytes();
+
+ /**
+ *
+ *
+ * + * Maximum number of conversations to delete. The default is 1000. It can be + * changed by setting the `max_delete_count` field. + *+ * + *
int32 max_delete_count = 3;
+ *
+ * @return The maxDeleteCount.
+ */
+ int getMaxDeleteCount();
+
+ /**
+ *
+ *
+ * + * If set to true, all of this conversation's analyses will also be deleted. + * Otherwise, the request will only succeed if the conversation has no + * analyses. + *+ * + *
bool force = 4;
+ *
+ * @return The force.
+ */
+ boolean getForce();
+}
diff --git a/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/BulkDeleteConversationsResponse.java b/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/BulkDeleteConversationsResponse.java
new file mode 100644
index 000000000000..a9a1c2c62acc
--- /dev/null
+++ b/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/BulkDeleteConversationsResponse.java
@@ -0,0 +1,450 @@
+/*
+ * 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/contactcenterinsights/v1/contact_center_insights.proto
+
+package com.google.cloud.contactcenterinsights.v1;
+
+/**
+ *
+ *
+ * + * The response for a bulk analyze conversations operation. + *+ * + * Protobuf type {@code google.cloud.contactcenterinsights.v1.BulkDeleteConversationsResponse} + */ +public final class BulkDeleteConversationsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.contactcenterinsights.v1.BulkDeleteConversationsResponse) + BulkDeleteConversationsResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use BulkDeleteConversationsResponse.newBuilder() to construct. + private BulkDeleteConversationsResponse( + com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private BulkDeleteConversationsResponse() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new BulkDeleteConversationsResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.contactcenterinsights.v1.ContactCenterInsightsProto + .internal_static_google_cloud_contactcenterinsights_v1_BulkDeleteConversationsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.contactcenterinsights.v1.ContactCenterInsightsProto + .internal_static_google_cloud_contactcenterinsights_v1_BulkDeleteConversationsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsResponse.class, + com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsResponse.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.contactcenterinsights.v1.BulkDeleteConversationsResponse)) { + return super.equals(obj); + } + com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsResponse other = + (com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsResponse) 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.contactcenterinsights.v1.BulkDeleteConversationsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsResponse 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.contactcenterinsights.v1.BulkDeleteConversationsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsResponse 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.contactcenterinsights.v1.BulkDeleteConversationsResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsResponse 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.contactcenterinsights.v1.BulkDeleteConversationsResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsResponse + 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.contactcenterinsights.v1.BulkDeleteConversationsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsResponse 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.contactcenterinsights.v1.BulkDeleteConversationsResponse 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 for a bulk analyze conversations operation. + *+ * + * Protobuf type {@code google.cloud.contactcenterinsights.v1.BulkDeleteConversationsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * Optional. Specifies the type of the objects in `bucket_uri`. + *+ * + *
+ * .google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSource.BucketObjectType bucket_object_type = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The enum numeric value on the wire for bucketObjectType.
+ */
+ int getBucketObjectTypeValue();
+ /**
+ *
+ *
+ * + * Optional. Specifies the type of the objects in `bucket_uri`. + *+ * + *
+ * .google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSource.BucketObjectType bucket_object_type = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The bucketObjectType.
+ */
+ com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSource.BucketObjectType
+ getBucketObjectType();
}
/**
*
@@ -114,6 +144,7 @@ private GcsSource(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
private GcsSource() {
bucketUri_ = "";
+ bucketObjectType_ = 0;
}
@java.lang.Override
@@ -138,6 +169,164 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
.class);
}
+ /**
+ * Protobuf enum {@code
+ * google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSource.BucketObjectType}
+ */
+ public enum BucketObjectType implements com.google.protobuf.ProtocolMessageEnum {
+ /**
+ *
+ *
+ * + * The object type is unspecified and will default to TRANSCRIPT. + *+ * + *
BUCKET_OBJECT_TYPE_UNSPECIFIED = 0;
+ */
+ BUCKET_OBJECT_TYPE_UNSPECIFIED(0),
+ /**
+ *
+ *
+ * + * The object is a transcript. + *+ * + *
TRANSCRIPT = 1;
+ */
+ TRANSCRIPT(1),
+ /**
+ *
+ *
+ * + * The object is an audio file. + *+ * + *
AUDIO = 2;
+ */
+ AUDIO(2),
+ UNRECOGNIZED(-1),
+ ;
+
+ /**
+ *
+ *
+ * + * The object type is unspecified and will default to TRANSCRIPT. + *+ * + *
BUCKET_OBJECT_TYPE_UNSPECIFIED = 0;
+ */
+ public static final int BUCKET_OBJECT_TYPE_UNSPECIFIED_VALUE = 0;
+ /**
+ *
+ *
+ * + * The object is a transcript. + *+ * + *
TRANSCRIPT = 1;
+ */
+ public static final int TRANSCRIPT_VALUE = 1;
+ /**
+ *
+ *
+ * + * The object is an audio file. + *+ * + *
AUDIO = 2;
+ */
+ public static final int AUDIO_VALUE = 2;
+
+ 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 BucketObjectType 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 BucketObjectType forNumber(int value) {
+ switch (value) {
+ case 0:
+ return BUCKET_OBJECT_TYPE_UNSPECIFIED;
+ case 1:
+ return TRANSCRIPT;
+ case 2:
+ return AUDIO;
+ default:
+ return null;
+ }
+ }
+
+ public static com.google.protobuf.Internal.EnumLiteMap+ * Optional. Specifies the type of the objects in `bucket_uri`. + *+ * + *
+ * .google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSource.BucketObjectType bucket_object_type = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The enum numeric value on the wire for bucketObjectType.
+ */
+ @java.lang.Override
+ public int getBucketObjectTypeValue() {
+ return bucketObjectType_;
+ }
+ /**
+ *
+ *
+ * + * Optional. Specifies the type of the objects in `bucket_uri`. + *+ * + *
+ * .google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSource.BucketObjectType bucket_object_type = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The bucketObjectType.
+ */
+ @java.lang.Override
+ public com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSource
+ .BucketObjectType
+ getBucketObjectType() {
+ com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSource
+ .BucketObjectType
+ result =
+ com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSource
+ .BucketObjectType.forNumber(bucketObjectType_);
+ return result == null
+ ? com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSource
+ .BucketObjectType.UNRECOGNIZED
+ : result;
+ }
+
private byte memoizedIsInitialized = -1;
@java.lang.Override
@@ -206,6 +442,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(bucketUri_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, bucketUri_);
}
+ if (bucketObjectType_
+ != com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSource
+ .BucketObjectType.BUCKET_OBJECT_TYPE_UNSPECIFIED
+ .getNumber()) {
+ output.writeEnum(2, bucketObjectType_);
+ }
getUnknownFields().writeTo(output);
}
@@ -218,6 +460,12 @@ public int getSerializedSize() {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(bucketUri_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, bucketUri_);
}
+ if (bucketObjectType_
+ != com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSource
+ .BucketObjectType.BUCKET_OBJECT_TYPE_UNSPECIFIED
+ .getNumber()) {
+ size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, bucketObjectType_);
+ }
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
@@ -237,6 +485,7 @@ public boolean equals(final java.lang.Object obj) {
(com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSource) obj;
if (!getBucketUri().equals(other.getBucketUri())) return false;
+ if (bucketObjectType_ != other.bucketObjectType_) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@@ -250,6 +499,8 @@ public int hashCode() {
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + BUCKET_URI_FIELD_NUMBER;
hash = (53 * hash) + getBucketUri().hashCode();
+ hash = (37 * hash) + BUCKET_OBJECT_TYPE_FIELD_NUMBER;
+ hash = (53 * hash) + bucketObjectType_;
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
@@ -403,6 +654,7 @@ public Builder clear() {
super.clear();
bitField0_ = 0;
bucketUri_ = "";
+ bucketObjectType_ = 0;
return this;
}
@@ -449,6 +701,9 @@ private void buildPartial0(
if (((from_bitField0_ & 0x00000001) != 0)) {
result.bucketUri_ = bucketUri_;
}
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.bucketObjectType_ = bucketObjectType_;
+ }
}
@java.lang.Override
@@ -510,6 +765,9 @@ public Builder mergeFrom(
bitField0_ |= 0x00000001;
onChanged();
}
+ if (other.bucketObjectType_ != 0) {
+ setBucketObjectTypeValue(other.getBucketObjectTypeValue());
+ }
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
@@ -542,6 +800,12 @@ public Builder mergeFrom(
bitField0_ |= 0x00000001;
break;
} // case 10
+ case 16:
+ {
+ bucketObjectType_ = input.readEnum();
+ bitField0_ |= 0x00000002;
+ break;
+ } // case 16
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
@@ -667,6 +931,117 @@ public Builder setBucketUriBytes(com.google.protobuf.ByteString value) {
return this;
}
+ private int bucketObjectType_ = 0;
+ /**
+ *
+ *
+ * + * Optional. Specifies the type of the objects in `bucket_uri`. + *+ * + *
+ * .google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSource.BucketObjectType bucket_object_type = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The enum numeric value on the wire for bucketObjectType.
+ */
+ @java.lang.Override
+ public int getBucketObjectTypeValue() {
+ return bucketObjectType_;
+ }
+ /**
+ *
+ *
+ * + * Optional. Specifies the type of the objects in `bucket_uri`. + *+ * + *
+ * .google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSource.BucketObjectType bucket_object_type = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @param value The enum numeric value on the wire for bucketObjectType to set.
+ * @return This builder for chaining.
+ */
+ public Builder setBucketObjectTypeValue(int value) {
+ bucketObjectType_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. Specifies the type of the objects in `bucket_uri`. + *+ * + *
+ * .google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSource.BucketObjectType bucket_object_type = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The bucketObjectType.
+ */
+ @java.lang.Override
+ public com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSource
+ .BucketObjectType
+ getBucketObjectType() {
+ com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSource
+ .BucketObjectType
+ result =
+ com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSource
+ .BucketObjectType.forNumber(bucketObjectType_);
+ return result == null
+ ? com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSource
+ .BucketObjectType.UNRECOGNIZED
+ : result;
+ }
+ /**
+ *
+ *
+ * + * Optional. Specifies the type of the objects in `bucket_uri`. + *+ * + *
+ * .google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSource.BucketObjectType bucket_object_type = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @param value The bucketObjectType to set.
+ * @return This builder for chaining.
+ */
+ public Builder setBucketObjectType(
+ com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSource
+ .BucketObjectType
+ value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000002;
+ bucketObjectType_ = value.getNumber();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. Specifies the type of the objects in `bucket_uri`. + *+ * + *
+ * .google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSource.BucketObjectType bucket_object_type = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearBucketObjectType() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ bucketObjectType_ = 0;
+ onChanged();
+ return this;
+ }
+
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
@@ -1466,6 +1841,36 @@ public interface ConversationConfigOrBuilder
* @return The bytes for agentId.
*/
com.google.protobuf.ByteString getAgentIdBytes();
+
+ /**
+ *
+ *
+ * + * Optional. For audio conversations, this field indicates which of the + * channels, 1 or 2, contains the agent. Note that this must be set for + * audio conversations to be properly displayed and analyzed. + *+ * + *
int32 agent_channel = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The agentChannel.
+ */
+ int getAgentChannel();
+
+ /**
+ *
+ *
+ * + * Optional. For audio conversations, this field indicates which of the + * channels, 1 or 2, contains the customer. Note that this must be set for + * audio conversations to be properly displayed and analyzed. + *+ * + *
int32 customer_channel = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The customerChannel.
+ */
+ int getCustomerChannel();
}
/**
*
@@ -1567,6 +1972,46 @@ public com.google.protobuf.ByteString getAgentIdBytes() {
}
}
+ public static final int AGENT_CHANNEL_FIELD_NUMBER = 2;
+ private int agentChannel_ = 0;
+ /**
+ *
+ *
+ * + * Optional. For audio conversations, this field indicates which of the + * channels, 1 or 2, contains the agent. Note that this must be set for + * audio conversations to be properly displayed and analyzed. + *+ * + *
int32 agent_channel = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The agentChannel.
+ */
+ @java.lang.Override
+ public int getAgentChannel() {
+ return agentChannel_;
+ }
+
+ public static final int CUSTOMER_CHANNEL_FIELD_NUMBER = 3;
+ private int customerChannel_ = 0;
+ /**
+ *
+ *
+ * + * Optional. For audio conversations, this field indicates which of the + * channels, 1 or 2, contains the customer. Note that this must be set for + * audio conversations to be properly displayed and analyzed. + *+ * + *
int32 customer_channel = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The customerChannel.
+ */
+ @java.lang.Override
+ public int getCustomerChannel() {
+ return customerChannel_;
+ }
+
private byte memoizedIsInitialized = -1;
@java.lang.Override
@@ -1584,6 +2029,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(agentId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, agentId_);
}
+ if (agentChannel_ != 0) {
+ output.writeInt32(2, agentChannel_);
+ }
+ if (customerChannel_ != 0) {
+ output.writeInt32(3, customerChannel_);
+ }
getUnknownFields().writeTo(output);
}
@@ -1596,7 +2047,13 @@ public int getSerializedSize() {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(agentId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, agentId_);
}
- size += getUnknownFields().getSerializedSize();
+ if (agentChannel_ != 0) {
+ size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, agentChannel_);
+ }
+ if (customerChannel_ != 0) {
+ size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, customerChannel_);
+ }
+ size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@@ -1619,6 +2076,8 @@ public boolean equals(final java.lang.Object obj) {
obj;
if (!getAgentId().equals(other.getAgentId())) return false;
+ if (getAgentChannel() != other.getAgentChannel()) return false;
+ if (getCustomerChannel() != other.getCustomerChannel()) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@@ -1632,6 +2091,10 @@ public int hashCode() {
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + AGENT_ID_FIELD_NUMBER;
hash = (53 * hash) + getAgentId().hashCode();
+ hash = (37 * hash) + AGENT_CHANNEL_FIELD_NUMBER;
+ hash = (53 * hash) + getAgentChannel();
+ hash = (37 * hash) + CUSTOMER_CHANNEL_FIELD_NUMBER;
+ hash = (53 * hash) + getCustomerChannel();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
@@ -1799,6 +2262,8 @@ public Builder clear() {
super.clear();
bitField0_ = 0;
agentId_ = "";
+ agentChannel_ = 0;
+ customerChannel_ = 0;
return this;
}
@@ -1847,6 +2312,12 @@ private void buildPartial0(
if (((from_bitField0_ & 0x00000001) != 0)) {
result.agentId_ = agentId_;
}
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.agentChannel_ = agentChannel_;
+ }
+ if (((from_bitField0_ & 0x00000004) != 0)) {
+ result.customerChannel_ = customerChannel_;
+ }
}
@java.lang.Override
@@ -1911,6 +2382,12 @@ public Builder mergeFrom(
bitField0_ |= 0x00000001;
onChanged();
}
+ if (other.getAgentChannel() != 0) {
+ setAgentChannel(other.getAgentChannel());
+ }
+ if (other.getCustomerChannel() != 0) {
+ setCustomerChannel(other.getCustomerChannel());
+ }
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
@@ -1943,6 +2420,18 @@ public Builder mergeFrom(
bitField0_ |= 0x00000001;
break;
} // case 10
+ case 16:
+ {
+ agentChannel_ = input.readInt32();
+ bitField0_ |= 0x00000002;
+ break;
+ } // case 16
+ case 24:
+ {
+ customerChannel_ = input.readInt32();
+ bitField0_ |= 0x00000004;
+ break;
+ } // case 24
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
@@ -2073,6 +2562,124 @@ public Builder setAgentIdBytes(com.google.protobuf.ByteString value) {
return this;
}
+ private int agentChannel_;
+ /**
+ *
+ *
+ * + * Optional. For audio conversations, this field indicates which of the + * channels, 1 or 2, contains the agent. Note that this must be set for + * audio conversations to be properly displayed and analyzed. + *+ * + *
int32 agent_channel = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The agentChannel.
+ */
+ @java.lang.Override
+ public int getAgentChannel() {
+ return agentChannel_;
+ }
+ /**
+ *
+ *
+ * + * Optional. For audio conversations, this field indicates which of the + * channels, 1 or 2, contains the agent. Note that this must be set for + * audio conversations to be properly displayed and analyzed. + *+ * + *
int32 agent_channel = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param value The agentChannel to set.
+ * @return This builder for chaining.
+ */
+ public Builder setAgentChannel(int value) {
+
+ agentChannel_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. For audio conversations, this field indicates which of the + * channels, 1 or 2, contains the agent. Note that this must be set for + * audio conversations to be properly displayed and analyzed. + *+ * + *
int32 agent_channel = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearAgentChannel() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ agentChannel_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private int customerChannel_;
+ /**
+ *
+ *
+ * + * Optional. For audio conversations, this field indicates which of the + * channels, 1 or 2, contains the customer. Note that this must be set for + * audio conversations to be properly displayed and analyzed. + *+ * + *
int32 customer_channel = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The customerChannel.
+ */
+ @java.lang.Override
+ public int getCustomerChannel() {
+ return customerChannel_;
+ }
+ /**
+ *
+ *
+ * + * Optional. For audio conversations, this field indicates which of the + * channels, 1 or 2, contains the customer. Note that this must be set for + * audio conversations to be properly displayed and analyzed. + *+ * + *
int32 customer_channel = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param value The customerChannel to set.
+ * @return This builder for chaining.
+ */
+ public Builder setCustomerChannel(int value) {
+
+ customerChannel_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. For audio conversations, this field indicates which of the + * channels, 1 or 2, contains the customer. Note that this must be set for + * audio conversations to be properly displayed and analyzed. + *+ * + *
int32 customer_channel = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearCustomerChannel() {
+ bitField0_ = (bitField0_ & ~0x00000004);
+ customerChannel_ = 0;
+ onChanged();
+ return this;
+ }
+
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
@@ -2485,6 +3092,126 @@ public boolean hasConversationConfig() {
: conversationConfig_;
}
+ public static final int REDACTION_CONFIG_FIELD_NUMBER = 5;
+ private com.google.cloud.contactcenterinsights.v1.RedactionConfig redactionConfig_;
+ /**
+ *
+ *
+ * + * Optional. DLP settings for transcript redaction. Optional, will default to + * the config specified in Settings. + *+ * + *
+ * .google.cloud.contactcenterinsights.v1.RedactionConfig redaction_config = 5 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the redactionConfig field is set.
+ */
+ @java.lang.Override
+ public boolean hasRedactionConfig() {
+ return redactionConfig_ != null;
+ }
+ /**
+ *
+ *
+ * + * Optional. DLP settings for transcript redaction. Optional, will default to + * the config specified in Settings. + *+ * + *
+ * .google.cloud.contactcenterinsights.v1.RedactionConfig redaction_config = 5 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The redactionConfig.
+ */
+ @java.lang.Override
+ public com.google.cloud.contactcenterinsights.v1.RedactionConfig getRedactionConfig() {
+ return redactionConfig_ == null
+ ? com.google.cloud.contactcenterinsights.v1.RedactionConfig.getDefaultInstance()
+ : redactionConfig_;
+ }
+ /**
+ *
+ *
+ * + * Optional. DLP settings for transcript redaction. Optional, will default to + * the config specified in Settings. + *+ * + *
+ * .google.cloud.contactcenterinsights.v1.RedactionConfig redaction_config = 5 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.contactcenterinsights.v1.RedactionConfigOrBuilder
+ getRedactionConfigOrBuilder() {
+ return redactionConfig_ == null
+ ? com.google.cloud.contactcenterinsights.v1.RedactionConfig.getDefaultInstance()
+ : redactionConfig_;
+ }
+
+ public static final int SPEECH_CONFIG_FIELD_NUMBER = 6;
+ private com.google.cloud.contactcenterinsights.v1.SpeechConfig speechConfig_;
+ /**
+ *
+ *
+ * + * Optional. Default Speech-to-Text configuration. Optional, will default to + * the config specified in Settings. + *+ * + *
+ * .google.cloud.contactcenterinsights.v1.SpeechConfig speech_config = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the speechConfig field is set.
+ */
+ @java.lang.Override
+ public boolean hasSpeechConfig() {
+ return speechConfig_ != null;
+ }
+ /**
+ *
+ *
+ * + * Optional. Default Speech-to-Text configuration. Optional, will default to + * the config specified in Settings. + *+ * + *
+ * .google.cloud.contactcenterinsights.v1.SpeechConfig speech_config = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The speechConfig.
+ */
+ @java.lang.Override
+ public com.google.cloud.contactcenterinsights.v1.SpeechConfig getSpeechConfig() {
+ return speechConfig_ == null
+ ? com.google.cloud.contactcenterinsights.v1.SpeechConfig.getDefaultInstance()
+ : speechConfig_;
+ }
+ /**
+ *
+ *
+ * + * Optional. Default Speech-to-Text configuration. Optional, will default to + * the config specified in Settings. + *+ * + *
+ * .google.cloud.contactcenterinsights.v1.SpeechConfig speech_config = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.contactcenterinsights.v1.SpeechConfigOrBuilder
+ getSpeechConfigOrBuilder() {
+ return speechConfig_ == null
+ ? com.google.cloud.contactcenterinsights.v1.SpeechConfig.getDefaultInstance()
+ : speechConfig_;
+ }
+
private byte memoizedIsInitialized = -1;
@java.lang.Override
@@ -2517,6 +3244,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (conversationConfig_ != null) {
output.writeMessage(4, getConversationConfig());
}
+ if (redactionConfig_ != null) {
+ output.writeMessage(5, getRedactionConfig());
+ }
+ if (speechConfig_ != null) {
+ output.writeMessage(6, getSpeechConfig());
+ }
getUnknownFields().writeTo(output);
}
@@ -2547,6 +3280,12 @@ public int getSerializedSize() {
if (conversationConfig_ != null) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getConversationConfig());
}
+ if (redactionConfig_ != null) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getRedactionConfig());
+ }
+ if (speechConfig_ != null) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getSpeechConfig());
+ }
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
@@ -2568,6 +3307,14 @@ public boolean equals(final java.lang.Object obj) {
if (hasConversationConfig()) {
if (!getConversationConfig().equals(other.getConversationConfig())) return false;
}
+ if (hasRedactionConfig() != other.hasRedactionConfig()) return false;
+ if (hasRedactionConfig()) {
+ if (!getRedactionConfig().equals(other.getRedactionConfig())) return false;
+ }
+ if (hasSpeechConfig() != other.hasSpeechConfig()) return false;
+ if (hasSpeechConfig()) {
+ if (!getSpeechConfig().equals(other.getSpeechConfig())) return false;
+ }
if (!getSourceCase().equals(other.getSourceCase())) return false;
switch (sourceCase_) {
case 2:
@@ -2601,6 +3348,14 @@ public int hashCode() {
hash = (37 * hash) + CONVERSATION_CONFIG_FIELD_NUMBER;
hash = (53 * hash) + getConversationConfig().hashCode();
}
+ if (hasRedactionConfig()) {
+ hash = (37 * hash) + REDACTION_CONFIG_FIELD_NUMBER;
+ hash = (53 * hash) + getRedactionConfig().hashCode();
+ }
+ if (hasSpeechConfig()) {
+ hash = (37 * hash) + SPEECH_CONFIG_FIELD_NUMBER;
+ hash = (53 * hash) + getSpeechConfig().hashCode();
+ }
switch (sourceCase_) {
case 2:
hash = (37 * hash) + GCS_SOURCE_FIELD_NUMBER;
@@ -2771,6 +3526,16 @@ public Builder clear() {
conversationConfigBuilder_.dispose();
conversationConfigBuilder_ = null;
}
+ redactionConfig_ = null;
+ if (redactionConfigBuilder_ != null) {
+ redactionConfigBuilder_.dispose();
+ redactionConfigBuilder_ = null;
+ }
+ speechConfig_ = null;
+ if (speechConfigBuilder_ != null) {
+ speechConfigBuilder_.dispose();
+ speechConfigBuilder_ = null;
+ }
sourceCase_ = 0;
source_ = null;
objectConfigCase_ = 0;
@@ -2824,6 +3589,14 @@ private void buildPartial0(
? conversationConfig_
: conversationConfigBuilder_.build();
}
+ if (((from_bitField0_ & 0x00000010) != 0)) {
+ result.redactionConfig_ =
+ redactionConfigBuilder_ == null ? redactionConfig_ : redactionConfigBuilder_.build();
+ }
+ if (((from_bitField0_ & 0x00000020) != 0)) {
+ result.speechConfig_ =
+ speechConfigBuilder_ == null ? speechConfig_ : speechConfigBuilder_.build();
+ }
}
private void buildPartialOneofs(
@@ -2897,6 +3670,12 @@ public Builder mergeFrom(
if (other.hasConversationConfig()) {
mergeConversationConfig(other.getConversationConfig());
}
+ if (other.hasRedactionConfig()) {
+ mergeRedactionConfig(other.getRedactionConfig());
+ }
+ if (other.hasSpeechConfig()) {
+ mergeSpeechConfig(other.getSpeechConfig());
+ }
switch (other.getSourceCase()) {
case GCS_SOURCE:
{
@@ -2971,6 +3750,18 @@ public Builder mergeFrom(
bitField0_ |= 0x00000008;
break;
} // case 34
+ case 42:
+ {
+ input.readMessage(getRedactionConfigFieldBuilder().getBuilder(), extensionRegistry);
+ bitField0_ |= 0x00000010;
+ break;
+ } // case 42
+ case 50:
+ {
+ input.readMessage(getSpeechConfigFieldBuilder().getBuilder(), extensionRegistry);
+ bitField0_ |= 0x00000020;
+ break;
+ } // case 50
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
@@ -3880,6 +4671,435 @@ public Builder clearConversationConfig() {
return conversationConfigBuilder_;
}
+ private com.google.cloud.contactcenterinsights.v1.RedactionConfig redactionConfig_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.contactcenterinsights.v1.RedactionConfig,
+ com.google.cloud.contactcenterinsights.v1.RedactionConfig.Builder,
+ com.google.cloud.contactcenterinsights.v1.RedactionConfigOrBuilder>
+ redactionConfigBuilder_;
+ /**
+ *
+ *
+ * + * Optional. DLP settings for transcript redaction. Optional, will default to + * the config specified in Settings. + *+ * + *
+ * .google.cloud.contactcenterinsights.v1.RedactionConfig redaction_config = 5 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the redactionConfig field is set.
+ */
+ public boolean hasRedactionConfig() {
+ return ((bitField0_ & 0x00000010) != 0);
+ }
+ /**
+ *
+ *
+ * + * Optional. DLP settings for transcript redaction. Optional, will default to + * the config specified in Settings. + *+ * + *
+ * .google.cloud.contactcenterinsights.v1.RedactionConfig redaction_config = 5 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The redactionConfig.
+ */
+ public com.google.cloud.contactcenterinsights.v1.RedactionConfig getRedactionConfig() {
+ if (redactionConfigBuilder_ == null) {
+ return redactionConfig_ == null
+ ? com.google.cloud.contactcenterinsights.v1.RedactionConfig.getDefaultInstance()
+ : redactionConfig_;
+ } else {
+ return redactionConfigBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ * + * Optional. DLP settings for transcript redaction. Optional, will default to + * the config specified in Settings. + *+ * + *
+ * .google.cloud.contactcenterinsights.v1.RedactionConfig redaction_config = 5 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder setRedactionConfig(
+ com.google.cloud.contactcenterinsights.v1.RedactionConfig value) {
+ if (redactionConfigBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ redactionConfig_ = value;
+ } else {
+ redactionConfigBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000010;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. DLP settings for transcript redaction. Optional, will default to + * the config specified in Settings. + *+ * + *
+ * .google.cloud.contactcenterinsights.v1.RedactionConfig redaction_config = 5 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder setRedactionConfig(
+ com.google.cloud.contactcenterinsights.v1.RedactionConfig.Builder builderForValue) {
+ if (redactionConfigBuilder_ == null) {
+ redactionConfig_ = builderForValue.build();
+ } else {
+ redactionConfigBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000010;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. DLP settings for transcript redaction. Optional, will default to + * the config specified in Settings. + *+ * + *
+ * .google.cloud.contactcenterinsights.v1.RedactionConfig redaction_config = 5 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder mergeRedactionConfig(
+ com.google.cloud.contactcenterinsights.v1.RedactionConfig value) {
+ if (redactionConfigBuilder_ == null) {
+ if (((bitField0_ & 0x00000010) != 0)
+ && redactionConfig_ != null
+ && redactionConfig_
+ != com.google.cloud.contactcenterinsights.v1.RedactionConfig.getDefaultInstance()) {
+ getRedactionConfigBuilder().mergeFrom(value);
+ } else {
+ redactionConfig_ = value;
+ }
+ } else {
+ redactionConfigBuilder_.mergeFrom(value);
+ }
+ bitField0_ |= 0x00000010;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. DLP settings for transcript redaction. Optional, will default to + * the config specified in Settings. + *+ * + *
+ * .google.cloud.contactcenterinsights.v1.RedactionConfig redaction_config = 5 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder clearRedactionConfig() {
+ bitField0_ = (bitField0_ & ~0x00000010);
+ redactionConfig_ = null;
+ if (redactionConfigBuilder_ != null) {
+ redactionConfigBuilder_.dispose();
+ redactionConfigBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. DLP settings for transcript redaction. Optional, will default to + * the config specified in Settings. + *+ * + *
+ * .google.cloud.contactcenterinsights.v1.RedactionConfig redaction_config = 5 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.cloud.contactcenterinsights.v1.RedactionConfig.Builder
+ getRedactionConfigBuilder() {
+ bitField0_ |= 0x00000010;
+ onChanged();
+ return getRedactionConfigFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * Optional. DLP settings for transcript redaction. Optional, will default to + * the config specified in Settings. + *+ * + *
+ * .google.cloud.contactcenterinsights.v1.RedactionConfig redaction_config = 5 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.cloud.contactcenterinsights.v1.RedactionConfigOrBuilder
+ getRedactionConfigOrBuilder() {
+ if (redactionConfigBuilder_ != null) {
+ return redactionConfigBuilder_.getMessageOrBuilder();
+ } else {
+ return redactionConfig_ == null
+ ? com.google.cloud.contactcenterinsights.v1.RedactionConfig.getDefaultInstance()
+ : redactionConfig_;
+ }
+ }
+ /**
+ *
+ *
+ * + * Optional. DLP settings for transcript redaction. Optional, will default to + * the config specified in Settings. + *+ * + *
+ * .google.cloud.contactcenterinsights.v1.RedactionConfig redaction_config = 5 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.contactcenterinsights.v1.RedactionConfig,
+ com.google.cloud.contactcenterinsights.v1.RedactionConfig.Builder,
+ com.google.cloud.contactcenterinsights.v1.RedactionConfigOrBuilder>
+ getRedactionConfigFieldBuilder() {
+ if (redactionConfigBuilder_ == null) {
+ redactionConfigBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.contactcenterinsights.v1.RedactionConfig,
+ com.google.cloud.contactcenterinsights.v1.RedactionConfig.Builder,
+ com.google.cloud.contactcenterinsights.v1.RedactionConfigOrBuilder>(
+ getRedactionConfig(), getParentForChildren(), isClean());
+ redactionConfig_ = null;
+ }
+ return redactionConfigBuilder_;
+ }
+
+ private com.google.cloud.contactcenterinsights.v1.SpeechConfig speechConfig_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.contactcenterinsights.v1.SpeechConfig,
+ com.google.cloud.contactcenterinsights.v1.SpeechConfig.Builder,
+ com.google.cloud.contactcenterinsights.v1.SpeechConfigOrBuilder>
+ speechConfigBuilder_;
+ /**
+ *
+ *
+ * + * Optional. Default Speech-to-Text configuration. Optional, will default to + * the config specified in Settings. + *+ * + *
+ * .google.cloud.contactcenterinsights.v1.SpeechConfig speech_config = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the speechConfig field is set.
+ */
+ public boolean hasSpeechConfig() {
+ return ((bitField0_ & 0x00000020) != 0);
+ }
+ /**
+ *
+ *
+ * + * Optional. Default Speech-to-Text configuration. Optional, will default to + * the config specified in Settings. + *+ * + *
+ * .google.cloud.contactcenterinsights.v1.SpeechConfig speech_config = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The speechConfig.
+ */
+ public com.google.cloud.contactcenterinsights.v1.SpeechConfig getSpeechConfig() {
+ if (speechConfigBuilder_ == null) {
+ return speechConfig_ == null
+ ? com.google.cloud.contactcenterinsights.v1.SpeechConfig.getDefaultInstance()
+ : speechConfig_;
+ } else {
+ return speechConfigBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ * + * Optional. Default Speech-to-Text configuration. Optional, will default to + * the config specified in Settings. + *+ * + *
+ * .google.cloud.contactcenterinsights.v1.SpeechConfig speech_config = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder setSpeechConfig(com.google.cloud.contactcenterinsights.v1.SpeechConfig value) {
+ if (speechConfigBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ speechConfig_ = value;
+ } else {
+ speechConfigBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000020;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. Default Speech-to-Text configuration. Optional, will default to + * the config specified in Settings. + *+ * + *
+ * .google.cloud.contactcenterinsights.v1.SpeechConfig speech_config = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder setSpeechConfig(
+ com.google.cloud.contactcenterinsights.v1.SpeechConfig.Builder builderForValue) {
+ if (speechConfigBuilder_ == null) {
+ speechConfig_ = builderForValue.build();
+ } else {
+ speechConfigBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000020;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. Default Speech-to-Text configuration. Optional, will default to + * the config specified in Settings. + *+ * + *
+ * .google.cloud.contactcenterinsights.v1.SpeechConfig speech_config = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder mergeSpeechConfig(com.google.cloud.contactcenterinsights.v1.SpeechConfig value) {
+ if (speechConfigBuilder_ == null) {
+ if (((bitField0_ & 0x00000020) != 0)
+ && speechConfig_ != null
+ && speechConfig_
+ != com.google.cloud.contactcenterinsights.v1.SpeechConfig.getDefaultInstance()) {
+ getSpeechConfigBuilder().mergeFrom(value);
+ } else {
+ speechConfig_ = value;
+ }
+ } else {
+ speechConfigBuilder_.mergeFrom(value);
+ }
+ bitField0_ |= 0x00000020;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. Default Speech-to-Text configuration. Optional, will default to + * the config specified in Settings. + *+ * + *
+ * .google.cloud.contactcenterinsights.v1.SpeechConfig speech_config = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder clearSpeechConfig() {
+ bitField0_ = (bitField0_ & ~0x00000020);
+ speechConfig_ = null;
+ if (speechConfigBuilder_ != null) {
+ speechConfigBuilder_.dispose();
+ speechConfigBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. Default Speech-to-Text configuration. Optional, will default to + * the config specified in Settings. + *+ * + *
+ * .google.cloud.contactcenterinsights.v1.SpeechConfig speech_config = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.cloud.contactcenterinsights.v1.SpeechConfig.Builder getSpeechConfigBuilder() {
+ bitField0_ |= 0x00000020;
+ onChanged();
+ return getSpeechConfigFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * Optional. Default Speech-to-Text configuration. Optional, will default to + * the config specified in Settings. + *+ * + *
+ * .google.cloud.contactcenterinsights.v1.SpeechConfig speech_config = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.cloud.contactcenterinsights.v1.SpeechConfigOrBuilder
+ getSpeechConfigOrBuilder() {
+ if (speechConfigBuilder_ != null) {
+ return speechConfigBuilder_.getMessageOrBuilder();
+ } else {
+ return speechConfig_ == null
+ ? com.google.cloud.contactcenterinsights.v1.SpeechConfig.getDefaultInstance()
+ : speechConfig_;
+ }
+ }
+ /**
+ *
+ *
+ * + * Optional. Default Speech-to-Text configuration. Optional, will default to + * the config specified in Settings. + *+ * + *
+ * .google.cloud.contactcenterinsights.v1.SpeechConfig speech_config = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.contactcenterinsights.v1.SpeechConfig,
+ com.google.cloud.contactcenterinsights.v1.SpeechConfig.Builder,
+ com.google.cloud.contactcenterinsights.v1.SpeechConfigOrBuilder>
+ getSpeechConfigFieldBuilder() {
+ if (speechConfigBuilder_ == null) {
+ speechConfigBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.contactcenterinsights.v1.SpeechConfig,
+ com.google.cloud.contactcenterinsights.v1.SpeechConfig.Builder,
+ com.google.cloud.contactcenterinsights.v1.SpeechConfigOrBuilder>(
+ getSpeechConfig(), getParentForChildren(), isClean());
+ speechConfig_ = null;
+ }
+ return speechConfigBuilder_;
+ }
+
@java.lang.Override
public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
diff --git a/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/IngestConversationsRequestOrBuilder.java b/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/IngestConversationsRequestOrBuilder.java
index 850e143ab9e9..a9da270648a5 100644
--- a/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/IngestConversationsRequestOrBuilder.java
+++ b/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/IngestConversationsRequestOrBuilder.java
@@ -184,6 +184,94 @@ public interface IngestConversationsRequestOrBuilder
com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.ConversationConfigOrBuilder
getConversationConfigOrBuilder();
+ /**
+ *
+ *
+ * + * Optional. DLP settings for transcript redaction. Optional, will default to + * the config specified in Settings. + *+ * + *
+ * .google.cloud.contactcenterinsights.v1.RedactionConfig redaction_config = 5 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the redactionConfig field is set.
+ */
+ boolean hasRedactionConfig();
+ /**
+ *
+ *
+ * + * Optional. DLP settings for transcript redaction. Optional, will default to + * the config specified in Settings. + *+ * + *
+ * .google.cloud.contactcenterinsights.v1.RedactionConfig redaction_config = 5 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The redactionConfig.
+ */
+ com.google.cloud.contactcenterinsights.v1.RedactionConfig getRedactionConfig();
+ /**
+ *
+ *
+ * + * Optional. DLP settings for transcript redaction. Optional, will default to + * the config specified in Settings. + *+ * + *
+ * .google.cloud.contactcenterinsights.v1.RedactionConfig redaction_config = 5 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ com.google.cloud.contactcenterinsights.v1.RedactionConfigOrBuilder getRedactionConfigOrBuilder();
+
+ /**
+ *
+ *
+ * + * Optional. Default Speech-to-Text configuration. Optional, will default to + * the config specified in Settings. + *+ * + *
+ * .google.cloud.contactcenterinsights.v1.SpeechConfig speech_config = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the speechConfig field is set.
+ */
+ boolean hasSpeechConfig();
+ /**
+ *
+ *
+ * + * Optional. Default Speech-to-Text configuration. Optional, will default to + * the config specified in Settings. + *+ * + *
+ * .google.cloud.contactcenterinsights.v1.SpeechConfig speech_config = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The speechConfig.
+ */
+ com.google.cloud.contactcenterinsights.v1.SpeechConfig getSpeechConfig();
+ /**
+ *
+ *
+ * + * Optional. Default Speech-to-Text configuration. Optional, will default to + * the config specified in Settings. + *+ * + *
+ * .google.cloud.contactcenterinsights.v1.SpeechConfig speech_config = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ com.google.cloud.contactcenterinsights.v1.SpeechConfigOrBuilder getSpeechConfigOrBuilder();
+
com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.SourceCase getSourceCase();
com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.ObjectConfigCase
diff --git a/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/proto/google/cloud/contactcenterinsights/v1/contact_center_insights.proto b/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/proto/google/cloud/contactcenterinsights/v1/contact_center_insights.proto
index f2075fa8f786..381e8a122bfd 100644
--- a/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/proto/google/cloud/contactcenterinsights/v1/contact_center_insights.proto
+++ b/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/proto/google/cloud/contactcenterinsights/v1/contact_center_insights.proto
@@ -155,6 +155,20 @@ service ContactCenterInsights {
};
}
+ // Deletes multiple conversations in a single request.
+ rpc BulkDeleteConversations(BulkDeleteConversationsRequest)
+ returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ post: "/v1/{parent=projects/*/locations/*}/conversations:bulkDelete"
+ body: "*"
+ };
+ option (google.api.method_signature) = "parent,filter";
+ option (google.longrunning.operation_info) = {
+ response_type: "BulkDeleteConversationsResponse"
+ metadata_type: "BulkDeleteConversationsMetadata"
+ };
+ }
+
// Imports conversations and processes them according to the user's
// configuration.
rpc IngestConversations(IngestConversationsRequest)
@@ -688,8 +702,23 @@ message DeleteConversationRequest {
message IngestConversationsRequest {
// Configuration for Cloud Storage bucket sources.
message GcsSource {
+ enum BucketObjectType {
+ // The object type is unspecified and will default to TRANSCRIPT.
+ BUCKET_OBJECT_TYPE_UNSPECIFIED = 0;
+
+ // The object is a transcript.
+ TRANSCRIPT = 1;
+
+ // The object is an audio file.
+ AUDIO = 2;
+ }
+
// Required. The Cloud Storage bucket containing source objects.
string bucket_uri = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // Optional. Specifies the type of the objects in `bucket_uri`.
+ BucketObjectType bucket_object_type = 2
+ [(google.api.field_behavior) = OPTIONAL];
}
// Configuration for processing transcript objects.
@@ -703,6 +732,16 @@ message IngestConversationsRequest {
// An opaque, user-specified string representing the human agent who handled
// the conversations.
string agent_id = 1;
+
+ // Optional. For audio conversations, this field indicates which of the
+ // channels, 1 or 2, contains the agent. Note that this must be set for
+ // audio conversations to be properly displayed and analyzed.
+ int32 agent_channel = 2 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. For audio conversations, this field indicates which of the
+ // channels, 1 or 2, contains the customer. Note that this must be set for
+ // audio conversations to be properly displayed and analyzed.
+ int32 customer_channel = 3 [(google.api.field_behavior) = OPTIONAL];
}
// Configuration for an external data store containing objects that will
@@ -729,6 +768,14 @@ message IngestConversationsRequest {
// Configuration that applies to all conversations.
ConversationConfig conversation_config = 4;
+
+ // Optional. DLP settings for transcript redaction. Optional, will default to
+ // the config specified in Settings.
+ RedactionConfig redaction_config = 5 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Default Speech-to-Text configuration. Optional, will default to
+ // the config specified in Settings.
+ SpeechConfig speech_config = 6 [(google.api.field_behavior) = OPTIONAL];
}
// The metadata for an IngestConversations operation.
@@ -893,6 +940,11 @@ message BulkAnalyzeConversationsMetadata {
// Total number of analyses requested. Computed by the number of conversations
// returned by `filter` multiplied by `analysis_percentage` in the request.
int32 total_requested_analyses_count = 6;
+
+ // Output only. Partial errors during bulk analyze operation that might cause
+ // the operation output to be incomplete.
+ repeated google.rpc.Status partial_errors = 7
+ [(google.api.field_behavior) = OUTPUT_ONLY];
}
// The response for a bulk analyze conversations operation.
@@ -904,6 +956,50 @@ message BulkAnalyzeConversationsResponse {
int32 failed_analysis_count = 2;
}
+// The request to delete conversations in bulk.
+message BulkDeleteConversationsRequest {
+ // Required. The parent resource to create analyses in.
+ // Format:
+ // projects/{project}/locations/{location}
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "locations.googleapis.com/Location"
+ }
+ ];
+
+ // Filter used to select the subset of conversations to analyze.
+ string filter = 2;
+
+ // Maximum number of conversations to delete. The default is 1000. It can be
+ // changed by setting the `max_delete_count` field.
+ int32 max_delete_count = 3;
+
+ // If set to true, all of this conversation's analyses will also be deleted.
+ // Otherwise, the request will only succeed if the conversation has no
+ // analyses.
+ bool force = 4;
+}
+
+// The metadata for a bulk delete conversations operation.
+message BulkDeleteConversationsMetadata {
+ // The time the operation was created.
+ google.protobuf.Timestamp create_time = 1;
+
+ // The time the operation finished running.
+ google.protobuf.Timestamp end_time = 2;
+
+ // The original request for bulk delete.
+ BulkDeleteConversationsRequest request = 3;
+
+ // Partial errors during bulk delete conversations operation that might cause
+ // the operation output to be incomplete.
+ repeated google.rpc.Status partial_errors = 4;
+}
+
+// The response for a bulk analyze conversations operation.
+message BulkDeleteConversationsResponse {}
+
// The request to export insights.
message ExportInsightsDataRequest {
// A BigQuery Table Reference.
diff --git a/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/proto/google/cloud/contactcenterinsights/v1/resources.proto b/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/proto/google/cloud/contactcenterinsights/v1/resources.proto
index 5c5535ce7b71..d5d9233e69df 100644
--- a/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/proto/google/cloud/contactcenterinsights/v1/resources.proto
+++ b/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/proto/google/cloud/contactcenterinsights/v1/resources.proto
@@ -1265,7 +1265,7 @@ message AnnotatorSelector {
// Unspecified summarization model.
SUMMARIZATION_MODEL_UNSPECIFIED = 0;
- // The Insights baseline model.
+ // The CCAI baseline model.
BASELINE_MODEL = 1;
}
diff --git a/java-contact-center-insights/samples/snippets/generated/com/google/cloud/contactcenterinsights/v1/contactcenterinsights/bulkdeleteconversations/AsyncBulkDeleteConversations.java b/java-contact-center-insights/samples/snippets/generated/com/google/cloud/contactcenterinsights/v1/contactcenterinsights/bulkdeleteconversations/AsyncBulkDeleteConversations.java
new file mode 100644
index 000000000000..949576f6159c
--- /dev/null
+++ b/java-contact-center-insights/samples/snippets/generated/com/google/cloud/contactcenterinsights/v1/contactcenterinsights/bulkdeleteconversations/AsyncBulkDeleteConversations.java
@@ -0,0 +1,54 @@
+/*
+ * 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.
+ */
+
+package com.google.cloud.contactcenterinsights.v1.samples;
+
+// [START contactcenterinsights_v1_generated_ContactCenterInsights_BulkDeleteConversations_async]
+import com.google.api.core.ApiFuture;
+import com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsRequest;
+import com.google.cloud.contactcenterinsights.v1.ContactCenterInsightsClient;
+import com.google.cloud.contactcenterinsights.v1.LocationName;
+import com.google.longrunning.Operation;
+
+public class AsyncBulkDeleteConversations {
+
+ public static void main(String[] args) throws Exception {
+ asyncBulkDeleteConversations();
+ }
+
+ public static void asyncBulkDeleteConversations() throws Exception {
+ // 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 (ContactCenterInsightsClient contactCenterInsightsClient =
+ ContactCenterInsightsClient.create()) {
+ BulkDeleteConversationsRequest request =
+ BulkDeleteConversationsRequest.newBuilder()
+ .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ .setFilter("filter-1274492040")
+ .setMaxDeleteCount(1611707510)
+ .setForce(true)
+ .build();
+ ApiFuture