runPipelineSettings() {
+ return getStubSettingsBuilder().runPipelineSettings();
+ }
+
+ /** Returns the builder for the settings used for calls to runPipeline. */
+ public OperationCallSettings.Builder<
+ RunPipelineRequest, RunPipelineResponse, RunPipelineMetadata>
+ runPipelineOperationSettings() {
+ return getStubSettingsBuilder().runPipelineOperationSettings();
+ }
+
+ @Override
+ public PipelineServiceSettings build() throws IOException {
+ return new PipelineServiceSettings(this);
+ }
+ }
+}
diff --git a/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/gapic_metadata.json b/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/gapic_metadata.json
index e86f970e4ed1..caabedc62432 100644
--- a/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/gapic_metadata.json
+++ b/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/gapic_metadata.json
@@ -83,6 +83,18 @@
}
}
},
+ "PipelineService": {
+ "clients": {
+ "grpc": {
+ "libraryClient": "PipelineServiceClient",
+ "rpcs": {
+ "RunPipeline": {
+ "methods": ["runPipelineAsync", "runPipelineAsync", "runPipelineAsync", "runPipelineOperationCallable", "runPipelineCallable"]
+ }
+ }
+ }
+ }
+ },
"RuleSetService": {
"clients": {
"grpc": {
diff --git a/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/package-info.java b/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/package-info.java
index 77775d7f1f28..ca0a73216731 100644
--- a/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/package-info.java
+++ b/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/package-info.java
@@ -79,6 +79,24 @@
* }
* }
*
+ * ======================= PipelineServiceClient =======================
+ *
+ *
Service Description: This service lets you manage pipelines.
+ *
+ *
Sample for PipelineServiceClient:
+ *
+ *
{@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 (PipelineServiceClient pipelineServiceClient = PipelineServiceClient.create()) {
+ * LocationName name = LocationName.of("[PROJECT]", "[LOCATION]");
+ * RunPipelineResponse response = pipelineServiceClient.runPipelineAsync(name).get();
+ * }
+ * }
+ *
* ======================= RuleSetServiceClient =======================
*
*
Service Description: Service to manage customer specific RuleSets.
diff --git a/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/GrpcPipelineServiceCallableFactory.java b/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/GrpcPipelineServiceCallableFactory.java
new file mode 100644
index 000000000000..b3059d6b32fe
--- /dev/null
+++ b/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/GrpcPipelineServiceCallableFactory.java
@@ -0,0 +1,113 @@
+/*
+ * 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.contentwarehouse.v1.stub;
+
+import com.google.api.gax.grpc.GrpcCallSettings;
+import com.google.api.gax.grpc.GrpcCallableFactory;
+import com.google.api.gax.grpc.GrpcStubCallableFactory;
+import com.google.api.gax.rpc.BatchingCallSettings;
+import com.google.api.gax.rpc.BidiStreamingCallable;
+import com.google.api.gax.rpc.ClientContext;
+import com.google.api.gax.rpc.ClientStreamingCallable;
+import com.google.api.gax.rpc.OperationCallSettings;
+import com.google.api.gax.rpc.OperationCallable;
+import com.google.api.gax.rpc.PagedCallSettings;
+import com.google.api.gax.rpc.ServerStreamingCallSettings;
+import com.google.api.gax.rpc.ServerStreamingCallable;
+import com.google.api.gax.rpc.StreamingCallSettings;
+import com.google.api.gax.rpc.UnaryCallSettings;
+import com.google.api.gax.rpc.UnaryCallable;
+import com.google.longrunning.Operation;
+import com.google.longrunning.stub.OperationsStub;
+import javax.annotation.Generated;
+
+// AUTO-GENERATED DOCUMENTATION AND CLASS.
+/**
+ * gRPC callable factory implementation for the PipelineService service API.
+ *
+ *
This class is for advanced usage.
+ */
+@Generated("by gapic-generator-java")
+public class GrpcPipelineServiceCallableFactory implements GrpcStubCallableFactory {
+
+ @Override
+ public UnaryCallable createUnaryCallable(
+ GrpcCallSettings grpcCallSettings,
+ UnaryCallSettings callSettings,
+ ClientContext clientContext) {
+ return GrpcCallableFactory.createUnaryCallable(grpcCallSettings, callSettings, clientContext);
+ }
+
+ @Override
+ public
+ UnaryCallable createPagedCallable(
+ GrpcCallSettings grpcCallSettings,
+ PagedCallSettings callSettings,
+ ClientContext clientContext) {
+ return GrpcCallableFactory.createPagedCallable(grpcCallSettings, callSettings, clientContext);
+ }
+
+ @Override
+ public UnaryCallable createBatchingCallable(
+ GrpcCallSettings grpcCallSettings,
+ BatchingCallSettings callSettings,
+ ClientContext clientContext) {
+ return GrpcCallableFactory.createBatchingCallable(
+ grpcCallSettings, callSettings, clientContext);
+ }
+
+ @Override
+ public
+ OperationCallable createOperationCallable(
+ GrpcCallSettings grpcCallSettings,
+ OperationCallSettings callSettings,
+ ClientContext clientContext,
+ OperationsStub operationsStub) {
+ return GrpcCallableFactory.createOperationCallable(
+ grpcCallSettings, callSettings, clientContext, operationsStub);
+ }
+
+ @Override
+ public
+ BidiStreamingCallable createBidiStreamingCallable(
+ GrpcCallSettings grpcCallSettings,
+ StreamingCallSettings callSettings,
+ ClientContext clientContext) {
+ return GrpcCallableFactory.createBidiStreamingCallable(
+ grpcCallSettings, callSettings, clientContext);
+ }
+
+ @Override
+ public
+ ServerStreamingCallable createServerStreamingCallable(
+ GrpcCallSettings grpcCallSettings,
+ ServerStreamingCallSettings callSettings,
+ ClientContext clientContext) {
+ return GrpcCallableFactory.createServerStreamingCallable(
+ grpcCallSettings, callSettings, clientContext);
+ }
+
+ @Override
+ public
+ ClientStreamingCallable createClientStreamingCallable(
+ GrpcCallSettings grpcCallSettings,
+ StreamingCallSettings callSettings,
+ ClientContext clientContext) {
+ return GrpcCallableFactory.createClientStreamingCallable(
+ grpcCallSettings, callSettings, clientContext);
+ }
+}
diff --git a/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/GrpcPipelineServiceStub.java b/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/GrpcPipelineServiceStub.java
new file mode 100644
index 000000000000..981d16b51a81
--- /dev/null
+++ b/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/GrpcPipelineServiceStub.java
@@ -0,0 +1,177 @@
+/*
+ * 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.contentwarehouse.v1.stub;
+
+import com.google.api.gax.core.BackgroundResource;
+import com.google.api.gax.core.BackgroundResourceAggregation;
+import com.google.api.gax.grpc.GrpcCallSettings;
+import com.google.api.gax.grpc.GrpcStubCallableFactory;
+import com.google.api.gax.rpc.ClientContext;
+import com.google.api.gax.rpc.OperationCallable;
+import com.google.api.gax.rpc.RequestParamsBuilder;
+import com.google.api.gax.rpc.UnaryCallable;
+import com.google.cloud.contentwarehouse.v1.RunPipelineMetadata;
+import com.google.cloud.contentwarehouse.v1.RunPipelineRequest;
+import com.google.cloud.contentwarehouse.v1.RunPipelineResponse;
+import com.google.longrunning.Operation;
+import com.google.longrunning.stub.GrpcOperationsStub;
+import io.grpc.MethodDescriptor;
+import io.grpc.protobuf.ProtoUtils;
+import java.io.IOException;
+import java.util.concurrent.TimeUnit;
+import javax.annotation.Generated;
+
+// AUTO-GENERATED DOCUMENTATION AND CLASS.
+/**
+ * gRPC stub implementation for the PipelineService service API.
+ *
+ * This class is for advanced usage and reflects the underlying API directly.
+ */
+@Generated("by gapic-generator-java")
+public class GrpcPipelineServiceStub extends PipelineServiceStub {
+ private static final MethodDescriptor runPipelineMethodDescriptor =
+ MethodDescriptor.newBuilder()
+ .setType(MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName("google.cloud.contentwarehouse.v1.PipelineService/RunPipeline")
+ .setRequestMarshaller(ProtoUtils.marshaller(RunPipelineRequest.getDefaultInstance()))
+ .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance()))
+ .build();
+
+ private final UnaryCallable runPipelineCallable;
+ private final OperationCallable
+ runPipelineOperationCallable;
+
+ private final BackgroundResource backgroundResources;
+ private final GrpcOperationsStub operationsStub;
+ private final GrpcStubCallableFactory callableFactory;
+
+ public static final GrpcPipelineServiceStub create(PipelineServiceStubSettings settings)
+ throws IOException {
+ return new GrpcPipelineServiceStub(settings, ClientContext.create(settings));
+ }
+
+ public static final GrpcPipelineServiceStub create(ClientContext clientContext)
+ throws IOException {
+ return new GrpcPipelineServiceStub(
+ PipelineServiceStubSettings.newBuilder().build(), clientContext);
+ }
+
+ public static final GrpcPipelineServiceStub create(
+ ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException {
+ return new GrpcPipelineServiceStub(
+ PipelineServiceStubSettings.newBuilder().build(), clientContext, callableFactory);
+ }
+
+ /**
+ * Constructs an instance of GrpcPipelineServiceStub, using the given settings. This is protected
+ * so that it is easy to make a subclass, but otherwise, the static factory methods should be
+ * preferred.
+ */
+ protected GrpcPipelineServiceStub(
+ PipelineServiceStubSettings settings, ClientContext clientContext) throws IOException {
+ this(settings, clientContext, new GrpcPipelineServiceCallableFactory());
+ }
+
+ /**
+ * Constructs an instance of GrpcPipelineServiceStub, using the given settings. This is protected
+ * so that it is easy to make a subclass, but otherwise, the static factory methods should be
+ * preferred.
+ */
+ protected GrpcPipelineServiceStub(
+ PipelineServiceStubSettings settings,
+ ClientContext clientContext,
+ GrpcStubCallableFactory callableFactory)
+ throws IOException {
+ this.callableFactory = callableFactory;
+ this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory);
+
+ GrpcCallSettings runPipelineTransportSettings =
+ GrpcCallSettings.newBuilder()
+ .setMethodDescriptor(runPipelineMethodDescriptor)
+ .setParamsExtractor(
+ request -> {
+ RequestParamsBuilder builder = RequestParamsBuilder.create();
+ builder.add("name", String.valueOf(request.getName()));
+ return builder.build();
+ })
+ .build();
+
+ this.runPipelineCallable =
+ callableFactory.createUnaryCallable(
+ runPipelineTransportSettings, settings.runPipelineSettings(), clientContext);
+ this.runPipelineOperationCallable =
+ callableFactory.createOperationCallable(
+ runPipelineTransportSettings,
+ settings.runPipelineOperationSettings(),
+ clientContext,
+ operationsStub);
+
+ this.backgroundResources =
+ new BackgroundResourceAggregation(clientContext.getBackgroundResources());
+ }
+
+ public GrpcOperationsStub getOperationsStub() {
+ return operationsStub;
+ }
+
+ @Override
+ public UnaryCallable runPipelineCallable() {
+ return runPipelineCallable;
+ }
+
+ @Override
+ public OperationCallable
+ runPipelineOperationCallable() {
+ return runPipelineOperationCallable;
+ }
+
+ @Override
+ public final void close() {
+ try {
+ backgroundResources.close();
+ } catch (RuntimeException e) {
+ throw e;
+ } catch (Exception e) {
+ throw new IllegalStateException("Failed to close resource", e);
+ }
+ }
+
+ @Override
+ public void shutdown() {
+ backgroundResources.shutdown();
+ }
+
+ @Override
+ public boolean isShutdown() {
+ return backgroundResources.isShutdown();
+ }
+
+ @Override
+ public boolean isTerminated() {
+ return backgroundResources.isTerminated();
+ }
+
+ @Override
+ public void shutdownNow() {
+ backgroundResources.shutdownNow();
+ }
+
+ @Override
+ public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException {
+ return backgroundResources.awaitTermination(duration, unit);
+ }
+}
diff --git a/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/HttpJsonPipelineServiceCallableFactory.java b/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/HttpJsonPipelineServiceCallableFactory.java
new file mode 100644
index 000000000000..b1f3b4ba6603
--- /dev/null
+++ b/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/HttpJsonPipelineServiceCallableFactory.java
@@ -0,0 +1,105 @@
+/*
+ * 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.contentwarehouse.v1.stub;
+
+import com.google.api.core.BetaApi;
+import com.google.api.gax.httpjson.HttpJsonCallSettings;
+import com.google.api.gax.httpjson.HttpJsonCallableFactory;
+import com.google.api.gax.httpjson.HttpJsonOperationSnapshotCallable;
+import com.google.api.gax.httpjson.HttpJsonStubCallableFactory;
+import com.google.api.gax.httpjson.longrunning.stub.OperationsStub;
+import com.google.api.gax.rpc.BatchingCallSettings;
+import com.google.api.gax.rpc.ClientContext;
+import com.google.api.gax.rpc.OperationCallSettings;
+import com.google.api.gax.rpc.OperationCallable;
+import com.google.api.gax.rpc.PagedCallSettings;
+import com.google.api.gax.rpc.ServerStreamingCallSettings;
+import com.google.api.gax.rpc.ServerStreamingCallable;
+import com.google.api.gax.rpc.UnaryCallSettings;
+import com.google.api.gax.rpc.UnaryCallable;
+import com.google.longrunning.Operation;
+import javax.annotation.Generated;
+
+// AUTO-GENERATED DOCUMENTATION AND CLASS.
+/**
+ * REST callable factory implementation for the PipelineService service API.
+ *
+ * This class is for advanced usage.
+ */
+@Generated("by gapic-generator-java")
+@BetaApi
+public class HttpJsonPipelineServiceCallableFactory
+ implements HttpJsonStubCallableFactory {
+
+ @Override
+ public UnaryCallable createUnaryCallable(
+ HttpJsonCallSettings httpJsonCallSettings,
+ UnaryCallSettings callSettings,
+ ClientContext clientContext) {
+ return HttpJsonCallableFactory.createUnaryCallable(
+ httpJsonCallSettings, callSettings, clientContext);
+ }
+
+ @Override
+ public
+ UnaryCallable createPagedCallable(
+ HttpJsonCallSettings httpJsonCallSettings,
+ PagedCallSettings callSettings,
+ ClientContext clientContext) {
+ return HttpJsonCallableFactory.createPagedCallable(
+ httpJsonCallSettings, callSettings, clientContext);
+ }
+
+ @Override
+ public UnaryCallable createBatchingCallable(
+ HttpJsonCallSettings httpJsonCallSettings,
+ BatchingCallSettings callSettings,
+ ClientContext clientContext) {
+ return HttpJsonCallableFactory.createBatchingCallable(
+ httpJsonCallSettings, callSettings, clientContext);
+ }
+
+ @BetaApi(
+ "The surface for long-running operations is not stable yet and may change in the future.")
+ @Override
+ public
+ OperationCallable createOperationCallable(
+ HttpJsonCallSettings httpJsonCallSettings,
+ OperationCallSettings callSettings,
+ ClientContext clientContext,
+ OperationsStub operationsStub) {
+ UnaryCallable innerCallable =
+ HttpJsonCallableFactory.createBaseUnaryCallable(
+ httpJsonCallSettings, callSettings.getInitialCallSettings(), clientContext);
+ HttpJsonOperationSnapshotCallable initialCallable =
+ new HttpJsonOperationSnapshotCallable(
+ innerCallable,
+ httpJsonCallSettings.getMethodDescriptor().getOperationSnapshotFactory());
+ return HttpJsonCallableFactory.createOperationCallable(
+ callSettings, clientContext, operationsStub.longRunningClient(), initialCallable);
+ }
+
+ @Override
+ public
+ ServerStreamingCallable createServerStreamingCallable(
+ HttpJsonCallSettings httpJsonCallSettings,
+ ServerStreamingCallSettings callSettings,
+ ClientContext clientContext) {
+ return HttpJsonCallableFactory.createServerStreamingCallable(
+ httpJsonCallSettings, callSettings, clientContext);
+ }
+}
diff --git a/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/HttpJsonPipelineServiceStub.java b/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/HttpJsonPipelineServiceStub.java
new file mode 100644
index 000000000000..1090ccefa4b2
--- /dev/null
+++ b/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/HttpJsonPipelineServiceStub.java
@@ -0,0 +1,247 @@
+/*
+ * 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.contentwarehouse.v1.stub;
+
+import com.google.api.HttpRule;
+import com.google.api.core.BetaApi;
+import com.google.api.core.InternalApi;
+import com.google.api.gax.core.BackgroundResource;
+import com.google.api.gax.core.BackgroundResourceAggregation;
+import com.google.api.gax.httpjson.ApiMethodDescriptor;
+import com.google.api.gax.httpjson.HttpJsonCallSettings;
+import com.google.api.gax.httpjson.HttpJsonOperationSnapshot;
+import com.google.api.gax.httpjson.HttpJsonStubCallableFactory;
+import com.google.api.gax.httpjson.ProtoMessageRequestFormatter;
+import com.google.api.gax.httpjson.ProtoMessageResponseParser;
+import com.google.api.gax.httpjson.ProtoRestSerializer;
+import com.google.api.gax.httpjson.longrunning.stub.HttpJsonOperationsStub;
+import com.google.api.gax.rpc.ClientContext;
+import com.google.api.gax.rpc.OperationCallable;
+import com.google.api.gax.rpc.RequestParamsBuilder;
+import com.google.api.gax.rpc.UnaryCallable;
+import com.google.cloud.contentwarehouse.v1.RunPipelineMetadata;
+import com.google.cloud.contentwarehouse.v1.RunPipelineRequest;
+import com.google.cloud.contentwarehouse.v1.RunPipelineResponse;
+import com.google.common.collect.ImmutableMap;
+import com.google.longrunning.Operation;
+import com.google.protobuf.TypeRegistry;
+import java.io.IOException;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+import java.util.concurrent.TimeUnit;
+import javax.annotation.Generated;
+
+// AUTO-GENERATED DOCUMENTATION AND CLASS.
+/**
+ * REST stub implementation for the PipelineService service API.
+ *
+ * This class is for advanced usage and reflects the underlying API directly.
+ */
+@Generated("by gapic-generator-java")
+@BetaApi
+public class HttpJsonPipelineServiceStub extends PipelineServiceStub {
+ private static final TypeRegistry typeRegistry =
+ TypeRegistry.newBuilder()
+ .add(RunPipelineResponse.getDescriptor())
+ .add(RunPipelineMetadata.getDescriptor())
+ .build();
+
+ private static final ApiMethodDescriptor
+ runPipelineMethodDescriptor =
+ ApiMethodDescriptor.newBuilder()
+ .setFullMethodName("google.cloud.contentwarehouse.v1.PipelineService/RunPipeline")
+ .setHttpMethod("POST")
+ .setType(ApiMethodDescriptor.MethodType.UNARY)
+ .setRequestFormatter(
+ ProtoMessageRequestFormatter.newBuilder()
+ .setPath(
+ "/v1/{name=projects/*/locations/*}:runPipeline",
+ request -> {
+ Map fields = new HashMap<>();
+ ProtoRestSerializer serializer =
+ ProtoRestSerializer.create();
+ serializer.putPathParam(fields, "name", request.getName());
+ return fields;
+ })
+ .setQueryParamsExtractor(
+ request -> {
+ Map> fields = new HashMap<>();
+ ProtoRestSerializer serializer =
+ ProtoRestSerializer.create();
+ serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int");
+ return fields;
+ })
+ .setRequestBodyExtractor(
+ request ->
+ ProtoRestSerializer.create()
+ .toBody("*", request.toBuilder().clearName().build(), true))
+ .build())
+ .setResponseParser(
+ ProtoMessageResponseParser.newBuilder()
+ .setDefaultInstance(Operation.getDefaultInstance())
+ .setDefaultTypeRegistry(typeRegistry)
+ .build())
+ .setOperationSnapshotFactory(
+ (RunPipelineRequest request, Operation response) ->
+ HttpJsonOperationSnapshot.create(response))
+ .build();
+
+ private final UnaryCallable runPipelineCallable;
+ private final OperationCallable
+ runPipelineOperationCallable;
+
+ private final BackgroundResource backgroundResources;
+ private final HttpJsonOperationsStub httpJsonOperationsStub;
+ private final HttpJsonStubCallableFactory callableFactory;
+
+ public static final HttpJsonPipelineServiceStub create(PipelineServiceStubSettings settings)
+ throws IOException {
+ return new HttpJsonPipelineServiceStub(settings, ClientContext.create(settings));
+ }
+
+ public static final HttpJsonPipelineServiceStub create(ClientContext clientContext)
+ throws IOException {
+ return new HttpJsonPipelineServiceStub(
+ PipelineServiceStubSettings.newHttpJsonBuilder().build(), clientContext);
+ }
+
+ public static final HttpJsonPipelineServiceStub create(
+ ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException {
+ return new HttpJsonPipelineServiceStub(
+ PipelineServiceStubSettings.newHttpJsonBuilder().build(), clientContext, callableFactory);
+ }
+
+ /**
+ * Constructs an instance of HttpJsonPipelineServiceStub, using the given settings. This is
+ * protected so that it is easy to make a subclass, but otherwise, the static factory methods
+ * should be preferred.
+ */
+ protected HttpJsonPipelineServiceStub(
+ PipelineServiceStubSettings settings, ClientContext clientContext) throws IOException {
+ this(settings, clientContext, new HttpJsonPipelineServiceCallableFactory());
+ }
+
+ /**
+ * Constructs an instance of HttpJsonPipelineServiceStub, using the given settings. This is
+ * protected so that it is easy to make a subclass, but otherwise, the static factory methods
+ * should be preferred.
+ */
+ protected HttpJsonPipelineServiceStub(
+ PipelineServiceStubSettings settings,
+ ClientContext clientContext,
+ HttpJsonStubCallableFactory callableFactory)
+ throws IOException {
+ this.callableFactory = callableFactory;
+ this.httpJsonOperationsStub =
+ HttpJsonOperationsStub.create(
+ clientContext,
+ callableFactory,
+ typeRegistry,
+ ImmutableMap.builder()
+ .put(
+ "google.longrunning.Operations.GetOperation",
+ HttpRule.newBuilder()
+ .setGet("/v1/{name=projects/*/locations/*/operations/*}")
+ .build())
+ .build());
+
+ HttpJsonCallSettings runPipelineTransportSettings =
+ HttpJsonCallSettings.newBuilder()
+ .setMethodDescriptor(runPipelineMethodDescriptor)
+ .setTypeRegistry(typeRegistry)
+ .setParamsExtractor(
+ request -> {
+ RequestParamsBuilder builder = RequestParamsBuilder.create();
+ builder.add("name", String.valueOf(request.getName()));
+ return builder.build();
+ })
+ .build();
+
+ this.runPipelineCallable =
+ callableFactory.createUnaryCallable(
+ runPipelineTransportSettings, settings.runPipelineSettings(), clientContext);
+ this.runPipelineOperationCallable =
+ callableFactory.createOperationCallable(
+ runPipelineTransportSettings,
+ settings.runPipelineOperationSettings(),
+ clientContext,
+ httpJsonOperationsStub);
+
+ this.backgroundResources =
+ new BackgroundResourceAggregation(clientContext.getBackgroundResources());
+ }
+
+ @InternalApi
+ public static List getMethodDescriptors() {
+ List methodDescriptors = new ArrayList<>();
+ methodDescriptors.add(runPipelineMethodDescriptor);
+ return methodDescriptors;
+ }
+
+ public HttpJsonOperationsStub getHttpJsonOperationsStub() {
+ return httpJsonOperationsStub;
+ }
+
+ @Override
+ public UnaryCallable runPipelineCallable() {
+ return runPipelineCallable;
+ }
+
+ @Override
+ public OperationCallable
+ runPipelineOperationCallable() {
+ return runPipelineOperationCallable;
+ }
+
+ @Override
+ public final void close() {
+ try {
+ backgroundResources.close();
+ } catch (RuntimeException e) {
+ throw e;
+ } catch (Exception e) {
+ throw new IllegalStateException("Failed to close resource", e);
+ }
+ }
+
+ @Override
+ public void shutdown() {
+ backgroundResources.shutdown();
+ }
+
+ @Override
+ public boolean isShutdown() {
+ return backgroundResources.isShutdown();
+ }
+
+ @Override
+ public boolean isTerminated() {
+ return backgroundResources.isTerminated();
+ }
+
+ @Override
+ public void shutdownNow() {
+ backgroundResources.shutdownNow();
+ }
+
+ @Override
+ public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException {
+ return backgroundResources.awaitTermination(duration, unit);
+ }
+}
diff --git a/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/PipelineServiceStub.java b/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/PipelineServiceStub.java
new file mode 100644
index 000000000000..db583220554b
--- /dev/null
+++ b/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/PipelineServiceStub.java
@@ -0,0 +1,57 @@
+/*
+ * 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.contentwarehouse.v1.stub;
+
+import com.google.api.gax.core.BackgroundResource;
+import com.google.api.gax.rpc.OperationCallable;
+import com.google.api.gax.rpc.UnaryCallable;
+import com.google.cloud.contentwarehouse.v1.RunPipelineMetadata;
+import com.google.cloud.contentwarehouse.v1.RunPipelineRequest;
+import com.google.cloud.contentwarehouse.v1.RunPipelineResponse;
+import com.google.longrunning.Operation;
+import com.google.longrunning.stub.OperationsStub;
+import javax.annotation.Generated;
+
+// AUTO-GENERATED DOCUMENTATION AND CLASS.
+/**
+ * Base stub class for the PipelineService service API.
+ *
+ * This class is for advanced usage and reflects the underlying API directly.
+ */
+@Generated("by gapic-generator-java")
+public abstract class PipelineServiceStub implements BackgroundResource {
+
+ public OperationsStub getOperationsStub() {
+ return null;
+ }
+
+ public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() {
+ return null;
+ }
+
+ public OperationCallable
+ runPipelineOperationCallable() {
+ throw new UnsupportedOperationException("Not implemented: runPipelineOperationCallable()");
+ }
+
+ public UnaryCallable runPipelineCallable() {
+ throw new UnsupportedOperationException("Not implemented: runPipelineCallable()");
+ }
+
+ @Override
+ public abstract void close();
+}
diff --git a/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/PipelineServiceStubSettings.java b/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/PipelineServiceStubSettings.java
new file mode 100644
index 000000000000..f0ad8309f1a5
--- /dev/null
+++ b/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/PipelineServiceStubSettings.java
@@ -0,0 +1,380 @@
+/*
+ * 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.contentwarehouse.v1.stub;
+
+import com.google.api.core.ApiFunction;
+import com.google.api.core.BetaApi;
+import com.google.api.gax.core.GaxProperties;
+import com.google.api.gax.core.GoogleCredentialsProvider;
+import com.google.api.gax.core.InstantiatingExecutorProvider;
+import com.google.api.gax.grpc.GaxGrpcProperties;
+import com.google.api.gax.grpc.GrpcTransportChannel;
+import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider;
+import com.google.api.gax.grpc.ProtoOperationTransformers;
+import com.google.api.gax.httpjson.GaxHttpJsonProperties;
+import com.google.api.gax.httpjson.HttpJsonTransportChannel;
+import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider;
+import com.google.api.gax.longrunning.OperationSnapshot;
+import com.google.api.gax.longrunning.OperationTimedPollAlgorithm;
+import com.google.api.gax.retrying.RetrySettings;
+import com.google.api.gax.rpc.ApiClientHeaderProvider;
+import com.google.api.gax.rpc.ClientContext;
+import com.google.api.gax.rpc.OperationCallSettings;
+import com.google.api.gax.rpc.StatusCode;
+import com.google.api.gax.rpc.StubSettings;
+import com.google.api.gax.rpc.TransportChannelProvider;
+import com.google.api.gax.rpc.UnaryCallSettings;
+import com.google.cloud.contentwarehouse.v1.RunPipelineMetadata;
+import com.google.cloud.contentwarehouse.v1.RunPipelineRequest;
+import com.google.cloud.contentwarehouse.v1.RunPipelineResponse;
+import com.google.common.collect.ImmutableList;
+import com.google.common.collect.ImmutableMap;
+import com.google.common.collect.ImmutableSet;
+import com.google.common.collect.Lists;
+import com.google.longrunning.Operation;
+import java.io.IOException;
+import java.util.List;
+import javax.annotation.Generated;
+import org.threeten.bp.Duration;
+
+// AUTO-GENERATED DOCUMENTATION AND CLASS.
+/**
+ * Settings class to configure an instance of {@link PipelineServiceStub}.
+ *
+ * The default instance has everything set to sensible defaults:
+ *
+ *
+ * The default service address (contentwarehouse.googleapis.com) and default port (443) are
+ * used.
+ * Credentials are acquired automatically through Application Default Credentials.
+ * Retries are configured for idempotent methods but not for non-idempotent methods.
+ *
+ *
+ * The builder of this class is recursive, so contained classes are themselves builders. When
+ * build() is called, the tree of builders is called to create the complete settings object.
+ *
+ *
For example, to set the total timeout of runPipeline to 30 seconds:
+ *
+ *
{@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
+ * PipelineServiceStubSettings.Builder pipelineServiceSettingsBuilder =
+ * PipelineServiceStubSettings.newBuilder();
+ * pipelineServiceSettingsBuilder
+ * .runPipelineSettings()
+ * .setRetrySettings(
+ * pipelineServiceSettingsBuilder
+ * .runPipelineSettings()
+ * .getRetrySettings()
+ * .toBuilder()
+ * .setTotalTimeout(Duration.ofSeconds(30))
+ * .build());
+ * PipelineServiceStubSettings pipelineServiceSettings = pipelineServiceSettingsBuilder.build();
+ * }
+ */
+@Generated("by gapic-generator-java")
+public class PipelineServiceStubSettings extends StubSettings {
+ /** The default scopes of the service. */
+ private static final ImmutableList DEFAULT_SERVICE_SCOPES =
+ ImmutableList.builder().add("https://www.googleapis.com/auth/cloud-platform").build();
+
+ private final UnaryCallSettings runPipelineSettings;
+ private final OperationCallSettings
+ runPipelineOperationSettings;
+
+ /** Returns the object with the settings used for calls to runPipeline. */
+ public UnaryCallSettings runPipelineSettings() {
+ return runPipelineSettings;
+ }
+
+ /** Returns the object with the settings used for calls to runPipeline. */
+ public OperationCallSettings
+ runPipelineOperationSettings() {
+ return runPipelineOperationSettings;
+ }
+
+ public PipelineServiceStub createStub() throws IOException {
+ if (getTransportChannelProvider()
+ .getTransportName()
+ .equals(GrpcTransportChannel.getGrpcTransportName())) {
+ return GrpcPipelineServiceStub.create(this);
+ }
+ if (getTransportChannelProvider()
+ .getTransportName()
+ .equals(HttpJsonTransportChannel.getHttpJsonTransportName())) {
+ return HttpJsonPipelineServiceStub.create(this);
+ }
+ throw new UnsupportedOperationException(
+ String.format(
+ "Transport not supported: %s", getTransportChannelProvider().getTransportName()));
+ }
+
+ /** Returns a builder for the default ExecutorProvider for this service. */
+ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() {
+ return InstantiatingExecutorProvider.newBuilder();
+ }
+
+ /** Returns the default service endpoint. */
+ public static String getDefaultEndpoint() {
+ return "contentwarehouse.googleapis.com:443";
+ }
+
+ /** Returns the default mTLS service endpoint. */
+ public static String getDefaultMtlsEndpoint() {
+ return "contentwarehouse.mtls.googleapis.com:443";
+ }
+
+ /** Returns the default service scopes. */
+ public static List getDefaultServiceScopes() {
+ return DEFAULT_SERVICE_SCOPES;
+ }
+
+ /** Returns a builder for the default credentials for this service. */
+ public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() {
+ return GoogleCredentialsProvider.newBuilder()
+ .setScopesToApply(DEFAULT_SERVICE_SCOPES)
+ .setUseJwtAccessWithScope(true);
+ }
+
+ /** Returns a builder for the default gRPC ChannelProvider for this service. */
+ public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() {
+ return InstantiatingGrpcChannelProvider.newBuilder()
+ .setMaxInboundMessageSize(Integer.MAX_VALUE);
+ }
+
+ /** Returns a builder for the default REST ChannelProvider for this service. */
+ @BetaApi
+ public static InstantiatingHttpJsonChannelProvider.Builder
+ defaultHttpJsonTransportProviderBuilder() {
+ return InstantiatingHttpJsonChannelProvider.newBuilder();
+ }
+
+ public static TransportChannelProvider defaultTransportChannelProvider() {
+ return defaultGrpcTransportProviderBuilder().build();
+ }
+
+ @BetaApi("The surface for customizing headers is not stable yet and may change in the future.")
+ public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProviderBuilder() {
+ return ApiClientHeaderProvider.newBuilder()
+ .setGeneratedLibToken(
+ "gapic", GaxProperties.getLibraryVersion(PipelineServiceStubSettings.class))
+ .setTransportToken(
+ GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion());
+ }
+
+ @BetaApi("The surface for customizing headers is not stable yet and may change in the future.")
+ public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder() {
+ return ApiClientHeaderProvider.newBuilder()
+ .setGeneratedLibToken(
+ "gapic", GaxProperties.getLibraryVersion(PipelineServiceStubSettings.class))
+ .setTransportToken(
+ GaxHttpJsonProperties.getHttpJsonTokenName(),
+ GaxHttpJsonProperties.getHttpJsonVersion());
+ }
+
+ public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() {
+ return PipelineServiceStubSettings.defaultGrpcApiClientHeaderProviderBuilder();
+ }
+
+ /** Returns a new gRPC builder for this class. */
+ public static Builder newBuilder() {
+ return Builder.createDefault();
+ }
+
+ /** Returns a new REST builder for this class. */
+ public static Builder newHttpJsonBuilder() {
+ return Builder.createHttpJsonDefault();
+ }
+
+ /** Returns a new builder for this class. */
+ public static Builder newBuilder(ClientContext clientContext) {
+ return new Builder(clientContext);
+ }
+
+ /** Returns a builder containing all the values of this settings class. */
+ public Builder toBuilder() {
+ return new Builder(this);
+ }
+
+ protected PipelineServiceStubSettings(Builder settingsBuilder) throws IOException {
+ super(settingsBuilder);
+
+ runPipelineSettings = settingsBuilder.runPipelineSettings().build();
+ runPipelineOperationSettings = settingsBuilder.runPipelineOperationSettings().build();
+ }
+
+ /** Builder for PipelineServiceStubSettings. */
+ public static class Builder extends StubSettings.Builder {
+ private final ImmutableList> unaryMethodSettingsBuilders;
+ private final UnaryCallSettings.Builder runPipelineSettings;
+ private final OperationCallSettings.Builder<
+ RunPipelineRequest, RunPipelineResponse, RunPipelineMetadata>
+ runPipelineOperationSettings;
+ private static final ImmutableMap>
+ RETRYABLE_CODE_DEFINITIONS;
+
+ static {
+ ImmutableMap.Builder> definitions =
+ ImmutableMap.builder();
+ definitions.put(
+ "retry_policy_3_codes",
+ ImmutableSet.copyOf(
+ Lists.newArrayList(
+ StatusCode.Code.DEADLINE_EXCEEDED, StatusCode.Code.UNAVAILABLE)));
+ RETRYABLE_CODE_DEFINITIONS = definitions.build();
+ }
+
+ private static final ImmutableMap RETRY_PARAM_DEFINITIONS;
+
+ static {
+ ImmutableMap.Builder definitions = ImmutableMap.builder();
+ RetrySettings settings = null;
+ settings =
+ RetrySettings.newBuilder()
+ .setInitialRetryDelay(Duration.ofMillis(100L))
+ .setRetryDelayMultiplier(1.3)
+ .setMaxRetryDelay(Duration.ofMillis(60000L))
+ .setInitialRpcTimeout(Duration.ofMillis(120000L))
+ .setRpcTimeoutMultiplier(1.0)
+ .setMaxRpcTimeout(Duration.ofMillis(120000L))
+ .setTotalTimeout(Duration.ofMillis(120000L))
+ .build();
+ definitions.put("retry_policy_3_params", settings);
+ RETRY_PARAM_DEFINITIONS = definitions.build();
+ }
+
+ protected Builder() {
+ this(((ClientContext) null));
+ }
+
+ protected Builder(ClientContext clientContext) {
+ super(clientContext);
+
+ runPipelineSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
+ runPipelineOperationSettings = OperationCallSettings.newBuilder();
+
+ unaryMethodSettingsBuilders =
+ ImmutableList.>of(runPipelineSettings);
+ initDefaults(this);
+ }
+
+ protected Builder(PipelineServiceStubSettings settings) {
+ super(settings);
+
+ runPipelineSettings = settings.runPipelineSettings.toBuilder();
+ runPipelineOperationSettings = settings.runPipelineOperationSettings.toBuilder();
+
+ unaryMethodSettingsBuilders =
+ ImmutableList.>of(runPipelineSettings);
+ }
+
+ private static Builder createDefault() {
+ Builder builder = new Builder(((ClientContext) null));
+
+ builder.setTransportChannelProvider(defaultTransportChannelProvider());
+ builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build());
+ builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build());
+ builder.setEndpoint(getDefaultEndpoint());
+ builder.setMtlsEndpoint(getDefaultMtlsEndpoint());
+ builder.setSwitchToMtlsEndpointAllowed(true);
+
+ return initDefaults(builder);
+ }
+
+ private static Builder createHttpJsonDefault() {
+ Builder builder = new Builder(((ClientContext) null));
+
+ builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build());
+ builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build());
+ builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build());
+ builder.setEndpoint(getDefaultEndpoint());
+ builder.setMtlsEndpoint(getDefaultMtlsEndpoint());
+ builder.setSwitchToMtlsEndpointAllowed(true);
+
+ return initDefaults(builder);
+ }
+
+ private static Builder initDefaults(Builder builder) {
+ builder
+ .runPipelineSettings()
+ .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_3_codes"))
+ .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_3_params"));
+
+ builder
+ .runPipelineOperationSettings()
+ .setInitialCallSettings(
+ UnaryCallSettings.newUnaryCallSettingsBuilder()
+ .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_3_codes"))
+ .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_3_params"))
+ .build())
+ .setResponseTransformer(
+ ProtoOperationTransformers.ResponseTransformer.create(RunPipelineResponse.class))
+ .setMetadataTransformer(
+ ProtoOperationTransformers.MetadataTransformer.create(RunPipelineMetadata.class))
+ .setPollingAlgorithm(
+ OperationTimedPollAlgorithm.create(
+ RetrySettings.newBuilder()
+ .setInitialRetryDelay(Duration.ofMillis(5000L))
+ .setRetryDelayMultiplier(1.5)
+ .setMaxRetryDelay(Duration.ofMillis(45000L))
+ .setInitialRpcTimeout(Duration.ZERO)
+ .setRpcTimeoutMultiplier(1.0)
+ .setMaxRpcTimeout(Duration.ZERO)
+ .setTotalTimeout(Duration.ofMillis(300000L))
+ .build()));
+
+ return builder;
+ }
+
+ /**
+ * Applies the given settings updater function to all of the unary API methods in this service.
+ *
+ * Note: This method does not support applying settings to streaming methods.
+ */
+ public Builder applyToAllUnaryMethods(
+ ApiFunction, Void> settingsUpdater) {
+ super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater);
+ return this;
+ }
+
+ public ImmutableList> unaryMethodSettingsBuilders() {
+ return unaryMethodSettingsBuilders;
+ }
+
+ /** Returns the builder for the settings used for calls to runPipeline. */
+ public UnaryCallSettings.Builder runPipelineSettings() {
+ return runPipelineSettings;
+ }
+
+ /** Returns the builder for the settings used for calls to runPipeline. */
+ @BetaApi(
+ "The surface for use by generated code is not stable yet and may change in the future.")
+ public OperationCallSettings.Builder<
+ RunPipelineRequest, RunPipelineResponse, RunPipelineMetadata>
+ runPipelineOperationSettings() {
+ return runPipelineOperationSettings;
+ }
+
+ @Override
+ public PipelineServiceStubSettings build() throws IOException {
+ return new PipelineServiceStubSettings(this);
+ }
+ }
+}
diff --git a/java-contentwarehouse/google-cloud-contentwarehouse/src/main/resources/META-INF/native-image/com.google.cloud.contentwarehouse.v1/reflect-config.json b/java-contentwarehouse/google-cloud-contentwarehouse/src/main/resources/META-INF/native-image/com.google.cloud.contentwarehouse.v1/reflect-config.json
index 54a30a5e5171..04c79b01bdbb 100644
--- a/java-contentwarehouse/google-cloud-contentwarehouse/src/main/resources/META-INF/native-image/com.google.cloud.contentwarehouse.v1/reflect-config.json
+++ b/java-contentwarehouse/google-cloud-contentwarehouse/src/main/resources/META-INF/native-image/com.google.cloud.contentwarehouse.v1/reflect-config.json
@@ -1016,6 +1016,24 @@
"allDeclaredClasses": true,
"allPublicClasses": true
},
+ {
+ "name": "com.google.cloud.contentwarehouse.v1.ExportToCdwPipeline",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.contentwarehouse.v1.ExportToCdwPipeline$Builder",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
{
"name": "com.google.cloud.contentwarehouse.v1.FetchAclRequest",
"queryAllDeclaredConstructors": true,
@@ -1115,6 +1133,42 @@
"allDeclaredClasses": true,
"allPublicClasses": true
},
+ {
+ "name": "com.google.cloud.contentwarehouse.v1.GcsIngestPipeline",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.contentwarehouse.v1.GcsIngestPipeline$Builder",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline$Builder",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
{
"name": "com.google.cloud.contentwarehouse.v1.GetDocumentRequest",
"queryAllDeclaredConstructors": true,
@@ -1250,6 +1304,24 @@
"allDeclaredClasses": true,
"allPublicClasses": true
},
+ {
+ "name": "com.google.cloud.contentwarehouse.v1.IngestPipelineConfig",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.contentwarehouse.v1.IngestPipelineConfig$Builder",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
{
"name": "com.google.cloud.contentwarehouse.v1.IntegerArray",
"queryAllDeclaredConstructors": true,
@@ -1556,6 +1628,42 @@
"allDeclaredClasses": true,
"allPublicClasses": true
},
+ {
+ "name": "com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline$Builder",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.contentwarehouse.v1.ProcessorInfo",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.contentwarehouse.v1.ProcessorInfo$Builder",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
{
"name": "com.google.cloud.contentwarehouse.v1.Property",
"queryAllDeclaredConstructors": true,
@@ -1889,6 +1997,132 @@
"allDeclaredClasses": true,
"allPublicClasses": true
},
+ {
+ "name": "com.google.cloud.contentwarehouse.v1.RunPipelineMetadata",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.contentwarehouse.v1.RunPipelineMetadata$Builder",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.contentwarehouse.v1.RunPipelineMetadata$ExportToCdwPipelineMetadata",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.contentwarehouse.v1.RunPipelineMetadata$ExportToCdwPipelineMetadata$Builder",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.contentwarehouse.v1.RunPipelineMetadata$GcsIngestPipelineMetadata",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.contentwarehouse.v1.RunPipelineMetadata$GcsIngestPipelineMetadata$Builder",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.contentwarehouse.v1.RunPipelineMetadata$IndividualDocumentStatus",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.contentwarehouse.v1.RunPipelineMetadata$IndividualDocumentStatus$Builder",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.contentwarehouse.v1.RunPipelineMetadata$ProcessWithDocAiPipelineMetadata",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.contentwarehouse.v1.RunPipelineMetadata$ProcessWithDocAiPipelineMetadata$Builder",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.contentwarehouse.v1.RunPipelineRequest",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.contentwarehouse.v1.RunPipelineRequest$Builder",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.contentwarehouse.v1.RunPipelineResponse",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.contentwarehouse.v1.RunPipelineResponse$Builder",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
{
"name": "com.google.cloud.contentwarehouse.v1.SearchDocumentsRequest",
"queryAllDeclaredConstructors": true,
diff --git a/java-contentwarehouse/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/DocumentServiceClientHttpJsonTest.java b/java-contentwarehouse/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/DocumentServiceClientHttpJsonTest.java
index 102478b326dd..606c705fee64 100644
--- a/java-contentwarehouse/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/DocumentServiceClientHttpJsonTest.java
+++ b/java-contentwarehouse/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/DocumentServiceClientHttpJsonTest.java
@@ -202,6 +202,8 @@ public void getDocumentTest() throws Exception {
.setTextExtractionEnabled(true)
.setCreator("creator1028554796")
.setUpdater("updater-234430263")
+ .setDispositionTime(Timestamp.newBuilder().build())
+ .setLegalHold(true)
.build();
mockService.addResponse(expectedResponse);
@@ -267,6 +269,8 @@ public void getDocumentTest2() throws Exception {
.setTextExtractionEnabled(true)
.setCreator("creator1028554796")
.setUpdater("updater-234430263")
+ .setDispositionTime(Timestamp.newBuilder().build())
+ .setLegalHold(true)
.build();
mockService.addResponse(expectedResponse);
@@ -614,6 +618,8 @@ public void lockDocumentTest() throws Exception {
.setTextExtractionEnabled(true)
.setCreator("creator1028554796")
.setUpdater("updater-234430263")
+ .setDispositionTime(Timestamp.newBuilder().build())
+ .setLegalHold(true)
.build();
mockService.addResponse(expectedResponse);
@@ -679,6 +685,8 @@ public void lockDocumentTest2() throws Exception {
.setTextExtractionEnabled(true)
.setCreator("creator1028554796")
.setUpdater("updater-234430263")
+ .setDispositionTime(Timestamp.newBuilder().build())
+ .setLegalHold(true)
.build();
mockService.addResponse(expectedResponse);
diff --git a/java-contentwarehouse/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/DocumentServiceClientTest.java b/java-contentwarehouse/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/DocumentServiceClientTest.java
index 6613d7a9db4d..9f71020a2ec7 100644
--- a/java-contentwarehouse/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/DocumentServiceClientTest.java
+++ b/java-contentwarehouse/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/DocumentServiceClientTest.java
@@ -195,6 +195,8 @@ public void getDocumentTest() throws Exception {
.setTextExtractionEnabled(true)
.setCreator("creator1028554796")
.setUpdater("updater-234430263")
+ .setDispositionTime(Timestamp.newBuilder().build())
+ .setLegalHold(true)
.build();
mockDocumentService.addResponse(expectedResponse);
@@ -254,6 +256,8 @@ public void getDocumentTest2() throws Exception {
.setTextExtractionEnabled(true)
.setCreator("creator1028554796")
.setUpdater("updater-234430263")
+ .setDispositionTime(Timestamp.newBuilder().build())
+ .setLegalHold(true)
.build();
mockDocumentService.addResponse(expectedResponse);
@@ -561,6 +565,8 @@ public void lockDocumentTest() throws Exception {
.setTextExtractionEnabled(true)
.setCreator("creator1028554796")
.setUpdater("updater-234430263")
+ .setDispositionTime(Timestamp.newBuilder().build())
+ .setLegalHold(true)
.build();
mockDocumentService.addResponse(expectedResponse);
@@ -620,6 +626,8 @@ public void lockDocumentTest2() throws Exception {
.setTextExtractionEnabled(true)
.setCreator("creator1028554796")
.setUpdater("updater-234430263")
+ .setDispositionTime(Timestamp.newBuilder().build())
+ .setLegalHold(true)
.build();
mockDocumentService.addResponse(expectedResponse);
diff --git a/java-contentwarehouse/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/MockPipelineService.java b/java-contentwarehouse/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/MockPipelineService.java
new file mode 100644
index 000000000000..e4c6c1d8b685
--- /dev/null
+++ b/java-contentwarehouse/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/MockPipelineService.java
@@ -0,0 +1,59 @@
+/*
+ * 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.contentwarehouse.v1;
+
+import com.google.api.core.BetaApi;
+import com.google.api.gax.grpc.testing.MockGrpcService;
+import com.google.protobuf.AbstractMessage;
+import io.grpc.ServerServiceDefinition;
+import java.util.List;
+import javax.annotation.Generated;
+
+@BetaApi
+@Generated("by gapic-generator-java")
+public class MockPipelineService implements MockGrpcService {
+ private final MockPipelineServiceImpl serviceImpl;
+
+ public MockPipelineService() {
+ serviceImpl = new MockPipelineServiceImpl();
+ }
+
+ @Override
+ public List getRequests() {
+ return serviceImpl.getRequests();
+ }
+
+ @Override
+ public void addResponse(AbstractMessage response) {
+ serviceImpl.addResponse(response);
+ }
+
+ @Override
+ public void addException(Exception exception) {
+ serviceImpl.addException(exception);
+ }
+
+ @Override
+ public ServerServiceDefinition getServiceDefinition() {
+ return serviceImpl.bindService();
+ }
+
+ @Override
+ public void reset() {
+ serviceImpl.reset();
+ }
+}
diff --git a/java-contentwarehouse/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/MockPipelineServiceImpl.java b/java-contentwarehouse/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/MockPipelineServiceImpl.java
new file mode 100644
index 000000000000..434c48e05868
--- /dev/null
+++ b/java-contentwarehouse/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/MockPipelineServiceImpl.java
@@ -0,0 +1,81 @@
+/*
+ * 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.contentwarehouse.v1;
+
+import com.google.api.core.BetaApi;
+import com.google.cloud.contentwarehouse.v1.PipelineServiceGrpc.PipelineServiceImplBase;
+import com.google.longrunning.Operation;
+import com.google.protobuf.AbstractMessage;
+import io.grpc.stub.StreamObserver;
+import java.util.ArrayList;
+import java.util.LinkedList;
+import java.util.List;
+import java.util.Queue;
+import javax.annotation.Generated;
+
+@BetaApi
+@Generated("by gapic-generator-java")
+public class MockPipelineServiceImpl extends PipelineServiceImplBase {
+ private List requests;
+ private Queue responses;
+
+ public MockPipelineServiceImpl() {
+ requests = new ArrayList<>();
+ responses = new LinkedList<>();
+ }
+
+ public List getRequests() {
+ return requests;
+ }
+
+ public void addResponse(AbstractMessage response) {
+ responses.add(response);
+ }
+
+ public void setResponses(List responses) {
+ this.responses = new LinkedList(responses);
+ }
+
+ public void addException(Exception exception) {
+ responses.add(exception);
+ }
+
+ public void reset() {
+ requests = new ArrayList<>();
+ responses = new LinkedList<>();
+ }
+
+ @Override
+ public void runPipeline(RunPipelineRequest request, StreamObserver responseObserver) {
+ Object response = responses.poll();
+ if (response instanceof Operation) {
+ requests.add(request);
+ responseObserver.onNext(((Operation) response));
+ responseObserver.onCompleted();
+ } else if (response instanceof Exception) {
+ responseObserver.onError(((Exception) response));
+ } else {
+ responseObserver.onError(
+ new IllegalArgumentException(
+ String.format(
+ "Unrecognized response type %s for method RunPipeline, expected %s or %s",
+ response == null ? "null" : response.getClass().getName(),
+ Operation.class.getName(),
+ Exception.class.getName())));
+ }
+ }
+}
diff --git a/java-contentwarehouse/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/PipelineServiceClientHttpJsonTest.java b/java-contentwarehouse/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/PipelineServiceClientHttpJsonTest.java
new file mode 100644
index 000000000000..28fa799dbab0
--- /dev/null
+++ b/java-contentwarehouse/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/PipelineServiceClientHttpJsonTest.java
@@ -0,0 +1,167 @@
+/*
+ * 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.contentwarehouse.v1;
+
+import com.google.api.gax.core.NoCredentialsProvider;
+import com.google.api.gax.httpjson.GaxHttpJsonProperties;
+import com.google.api.gax.httpjson.testing.MockHttpService;
+import com.google.api.gax.rpc.ApiClientHeaderProvider;
+import com.google.api.gax.rpc.ApiException;
+import com.google.api.gax.rpc.ApiExceptionFactory;
+import com.google.api.gax.rpc.StatusCode;
+import com.google.api.gax.rpc.testing.FakeStatusCode;
+import com.google.cloud.contentwarehouse.v1.stub.HttpJsonPipelineServiceStub;
+import com.google.longrunning.Operation;
+import com.google.protobuf.Any;
+import java.io.IOException;
+import java.util.List;
+import java.util.concurrent.ExecutionException;
+import javax.annotation.Generated;
+import org.junit.After;
+import org.junit.AfterClass;
+import org.junit.Assert;
+import org.junit.Before;
+import org.junit.BeforeClass;
+import org.junit.Test;
+
+@Generated("by gapic-generator-java")
+public class PipelineServiceClientHttpJsonTest {
+ private static MockHttpService mockService;
+ private static PipelineServiceClient client;
+
+ @BeforeClass
+ public static void startStaticServer() throws IOException {
+ mockService =
+ new MockHttpService(
+ HttpJsonPipelineServiceStub.getMethodDescriptors(),
+ PipelineServiceSettings.getDefaultEndpoint());
+ PipelineServiceSettings settings =
+ PipelineServiceSettings.newHttpJsonBuilder()
+ .setTransportChannelProvider(
+ PipelineServiceSettings.defaultHttpJsonTransportProviderBuilder()
+ .setHttpTransport(mockService)
+ .build())
+ .setCredentialsProvider(NoCredentialsProvider.create())
+ .build();
+ client = PipelineServiceClient.create(settings);
+ }
+
+ @AfterClass
+ public static void stopServer() {
+ client.close();
+ }
+
+ @Before
+ public void setUp() {}
+
+ @After
+ public void tearDown() throws Exception {
+ mockService.reset();
+ }
+
+ @Test
+ public void runPipelineTest() throws Exception {
+ RunPipelineResponse expectedResponse = RunPipelineResponse.newBuilder().build();
+ Operation resultOperation =
+ Operation.newBuilder()
+ .setName("runPipelineTest")
+ .setDone(true)
+ .setResponse(Any.pack(expectedResponse))
+ .build();
+ mockService.addResponse(resultOperation);
+
+ LocationName name = LocationName.of("[PROJECT]", "[LOCATION]");
+
+ RunPipelineResponse actualResponse = client.runPipelineAsync(name).get();
+ Assert.assertEquals(expectedResponse, actualResponse);
+
+ List actualRequests = mockService.getRequestPaths();
+ Assert.assertEquals(1, actualRequests.size());
+
+ String apiClientHeaderKey =
+ mockService
+ .getRequestHeaders()
+ .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey())
+ .iterator()
+ .next();
+ Assert.assertTrue(
+ GaxHttpJsonProperties.getDefaultApiClientHeaderPattern()
+ .matcher(apiClientHeaderKey)
+ .matches());
+ }
+
+ @Test
+ public void runPipelineExceptionTest() throws Exception {
+ ApiException exception =
+ ApiExceptionFactory.createException(
+ new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
+ mockService.addException(exception);
+
+ try {
+ LocationName name = LocationName.of("[PROJECT]", "[LOCATION]");
+ client.runPipelineAsync(name).get();
+ Assert.fail("No exception raised");
+ } catch (ExecutionException e) {
+ }
+ }
+
+ @Test
+ public void runPipelineTest2() throws Exception {
+ RunPipelineResponse expectedResponse = RunPipelineResponse.newBuilder().build();
+ Operation resultOperation =
+ Operation.newBuilder()
+ .setName("runPipelineTest")
+ .setDone(true)
+ .setResponse(Any.pack(expectedResponse))
+ .build();
+ mockService.addResponse(resultOperation);
+
+ String name = "projects/project-9062/locations/location-9062";
+
+ RunPipelineResponse actualResponse = client.runPipelineAsync(name).get();
+ Assert.assertEquals(expectedResponse, actualResponse);
+
+ List actualRequests = mockService.getRequestPaths();
+ Assert.assertEquals(1, actualRequests.size());
+
+ String apiClientHeaderKey =
+ mockService
+ .getRequestHeaders()
+ .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey())
+ .iterator()
+ .next();
+ Assert.assertTrue(
+ GaxHttpJsonProperties.getDefaultApiClientHeaderPattern()
+ .matcher(apiClientHeaderKey)
+ .matches());
+ }
+
+ @Test
+ public void runPipelineExceptionTest2() throws Exception {
+ ApiException exception =
+ ApiExceptionFactory.createException(
+ new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
+ mockService.addException(exception);
+
+ try {
+ String name = "projects/project-9062/locations/location-9062";
+ client.runPipelineAsync(name).get();
+ Assert.fail("No exception raised");
+ } catch (ExecutionException e) {
+ }
+ }
+}
diff --git a/java-contentwarehouse/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/PipelineServiceClientTest.java b/java-contentwarehouse/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/PipelineServiceClientTest.java
new file mode 100644
index 000000000000..47826c29cd3a
--- /dev/null
+++ b/java-contentwarehouse/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/PipelineServiceClientTest.java
@@ -0,0 +1,167 @@
+/*
+ * 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.contentwarehouse.v1;
+
+import com.google.api.gax.core.NoCredentialsProvider;
+import com.google.api.gax.grpc.GaxGrpcProperties;
+import com.google.api.gax.grpc.testing.LocalChannelProvider;
+import com.google.api.gax.grpc.testing.MockGrpcService;
+import com.google.api.gax.grpc.testing.MockServiceHelper;
+import com.google.api.gax.rpc.ApiClientHeaderProvider;
+import com.google.api.gax.rpc.InvalidArgumentException;
+import com.google.api.gax.rpc.StatusCode;
+import com.google.longrunning.Operation;
+import com.google.protobuf.AbstractMessage;
+import com.google.protobuf.Any;
+import io.grpc.StatusRuntimeException;
+import java.io.IOException;
+import java.util.Arrays;
+import java.util.List;
+import java.util.UUID;
+import java.util.concurrent.ExecutionException;
+import javax.annotation.Generated;
+import org.junit.After;
+import org.junit.AfterClass;
+import org.junit.Assert;
+import org.junit.Before;
+import org.junit.BeforeClass;
+import org.junit.Test;
+
+@Generated("by gapic-generator-java")
+public class PipelineServiceClientTest {
+ private static MockPipelineService mockPipelineService;
+ private static MockServiceHelper mockServiceHelper;
+ private LocalChannelProvider channelProvider;
+ private PipelineServiceClient client;
+
+ @BeforeClass
+ public static void startStaticServer() {
+ mockPipelineService = new MockPipelineService();
+ mockServiceHelper =
+ new MockServiceHelper(
+ UUID.randomUUID().toString(), Arrays.asList(mockPipelineService));
+ mockServiceHelper.start();
+ }
+
+ @AfterClass
+ public static void stopServer() {
+ mockServiceHelper.stop();
+ }
+
+ @Before
+ public void setUp() throws IOException {
+ mockServiceHelper.reset();
+ channelProvider = mockServiceHelper.createChannelProvider();
+ PipelineServiceSettings settings =
+ PipelineServiceSettings.newBuilder()
+ .setTransportChannelProvider(channelProvider)
+ .setCredentialsProvider(NoCredentialsProvider.create())
+ .build();
+ client = PipelineServiceClient.create(settings);
+ }
+
+ @After
+ public void tearDown() throws Exception {
+ client.close();
+ }
+
+ @Test
+ public void runPipelineTest() throws Exception {
+ RunPipelineResponse expectedResponse = RunPipelineResponse.newBuilder().build();
+ Operation resultOperation =
+ Operation.newBuilder()
+ .setName("runPipelineTest")
+ .setDone(true)
+ .setResponse(Any.pack(expectedResponse))
+ .build();
+ mockPipelineService.addResponse(resultOperation);
+
+ LocationName name = LocationName.of("[PROJECT]", "[LOCATION]");
+
+ RunPipelineResponse actualResponse = client.runPipelineAsync(name).get();
+ Assert.assertEquals(expectedResponse, actualResponse);
+
+ List actualRequests = mockPipelineService.getRequests();
+ Assert.assertEquals(1, actualRequests.size());
+ RunPipelineRequest actualRequest = ((RunPipelineRequest) actualRequests.get(0));
+
+ Assert.assertEquals(name.toString(), actualRequest.getName());
+ Assert.assertTrue(
+ channelProvider.isHeaderSent(
+ ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+ GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+ }
+
+ @Test
+ public void runPipelineExceptionTest() throws Exception {
+ StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
+ mockPipelineService.addException(exception);
+
+ try {
+ LocationName name = LocationName.of("[PROJECT]", "[LOCATION]");
+ client.runPipelineAsync(name).get();
+ Assert.fail("No exception raised");
+ } catch (ExecutionException e) {
+ Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
+ InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause());
+ Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
+ }
+ }
+
+ @Test
+ public void runPipelineTest2() throws Exception {
+ RunPipelineResponse expectedResponse = RunPipelineResponse.newBuilder().build();
+ Operation resultOperation =
+ Operation.newBuilder()
+ .setName("runPipelineTest")
+ .setDone(true)
+ .setResponse(Any.pack(expectedResponse))
+ .build();
+ mockPipelineService.addResponse(resultOperation);
+
+ String name = "name3373707";
+
+ RunPipelineResponse actualResponse = client.runPipelineAsync(name).get();
+ Assert.assertEquals(expectedResponse, actualResponse);
+
+ List actualRequests = mockPipelineService.getRequests();
+ Assert.assertEquals(1, actualRequests.size());
+ RunPipelineRequest actualRequest = ((RunPipelineRequest) actualRequests.get(0));
+
+ Assert.assertEquals(name, actualRequest.getName());
+ Assert.assertTrue(
+ channelProvider.isHeaderSent(
+ ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+ GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+ }
+
+ @Test
+ public void runPipelineExceptionTest2() throws Exception {
+ StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
+ mockPipelineService.addException(exception);
+
+ try {
+ String name = "name3373707";
+ client.runPipelineAsync(name).get();
+ Assert.fail("No exception raised");
+ } catch (ExecutionException e) {
+ Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
+ InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause());
+ Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
+ }
+ }
+}
diff --git a/java-contentwarehouse/grpc-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/PipelineServiceGrpc.java b/java-contentwarehouse/grpc-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/PipelineServiceGrpc.java
new file mode 100644
index 000000000000..b4fdcf79314e
--- /dev/null
+++ b/java-contentwarehouse/grpc-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/PipelineServiceGrpc.java
@@ -0,0 +1,370 @@
+/*
+ * 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.contentwarehouse.v1;
+
+import static io.grpc.MethodDescriptor.generateFullMethodName;
+
+/**
+ *
+ *
+ *
+ * This service lets you manage pipelines.
+ *
+ */
+@javax.annotation.Generated(
+ value = "by gRPC proto compiler",
+ comments = "Source: google/cloud/contentwarehouse/v1/pipeline_service.proto")
+@io.grpc.stub.annotations.GrpcGenerated
+public final class PipelineServiceGrpc {
+
+ private PipelineServiceGrpc() {}
+
+ public static final String SERVICE_NAME = "google.cloud.contentwarehouse.v1.PipelineService";
+
+ // Static method descriptors that strictly reflect the proto.
+ private static volatile io.grpc.MethodDescriptor<
+ com.google.cloud.contentwarehouse.v1.RunPipelineRequest, com.google.longrunning.Operation>
+ getRunPipelineMethod;
+
+ @io.grpc.stub.annotations.RpcMethod(
+ fullMethodName = SERVICE_NAME + '/' + "RunPipeline",
+ requestType = com.google.cloud.contentwarehouse.v1.RunPipelineRequest.class,
+ responseType = com.google.longrunning.Operation.class,
+ methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
+ public static io.grpc.MethodDescriptor<
+ com.google.cloud.contentwarehouse.v1.RunPipelineRequest, com.google.longrunning.Operation>
+ getRunPipelineMethod() {
+ io.grpc.MethodDescriptor<
+ com.google.cloud.contentwarehouse.v1.RunPipelineRequest,
+ com.google.longrunning.Operation>
+ getRunPipelineMethod;
+ if ((getRunPipelineMethod = PipelineServiceGrpc.getRunPipelineMethod) == null) {
+ synchronized (PipelineServiceGrpc.class) {
+ if ((getRunPipelineMethod = PipelineServiceGrpc.getRunPipelineMethod) == null) {
+ PipelineServiceGrpc.getRunPipelineMethod =
+ getRunPipelineMethod =
+ io.grpc.MethodDescriptor
+ .
+ newBuilder()
+ .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName(generateFullMethodName(SERVICE_NAME, "RunPipeline"))
+ .setSampledToLocalTracing(true)
+ .setRequestMarshaller(
+ io.grpc.protobuf.ProtoUtils.marshaller(
+ com.google.cloud.contentwarehouse.v1.RunPipelineRequest
+ .getDefaultInstance()))
+ .setResponseMarshaller(
+ io.grpc.protobuf.ProtoUtils.marshaller(
+ com.google.longrunning.Operation.getDefaultInstance()))
+ .setSchemaDescriptor(
+ new PipelineServiceMethodDescriptorSupplier("RunPipeline"))
+ .build();
+ }
+ }
+ }
+ return getRunPipelineMethod;
+ }
+
+ /** Creates a new async stub that supports all call types for the service */
+ public static PipelineServiceStub newStub(io.grpc.Channel channel) {
+ io.grpc.stub.AbstractStub.StubFactory factory =
+ new io.grpc.stub.AbstractStub.StubFactory() {
+ @java.lang.Override
+ public PipelineServiceStub newStub(
+ io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+ return new PipelineServiceStub(channel, callOptions);
+ }
+ };
+ return PipelineServiceStub.newStub(factory, channel);
+ }
+
+ /**
+ * Creates a new blocking-style stub that supports unary and streaming output calls on the service
+ */
+ public static PipelineServiceBlockingStub newBlockingStub(io.grpc.Channel channel) {
+ io.grpc.stub.AbstractStub.StubFactory factory =
+ new io.grpc.stub.AbstractStub.StubFactory() {
+ @java.lang.Override
+ public PipelineServiceBlockingStub newStub(
+ io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+ return new PipelineServiceBlockingStub(channel, callOptions);
+ }
+ };
+ return PipelineServiceBlockingStub.newStub(factory, channel);
+ }
+
+ /** Creates a new ListenableFuture-style stub that supports unary calls on the service */
+ public static PipelineServiceFutureStub newFutureStub(io.grpc.Channel channel) {
+ io.grpc.stub.AbstractStub.StubFactory factory =
+ new io.grpc.stub.AbstractStub.StubFactory() {
+ @java.lang.Override
+ public PipelineServiceFutureStub newStub(
+ io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+ return new PipelineServiceFutureStub(channel, callOptions);
+ }
+ };
+ return PipelineServiceFutureStub.newStub(factory, channel);
+ }
+
+ /**
+ *
+ *
+ *
+ * This service lets you manage pipelines.
+ *
+ */
+ public interface AsyncService {
+
+ /**
+ *
+ *
+ *
+ * Run a predefined pipeline.
+ *
+ */
+ default void runPipeline(
+ com.google.cloud.contentwarehouse.v1.RunPipelineRequest request,
+ io.grpc.stub.StreamObserver responseObserver) {
+ io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
+ getRunPipelineMethod(), responseObserver);
+ }
+ }
+
+ /**
+ * Base class for the server implementation of the service PipelineService.
+ *
+ *
+ * This service lets you manage pipelines.
+ *
+ */
+ public abstract static class PipelineServiceImplBase
+ implements io.grpc.BindableService, AsyncService {
+
+ @java.lang.Override
+ public final io.grpc.ServerServiceDefinition bindService() {
+ return PipelineServiceGrpc.bindService(this);
+ }
+ }
+
+ /**
+ * A stub to allow clients to do asynchronous rpc calls to service PipelineService.
+ *
+ *
+ * This service lets you manage pipelines.
+ *
+ */
+ public static final class PipelineServiceStub
+ extends io.grpc.stub.AbstractAsyncStub {
+ private PipelineServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+ super(channel, callOptions);
+ }
+
+ @java.lang.Override
+ protected PipelineServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+ return new PipelineServiceStub(channel, callOptions);
+ }
+
+ /**
+ *
+ *
+ *
+ * Run a predefined pipeline.
+ *
+ */
+ public void runPipeline(
+ com.google.cloud.contentwarehouse.v1.RunPipelineRequest request,
+ io.grpc.stub.StreamObserver responseObserver) {
+ io.grpc.stub.ClientCalls.asyncUnaryCall(
+ getChannel().newCall(getRunPipelineMethod(), getCallOptions()),
+ request,
+ responseObserver);
+ }
+ }
+
+ /**
+ * A stub to allow clients to do synchronous rpc calls to service PipelineService.
+ *
+ *
+ * This service lets you manage pipelines.
+ *
+ */
+ public static final class PipelineServiceBlockingStub
+ extends io.grpc.stub.AbstractBlockingStub {
+ private PipelineServiceBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+ super(channel, callOptions);
+ }
+
+ @java.lang.Override
+ protected PipelineServiceBlockingStub build(
+ io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+ return new PipelineServiceBlockingStub(channel, callOptions);
+ }
+
+ /**
+ *
+ *
+ *
+ * Run a predefined pipeline.
+ *
+ */
+ public com.google.longrunning.Operation runPipeline(
+ com.google.cloud.contentwarehouse.v1.RunPipelineRequest request) {
+ return io.grpc.stub.ClientCalls.blockingUnaryCall(
+ getChannel(), getRunPipelineMethod(), getCallOptions(), request);
+ }
+ }
+
+ /**
+ * A stub to allow clients to do ListenableFuture-style rpc calls to service PipelineService.
+ *
+ *
+ * This service lets you manage pipelines.
+ *
+ */
+ public static final class PipelineServiceFutureStub
+ extends io.grpc.stub.AbstractFutureStub {
+ private PipelineServiceFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+ super(channel, callOptions);
+ }
+
+ @java.lang.Override
+ protected PipelineServiceFutureStub build(
+ io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+ return new PipelineServiceFutureStub(channel, callOptions);
+ }
+
+ /**
+ *
+ *
+ *
+ * Run a predefined pipeline.
+ *
+ */
+ public com.google.common.util.concurrent.ListenableFuture
+ runPipeline(com.google.cloud.contentwarehouse.v1.RunPipelineRequest request) {
+ return io.grpc.stub.ClientCalls.futureUnaryCall(
+ getChannel().newCall(getRunPipelineMethod(), getCallOptions()), request);
+ }
+ }
+
+ private static final int METHODID_RUN_PIPELINE = 0;
+
+ private static final class MethodHandlers
+ implements io.grpc.stub.ServerCalls.UnaryMethod,
+ io.grpc.stub.ServerCalls.ServerStreamingMethod,
+ io.grpc.stub.ServerCalls.ClientStreamingMethod,
+ io.grpc.stub.ServerCalls.BidiStreamingMethod {
+ private final AsyncService serviceImpl;
+ private final int methodId;
+
+ MethodHandlers(AsyncService serviceImpl, int methodId) {
+ this.serviceImpl = serviceImpl;
+ this.methodId = methodId;
+ }
+
+ @java.lang.Override
+ @java.lang.SuppressWarnings("unchecked")
+ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) {
+ switch (methodId) {
+ case METHODID_RUN_PIPELINE:
+ serviceImpl.runPipeline(
+ (com.google.cloud.contentwarehouse.v1.RunPipelineRequest) request,
+ (io.grpc.stub.StreamObserver) responseObserver);
+ break;
+ default:
+ throw new AssertionError();
+ }
+ }
+
+ @java.lang.Override
+ @java.lang.SuppressWarnings("unchecked")
+ public io.grpc.stub.StreamObserver invoke(
+ io.grpc.stub.StreamObserver responseObserver) {
+ switch (methodId) {
+ default:
+ throw new AssertionError();
+ }
+ }
+ }
+
+ public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) {
+ return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor())
+ .addMethod(
+ getRunPipelineMethod(),
+ io.grpc.stub.ServerCalls.asyncUnaryCall(
+ new MethodHandlers<
+ com.google.cloud.contentwarehouse.v1.RunPipelineRequest,
+ com.google.longrunning.Operation>(service, METHODID_RUN_PIPELINE)))
+ .build();
+ }
+
+ private abstract static class PipelineServiceBaseDescriptorSupplier
+ implements io.grpc.protobuf.ProtoFileDescriptorSupplier,
+ io.grpc.protobuf.ProtoServiceDescriptorSupplier {
+ PipelineServiceBaseDescriptorSupplier() {}
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() {
+ return com.google.cloud.contentwarehouse.v1.PipelineServiceProto.getDescriptor();
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() {
+ return getFileDescriptor().findServiceByName("PipelineService");
+ }
+ }
+
+ private static final class PipelineServiceFileDescriptorSupplier
+ extends PipelineServiceBaseDescriptorSupplier {
+ PipelineServiceFileDescriptorSupplier() {}
+ }
+
+ private static final class PipelineServiceMethodDescriptorSupplier
+ extends PipelineServiceBaseDescriptorSupplier
+ implements io.grpc.protobuf.ProtoMethodDescriptorSupplier {
+ private final String methodName;
+
+ PipelineServiceMethodDescriptorSupplier(String methodName) {
+ this.methodName = methodName;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() {
+ return getServiceDescriptor().findMethodByName(methodName);
+ }
+ }
+
+ private static volatile io.grpc.ServiceDescriptor serviceDescriptor;
+
+ public static io.grpc.ServiceDescriptor getServiceDescriptor() {
+ io.grpc.ServiceDescriptor result = serviceDescriptor;
+ if (result == null) {
+ synchronized (PipelineServiceGrpc.class) {
+ result = serviceDescriptor;
+ if (result == null) {
+ serviceDescriptor =
+ result =
+ io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
+ .setSchemaDescriptor(new PipelineServiceFileDescriptorSupplier())
+ .addMethod(getRunPipelineMethod())
+ .build();
+ }
+ }
+ }
+ return result;
+ }
+}
diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CommonProto.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CommonProto.java
index 930d3166100c..85572ff65a01 100644
--- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CommonProto.java
+++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CommonProto.java
@@ -80,25 +80,25 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "OPERTIES_BY_NAMES\020\004\022*\n&UPDATE_TYPE_DELET"
+ "E_PROPERTIES_BY_NAMES\020\005\022?\n;UPDATE_TYPE_M"
+ "ERGE_AND_REPLACE_OR_INSERT_PROPERTIES_BY"
- + "_NAMES\020\006*O\n\014DatabaseType\022\016\n\nDB_UNKNOWN\020\000"
- + "\022\024\n\020DB_INFRA_SPANNER\020\001\022\031\n\025DB_CLOUD_SQL_P"
- + "OSTGRES\020\002*\252\001\n\021AccessControlMode\022\024\n\020ACL_M"
- + "ODE_UNKNOWN\020\000\022\035\n\031ACL_MODE_UNIVERSAL_ACCE"
- + "SS\020\001\0220\n,ACL_MODE_DOCUMENT_LEVEL_ACCESS_C"
- + "ONTROL_BYOID\020\002\022.\n*ACL_MODE_DOCUMENT_LEVE"
- + "L_ACCESS_CONTROL_GCI\020\003*\211\001\n\032DocumentCreat"
- + "orDefaultRole\022-\n)DOCUMENT_CREATOR_DEFAUL"
- + "T_ROLE_UNSPECIFIED\020\000\022\022\n\016DOCUMENT_ADMIN\020\001"
- + "\022\023\n\017DOCUMENT_EDITOR\020\002\022\023\n\017DOCUMENT_VIEWER"
- + "\020\003B\311\002\n$com.google.cloud.contentwarehouse"
- + ".v1B\013CommonProtoP\001ZPcloud.google.com/go/"
- + "contentwarehouse/apiv1/contentwarehousep"
- + "b;contentwarehousepb\252\002 Google.Cloud.Cont"
- + "entWarehouse.V1\312\002 Google\\Cloud\\ContentWa"
- + "rehouse\\V1\352\002#Google::Cloud::ContentWareh"
- + "ouse::V1\352AS\n(contentwarehouse.googleapis"
- + ".com/Location\022\'projects/{project}/locati"
- + "ons/{location}b\006proto3"
+ + "_NAMES\020\006*S\n\014DatabaseType\022\016\n\nDB_UNKNOWN\020\000"
+ + "\022\024\n\020DB_INFRA_SPANNER\020\001\022\035\n\025DB_CLOUD_SQL_P"
+ + "OSTGRES\020\002\032\002\010\001*\252\001\n\021AccessControlMode\022\024\n\020A"
+ + "CL_MODE_UNKNOWN\020\000\022\035\n\031ACL_MODE_UNIVERSAL_"
+ + "ACCESS\020\001\0220\n,ACL_MODE_DOCUMENT_LEVEL_ACCE"
+ + "SS_CONTROL_BYOID\020\002\022.\n*ACL_MODE_DOCUMENT_"
+ + "LEVEL_ACCESS_CONTROL_GCI\020\003*\211\001\n\032DocumentC"
+ + "reatorDefaultRole\022-\n)DOCUMENT_CREATOR_DE"
+ + "FAULT_ROLE_UNSPECIFIED\020\000\022\022\n\016DOCUMENT_ADM"
+ + "IN\020\001\022\023\n\017DOCUMENT_EDITOR\020\002\022\023\n\017DOCUMENT_VI"
+ + "EWER\020\003B\311\002\n$com.google.cloud.contentwareh"
+ + "ouse.v1B\013CommonProtoP\001ZPcloud.google.com"
+ + "/go/contentwarehouse/apiv1/contentwareho"
+ + "usepb;contentwarehousepb\252\002 Google.Cloud."
+ + "ContentWarehouse.V1\312\002 Google\\Cloud\\Conte"
+ + "ntWarehouse\\V1\352\002#Google::Cloud::ContentW"
+ + "arehouse::V1\352AS\n(contentwarehouse.google"
+ + "apis.com/Location\022\'projects/{project}/lo"
+ + "cations/{location}b\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DatabaseType.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DatabaseType.java
index 50e6a78e7aa5..e650025b2a95 100644
--- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DatabaseType.java
+++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DatabaseType.java
@@ -55,8 +55,9 @@ public enum DatabaseType implements com.google.protobuf.ProtocolMessageEnum {
* Cloud Sql with a Postgres Sql instance
*
*
- * DB_CLOUD_SQL_POSTGRES = 2;
+ * DB_CLOUD_SQL_POSTGRES = 2 [deprecated = true];
*/
+ @java.lang.Deprecated
DB_CLOUD_SQL_POSTGRES(2),
UNRECOGNIZED(-1),
;
@@ -88,9 +89,9 @@ public enum DatabaseType implements com.google.protobuf.ProtocolMessageEnum {
* Cloud Sql with a Postgres Sql instance
*
*
- * DB_CLOUD_SQL_POSTGRES = 2;
+ * DB_CLOUD_SQL_POSTGRES = 2 [deprecated = true];
*/
- public static final int DB_CLOUD_SQL_POSTGRES_VALUE = 2;
+ @java.lang.Deprecated public static final int DB_CLOUD_SQL_POSTGRES_VALUE = 2;
public final int getNumber() {
if (this == UNRECOGNIZED) {
diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/Document.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/Document.java
index bcde3125f6c2..4020d3846778 100644
--- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/Document.java
+++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/Document.java
@@ -1191,6 +1191,83 @@ public com.google.protobuf.ByteString getUpdaterBytes() {
}
}
+ public static final int DISPOSITION_TIME_FIELD_NUMBER = 22;
+ private com.google.protobuf.Timestamp dispositionTime_;
+ /**
+ *
+ *
+ *
+ * Output only. If linked to a Collection with RetentionPolicy, the date when
+ * the document becomes mutable.
+ *
+ *
+ *
+ * .google.protobuf.Timestamp disposition_time = 22 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the dispositionTime field is set.
+ */
+ @java.lang.Override
+ public boolean hasDispositionTime() {
+ return dispositionTime_ != null;
+ }
+ /**
+ *
+ *
+ *
+ * Output only. If linked to a Collection with RetentionPolicy, the date when
+ * the document becomes mutable.
+ *
+ *
+ *
+ * .google.protobuf.Timestamp disposition_time = 22 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The dispositionTime.
+ */
+ @java.lang.Override
+ public com.google.protobuf.Timestamp getDispositionTime() {
+ return dispositionTime_ == null
+ ? com.google.protobuf.Timestamp.getDefaultInstance()
+ : dispositionTime_;
+ }
+ /**
+ *
+ *
+ *
+ * Output only. If linked to a Collection with RetentionPolicy, the date when
+ * the document becomes mutable.
+ *
+ *
+ *
+ * .google.protobuf.Timestamp disposition_time = 22 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ @java.lang.Override
+ public com.google.protobuf.TimestampOrBuilder getDispositionTimeOrBuilder() {
+ return dispositionTime_ == null
+ ? com.google.protobuf.Timestamp.getDefaultInstance()
+ : dispositionTime_;
+ }
+
+ public static final int LEGAL_HOLD_FIELD_NUMBER = 23;
+ private boolean legalHold_ = false;
+ /**
+ *
+ *
+ *
+ * Output only. Indicates if the document has a legal hold on it.
+ *
+ *
+ * bool legal_hold = 23 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The legalHold.
+ */
+ @java.lang.Override
+ public boolean getLegalHold() {
+ return legalHold_;
+ }
+
private byte memoizedIsInitialized = -1;
@java.lang.Override
@@ -1273,6 +1350,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (textExtractionEnabled_ != false) {
output.writeBool(21, textExtractionEnabled_);
}
+ if (dispositionTime_ != null) {
+ output.writeMessage(22, getDispositionTime());
+ }
+ if (legalHold_ != false) {
+ output.writeBool(23, legalHold_);
+ }
getUnknownFields().writeTo(output);
}
@@ -1354,6 +1437,12 @@ public int getSerializedSize() {
if (textExtractionEnabled_ != false) {
size += com.google.protobuf.CodedOutputStream.computeBoolSize(21, textExtractionEnabled_);
}
+ if (dispositionTime_ != null) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(22, getDispositionTime());
+ }
+ if (legalHold_ != false) {
+ size += com.google.protobuf.CodedOutputStream.computeBoolSize(23, legalHold_);
+ }
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
@@ -1393,6 +1482,11 @@ public boolean equals(final java.lang.Object obj) {
if (getTextExtractionEnabled() != other.getTextExtractionEnabled()) return false;
if (!getCreator().equals(other.getCreator())) return false;
if (!getUpdater().equals(other.getUpdater())) return false;
+ if (hasDispositionTime() != other.hasDispositionTime()) return false;
+ if (hasDispositionTime()) {
+ if (!getDispositionTime().equals(other.getDispositionTime())) return false;
+ }
+ if (getLegalHold() != other.getLegalHold()) return false;
if (!getStructuredContentCase().equals(other.getStructuredContentCase())) return false;
switch (structuredContentCase_) {
case 15:
@@ -1466,6 +1560,12 @@ public int hashCode() {
hash = (53 * hash) + getCreator().hashCode();
hash = (37 * hash) + UPDATER_FIELD_NUMBER;
hash = (53 * hash) + getUpdater().hashCode();
+ if (hasDispositionTime()) {
+ hash = (37 * hash) + DISPOSITION_TIME_FIELD_NUMBER;
+ hash = (53 * hash) + getDispositionTime().hashCode();
+ }
+ hash = (37 * hash) + LEGAL_HOLD_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getLegalHold());
switch (structuredContentCase_) {
case 15:
hash = (37 * hash) + PLAIN_TEXT_FIELD_NUMBER;
@@ -1663,6 +1763,12 @@ public Builder clear() {
textExtractionEnabled_ = false;
creator_ = "";
updater_ = "";
+ dispositionTime_ = null;
+ if (dispositionTimeBuilder_ != null) {
+ dispositionTimeBuilder_.dispose();
+ dispositionTimeBuilder_ = null;
+ }
+ legalHold_ = false;
structuredContentCase_ = 0;
structuredContent_ = null;
rawDocumentCase_ = 0;
@@ -1765,6 +1871,13 @@ private void buildPartial0(com.google.cloud.contentwarehouse.v1.Document result)
if (((from_bitField0_ & 0x00100000) != 0)) {
result.updater_ = updater_;
}
+ if (((from_bitField0_ & 0x00200000) != 0)) {
+ result.dispositionTime_ =
+ dispositionTimeBuilder_ == null ? dispositionTime_ : dispositionTimeBuilder_.build();
+ }
+ if (((from_bitField0_ & 0x00400000) != 0)) {
+ result.legalHold_ = legalHold_;
+ }
}
private void buildPartialOneofs(com.google.cloud.contentwarehouse.v1.Document result) {
@@ -1915,6 +2028,12 @@ public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.Document other) {
bitField0_ |= 0x00100000;
onChanged();
}
+ if (other.hasDispositionTime()) {
+ mergeDispositionTime(other.getDispositionTime());
+ }
+ if (other.getLegalHold() != false) {
+ setLegalHold(other.getLegalHold());
+ }
switch (other.getStructuredContentCase()) {
case PLAIN_TEXT:
{
@@ -2112,6 +2231,18 @@ public Builder mergeFrom(
bitField0_ |= 0x00040000;
break;
} // case 168
+ case 178:
+ {
+ input.readMessage(getDispositionTimeFieldBuilder().getBuilder(), extensionRegistry);
+ bitField0_ |= 0x00200000;
+ break;
+ } // case 178
+ case 184:
+ {
+ legalHold_ = input.readBool();
+ bitField0_ |= 0x00400000;
+ break;
+ } // case 184
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
@@ -4863,6 +4994,269 @@ public Builder setUpdaterBytes(com.google.protobuf.ByteString value) {
return this;
}
+ private com.google.protobuf.Timestamp dispositionTime_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Timestamp,
+ com.google.protobuf.Timestamp.Builder,
+ com.google.protobuf.TimestampOrBuilder>
+ dispositionTimeBuilder_;
+ /**
+ *
+ *
+ *
+ * Output only. If linked to a Collection with RetentionPolicy, the date when
+ * the document becomes mutable.
+ *
+ *
+ *
+ * .google.protobuf.Timestamp disposition_time = 22 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the dispositionTime field is set.
+ */
+ public boolean hasDispositionTime() {
+ return ((bitField0_ & 0x00200000) != 0);
+ }
+ /**
+ *
+ *
+ *
+ * Output only. If linked to a Collection with RetentionPolicy, the date when
+ * the document becomes mutable.
+ *
+ *
+ *
+ * .google.protobuf.Timestamp disposition_time = 22 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The dispositionTime.
+ */
+ public com.google.protobuf.Timestamp getDispositionTime() {
+ if (dispositionTimeBuilder_ == null) {
+ return dispositionTime_ == null
+ ? com.google.protobuf.Timestamp.getDefaultInstance()
+ : dispositionTime_;
+ } else {
+ return dispositionTimeBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Output only. If linked to a Collection with RetentionPolicy, the date when
+ * the document becomes mutable.
+ *
+ *
+ *
+ * .google.protobuf.Timestamp disposition_time = 22 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder setDispositionTime(com.google.protobuf.Timestamp value) {
+ if (dispositionTimeBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ dispositionTime_ = value;
+ } else {
+ dispositionTimeBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00200000;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Output only. If linked to a Collection with RetentionPolicy, the date when
+ * the document becomes mutable.
+ *
+ *
+ *
+ * .google.protobuf.Timestamp disposition_time = 22 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder setDispositionTime(com.google.protobuf.Timestamp.Builder builderForValue) {
+ if (dispositionTimeBuilder_ == null) {
+ dispositionTime_ = builderForValue.build();
+ } else {
+ dispositionTimeBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00200000;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Output only. If linked to a Collection with RetentionPolicy, the date when
+ * the document becomes mutable.
+ *
+ *
+ *
+ * .google.protobuf.Timestamp disposition_time = 22 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder mergeDispositionTime(com.google.protobuf.Timestamp value) {
+ if (dispositionTimeBuilder_ == null) {
+ if (((bitField0_ & 0x00200000) != 0)
+ && dispositionTime_ != null
+ && dispositionTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
+ getDispositionTimeBuilder().mergeFrom(value);
+ } else {
+ dispositionTime_ = value;
+ }
+ } else {
+ dispositionTimeBuilder_.mergeFrom(value);
+ }
+ bitField0_ |= 0x00200000;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Output only. If linked to a Collection with RetentionPolicy, the date when
+ * the document becomes mutable.
+ *
+ *
+ *
+ * .google.protobuf.Timestamp disposition_time = 22 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder clearDispositionTime() {
+ bitField0_ = (bitField0_ & ~0x00200000);
+ dispositionTime_ = null;
+ if (dispositionTimeBuilder_ != null) {
+ dispositionTimeBuilder_.dispose();
+ dispositionTimeBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Output only. If linked to a Collection with RetentionPolicy, the date when
+ * the document becomes mutable.
+ *
+ *
+ *
+ * .google.protobuf.Timestamp disposition_time = 22 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public com.google.protobuf.Timestamp.Builder getDispositionTimeBuilder() {
+ bitField0_ |= 0x00200000;
+ onChanged();
+ return getDispositionTimeFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ *
+ * Output only. If linked to a Collection with RetentionPolicy, the date when
+ * the document becomes mutable.
+ *
+ *
+ *
+ * .google.protobuf.Timestamp disposition_time = 22 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public com.google.protobuf.TimestampOrBuilder getDispositionTimeOrBuilder() {
+ if (dispositionTimeBuilder_ != null) {
+ return dispositionTimeBuilder_.getMessageOrBuilder();
+ } else {
+ return dispositionTime_ == null
+ ? com.google.protobuf.Timestamp.getDefaultInstance()
+ : dispositionTime_;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Output only. If linked to a Collection with RetentionPolicy, the date when
+ * the document becomes mutable.
+ *
+ *
+ *
+ * .google.protobuf.Timestamp disposition_time = 22 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Timestamp,
+ com.google.protobuf.Timestamp.Builder,
+ com.google.protobuf.TimestampOrBuilder>
+ getDispositionTimeFieldBuilder() {
+ if (dispositionTimeBuilder_ == null) {
+ dispositionTimeBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Timestamp,
+ com.google.protobuf.Timestamp.Builder,
+ com.google.protobuf.TimestampOrBuilder>(
+ getDispositionTime(), getParentForChildren(), isClean());
+ dispositionTime_ = null;
+ }
+ return dispositionTimeBuilder_;
+ }
+
+ private boolean legalHold_;
+ /**
+ *
+ *
+ *
+ * Output only. Indicates if the document has a legal hold on it.
+ *
+ *
+ * bool legal_hold = 23 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The legalHold.
+ */
+ @java.lang.Override
+ public boolean getLegalHold() {
+ return legalHold_;
+ }
+ /**
+ *
+ *
+ *
+ * Output only. Indicates if the document has a legal hold on it.
+ *
+ *
+ * bool legal_hold = 23 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @param value The legalHold to set.
+ * @return This builder for chaining.
+ */
+ public Builder setLegalHold(boolean value) {
+
+ legalHold_ = value;
+ bitField0_ |= 0x00400000;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Output only. Indicates if the document has a legal hold on it.
+ *
+ *
+ * bool legal_hold = 23 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearLegalHold() {
+ bitField0_ = (bitField0_ & ~0x00400000);
+ legalHold_ = false;
+ onChanged();
+ return this;
+ }
+
@java.lang.Override
public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentOrBuilder.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentOrBuilder.java
index 32e64e96d1af..23fef6cce565 100644
--- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentOrBuilder.java
+++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentOrBuilder.java
@@ -637,6 +637,63 @@ public interface DocumentOrBuilder
*/
com.google.protobuf.ByteString getUpdaterBytes();
+ /**
+ *
+ *
+ *
+ * Output only. If linked to a Collection with RetentionPolicy, the date when
+ * the document becomes mutable.
+ *
+ *
+ *
+ * .google.protobuf.Timestamp disposition_time = 22 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the dispositionTime field is set.
+ */
+ boolean hasDispositionTime();
+ /**
+ *
+ *
+ *
+ * Output only. If linked to a Collection with RetentionPolicy, the date when
+ * the document becomes mutable.
+ *
+ *
+ *
+ * .google.protobuf.Timestamp disposition_time = 22 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The dispositionTime.
+ */
+ com.google.protobuf.Timestamp getDispositionTime();
+ /**
+ *
+ *
+ *
+ * Output only. If linked to a Collection with RetentionPolicy, the date when
+ * the document becomes mutable.
+ *
+ *
+ *
+ * .google.protobuf.Timestamp disposition_time = 22 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ com.google.protobuf.TimestampOrBuilder getDispositionTimeOrBuilder();
+
+ /**
+ *
+ *
+ *
+ * Output only. Indicates if the document has a legal hold on it.
+ *
+ *
+ * bool legal_hold = 23 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The legalHold.
+ */
+ boolean getLegalHold();
+
com.google.cloud.contentwarehouse.v1.Document.StructuredContentCase getStructuredContentCase();
com.google.cloud.contentwarehouse.v1.Document.RawDocumentCase getRawDocumentCase();
diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentProto.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentProto.java
index b8a763a6538e..19f804438f33 100644
--- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentProto.java
+++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentProto.java
@@ -102,7 +102,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "ogle/api/resource.proto\032)google/cloud/do"
+ "cumentai/v1/document.proto\032\037google/proto"
+ "buf/timestamp.proto\032\032google/type/datetim"
- + "e.proto\"\263\010\n\010Document\022\014\n\004name\030\001 \001(\t\022\024\n\014re"
+ + "e.proto\"\211\t\n\010Document\022\014\n\004name\030\001 \001(\t\022\024\n\014re"
+ "ference_id\030\013 \001(\t\022\032\n\014display_name\030\002 \001(\tB\004"
+ "\342A\001\002\022\r\n\005title\030\022 \001(\t\022\023\n\013display_uri\030\021 \001(\t"
+ "\022Q\n\024document_schema_name\030\003 \001(\tB3\372A0\n.con"
@@ -123,77 +123,81 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "ntentwarehouse.v1.ContentCategory\022$\n\030tex"
+ "t_extraction_disabled\030\023 \001(\010B\002\030\001\022\037\n\027text_"
+ "extraction_enabled\030\025 \001(\010\022\017\n\007creator\030\r \001("
- + "\t\022\017\n\007updater\030\016 \001(\t:\272\001\352A\266\001\n(contentwareho"
- + "use.googleapis.com/Document\022\n\nproperties\030\001 \003(\0132"
- + "*.google.cloud.contentwarehouse.v1.Prope"
- + "rty\"\260\001\n\013MapProperty\022I\n\006fields\030\001 \003(\01329.go"
- + "ogle.cloud.contentwarehouse.v1.MapProper"
- + "ty.FieldsEntry\032V\n\013FieldsEntry\022\013\n\003key\030\001 \001"
- + "(\t\0226\n\005value\030\002 \001(\0132\'.google.cloud.content"
- + "warehouse.v1.Value:\0028\001\"\255\002\n\005Value\022\025\n\013floa"
- + "t_value\030\001 \001(\002H\000\022\023\n\tint_value\030\002 \001(\005H\000\022\026\n\014"
- + "string_value\030\003 \001(\tH\000\022A\n\nenum_value\030\004 \001(\013"
- + "2+.google.cloud.contentwarehouse.v1.Enum"
- + "ValueH\000\022/\n\016datetime_value\030\005 \001(\0132\025.google"
- + ".type.DateTimeH\000\022K\n\017timestamp_value\030\006 \001("
- + "\01320.google.cloud.contentwarehouse.v1.Tim"
- + "estampValueH\000\022\027\n\rboolean_value\030\007 \001(\010H\000B\006"
- + "\n\004kind\"\032\n\tEnumValue\022\r\n\005value\030\001 \001(\t*\202\002\n\023R"
- + "awDocumentFileType\022&\n\"RAW_DOCUMENT_FILE_"
- + "TYPE_UNSPECIFIED\020\000\022\036\n\032RAW_DOCUMENT_FILE_"
- + "TYPE_PDF\020\001\022\037\n\033RAW_DOCUMENT_FILE_TYPE_DOC"
- + "X\020\002\022\037\n\033RAW_DOCUMENT_FILE_TYPE_XLSX\020\003\022\037\n\033"
- + "RAW_DOCUMENT_FILE_TYPE_PPTX\020\004\022\037\n\033RAW_DOC"
- + "UMENT_FILE_TYPE_TEXT\020\005\022\037\n\033RAW_DOCUMENT_F"
- + "ILE_TYPE_TIFF\020\006*\207\001\n\017ContentCategory\022 \n\034C"
- + "ONTENT_CATEGORY_UNSPECIFIED\020\000\022\032\n\026CONTENT"
- + "_CATEGORY_IMAGE\020\001\022\032\n\026CONTENT_CATEGORY_AU"
- + "DIO\020\002\022\032\n\026CONTENT_CATEGORY_VIDEO\020\003B\365\001\n$co"
- + "m.google.cloud.contentwarehouse.v1B\rDocu"
- + "mentProtoP\001ZPcloud.google.com/go/content"
- + "warehouse/apiv1/contentwarehousepb;conte"
- + "ntwarehousepb\252\002 Google.Cloud.ContentWare"
- + "house.V1\312\002 Google\\Cloud\\ContentWarehouse"
- + "\\V1\352\002#Google::Cloud::ContentWarehouse::V"
- + "1b\006proto3"
+ + "\t\022\017\n\007updater\030\016 \001(\t\022:\n\020disposition_time\030\026"
+ + " \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\022\030"
+ + "\n\nlegal_hold\030\027 \001(\010B\004\342A\001\003:\272\001\352A\266\001\n(content"
+ + "warehouse.googleapis.com/Document\022\n\nproperties\030\001 \003"
+ + "(\0132*.google.cloud.contentwarehouse.v1.Pr"
+ + "operty\"\260\001\n\013MapProperty\022I\n\006fields\030\001 \003(\01329"
+ + ".google.cloud.contentwarehouse.v1.MapPro"
+ + "perty.FieldsEntry\032V\n\013FieldsEntry\022\013\n\003key\030"
+ + "\001 \001(\t\0226\n\005value\030\002 \001(\0132\'.google.cloud.cont"
+ + "entwarehouse.v1.Value:\0028\001\"\255\002\n\005Value\022\025\n\013f"
+ + "loat_value\030\001 \001(\002H\000\022\023\n\tint_value\030\002 \001(\005H\000\022"
+ + "\026\n\014string_value\030\003 \001(\tH\000\022A\n\nenum_value\030\004 "
+ + "\001(\0132+.google.cloud.contentwarehouse.v1.E"
+ + "numValueH\000\022/\n\016datetime_value\030\005 \001(\0132\025.goo"
+ + "gle.type.DateTimeH\000\022K\n\017timestamp_value\030\006"
+ + " \001(\01320.google.cloud.contentwarehouse.v1."
+ + "TimestampValueH\000\022\027\n\rboolean_value\030\007 \001(\010H"
+ + "\000B\006\n\004kind\"\032\n\tEnumValue\022\r\n\005value\030\001 \001(\t*\202\002"
+ + "\n\023RawDocumentFileType\022&\n\"RAW_DOCUMENT_FI"
+ + "LE_TYPE_UNSPECIFIED\020\000\022\036\n\032RAW_DOCUMENT_FI"
+ + "LE_TYPE_PDF\020\001\022\037\n\033RAW_DOCUMENT_FILE_TYPE_"
+ + "DOCX\020\002\022\037\n\033RAW_DOCUMENT_FILE_TYPE_XLSX\020\003\022"
+ + "\037\n\033RAW_DOCUMENT_FILE_TYPE_PPTX\020\004\022\037\n\033RAW_"
+ + "DOCUMENT_FILE_TYPE_TEXT\020\005\022\037\n\033RAW_DOCUMEN"
+ + "T_FILE_TYPE_TIFF\020\006*\207\001\n\017ContentCategory\022 "
+ + "\n\034CONTENT_CATEGORY_UNSPECIFIED\020\000\022\032\n\026CONT"
+ + "ENT_CATEGORY_IMAGE\020\001\022\032\n\026CONTENT_CATEGORY"
+ + "_AUDIO\020\002\022\032\n\026CONTENT_CATEGORY_VIDEO\020\003B\365\001\n"
+ + "$com.google.cloud.contentwarehouse.v1B\rD"
+ + "ocumentProtoP\001ZPcloud.google.com/go/cont"
+ + "entwarehouse/apiv1/contentwarehousepb;co"
+ + "ntentwarehousepb\252\002 Google.Cloud.ContentW"
+ + "arehouse.V1\312\002 Google\\Cloud\\ContentWareho"
+ + "use\\V1\352\002#Google::Cloud::ContentWarehouse"
+ + "::V1b\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
@@ -232,6 +236,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"TextExtractionEnabled",
"Creator",
"Updater",
+ "DispositionTime",
+ "LegalHold",
"StructuredContent",
"RawDocument",
});
@@ -248,6 +254,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"UpdateTime",
"CreateTime",
"DeleteTime",
+ "DocumentIsRetentionFolder",
+ "DocumentIsLegalHoldFolder",
});
internal_static_google_cloud_contentwarehouse_v1_Property_descriptor =
getDescriptor().getMessageTypes().get(2);
diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentQuery.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentQuery.java
index 3e01efed736a..c8baf8b88c56 100644
--- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentQuery.java
+++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentQuery.java
@@ -36,6 +36,7 @@ private DocumentQuery() {
documentSchemaNames_ = com.google.protobuf.LazyStringArrayList.emptyList();
propertyFilter_ = java.util.Collections.emptyList();
folderNameFilter_ = "";
+ documentNameFilter_ = com.google.protobuf.LazyStringArrayList.emptyList();
queryContext_ = com.google.protobuf.LazyStringArrayList.emptyList();
documentCreatorFilter_ = com.google.protobuf.LazyStringArrayList.emptyList();
}
@@ -695,6 +696,78 @@ public com.google.protobuf.ByteString getFolderNameFilterBytes() {
}
}
+ public static final int DOCUMENT_NAME_FILTER_FIELD_NUMBER = 14;
+
+ @SuppressWarnings("serial")
+ private com.google.protobuf.LazyStringArrayList documentNameFilter_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
+ /**
+ *
+ *
+ *
+ * Search the documents in the list.
+ * Format:
+ * projects/{project_number}/locations/{location}/documents/{document_id}.
+ *
+ *
+ * repeated string document_name_filter = 14;
+ *
+ * @return A list containing the documentNameFilter.
+ */
+ public com.google.protobuf.ProtocolStringList getDocumentNameFilterList() {
+ return documentNameFilter_;
+ }
+ /**
+ *
+ *
+ *
+ * Search the documents in the list.
+ * Format:
+ * projects/{project_number}/locations/{location}/documents/{document_id}.
+ *
+ *
+ * repeated string document_name_filter = 14;
+ *
+ * @return The count of documentNameFilter.
+ */
+ public int getDocumentNameFilterCount() {
+ return documentNameFilter_.size();
+ }
+ /**
+ *
+ *
+ *
+ * Search the documents in the list.
+ * Format:
+ * projects/{project_number}/locations/{location}/documents/{document_id}.
+ *
+ *
+ * repeated string document_name_filter = 14;
+ *
+ * @param index The index of the element to return.
+ * @return The documentNameFilter at the given index.
+ */
+ public java.lang.String getDocumentNameFilter(int index) {
+ return documentNameFilter_.get(index);
+ }
+ /**
+ *
+ *
+ *
+ * Search the documents in the list.
+ * Format:
+ * projects/{project_number}/locations/{location}/documents/{document_id}.
+ *
+ *
+ * repeated string document_name_filter = 14;
+ *
+ * @param index The index of the value to return.
+ * @return The bytes of the documentNameFilter at the given index.
+ */
+ public com.google.protobuf.ByteString getDocumentNameFilterBytes(int index) {
+ return documentNameFilter_.getByteString(index);
+ }
+
public static final int QUERY_CONTEXT_FIELD_NUMBER = 10;
@SuppressWarnings("serial")
@@ -981,6 +1054,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (customWeightsMetadata_ != null) {
output.writeMessage(13, getCustomWeightsMetadata());
}
+ for (int i = 0; i < documentNameFilter_.size(); i++) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 14, documentNameFilter_.getRaw(i));
+ }
getUnknownFields().writeTo(output);
}
@@ -1039,6 +1115,14 @@ public int getSerializedSize() {
size +=
com.google.protobuf.CodedOutputStream.computeMessageSize(13, getCustomWeightsMetadata());
}
+ {
+ int dataSize = 0;
+ for (int i = 0; i < documentNameFilter_.size(); i++) {
+ dataSize += computeStringSizeNoTag(documentNameFilter_.getRaw(i));
+ }
+ size += dataSize;
+ size += 1 * getDocumentNameFilterList().size();
+ }
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
@@ -1066,6 +1150,7 @@ public boolean equals(final java.lang.Object obj) {
if (!getFileTypeFilter().equals(other.getFileTypeFilter())) return false;
}
if (!getFolderNameFilter().equals(other.getFolderNameFilter())) return false;
+ if (!getDocumentNameFilterList().equals(other.getDocumentNameFilterList())) return false;
if (!getQueryContextList().equals(other.getQueryContextList())) return false;
if (!getDocumentCreatorFilterList().equals(other.getDocumentCreatorFilterList())) return false;
if (hasCustomWeightsMetadata() != other.hasCustomWeightsMetadata()) return false;
@@ -1107,6 +1192,10 @@ public int hashCode() {
}
hash = (37 * hash) + FOLDER_NAME_FILTER_FIELD_NUMBER;
hash = (53 * hash) + getFolderNameFilter().hashCode();
+ if (getDocumentNameFilterCount() > 0) {
+ hash = (37 * hash) + DOCUMENT_NAME_FILTER_FIELD_NUMBER;
+ hash = (53 * hash) + getDocumentNameFilterList().hashCode();
+ }
if (getQueryContextCount() > 0) {
hash = (37 * hash) + QUERY_CONTEXT_FIELD_NUMBER;
hash = (53 * hash) + getQueryContextList().hashCode();
@@ -1274,6 +1363,7 @@ public Builder clear() {
fileTypeFilterBuilder_ = null;
}
folderNameFilter_ = "";
+ documentNameFilter_ = com.google.protobuf.LazyStringArrayList.emptyList();
queryContext_ = com.google.protobuf.LazyStringArrayList.emptyList();
documentCreatorFilter_ = com.google.protobuf.LazyStringArrayList.emptyList();
customWeightsMetadata_ = null;
@@ -1361,14 +1451,18 @@ private void buildPartial0(com.google.cloud.contentwarehouse.v1.DocumentQuery re
result.folderNameFilter_ = folderNameFilter_;
}
if (((from_bitField0_ & 0x00000100) != 0)) {
+ documentNameFilter_.makeImmutable();
+ result.documentNameFilter_ = documentNameFilter_;
+ }
+ if (((from_bitField0_ & 0x00000200) != 0)) {
queryContext_.makeImmutable();
result.queryContext_ = queryContext_;
}
- if (((from_bitField0_ & 0x00000200) != 0)) {
+ if (((from_bitField0_ & 0x00000400) != 0)) {
documentCreatorFilter_.makeImmutable();
result.documentCreatorFilter_ = documentCreatorFilter_;
}
- if (((from_bitField0_ & 0x00000400) != 0)) {
+ if (((from_bitField0_ & 0x00000800) != 0)) {
result.customWeightsMetadata_ =
customWeightsMetadataBuilder_ == null
? customWeightsMetadata_
@@ -1507,10 +1601,20 @@ public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.DocumentQuery othe
bitField0_ |= 0x00000080;
onChanged();
}
+ if (!other.documentNameFilter_.isEmpty()) {
+ if (documentNameFilter_.isEmpty()) {
+ documentNameFilter_ = other.documentNameFilter_;
+ bitField0_ |= 0x00000100;
+ } else {
+ ensureDocumentNameFilterIsMutable();
+ documentNameFilter_.addAll(other.documentNameFilter_);
+ }
+ onChanged();
+ }
if (!other.queryContext_.isEmpty()) {
if (queryContext_.isEmpty()) {
queryContext_ = other.queryContext_;
- bitField0_ |= 0x00000100;
+ bitField0_ |= 0x00000200;
} else {
ensureQueryContextIsMutable();
queryContext_.addAll(other.queryContext_);
@@ -1520,7 +1624,7 @@ public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.DocumentQuery othe
if (!other.documentCreatorFilter_.isEmpty()) {
if (documentCreatorFilter_.isEmpty()) {
documentCreatorFilter_ = other.documentCreatorFilter_;
- bitField0_ |= 0x00000200;
+ bitField0_ |= 0x00000400;
} else {
ensureDocumentCreatorFilterIsMutable();
documentCreatorFilter_.addAll(other.documentCreatorFilter_);
@@ -1639,9 +1743,16 @@ public Builder mergeFrom(
{
input.readMessage(
getCustomWeightsMetadataFieldBuilder().getBuilder(), extensionRegistry);
- bitField0_ |= 0x00000400;
+ bitField0_ |= 0x00000800;
break;
} // case 106
+ case 114:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+ ensureDocumentNameFilterIsMutable();
+ documentNameFilter_.add(s);
+ break;
+ } // case 114
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
@@ -3638,6 +3749,198 @@ public Builder setFolderNameFilterBytes(com.google.protobuf.ByteString value) {
return this;
}
+ private com.google.protobuf.LazyStringArrayList documentNameFilter_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
+
+ private void ensureDocumentNameFilterIsMutable() {
+ if (!documentNameFilter_.isModifiable()) {
+ documentNameFilter_ = new com.google.protobuf.LazyStringArrayList(documentNameFilter_);
+ }
+ bitField0_ |= 0x00000100;
+ }
+ /**
+ *
+ *
+ *
+ * Search the documents in the list.
+ * Format:
+ * projects/{project_number}/locations/{location}/documents/{document_id}.
+ *
+ *
+ * repeated string document_name_filter = 14;
+ *
+ * @return A list containing the documentNameFilter.
+ */
+ public com.google.protobuf.ProtocolStringList getDocumentNameFilterList() {
+ documentNameFilter_.makeImmutable();
+ return documentNameFilter_;
+ }
+ /**
+ *
+ *
+ *
+ * Search the documents in the list.
+ * Format:
+ * projects/{project_number}/locations/{location}/documents/{document_id}.
+ *
+ *
+ * repeated string document_name_filter = 14;
+ *
+ * @return The count of documentNameFilter.
+ */
+ public int getDocumentNameFilterCount() {
+ return documentNameFilter_.size();
+ }
+ /**
+ *
+ *
+ *
+ * Search the documents in the list.
+ * Format:
+ * projects/{project_number}/locations/{location}/documents/{document_id}.
+ *
+ *
+ * repeated string document_name_filter = 14;
+ *
+ * @param index The index of the element to return.
+ * @return The documentNameFilter at the given index.
+ */
+ public java.lang.String getDocumentNameFilter(int index) {
+ return documentNameFilter_.get(index);
+ }
+ /**
+ *
+ *
+ *
+ * Search the documents in the list.
+ * Format:
+ * projects/{project_number}/locations/{location}/documents/{document_id}.
+ *
+ *
+ * repeated string document_name_filter = 14;
+ *
+ * @param index The index of the value to return.
+ * @return The bytes of the documentNameFilter at the given index.
+ */
+ public com.google.protobuf.ByteString getDocumentNameFilterBytes(int index) {
+ return documentNameFilter_.getByteString(index);
+ }
+ /**
+ *
+ *
+ *
+ * Search the documents in the list.
+ * Format:
+ * projects/{project_number}/locations/{location}/documents/{document_id}.
+ *
+ *
+ * repeated string document_name_filter = 14;
+ *
+ * @param index The index to set the value at.
+ * @param value The documentNameFilter to set.
+ * @return This builder for chaining.
+ */
+ public Builder setDocumentNameFilter(int index, java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureDocumentNameFilterIsMutable();
+ documentNameFilter_.set(index, value);
+ bitField0_ |= 0x00000100;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Search the documents in the list.
+ * Format:
+ * projects/{project_number}/locations/{location}/documents/{document_id}.
+ *
+ *
+ * repeated string document_name_filter = 14;
+ *
+ * @param value The documentNameFilter to add.
+ * @return This builder for chaining.
+ */
+ public Builder addDocumentNameFilter(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureDocumentNameFilterIsMutable();
+ documentNameFilter_.add(value);
+ bitField0_ |= 0x00000100;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Search the documents in the list.
+ * Format:
+ * projects/{project_number}/locations/{location}/documents/{document_id}.
+ *
+ *
+ * repeated string document_name_filter = 14;
+ *
+ * @param values The documentNameFilter to add.
+ * @return This builder for chaining.
+ */
+ public Builder addAllDocumentNameFilter(java.lang.Iterable values) {
+ ensureDocumentNameFilterIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, documentNameFilter_);
+ bitField0_ |= 0x00000100;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Search the documents in the list.
+ * Format:
+ * projects/{project_number}/locations/{location}/documents/{document_id}.
+ *
+ *
+ * repeated string document_name_filter = 14;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearDocumentNameFilter() {
+ documentNameFilter_ = com.google.protobuf.LazyStringArrayList.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000100);
+ ;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Search the documents in the list.
+ * Format:
+ * projects/{project_number}/locations/{location}/documents/{document_id}.
+ *
+ *
+ * repeated string document_name_filter = 14;
+ *
+ * @param value The bytes of the documentNameFilter to add.
+ * @return This builder for chaining.
+ */
+ public Builder addDocumentNameFilterBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ ensureDocumentNameFilterIsMutable();
+ documentNameFilter_.add(value);
+ bitField0_ |= 0x00000100;
+ onChanged();
+ return this;
+ }
+
private com.google.protobuf.LazyStringArrayList queryContext_ =
com.google.protobuf.LazyStringArrayList.emptyList();
@@ -3645,7 +3948,7 @@ private void ensureQueryContextIsMutable() {
if (!queryContext_.isModifiable()) {
queryContext_ = new com.google.protobuf.LazyStringArrayList(queryContext_);
}
- bitField0_ |= 0x00000100;
+ bitField0_ |= 0x00000200;
}
/**
*
@@ -3755,7 +4058,7 @@ public Builder setQueryContext(int index, java.lang.String value) {
}
ensureQueryContextIsMutable();
queryContext_.set(index, value);
- bitField0_ |= 0x00000100;
+ bitField0_ |= 0x00000200;
onChanged();
return this;
}
@@ -3783,7 +4086,7 @@ public Builder addQueryContext(java.lang.String value) {
}
ensureQueryContextIsMutable();
queryContext_.add(value);
- bitField0_ |= 0x00000100;
+ bitField0_ |= 0x00000200;
onChanged();
return this;
}
@@ -3808,7 +4111,7 @@ public Builder addQueryContext(java.lang.String value) {
public Builder addAllQueryContext(java.lang.Iterable values) {
ensureQueryContextIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(values, queryContext_);
- bitField0_ |= 0x00000100;
+ bitField0_ |= 0x00000200;
onChanged();
return this;
}
@@ -3831,7 +4134,7 @@ public Builder addAllQueryContext(java.lang.Iterable values) {
*/
public Builder clearQueryContext() {
queryContext_ = com.google.protobuf.LazyStringArrayList.emptyList();
- bitField0_ = (bitField0_ & ~0x00000100);
+ bitField0_ = (bitField0_ & ~0x00000200);
;
onChanged();
return this;
@@ -3861,7 +4164,7 @@ public Builder addQueryContextBytes(com.google.protobuf.ByteString value) {
checkByteStringIsUtf8(value);
ensureQueryContextIsMutable();
queryContext_.add(value);
- bitField0_ |= 0x00000100;
+ bitField0_ |= 0x00000200;
onChanged();
return this;
}
@@ -3874,7 +4177,7 @@ private void ensureDocumentCreatorFilterIsMutable() {
documentCreatorFilter_ =
new com.google.protobuf.LazyStringArrayList(documentCreatorFilter_);
}
- bitField0_ |= 0x00000200;
+ bitField0_ |= 0x00000400;
}
/**
*
@@ -3979,7 +4282,7 @@ public Builder setDocumentCreatorFilter(int index, java.lang.String value) {
}
ensureDocumentCreatorFilterIsMutable();
documentCreatorFilter_.set(index, value);
- bitField0_ |= 0x00000200;
+ bitField0_ |= 0x00000400;
onChanged();
return this;
}
@@ -4006,7 +4309,7 @@ public Builder addDocumentCreatorFilter(java.lang.String value) {
}
ensureDocumentCreatorFilterIsMutable();
documentCreatorFilter_.add(value);
- bitField0_ |= 0x00000200;
+ bitField0_ |= 0x00000400;
onChanged();
return this;
}
@@ -4030,7 +4333,7 @@ public Builder addDocumentCreatorFilter(java.lang.String value) {
public Builder addAllDocumentCreatorFilter(java.lang.Iterable values) {
ensureDocumentCreatorFilterIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(values, documentCreatorFilter_);
- bitField0_ |= 0x00000200;
+ bitField0_ |= 0x00000400;
onChanged();
return this;
}
@@ -4052,7 +4355,7 @@ public Builder addAllDocumentCreatorFilter(java.lang.Iterable
*/
public Builder clearDocumentCreatorFilter() {
documentCreatorFilter_ = com.google.protobuf.LazyStringArrayList.emptyList();
- bitField0_ = (bitField0_ & ~0x00000200);
+ bitField0_ = (bitField0_ & ~0x00000400);
;
onChanged();
return this;
@@ -4081,7 +4384,7 @@ public Builder addDocumentCreatorFilterBytes(com.google.protobuf.ByteString valu
checkByteStringIsUtf8(value);
ensureDocumentCreatorFilterIsMutable();
documentCreatorFilter_.add(value);
- bitField0_ |= 0x00000200;
+ bitField0_ |= 0x00000400;
onChanged();
return this;
}
@@ -4109,7 +4412,7 @@ public Builder addDocumentCreatorFilterBytes(com.google.protobuf.ByteString valu
* @return Whether the customWeightsMetadata field is set.
*/
public boolean hasCustomWeightsMetadata() {
- return ((bitField0_ & 0x00000400) != 0);
+ return ((bitField0_ & 0x00000800) != 0);
}
/**
*
@@ -4160,7 +4463,7 @@ public Builder setCustomWeightsMetadata(
} else {
customWeightsMetadataBuilder_.setMessage(value);
}
- bitField0_ |= 0x00000400;
+ bitField0_ |= 0x00000800;
onChanged();
return this;
}
@@ -4185,7 +4488,7 @@ public Builder setCustomWeightsMetadata(
} else {
customWeightsMetadataBuilder_.setMessage(builderForValue.build());
}
- bitField0_ |= 0x00000400;
+ bitField0_ |= 0x00000800;
onChanged();
return this;
}
@@ -4206,7 +4509,7 @@ public Builder setCustomWeightsMetadata(
public Builder mergeCustomWeightsMetadata(
com.google.cloud.contentwarehouse.v1.CustomWeightsMetadata value) {
if (customWeightsMetadataBuilder_ == null) {
- if (((bitField0_ & 0x00000400) != 0)
+ if (((bitField0_ & 0x00000800) != 0)
&& customWeightsMetadata_ != null
&& customWeightsMetadata_
!= com.google.cloud.contentwarehouse.v1.CustomWeightsMetadata
@@ -4218,7 +4521,7 @@ public Builder mergeCustomWeightsMetadata(
} else {
customWeightsMetadataBuilder_.mergeFrom(value);
}
- bitField0_ |= 0x00000400;
+ bitField0_ |= 0x00000800;
onChanged();
return this;
}
@@ -4237,7 +4540,7 @@ public Builder mergeCustomWeightsMetadata(
*
*/
public Builder clearCustomWeightsMetadata() {
- bitField0_ = (bitField0_ & ~0x00000400);
+ bitField0_ = (bitField0_ & ~0x00000800);
customWeightsMetadata_ = null;
if (customWeightsMetadataBuilder_ != null) {
customWeightsMetadataBuilder_.dispose();
@@ -4262,7 +4565,7 @@ public Builder clearCustomWeightsMetadata() {
*/
public com.google.cloud.contentwarehouse.v1.CustomWeightsMetadata.Builder
getCustomWeightsMetadataBuilder() {
- bitField0_ |= 0x00000400;
+ bitField0_ |= 0x00000800;
onChanged();
return getCustomWeightsMetadataFieldBuilder().getBuilder();
}
diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentQueryOrBuilder.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentQueryOrBuilder.java
index 96811a7a3726..d17479994c71 100644
--- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentQueryOrBuilder.java
+++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentQueryOrBuilder.java
@@ -506,6 +506,65 @@ com.google.cloud.contentwarehouse.v1.PropertyFilterOrBuilder getPropertyFilterOr
*/
com.google.protobuf.ByteString getFolderNameFilterBytes();
+ /**
+ *
+ *
+ *
+ * Search the documents in the list.
+ * Format:
+ * projects/{project_number}/locations/{location}/documents/{document_id}.
+ *
+ *
+ * repeated string document_name_filter = 14;
+ *
+ * @return A list containing the documentNameFilter.
+ */
+ java.util.List getDocumentNameFilterList();
+ /**
+ *
+ *
+ *
+ * Search the documents in the list.
+ * Format:
+ * projects/{project_number}/locations/{location}/documents/{document_id}.
+ *
+ *
+ * repeated string document_name_filter = 14;
+ *
+ * @return The count of documentNameFilter.
+ */
+ int getDocumentNameFilterCount();
+ /**
+ *
+ *
+ *
+ * Search the documents in the list.
+ * Format:
+ * projects/{project_number}/locations/{location}/documents/{document_id}.
+ *
+ *
+ * repeated string document_name_filter = 14;
+ *
+ * @param index The index of the element to return.
+ * @return The documentNameFilter at the given index.
+ */
+ java.lang.String getDocumentNameFilter(int index);
+ /**
+ *
+ *
+ *
+ * Search the documents in the list.
+ * Format:
+ * projects/{project_number}/locations/{location}/documents/{document_id}.
+ *
+ *
+ * repeated string document_name_filter = 14;
+ *
+ * @param index The index of the value to return.
+ * @return The bytes of the documentNameFilter at the given index.
+ */
+ com.google.protobuf.ByteString getDocumentNameFilterBytes(int index);
+
/**
*
*
diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentReference.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentReference.java
index 9d637fc273b4..8a61da56b7e3 100644
--- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentReference.java
+++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentReference.java
@@ -394,6 +394,42 @@ public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() {
return deleteTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_;
}
+ public static final int DOCUMENT_IS_RETENTION_FOLDER_FIELD_NUMBER = 8;
+ private boolean documentIsRetentionFolder_ = false;
+ /**
+ *
+ *
+ *
+ * Document is a folder with retention policy.
+ *
+ *
+ * bool document_is_retention_folder = 8;
+ *
+ * @return The documentIsRetentionFolder.
+ */
+ @java.lang.Override
+ public boolean getDocumentIsRetentionFolder() {
+ return documentIsRetentionFolder_;
+ }
+
+ public static final int DOCUMENT_IS_LEGAL_HOLD_FOLDER_FIELD_NUMBER = 9;
+ private boolean documentIsLegalHoldFolder_ = false;
+ /**
+ *
+ *
+ *
+ * Document is a folder with legal hold.
+ *
+ *
+ * bool document_is_legal_hold_folder = 9;
+ *
+ * @return The documentIsLegalHoldFolder.
+ */
+ @java.lang.Override
+ public boolean getDocumentIsLegalHoldFolder() {
+ return documentIsLegalHoldFolder_;
+ }
+
private byte memoizedIsInitialized = -1;
@java.lang.Override
@@ -429,6 +465,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (deleteTime_ != null) {
output.writeMessage(7, getDeleteTime());
}
+ if (documentIsRetentionFolder_ != false) {
+ output.writeBool(8, documentIsRetentionFolder_);
+ }
+ if (documentIsLegalHoldFolder_ != false) {
+ output.writeBool(9, documentIsLegalHoldFolder_);
+ }
getUnknownFields().writeTo(output);
}
@@ -459,6 +501,12 @@ public int getSerializedSize() {
if (deleteTime_ != null) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getDeleteTime());
}
+ if (documentIsRetentionFolder_ != false) {
+ size += com.google.protobuf.CodedOutputStream.computeBoolSize(8, documentIsRetentionFolder_);
+ }
+ if (documentIsLegalHoldFolder_ != false) {
+ size += com.google.protobuf.CodedOutputStream.computeBoolSize(9, documentIsLegalHoldFolder_);
+ }
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
@@ -491,6 +539,8 @@ public boolean equals(final java.lang.Object obj) {
if (hasDeleteTime()) {
if (!getDeleteTime().equals(other.getDeleteTime())) return false;
}
+ if (getDocumentIsRetentionFolder() != other.getDocumentIsRetentionFolder()) return false;
+ if (getDocumentIsLegalHoldFolder() != other.getDocumentIsLegalHoldFolder()) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@@ -522,6 +572,10 @@ public int hashCode() {
hash = (37 * hash) + DELETE_TIME_FIELD_NUMBER;
hash = (53 * hash) + getDeleteTime().hashCode();
}
+ hash = (37 * hash) + DOCUMENT_IS_RETENTION_FOLDER_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDocumentIsRetentionFolder());
+ hash = (37 * hash) + DOCUMENT_IS_LEGAL_HOLD_FOLDER_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDocumentIsLegalHoldFolder());
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
@@ -681,6 +735,8 @@ public Builder clear() {
deleteTimeBuilder_.dispose();
deleteTimeBuilder_ = null;
}
+ documentIsRetentionFolder_ = false;
+ documentIsLegalHoldFolder_ = false;
return this;
}
@@ -738,6 +794,12 @@ private void buildPartial0(com.google.cloud.contentwarehouse.v1.DocumentReferenc
if (((from_bitField0_ & 0x00000040) != 0)) {
result.deleteTime_ = deleteTimeBuilder_ == null ? deleteTime_ : deleteTimeBuilder_.build();
}
+ if (((from_bitField0_ & 0x00000080) != 0)) {
+ result.documentIsRetentionFolder_ = documentIsRetentionFolder_;
+ }
+ if (((from_bitField0_ & 0x00000100) != 0)) {
+ result.documentIsLegalHoldFolder_ = documentIsLegalHoldFolder_;
+ }
}
@java.lang.Override
@@ -813,6 +875,12 @@ public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.DocumentReference
if (other.hasDeleteTime()) {
mergeDeleteTime(other.getDeleteTime());
}
+ if (other.getDocumentIsRetentionFolder() != false) {
+ setDocumentIsRetentionFolder(other.getDocumentIsRetentionFolder());
+ }
+ if (other.getDocumentIsLegalHoldFolder() != false) {
+ setDocumentIsLegalHoldFolder(other.getDocumentIsLegalHoldFolder());
+ }
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
@@ -881,6 +949,18 @@ public Builder mergeFrom(
bitField0_ |= 0x00000040;
break;
} // case 58
+ case 64:
+ {
+ documentIsRetentionFolder_ = input.readBool();
+ bitField0_ |= 0x00000080;
+ break;
+ } // case 64
+ case 72:
+ {
+ documentIsLegalHoldFolder_ = input.readBool();
+ bitField0_ |= 0x00000100;
+ break;
+ } // case 72
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
@@ -1904,6 +1984,112 @@ public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() {
return deleteTimeBuilder_;
}
+ private boolean documentIsRetentionFolder_;
+ /**
+ *
+ *
+ *
+ * Document is a folder with retention policy.
+ *
+ *
+ * bool document_is_retention_folder = 8;
+ *
+ * @return The documentIsRetentionFolder.
+ */
+ @java.lang.Override
+ public boolean getDocumentIsRetentionFolder() {
+ return documentIsRetentionFolder_;
+ }
+ /**
+ *
+ *
+ *
+ * Document is a folder with retention policy.
+ *
+ *
+ * bool document_is_retention_folder = 8;
+ *
+ * @param value The documentIsRetentionFolder to set.
+ * @return This builder for chaining.
+ */
+ public Builder setDocumentIsRetentionFolder(boolean value) {
+
+ documentIsRetentionFolder_ = value;
+ bitField0_ |= 0x00000080;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Document is a folder with retention policy.
+ *
+ *
+ * bool document_is_retention_folder = 8;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearDocumentIsRetentionFolder() {
+ bitField0_ = (bitField0_ & ~0x00000080);
+ documentIsRetentionFolder_ = false;
+ onChanged();
+ return this;
+ }
+
+ private boolean documentIsLegalHoldFolder_;
+ /**
+ *
+ *
+ *
+ * Document is a folder with legal hold.
+ *
+ *
+ * bool document_is_legal_hold_folder = 9;
+ *
+ * @return The documentIsLegalHoldFolder.
+ */
+ @java.lang.Override
+ public boolean getDocumentIsLegalHoldFolder() {
+ return documentIsLegalHoldFolder_;
+ }
+ /**
+ *
+ *
+ *
+ * Document is a folder with legal hold.
+ *
+ *
+ * bool document_is_legal_hold_folder = 9;
+ *
+ * @param value The documentIsLegalHoldFolder to set.
+ * @return This builder for chaining.
+ */
+ public Builder setDocumentIsLegalHoldFolder(boolean value) {
+
+ documentIsLegalHoldFolder_ = value;
+ bitField0_ |= 0x00000100;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Document is a folder with legal hold.
+ *
+ *
+ * bool document_is_legal_hold_folder = 9;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearDocumentIsLegalHoldFolder() {
+ bitField0_ = (bitField0_ & ~0x00000100);
+ documentIsLegalHoldFolder_ = false;
+ onChanged();
+ return this;
+ }
+
@java.lang.Override
public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentReferenceOrBuilder.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentReferenceOrBuilder.java
index 251248123efc..5ea193c67f36 100644
--- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentReferenceOrBuilder.java
+++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentReferenceOrBuilder.java
@@ -236,4 +236,30 @@ public interface DocumentReferenceOrBuilder
*
*/
com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder();
+
+ /**
+ *
+ *
+ *
+ * Document is a folder with retention policy.
+ *
+ *
+ * bool document_is_retention_folder = 8;
+ *
+ * @return The documentIsRetentionFolder.
+ */
+ boolean getDocumentIsRetentionFolder();
+
+ /**
+ *
+ *
+ *
+ * Document is a folder with legal hold.
+ *
+ *
+ * bool document_is_legal_hold_folder = 9;
+ *
+ * @return The documentIsLegalHoldFolder.
+ */
+ boolean getDocumentIsLegalHoldFolder();
}
diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentServiceProto.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentServiceProto.java
index 6f6a15ba3591..342b042f404a 100644
--- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentServiceProto.java
+++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentServiceProto.java
@@ -98,8 +98,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "esult\022H\n\nhighlights\030\001 \003(\01324.google.cloud"
+ ".contentwarehouse.v1.QAResult.Highlight\022"
+ "\030\n\020confidence_score\030\002 \001(\002\0323\n\tHighlight\022\023"
- + "\n\013start_index\030\001 \001(\005\022\021\n\tend_index\030\002 \001(\005\"\374"
- + "\003\n\027SearchDocumentsResponse\022f\n\022matching_d"
+ + "\n\013start_index\030\001 \001(\005\022\021\n\tend_index\030\002 \001(\005\"\225"
+ + "\004\n\027SearchDocumentsResponse\022f\n\022matching_d"
+ "ocuments\030\001 \003(\0132J.google.cloud.contentwar"
+ "ehouse.v1.SearchDocumentsResponse.Matchi"
+ "ngDocument\022\027\n\017next_page_token\030\002 \001(\t\022\022\n\nt"
@@ -107,73 +107,74 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "le.cloud.contentwarehouse.v1.ResponseMet"
+ "adata\022W\n\027histogram_query_results\030\006 \003(\01326"
+ ".google.cloud.contentwarehouse.v1.Histog"
- + "ramQueryResult\032\254\001\n\020MatchingDocument\022<\n\010d"
- + "ocument\030\001 \001(\0132*.google.cloud.contentware"
- + "house.v1.Document\022\033\n\023search_text_snippet"
- + "\030\002 \001(\t\022=\n\tqa_result\030\003 \001(\0132*.google.cloud"
- + ".contentwarehouse.v1.QAResult\"\177\n\020FetchAc"
- + "lResponse\022%\n\006policy\030\001 \001(\0132\025.google.iam.v"
- + "1.Policy\022D\n\010metadata\030\002 \001(\01322.google.clou"
- + "d.contentwarehouse.v1.ResponseMetadata\"}"
- + "\n\016SetAclResponse\022%\n\006policy\030\001 \001(\0132\025.googl"
- + "e.iam.v1.Policy\022D\n\010metadata\030\002 \001(\01322.goog"
- + "le.cloud.contentwarehouse.v1.ResponseMet"
- + "adata2\242\017\n\017DocumentService\022\317\001\n\016CreateDocu"
+ + "ramQueryResult\022\027\n\017question_answer\030\007 \001(\t\032"
+ + "\254\001\n\020MatchingDocument\022<\n\010document\030\001 \001(\0132*"
+ + ".google.cloud.contentwarehouse.v1.Docume"
+ + "nt\022\033\n\023search_text_snippet\030\002 \001(\t\022=\n\tqa_re"
+ + "sult\030\003 \001(\0132*.google.cloud.contentwarehou"
+ + "se.v1.QAResult\"\177\n\020FetchAclResponse\022%\n\006po"
+ + "licy\030\001 \001(\0132\025.google.iam.v1.Policy\022D\n\010met"
+ + "adata\030\002 \001(\01322.google.cloud.contentwareho"
+ + "use.v1.ResponseMetadata\"}\n\016SetAclRespons"
+ + "e\022%\n\006policy\030\001 \001(\0132\025.google.iam.v1.Policy"
+ + "\022D\n\010metadata\030\002 \001(\01322.google.cloud.conten"
+ + "twarehouse.v1.ResponseMetadata2\242\017\n\017Docum"
+ + "entService\022\317\001\n\016CreateDocument\0227.google.c"
+ + "loud.contentwarehouse.v1.CreateDocumentR"
+ + "equest\0328.google.cloud.contentwarehouse.v"
+ + "1.CreateDocumentResponse\"J\332A\017parent,docu"
+ + "ment\202\323\344\223\0022\"-/v1/{parent=projects/*/locat"
+ + "ions/*}/documents:\001*\022\371\001\n\013GetDocument\0224.g"
+ + "oogle.cloud.contentwarehouse.v1.GetDocum"
+ + "entRequest\032*.google.cloud.contentwarehou"
+ + "se.v1.Document\"\207\001\332A\004name\202\323\344\223\002z\"1/v1/{nam"
+ + "e=projects/*/locations/*/documents/*}:ge"
+ + "t:\001*ZB\"=/v1/{name=projects/*/locations/*"
+ + "/documents/referenceId/*}:get:\001*\022\216\002\n\016Upd"
+ + "ateDocument\0227.google.cloud.contentwareho"
+ + "use.v1.UpdateDocumentRequest\0328.google.cl"
+ + "oud.contentwarehouse.v1.UpdateDocumentRe"
+ + "sponse\"\210\001\332A\rname,document\202\323\344\223\002r2-/v1/{na"
+ + "me=projects/*/locations/*/documents/*}:\001"
+ + "*Z>29/v1/{name=projects/*/locations/*/do"
+ + "cuments/referenceId/*}:\001*\022\362\001\n\016DeleteDocu"
+ "ment\0227.google.cloud.contentwarehouse.v1."
- + "CreateDocumentRequest\0328.google.cloud.con"
- + "tentwarehouse.v1.CreateDocumentResponse\""
- + "J\332A\017parent,document\202\323\344\223\0022\"-/v1/{parent=p"
- + "rojects/*/locations/*}/documents:\001*\022\371\001\n\013"
- + "GetDocument\0224.google.cloud.contentwareho"
- + "use.v1.GetDocumentRequest\032*.google.cloud"
- + ".contentwarehouse.v1.Document\"\207\001\332A\004name\202"
- + "\323\344\223\002z\"1/v1/{name=projects/*/locations/*/"
- + "documents/*}:get:\001*ZB\"=/v1/{name=project"
- + "s/*/locations/*/documents/referenceId/*}"
- + ":get:\001*\022\216\002\n\016UpdateDocument\0227.google.clou"
- + "d.contentwarehouse.v1.UpdateDocumentRequ"
- + "est\0328.google.cloud.contentwarehouse.v1.U"
- + "pdateDocumentResponse\"\210\001\332A\rname,document"
- + "\202\323\344\223\002r2-/v1/{name=projects/*/locations/*"
- + "/documents/*}:\001*Z>29/v1/{name=projects/*"
- + "/locations/*/documents/referenceId/*}:\001*"
- + "\022\362\001\n\016DeleteDocument\0227.google.cloud.conte"
- + "ntwarehouse.v1.DeleteDocumentRequest\032\026.g"
- + "oogle.protobuf.Empty\"\216\001\332A\004name\202\323\344\223\002\200\001\"4/"
- + "v1/{name=projects/*/locations/*/document"
- + "s/*}:delete:\001*ZE\"@/v1/{name=projects/*/l"
- + "ocations/*/documents/referenceId/*}:dele"
- + "te:\001*\022\320\001\n\017SearchDocuments\0228.google.cloud"
- + ".contentwarehouse.v1.SearchDocumentsRequ"
- + "est\0329.google.cloud.contentwarehouse.v1.S"
- + "earchDocumentsResponse\"H\332A\006parent\202\323\344\223\0029\""
- + "4/v1/{parent=projects/*/locations/*}/doc"
- + "uments:search:\001*\022\267\001\n\014LockDocument\0225.goog"
- + "le.cloud.contentwarehouse.v1.LockDocumen"
- + "tRequest\032*.google.cloud.contentwarehouse"
- + ".v1.Document\"D\332A\004name\202\323\344\223\0027\"2/v1/{name=p"
- + "rojects/*/locations/*/documents/*}:lock:"
- + "\001*\022\354\001\n\010FetchAcl\0221.google.cloud.contentwa"
- + "rehouse.v1.FetchAclRequest\0322.google.clou"
- + "d.contentwarehouse.v1.FetchAclResponse\"y"
- + "\332A\010resource\202\323\344\223\002h\":/v1/{resource=project"
- + "s/*/locations/*/documents/*}:fetchAcl:\001*"
- + "Z\'\"\"/v1/{resource=projects/*}:fetchAcl:\001"
- + "*\022\351\001\n\006SetAcl\022/.google.cloud.contentwareh"
- + "ouse.v1.SetAclRequest\0320.google.cloud.con"
- + "tentwarehouse.v1.SetAclResponse\"|\332A\017reso"
- + "urce,policy\202\323\344\223\002d\"8/v1/{resource=project"
- + "s/*/locations/*/documents/*}:setAcl:\001*Z%"
- + "\" /v1/{resource=projects/*}:setAcl:\001*\032S\312"
- + "A\037contentwarehouse.googleapis.com\322A.http"
- + "s://www.googleapis.com/auth/cloud-platfo"
- + "rmB\374\001\n$com.google.cloud.contentwarehouse"
- + ".v1B\024DocumentServiceProtoP\001ZPcloud.googl"
- + "e.com/go/contentwarehouse/apiv1/contentw"
- + "arehousepb;contentwarehousepb\252\002 Google.C"
- + "loud.ContentWarehouse.V1\312\002 Google\\Cloud\\"
- + "ContentWarehouse\\V1\352\002#Google::Cloud::Con"
- + "tentWarehouse::V1b\006proto3"
+ + "DeleteDocumentRequest\032\026.google.protobuf."
+ + "Empty\"\216\001\332A\004name\202\323\344\223\002\200\001\"4/v1/{name=projec"
+ + "ts/*/locations/*/documents/*}:delete:\001*Z"
+ + "E\"@/v1/{name=projects/*/locations/*/docu"
+ + "ments/referenceId/*}:delete:\001*\022\320\001\n\017Searc"
+ + "hDocuments\0228.google.cloud.contentwarehou"
+ + "se.v1.SearchDocumentsRequest\0329.google.cl"
+ + "oud.contentwarehouse.v1.SearchDocumentsR"
+ + "esponse\"H\332A\006parent\202\323\344\223\0029\"4/v1/{parent=pr"
+ + "ojects/*/locations/*}/documents:search:\001"
+ + "*\022\267\001\n\014LockDocument\0225.google.cloud.conten"
+ + "twarehouse.v1.LockDocumentRequest\032*.goog"
+ + "le.cloud.contentwarehouse.v1.Document\"D\332"
+ + "A\004name\202\323\344\223\0027\"2/v1/{name=projects/*/locat"
+ + "ions/*/documents/*}:lock:\001*\022\354\001\n\010FetchAcl"
+ + "\0221.google.cloud.contentwarehouse.v1.Fetc"
+ + "hAclRequest\0322.google.cloud.contentwareho"
+ + "use.v1.FetchAclResponse\"y\332A\010resource\202\323\344\223"
+ + "\002h\":/v1/{resource=projects/*/locations/*"
+ + "/documents/*}:fetchAcl:\001*Z\'\"\"/v1/{resour"
+ + "ce=projects/*}:fetchAcl:\001*\022\351\001\n\006SetAcl\022/."
+ + "google.cloud.contentwarehouse.v1.SetAclR"
+ + "equest\0320.google.cloud.contentwarehouse.v"
+ + "1.SetAclResponse\"|\332A\017resource,policy\202\323\344\223"
+ + "\002d\"8/v1/{resource=projects/*/locations/*"
+ + "/documents/*}:setAcl:\001*Z%\" /v1/{resource"
+ + "=projects/*}:setAcl:\001*\032S\312A\037contentwareho"
+ + "use.googleapis.com\322A.https://www.googlea"
+ + "pis.com/auth/cloud-platformB\374\001\n$com.goog"
+ + "le.cloud.contentwarehouse.v1B\024DocumentSe"
+ + "rviceProtoP\001ZPcloud.google.com/go/conten"
+ + "twarehouse/apiv1/contentwarehousepb;cont"
+ + "entwarehousepb\252\002 Google.Cloud.ContentWar"
+ + "ehouse.V1\312\002 Google\\Cloud\\ContentWarehous"
+ + "e\\V1\352\002#Google::Cloud::ContentWarehouse::"
+ + "V1b\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
@@ -236,6 +237,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"TotalSize",
"Metadata",
"HistogramQueryResults",
+ "QuestionAnswer",
});
internal_static_google_cloud_contentwarehouse_v1_SearchDocumentsResponse_MatchingDocument_descriptor =
internal_static_google_cloud_contentwarehouse_v1_SearchDocumentsResponse_descriptor
diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ExportToCdwPipeline.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ExportToCdwPipeline.java
new file mode 100644
index 000000000000..5b9208a8c614
--- /dev/null
+++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ExportToCdwPipeline.java
@@ -0,0 +1,1242 @@
+/*
+ * 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/contentwarehouse/v1/pipelines.proto
+
+package com.google.cloud.contentwarehouse.v1;
+
+/**
+ *
+ *
+ *
+ * The configuration of exporting documents from the Document Warehouse to CDW
+ * pipeline.
+ *
+ *
+ * Protobuf type {@code google.cloud.contentwarehouse.v1.ExportToCdwPipeline}
+ */
+public final class ExportToCdwPipeline extends com.google.protobuf.GeneratedMessageV3
+ implements
+ // @@protoc_insertion_point(message_implements:google.cloud.contentwarehouse.v1.ExportToCdwPipeline)
+ ExportToCdwPipelineOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use ExportToCdwPipeline.newBuilder() to construct.
+ private ExportToCdwPipeline(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+
+ private ExportToCdwPipeline() {
+ documents_ = com.google.protobuf.LazyStringArrayList.emptyList();
+ exportFolderPath_ = "";
+ docAiDataset_ = "";
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+ return new ExportToCdwPipeline();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.contentwarehouse.v1.PipelinesProto
+ .internal_static_google_cloud_contentwarehouse_v1_ExportToCdwPipeline_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.contentwarehouse.v1.PipelinesProto
+ .internal_static_google_cloud_contentwarehouse_v1_ExportToCdwPipeline_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.contentwarehouse.v1.ExportToCdwPipeline.class,
+ com.google.cloud.contentwarehouse.v1.ExportToCdwPipeline.Builder.class);
+ }
+
+ public static final int DOCUMENTS_FIELD_NUMBER = 1;
+
+ @SuppressWarnings("serial")
+ private com.google.protobuf.LazyStringArrayList documents_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
+ /**
+ *
+ *
+ *
+ * The list of all the resource names of the documents to be processed.
+ * Format:
+ * projects/{project_number}/locations/{location}/documents/{document_id}.
+ *
+ *
+ * repeated string documents = 1;
+ *
+ * @return A list containing the documents.
+ */
+ public com.google.protobuf.ProtocolStringList getDocumentsList() {
+ return documents_;
+ }
+ /**
+ *
+ *
+ *
+ * The list of all the resource names of the documents to be processed.
+ * Format:
+ * projects/{project_number}/locations/{location}/documents/{document_id}.
+ *
+ *
+ * repeated string documents = 1;
+ *
+ * @return The count of documents.
+ */
+ public int getDocumentsCount() {
+ return documents_.size();
+ }
+ /**
+ *
+ *
+ *
+ * The list of all the resource names of the documents to be processed.
+ * Format:
+ * projects/{project_number}/locations/{location}/documents/{document_id}.
+ *
+ *
+ * repeated string documents = 1;
+ *
+ * @param index The index of the element to return.
+ * @return The documents at the given index.
+ */
+ public java.lang.String getDocuments(int index) {
+ return documents_.get(index);
+ }
+ /**
+ *
+ *
+ *
+ * The list of all the resource names of the documents to be processed.
+ * Format:
+ * projects/{project_number}/locations/{location}/documents/{document_id}.
+ *
+ *
+ * repeated string documents = 1;
+ *
+ * @param index The index of the value to return.
+ * @return The bytes of the documents at the given index.
+ */
+ public com.google.protobuf.ByteString getDocumentsBytes(int index) {
+ return documents_.getByteString(index);
+ }
+
+ public static final int EXPORT_FOLDER_PATH_FIELD_NUMBER = 2;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object exportFolderPath_ = "";
+ /**
+ *
+ *
+ *
+ * The Cloud Storage folder path used to store the exported documents before
+ * being sent to CDW.
+ * Format: `gs://<bucket-name>/<folder-name>`.
+ *
+ *
+ * string export_folder_path = 2;
+ *
+ * @return The exportFolderPath.
+ */
+ @java.lang.Override
+ public java.lang.String getExportFolderPath() {
+ java.lang.Object ref = exportFolderPath_;
+ 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();
+ exportFolderPath_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The Cloud Storage folder path used to store the exported documents before
+ * being sent to CDW.
+ * Format: `gs://<bucket-name>/<folder-name>`.
+ *
+ *
+ * string export_folder_path = 2;
+ *
+ * @return The bytes for exportFolderPath.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getExportFolderPathBytes() {
+ java.lang.Object ref = exportFolderPath_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ exportFolderPath_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int DOC_AI_DATASET_FIELD_NUMBER = 3;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object docAiDataset_ = "";
+ /**
+ *
+ *
+ *
+ * Optional. The CDW dataset resource name. This field is optional. If not
+ * set, the documents will be exported to Cloud Storage only. Format:
+ * projects/{project}/locations/{location}/processors/{processor}/dataset
+ *
+ *
+ * string doc_ai_dataset = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The docAiDataset.
+ */
+ @java.lang.Override
+ public java.lang.String getDocAiDataset() {
+ java.lang.Object ref = docAiDataset_;
+ 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();
+ docAiDataset_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Optional. The CDW dataset resource name. This field is optional. If not
+ * set, the documents will be exported to Cloud Storage only. Format:
+ * projects/{project}/locations/{location}/processors/{processor}/dataset
+ *
+ *
+ * string doc_ai_dataset = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for docAiDataset.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getDocAiDatasetBytes() {
+ java.lang.Object ref = docAiDataset_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ docAiDataset_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int TRAINING_SPLIT_RATIO_FIELD_NUMBER = 4;
+ private float trainingSplitRatio_ = 0F;
+ /**
+ *
+ *
+ *
+ * Ratio of training dataset split. When importing into Document AI Workbench,
+ * documents will be automatically split into training and test split category
+ * with the specified ratio. This field is required if doc_ai_dataset is set.
+ *
+ *
+ * float training_split_ratio = 4;
+ *
+ * @return The trainingSplitRatio.
+ */
+ @java.lang.Override
+ public float getTrainingSplitRatio() {
+ return trainingSplitRatio_;
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ for (int i = 0; i < documents_.size(); i++) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, documents_.getRaw(i));
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(exportFolderPath_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, exportFolderPath_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(docAiDataset_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 3, docAiDataset_);
+ }
+ if (java.lang.Float.floatToRawIntBits(trainingSplitRatio_) != 0) {
+ output.writeFloat(4, trainingSplitRatio_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ {
+ int dataSize = 0;
+ for (int i = 0; i < documents_.size(); i++) {
+ dataSize += computeStringSizeNoTag(documents_.getRaw(i));
+ }
+ size += dataSize;
+ size += 1 * getDocumentsList().size();
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(exportFolderPath_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, exportFolderPath_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(docAiDataset_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, docAiDataset_);
+ }
+ if (java.lang.Float.floatToRawIntBits(trainingSplitRatio_) != 0) {
+ size += com.google.protobuf.CodedOutputStream.computeFloatSize(4, trainingSplitRatio_);
+ }
+ 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.contentwarehouse.v1.ExportToCdwPipeline)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.contentwarehouse.v1.ExportToCdwPipeline other =
+ (com.google.cloud.contentwarehouse.v1.ExportToCdwPipeline) obj;
+
+ if (!getDocumentsList().equals(other.getDocumentsList())) return false;
+ if (!getExportFolderPath().equals(other.getExportFolderPath())) return false;
+ if (!getDocAiDataset().equals(other.getDocAiDataset())) return false;
+ if (java.lang.Float.floatToIntBits(getTrainingSplitRatio())
+ != java.lang.Float.floatToIntBits(other.getTrainingSplitRatio())) 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 (getDocumentsCount() > 0) {
+ hash = (37 * hash) + DOCUMENTS_FIELD_NUMBER;
+ hash = (53 * hash) + getDocumentsList().hashCode();
+ }
+ hash = (37 * hash) + EXPORT_FOLDER_PATH_FIELD_NUMBER;
+ hash = (53 * hash) + getExportFolderPath().hashCode();
+ hash = (37 * hash) + DOC_AI_DATASET_FIELD_NUMBER;
+ hash = (53 * hash) + getDocAiDataset().hashCode();
+ hash = (37 * hash) + TRAINING_SPLIT_RATIO_FIELD_NUMBER;
+ hash = (53 * hash) + java.lang.Float.floatToIntBits(getTrainingSplitRatio());
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.contentwarehouse.v1.ExportToCdwPipeline parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.contentwarehouse.v1.ExportToCdwPipeline 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.contentwarehouse.v1.ExportToCdwPipeline parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.contentwarehouse.v1.ExportToCdwPipeline 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.contentwarehouse.v1.ExportToCdwPipeline parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.contentwarehouse.v1.ExportToCdwPipeline parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.contentwarehouse.v1.ExportToCdwPipeline parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.contentwarehouse.v1.ExportToCdwPipeline 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.contentwarehouse.v1.ExportToCdwPipeline parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.contentwarehouse.v1.ExportToCdwPipeline 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.contentwarehouse.v1.ExportToCdwPipeline parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.contentwarehouse.v1.ExportToCdwPipeline 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.contentwarehouse.v1.ExportToCdwPipeline prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ *
+ *
+ *
+ * The configuration of exporting documents from the Document Warehouse to CDW
+ * pipeline.
+ *
+ *
+ * Protobuf type {@code google.cloud.contentwarehouse.v1.ExportToCdwPipeline}
+ */
+ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ implements
+ // @@protoc_insertion_point(builder_implements:google.cloud.contentwarehouse.v1.ExportToCdwPipeline)
+ com.google.cloud.contentwarehouse.v1.ExportToCdwPipelineOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.contentwarehouse.v1.PipelinesProto
+ .internal_static_google_cloud_contentwarehouse_v1_ExportToCdwPipeline_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.contentwarehouse.v1.PipelinesProto
+ .internal_static_google_cloud_contentwarehouse_v1_ExportToCdwPipeline_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.contentwarehouse.v1.ExportToCdwPipeline.class,
+ com.google.cloud.contentwarehouse.v1.ExportToCdwPipeline.Builder.class);
+ }
+
+ // Construct using com.google.cloud.contentwarehouse.v1.ExportToCdwPipeline.newBuilder()
+ private Builder() {}
+
+ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ }
+
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ documents_ = com.google.protobuf.LazyStringArrayList.emptyList();
+ exportFolderPath_ = "";
+ docAiDataset_ = "";
+ trainingSplitRatio_ = 0F;
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+ return com.google.cloud.contentwarehouse.v1.PipelinesProto
+ .internal_static_google_cloud_contentwarehouse_v1_ExportToCdwPipeline_descriptor;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.contentwarehouse.v1.ExportToCdwPipeline getDefaultInstanceForType() {
+ return com.google.cloud.contentwarehouse.v1.ExportToCdwPipeline.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public com.google.cloud.contentwarehouse.v1.ExportToCdwPipeline build() {
+ com.google.cloud.contentwarehouse.v1.ExportToCdwPipeline result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.contentwarehouse.v1.ExportToCdwPipeline buildPartial() {
+ com.google.cloud.contentwarehouse.v1.ExportToCdwPipeline result =
+ new com.google.cloud.contentwarehouse.v1.ExportToCdwPipeline(this);
+ if (bitField0_ != 0) {
+ buildPartial0(result);
+ }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartial0(com.google.cloud.contentwarehouse.v1.ExportToCdwPipeline result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ documents_.makeImmutable();
+ result.documents_ = documents_;
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.exportFolderPath_ = exportFolderPath_;
+ }
+ if (((from_bitField0_ & 0x00000004) != 0)) {
+ result.docAiDataset_ = docAiDataset_;
+ }
+ if (((from_bitField0_ & 0x00000008) != 0)) {
+ result.trainingSplitRatio_ = trainingSplitRatio_;
+ }
+ }
+
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+ return super.setField(field, value);
+ }
+
+ @java.lang.Override
+ public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+
+ @java.lang.Override
+ public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+ return super.addRepeatedField(field, value);
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof com.google.cloud.contentwarehouse.v1.ExportToCdwPipeline) {
+ return mergeFrom((com.google.cloud.contentwarehouse.v1.ExportToCdwPipeline) other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.ExportToCdwPipeline other) {
+ if (other == com.google.cloud.contentwarehouse.v1.ExportToCdwPipeline.getDefaultInstance())
+ return this;
+ if (!other.documents_.isEmpty()) {
+ if (documents_.isEmpty()) {
+ documents_ = other.documents_;
+ bitField0_ |= 0x00000001;
+ } else {
+ ensureDocumentsIsMutable();
+ documents_.addAll(other.documents_);
+ }
+ onChanged();
+ }
+ if (!other.getExportFolderPath().isEmpty()) {
+ exportFolderPath_ = other.exportFolderPath_;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ }
+ if (!other.getDocAiDataset().isEmpty()) {
+ docAiDataset_ = other.docAiDataset_;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ }
+ if (other.getTrainingSplitRatio() != 0F) {
+ setTrainingSplitRatio(other.getTrainingSplitRatio());
+ }
+ this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+ ensureDocumentsIsMutable();
+ documents_.add(s);
+ break;
+ } // case 10
+ case 18:
+ {
+ exportFolderPath_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000002;
+ break;
+ } // case 18
+ case 26:
+ {
+ docAiDataset_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000004;
+ break;
+ } // case 26
+ case 37:
+ {
+ trainingSplitRatio_ = input.readFloat();
+ bitField0_ |= 0x00000008;
+ break;
+ } // case 37
+ default:
+ {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.unwrapIOException();
+ } finally {
+ onChanged();
+ } // finally
+ return this;
+ }
+
+ private int bitField0_;
+
+ private com.google.protobuf.LazyStringArrayList documents_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
+
+ private void ensureDocumentsIsMutable() {
+ if (!documents_.isModifiable()) {
+ documents_ = new com.google.protobuf.LazyStringArrayList(documents_);
+ }
+ bitField0_ |= 0x00000001;
+ }
+ /**
+ *
+ *
+ *
+ * The list of all the resource names of the documents to be processed.
+ * Format:
+ * projects/{project_number}/locations/{location}/documents/{document_id}.
+ *
+ *
+ * repeated string documents = 1;
+ *
+ * @return A list containing the documents.
+ */
+ public com.google.protobuf.ProtocolStringList getDocumentsList() {
+ documents_.makeImmutable();
+ return documents_;
+ }
+ /**
+ *
+ *
+ *
+ * The list of all the resource names of the documents to be processed.
+ * Format:
+ * projects/{project_number}/locations/{location}/documents/{document_id}.
+ *
+ *
+ * repeated string documents = 1;
+ *
+ * @return The count of documents.
+ */
+ public int getDocumentsCount() {
+ return documents_.size();
+ }
+ /**
+ *
+ *
+ *
+ * The list of all the resource names of the documents to be processed.
+ * Format:
+ * projects/{project_number}/locations/{location}/documents/{document_id}.
+ *
+ *
+ * repeated string documents = 1;
+ *
+ * @param index The index of the element to return.
+ * @return The documents at the given index.
+ */
+ public java.lang.String getDocuments(int index) {
+ return documents_.get(index);
+ }
+ /**
+ *
+ *
+ *
+ * The list of all the resource names of the documents to be processed.
+ * Format:
+ * projects/{project_number}/locations/{location}/documents/{document_id}.
+ *
+ *
+ * repeated string documents = 1;
+ *
+ * @param index The index of the value to return.
+ * @return The bytes of the documents at the given index.
+ */
+ public com.google.protobuf.ByteString getDocumentsBytes(int index) {
+ return documents_.getByteString(index);
+ }
+ /**
+ *
+ *
+ *
+ * The list of all the resource names of the documents to be processed.
+ * Format:
+ * projects/{project_number}/locations/{location}/documents/{document_id}.
+ *
+ *
+ * repeated string documents = 1;
+ *
+ * @param index The index to set the value at.
+ * @param value The documents to set.
+ * @return This builder for chaining.
+ */
+ public Builder setDocuments(int index, java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureDocumentsIsMutable();
+ documents_.set(index, value);
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The list of all the resource names of the documents to be processed.
+ * Format:
+ * projects/{project_number}/locations/{location}/documents/{document_id}.
+ *
+ *
+ * repeated string documents = 1;
+ *
+ * @param value The documents to add.
+ * @return This builder for chaining.
+ */
+ public Builder addDocuments(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureDocumentsIsMutable();
+ documents_.add(value);
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The list of all the resource names of the documents to be processed.
+ * Format:
+ * projects/{project_number}/locations/{location}/documents/{document_id}.
+ *
+ *
+ * repeated string documents = 1;
+ *
+ * @param values The documents to add.
+ * @return This builder for chaining.
+ */
+ public Builder addAllDocuments(java.lang.Iterable values) {
+ ensureDocumentsIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, documents_);
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The list of all the resource names of the documents to be processed.
+ * Format:
+ * projects/{project_number}/locations/{location}/documents/{document_id}.
+ *
+ *
+ * repeated string documents = 1;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearDocuments() {
+ documents_ = com.google.protobuf.LazyStringArrayList.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ ;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The list of all the resource names of the documents to be processed.
+ * Format:
+ * projects/{project_number}/locations/{location}/documents/{document_id}.
+ *
+ *
+ * repeated string documents = 1;
+ *
+ * @param value The bytes of the documents to add.
+ * @return This builder for chaining.
+ */
+ public Builder addDocumentsBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ ensureDocumentsIsMutable();
+ documents_.add(value);
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object exportFolderPath_ = "";
+ /**
+ *
+ *
+ *
+ * The Cloud Storage folder path used to store the exported documents before
+ * being sent to CDW.
+ * Format: `gs://<bucket-name>/<folder-name>`.
+ *
+ *
+ * string export_folder_path = 2;
+ *
+ * @return The exportFolderPath.
+ */
+ public java.lang.String getExportFolderPath() {
+ java.lang.Object ref = exportFolderPath_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ exportFolderPath_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The Cloud Storage folder path used to store the exported documents before
+ * being sent to CDW.
+ * Format: `gs://<bucket-name>/<folder-name>`.
+ *
+ *
+ * string export_folder_path = 2;
+ *
+ * @return The bytes for exportFolderPath.
+ */
+ public com.google.protobuf.ByteString getExportFolderPathBytes() {
+ java.lang.Object ref = exportFolderPath_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ exportFolderPath_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The Cloud Storage folder path used to store the exported documents before
+ * being sent to CDW.
+ * Format: `gs://<bucket-name>/<folder-name>`.
+ *
+ *
+ * string export_folder_path = 2;
+ *
+ * @param value The exportFolderPath to set.
+ * @return This builder for chaining.
+ */
+ public Builder setExportFolderPath(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ exportFolderPath_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The Cloud Storage folder path used to store the exported documents before
+ * being sent to CDW.
+ * Format: `gs://<bucket-name>/<folder-name>`.
+ *
+ *
+ * string export_folder_path = 2;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearExportFolderPath() {
+ exportFolderPath_ = getDefaultInstance().getExportFolderPath();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The Cloud Storage folder path used to store the exported documents before
+ * being sent to CDW.
+ * Format: `gs://<bucket-name>/<folder-name>`.
+ *
+ *
+ * string export_folder_path = 2;
+ *
+ * @param value The bytes for exportFolderPath to set.
+ * @return This builder for chaining.
+ */
+ public Builder setExportFolderPathBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ exportFolderPath_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object docAiDataset_ = "";
+ /**
+ *
+ *
+ *
+ * Optional. The CDW dataset resource name. This field is optional. If not
+ * set, the documents will be exported to Cloud Storage only. Format:
+ * projects/{project}/locations/{location}/processors/{processor}/dataset
+ *
+ *
+ * string doc_ai_dataset = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The docAiDataset.
+ */
+ public java.lang.String getDocAiDataset() {
+ java.lang.Object ref = docAiDataset_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ docAiDataset_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Optional. The CDW dataset resource name. This field is optional. If not
+ * set, the documents will be exported to Cloud Storage only. Format:
+ * projects/{project}/locations/{location}/processors/{processor}/dataset
+ *
+ *
+ * string doc_ai_dataset = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for docAiDataset.
+ */
+ public com.google.protobuf.ByteString getDocAiDatasetBytes() {
+ java.lang.Object ref = docAiDataset_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ docAiDataset_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Optional. The CDW dataset resource name. This field is optional. If not
+ * set, the documents will be exported to Cloud Storage only. Format:
+ * projects/{project}/locations/{location}/processors/{processor}/dataset
+ *
+ *
+ * string doc_ai_dataset = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param value The docAiDataset to set.
+ * @return This builder for chaining.
+ */
+ public Builder setDocAiDataset(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ docAiDataset_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. The CDW dataset resource name. This field is optional. If not
+ * set, the documents will be exported to Cloud Storage only. Format:
+ * projects/{project}/locations/{location}/processors/{processor}/dataset
+ *
+ *
+ * string doc_ai_dataset = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearDocAiDataset() {
+ docAiDataset_ = getDefaultInstance().getDocAiDataset();
+ bitField0_ = (bitField0_ & ~0x00000004);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. The CDW dataset resource name. This field is optional. If not
+ * set, the documents will be exported to Cloud Storage only. Format:
+ * projects/{project}/locations/{location}/processors/{processor}/dataset
+ *
+ *
+ * string doc_ai_dataset = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param value The bytes for docAiDataset to set.
+ * @return This builder for chaining.
+ */
+ public Builder setDocAiDatasetBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ docAiDataset_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+
+ private float trainingSplitRatio_;
+ /**
+ *
+ *
+ *
+ * Ratio of training dataset split. When importing into Document AI Workbench,
+ * documents will be automatically split into training and test split category
+ * with the specified ratio. This field is required if doc_ai_dataset is set.
+ *
+ *
+ * float training_split_ratio = 4;
+ *
+ * @return The trainingSplitRatio.
+ */
+ @java.lang.Override
+ public float getTrainingSplitRatio() {
+ return trainingSplitRatio_;
+ }
+ /**
+ *
+ *
+ *
+ * Ratio of training dataset split. When importing into Document AI Workbench,
+ * documents will be automatically split into training and test split category
+ * with the specified ratio. This field is required if doc_ai_dataset is set.
+ *
+ *
+ * float training_split_ratio = 4;
+ *
+ * @param value The trainingSplitRatio to set.
+ * @return This builder for chaining.
+ */
+ public Builder setTrainingSplitRatio(float value) {
+
+ trainingSplitRatio_ = value;
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Ratio of training dataset split. When importing into Document AI Workbench,
+ * documents will be automatically split into training and test split category
+ * with the specified ratio. This field is required if doc_ai_dataset is set.
+ *
+ *
+ * float training_split_ratio = 4;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearTrainingSplitRatio() {
+ bitField0_ = (bitField0_ & ~0x00000008);
+ trainingSplitRatio_ = 0F;
+ 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.contentwarehouse.v1.ExportToCdwPipeline)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.ExportToCdwPipeline)
+ private static final com.google.cloud.contentwarehouse.v1.ExportToCdwPipeline DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.ExportToCdwPipeline();
+ }
+
+ public static com.google.cloud.contentwarehouse.v1.ExportToCdwPipeline getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser PARSER =
+ new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public ExportToCdwPipeline parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ Builder builder = newBuilder();
+ try {
+ builder.mergeFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(builder.buildPartial());
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e)
+ .setUnfinishedMessage(builder.buildPartial());
+ }
+ return builder.buildPartial();
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.contentwarehouse.v1.ExportToCdwPipeline getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+}
diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ExportToCdwPipelineOrBuilder.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ExportToCdwPipelineOrBuilder.java
new file mode 100644
index 000000000000..f33d2e08a597
--- /dev/null
+++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ExportToCdwPipelineOrBuilder.java
@@ -0,0 +1,157 @@
+/*
+ * 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/contentwarehouse/v1/pipelines.proto
+
+package com.google.cloud.contentwarehouse.v1;
+
+public interface ExportToCdwPipelineOrBuilder
+ extends
+ // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.ExportToCdwPipeline)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ *
+ *
+ *
+ * The list of all the resource names of the documents to be processed.
+ * Format:
+ * projects/{project_number}/locations/{location}/documents/{document_id}.
+ *
+ *
+ * repeated string documents = 1;
+ *
+ * @return A list containing the documents.
+ */
+ java.util.List getDocumentsList();
+ /**
+ *
+ *
+ *
+ * The list of all the resource names of the documents to be processed.
+ * Format:
+ * projects/{project_number}/locations/{location}/documents/{document_id}.
+ *
+ *
+ * repeated string documents = 1;
+ *
+ * @return The count of documents.
+ */
+ int getDocumentsCount();
+ /**
+ *
+ *
+ *
+ * The list of all the resource names of the documents to be processed.
+ * Format:
+ * projects/{project_number}/locations/{location}/documents/{document_id}.
+ *
+ *
+ * repeated string documents = 1;
+ *
+ * @param index The index of the element to return.
+ * @return The documents at the given index.
+ */
+ java.lang.String getDocuments(int index);
+ /**
+ *
+ *
+ *
+ * The list of all the resource names of the documents to be processed.
+ * Format:
+ * projects/{project_number}/locations/{location}/documents/{document_id}.
+ *
+ *
+ * repeated string documents = 1;
+ *
+ * @param index The index of the value to return.
+ * @return The bytes of the documents at the given index.
+ */
+ com.google.protobuf.ByteString getDocumentsBytes(int index);
+
+ /**
+ *
+ *
+ *
+ * The Cloud Storage folder path used to store the exported documents before
+ * being sent to CDW.
+ * Format: `gs://<bucket-name>/<folder-name>`.
+ *
+ *
+ * string export_folder_path = 2;
+ *
+ * @return The exportFolderPath.
+ */
+ java.lang.String getExportFolderPath();
+ /**
+ *
+ *
+ *
+ * The Cloud Storage folder path used to store the exported documents before
+ * being sent to CDW.
+ * Format: `gs://<bucket-name>/<folder-name>`.
+ *
+ *
+ * string export_folder_path = 2;
+ *
+ * @return The bytes for exportFolderPath.
+ */
+ com.google.protobuf.ByteString getExportFolderPathBytes();
+
+ /**
+ *
+ *
+ *
+ * Optional. The CDW dataset resource name. This field is optional. If not
+ * set, the documents will be exported to Cloud Storage only. Format:
+ * projects/{project}/locations/{location}/processors/{processor}/dataset
+ *
+ *
+ * string doc_ai_dataset = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The docAiDataset.
+ */
+ java.lang.String getDocAiDataset();
+ /**
+ *
+ *
+ *
+ * Optional. The CDW dataset resource name. This field is optional. If not
+ * set, the documents will be exported to Cloud Storage only. Format:
+ * projects/{project}/locations/{location}/processors/{processor}/dataset
+ *
+ *
+ * string doc_ai_dataset = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for docAiDataset.
+ */
+ com.google.protobuf.ByteString getDocAiDatasetBytes();
+
+ /**
+ *
+ *
+ *
+ * Ratio of training dataset split. When importing into Document AI Workbench,
+ * documents will be automatically split into training and test split category
+ * with the specified ratio. This field is required if doc_ai_dataset is set.
+ *
+ *
+ * float training_split_ratio = 4;
+ *
+ * @return The trainingSplitRatio.
+ */
+ float getTrainingSplitRatio();
+}
diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/FiltersProto.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/FiltersProto.java
index c669dc1661d9..839f3d3d9073 100644
--- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/FiltersProto.java
+++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/FiltersProto.java
@@ -63,7 +63,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"\n.google/cloud/contentwarehouse/v1/filte"
+ "rs.proto\022 google.cloud.contentwarehouse."
+ "v1\032\031google/api/resource.proto\032\032google/ty"
- + "pe/interval.proto\"\377\003\n\rDocumentQuery\022\r\n\005q"
+ + "pe/interval.proto\"\235\004\n\rDocumentQuery\022\r\n\005q"
+ "uery\030\001 \001(\t\022\023\n\013is_nl_query\030\014 \001(\010\022\"\n\026custo"
+ "m_property_filter\030\004 \001(\tB\002\030\001\022B\n\014time_filt"
+ "ers\030\005 \003(\0132,.google.cloud.contentwarehous"
@@ -72,36 +72,37 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ ".cloud.contentwarehouse.v1.PropertyFilte"
+ "r\022J\n\020file_type_filter\030\010 \001(\01320.google.clo"
+ "ud.contentwarehouse.v1.FileTypeFilter\022\032\n"
- + "\022folder_name_filter\030\t \001(\t\022\025\n\rquery_conte"
- + "xt\030\n \003(\t\022\037\n\027document_creator_filter\030\013 \003("
- + "\t\022X\n\027custom_weights_metadata\030\r \001(\01327.goo"
- + "gle.cloud.contentwarehouse.v1.CustomWeig"
- + "htsMetadata\"\316\001\n\nTimeFilter\022)\n\ntime_range"
- + "\030\001 \001(\0132\025.google.type.Interval\022J\n\ntime_fi"
- + "eld\030\002 \001(\01626.google.cloud.contentwarehous"
- + "e.v1.TimeFilter.TimeField\"I\n\tTimeField\022\032"
- + "\n\026TIME_FIELD_UNSPECIFIED\020\000\022\017\n\013CREATE_TIM"
- + "E\020\001\022\017\n\013UPDATE_TIME\020\002\"v\n\016PropertyFilter\022Q"
- + "\n\024document_schema_name\030\001 \001(\tB3\372A0\n.conte"
- + "ntwarehouse.googleapis.com/DocumentSchem"
- + "a\022\021\n\tcondition\030\002 \001(\t\"\250\001\n\016FileTypeFilter\022"
- + "L\n\tfile_type\030\001 \001(\01629.google.cloud.conten"
- + "twarehouse.v1.FileTypeFilter.FileType\"H\n"
- + "\010FileType\022\031\n\025FILE_TYPE_UNSPECIFIED\020\000\022\007\n\003"
- + "ALL\020\001\022\n\n\006FOLDER\020\002\022\014\n\010DOCUMENT\020\003\"u\n\025Custo"
- + "mWeightsMetadata\022\\\n\032weighted_schema_prop"
- + "erties\030\001 \003(\01328.google.cloud.contentwareh"
- + "ouse.v1.WeightedSchemaProperty\"\203\001\n\026Weigh"
- + "tedSchemaProperty\022Q\n\024document_schema_nam"
- + "e\030\001 \001(\tB3\372A0\n.contentwarehouse.googleapi"
- + "s.com/DocumentSchema\022\026\n\016property_names\030\002"
- + " \003(\tB\364\001\n$com.google.cloud.contentwarehou"
- + "se.v1B\014FiltersProtoP\001ZPcloud.google.com/"
- + "go/contentwarehouse/apiv1/contentwarehou"
- + "sepb;contentwarehousepb\252\002 Google.Cloud.C"
- + "ontentWarehouse.V1\312\002 Google\\Cloud\\Conten"
- + "tWarehouse\\V1\352\002#Google::Cloud::ContentWa"
- + "rehouse::V1b\006proto3"
+ + "\022folder_name_filter\030\t \001(\t\022\034\n\024document_na"
+ + "me_filter\030\016 \003(\t\022\025\n\rquery_context\030\n \003(\t\022\037"
+ + "\n\027document_creator_filter\030\013 \003(\t\022X\n\027custo"
+ + "m_weights_metadata\030\r \001(\01327.google.cloud."
+ + "contentwarehouse.v1.CustomWeightsMetadat"
+ + "a\"\344\001\n\nTimeFilter\022)\n\ntime_range\030\001 \001(\0132\025.g"
+ + "oogle.type.Interval\022J\n\ntime_field\030\002 \001(\0162"
+ + "6.google.cloud.contentwarehouse.v1.TimeF"
+ + "ilter.TimeField\"_\n\tTimeField\022\032\n\026TIME_FIE"
+ + "LD_UNSPECIFIED\020\000\022\017\n\013CREATE_TIME\020\001\022\017\n\013UPD"
+ + "ATE_TIME\020\002\022\024\n\020DISPOSITION_TIME\020\003\"v\n\016Prop"
+ + "ertyFilter\022Q\n\024document_schema_name\030\001 \001(\t"
+ + "B3\372A0\n.contentwarehouse.googleapis.com/D"
+ + "ocumentSchema\022\021\n\tcondition\030\002 \001(\t\"\250\001\n\016Fil"
+ + "eTypeFilter\022L\n\tfile_type\030\001 \001(\01629.google."
+ + "cloud.contentwarehouse.v1.FileTypeFilter"
+ + ".FileType\"H\n\010FileType\022\031\n\025FILE_TYPE_UNSPE"
+ + "CIFIED\020\000\022\007\n\003ALL\020\001\022\n\n\006FOLDER\020\002\022\014\n\010DOCUMEN"
+ + "T\020\003\"u\n\025CustomWeightsMetadata\022\\\n\032weighted"
+ + "_schema_properties\030\001 \003(\01328.google.cloud."
+ + "contentwarehouse.v1.WeightedSchemaProper"
+ + "ty\"\203\001\n\026WeightedSchemaProperty\022Q\n\024documen"
+ + "t_schema_name\030\001 \001(\tB3\372A0\n.contentwarehou"
+ + "se.googleapis.com/DocumentSchema\022\026\n\016prop"
+ + "erty_names\030\002 \003(\tB\364\001\n$com.google.cloud.co"
+ + "ntentwarehouse.v1B\014FiltersProtoP\001ZPcloud"
+ + ".google.com/go/contentwarehouse/apiv1/co"
+ + "ntentwarehousepb;contentwarehousepb\252\002 Go"
+ + "ogle.Cloud.ContentWarehouse.V1\312\002 Google\\"
+ + "Cloud\\ContentWarehouse\\V1\352\002#Google::Clou"
+ + "d::ContentWarehouse::V1b\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
@@ -124,6 +125,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"PropertyFilter",
"FileTypeFilter",
"FolderNameFilter",
+ "DocumentNameFilter",
"QueryContext",
"DocumentCreatorFilter",
"CustomWeightsMetadata",
diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/GcsIngestPipeline.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/GcsIngestPipeline.java
new file mode 100644
index 000000000000..7d42cb4e5319
--- /dev/null
+++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/GcsIngestPipeline.java
@@ -0,0 +1,1452 @@
+/*
+ * 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/contentwarehouse/v1/pipelines.proto
+
+package com.google.cloud.contentwarehouse.v1;
+
+/**
+ *
+ *
+ *
+ * The configuration of the Cloud Storage Ingestion pipeline.
+ *
+ *
+ * Protobuf type {@code google.cloud.contentwarehouse.v1.GcsIngestPipeline}
+ */
+public final class GcsIngestPipeline extends com.google.protobuf.GeneratedMessageV3
+ implements
+ // @@protoc_insertion_point(message_implements:google.cloud.contentwarehouse.v1.GcsIngestPipeline)
+ GcsIngestPipelineOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use GcsIngestPipeline.newBuilder() to construct.
+ private GcsIngestPipeline(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+
+ private GcsIngestPipeline() {
+ inputPath_ = "";
+ schemaName_ = "";
+ processorType_ = "";
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+ return new GcsIngestPipeline();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.contentwarehouse.v1.PipelinesProto
+ .internal_static_google_cloud_contentwarehouse_v1_GcsIngestPipeline_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.contentwarehouse.v1.PipelinesProto
+ .internal_static_google_cloud_contentwarehouse_v1_GcsIngestPipeline_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.contentwarehouse.v1.GcsIngestPipeline.class,
+ com.google.cloud.contentwarehouse.v1.GcsIngestPipeline.Builder.class);
+ }
+
+ public static final int INPUT_PATH_FIELD_NUMBER = 1;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object inputPath_ = "";
+ /**
+ *
+ *
+ *
+ * The input Cloud Storage folder. All files under this folder will be
+ * imported to Document Warehouse.
+ * Format: `gs://<bucket-name>/<folder-name>`.
+ *
+ *
+ * string input_path = 1;
+ *
+ * @return The inputPath.
+ */
+ @java.lang.Override
+ public java.lang.String getInputPath() {
+ java.lang.Object ref = inputPath_;
+ 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();
+ inputPath_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The input Cloud Storage folder. All files under this folder will be
+ * imported to Document Warehouse.
+ * Format: `gs://<bucket-name>/<folder-name>`.
+ *
+ *
+ * string input_path = 1;
+ *
+ * @return The bytes for inputPath.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getInputPathBytes() {
+ java.lang.Object ref = inputPath_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ inputPath_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int SCHEMA_NAME_FIELD_NUMBER = 2;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object schemaName_ = "";
+ /**
+ *
+ *
+ *
+ * The Document Warehouse schema resource name. All documents processed by
+ * this pipeline will use this schema.
+ * Format:
+ * projects/{project_number}/locations/{location}/documentSchemas/{document_schema_id}.
+ *
+ *
+ * string schema_name = 2;
+ *
+ * @return The schemaName.
+ */
+ @java.lang.Override
+ public java.lang.String getSchemaName() {
+ java.lang.Object ref = schemaName_;
+ 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();
+ schemaName_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The Document Warehouse schema resource name. All documents processed by
+ * this pipeline will use this schema.
+ * Format:
+ * projects/{project_number}/locations/{location}/documentSchemas/{document_schema_id}.
+ *
+ *
+ * string schema_name = 2;
+ *
+ * @return The bytes for schemaName.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getSchemaNameBytes() {
+ java.lang.Object ref = schemaName_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ schemaName_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int PROCESSOR_TYPE_FIELD_NUMBER = 3;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object processorType_ = "";
+ /**
+ *
+ *
+ *
+ * The Doc AI processor type name. Only used when the format of ingested
+ * files is Doc AI Document proto format.
+ *
+ *
+ * string processor_type = 3;
+ *
+ * @return The processorType.
+ */
+ @java.lang.Override
+ public java.lang.String getProcessorType() {
+ java.lang.Object ref = processorType_;
+ 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();
+ processorType_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The Doc AI processor type name. Only used when the format of ingested
+ * files is Doc AI Document proto format.
+ *
+ *
+ * string processor_type = 3;
+ *
+ * @return The bytes for processorType.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getProcessorTypeBytes() {
+ java.lang.Object ref = processorType_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ processorType_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int SKIP_INGESTED_DOCUMENTS_FIELD_NUMBER = 4;
+ private boolean skipIngestedDocuments_ = false;
+ /**
+ *
+ *
+ *
+ * The flag whether to skip ingested documents.
+ * If it is set to true, documents in Cloud Storage contains key "status" with
+ * value "status=ingested" in custom metadata will be skipped to ingest.
+ *
+ *
+ * bool skip_ingested_documents = 4;
+ *
+ * @return The skipIngestedDocuments.
+ */
+ @java.lang.Override
+ public boolean getSkipIngestedDocuments() {
+ return skipIngestedDocuments_;
+ }
+
+ public static final int PIPELINE_CONFIG_FIELD_NUMBER = 5;
+ private com.google.cloud.contentwarehouse.v1.IngestPipelineConfig pipelineConfig_;
+ /**
+ *
+ *
+ *
+ * Optional. The config for the Cloud Storage Ingestion pipeline.
+ * It provides additional customization options to run the pipeline and can be
+ * skipped if it is not applicable.
+ *
+ *
+ *
+ * .google.cloud.contentwarehouse.v1.IngestPipelineConfig pipeline_config = 5 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the pipelineConfig field is set.
+ */
+ @java.lang.Override
+ public boolean hasPipelineConfig() {
+ return pipelineConfig_ != null;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. The config for the Cloud Storage Ingestion pipeline.
+ * It provides additional customization options to run the pipeline and can be
+ * skipped if it is not applicable.
+ *
+ *
+ *
+ * .google.cloud.contentwarehouse.v1.IngestPipelineConfig pipeline_config = 5 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The pipelineConfig.
+ */
+ @java.lang.Override
+ public com.google.cloud.contentwarehouse.v1.IngestPipelineConfig getPipelineConfig() {
+ return pipelineConfig_ == null
+ ? com.google.cloud.contentwarehouse.v1.IngestPipelineConfig.getDefaultInstance()
+ : pipelineConfig_;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. The config for the Cloud Storage Ingestion pipeline.
+ * It provides additional customization options to run the pipeline and can be
+ * skipped if it is not applicable.
+ *
+ *
+ *
+ * .google.cloud.contentwarehouse.v1.IngestPipelineConfig pipeline_config = 5 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.contentwarehouse.v1.IngestPipelineConfigOrBuilder
+ getPipelineConfigOrBuilder() {
+ return pipelineConfig_ == null
+ ? com.google.cloud.contentwarehouse.v1.IngestPipelineConfig.getDefaultInstance()
+ : pipelineConfig_;
+ }
+
+ 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(inputPath_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, inputPath_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(schemaName_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, schemaName_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(processorType_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 3, processorType_);
+ }
+ if (skipIngestedDocuments_ != false) {
+ output.writeBool(4, skipIngestedDocuments_);
+ }
+ if (pipelineConfig_ != null) {
+ output.writeMessage(5, getPipelineConfig());
+ }
+ 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(inputPath_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, inputPath_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(schemaName_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, schemaName_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(processorType_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, processorType_);
+ }
+ if (skipIngestedDocuments_ != false) {
+ size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, skipIngestedDocuments_);
+ }
+ if (pipelineConfig_ != null) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getPipelineConfig());
+ }
+ 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.contentwarehouse.v1.GcsIngestPipeline)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.contentwarehouse.v1.GcsIngestPipeline other =
+ (com.google.cloud.contentwarehouse.v1.GcsIngestPipeline) obj;
+
+ if (!getInputPath().equals(other.getInputPath())) return false;
+ if (!getSchemaName().equals(other.getSchemaName())) return false;
+ if (!getProcessorType().equals(other.getProcessorType())) return false;
+ if (getSkipIngestedDocuments() != other.getSkipIngestedDocuments()) return false;
+ if (hasPipelineConfig() != other.hasPipelineConfig()) return false;
+ if (hasPipelineConfig()) {
+ if (!getPipelineConfig().equals(other.getPipelineConfig())) 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) + INPUT_PATH_FIELD_NUMBER;
+ hash = (53 * hash) + getInputPath().hashCode();
+ hash = (37 * hash) + SCHEMA_NAME_FIELD_NUMBER;
+ hash = (53 * hash) + getSchemaName().hashCode();
+ hash = (37 * hash) + PROCESSOR_TYPE_FIELD_NUMBER;
+ hash = (53 * hash) + getProcessorType().hashCode();
+ hash = (37 * hash) + SKIP_INGESTED_DOCUMENTS_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSkipIngestedDocuments());
+ if (hasPipelineConfig()) {
+ hash = (37 * hash) + PIPELINE_CONFIG_FIELD_NUMBER;
+ hash = (53 * hash) + getPipelineConfig().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.contentwarehouse.v1.GcsIngestPipeline parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.contentwarehouse.v1.GcsIngestPipeline 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.contentwarehouse.v1.GcsIngestPipeline parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.contentwarehouse.v1.GcsIngestPipeline 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.contentwarehouse.v1.GcsIngestPipeline parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.contentwarehouse.v1.GcsIngestPipeline parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.contentwarehouse.v1.GcsIngestPipeline parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.contentwarehouse.v1.GcsIngestPipeline 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.contentwarehouse.v1.GcsIngestPipeline parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.contentwarehouse.v1.GcsIngestPipeline 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.contentwarehouse.v1.GcsIngestPipeline parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.contentwarehouse.v1.GcsIngestPipeline 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.contentwarehouse.v1.GcsIngestPipeline prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ *
+ *
+ *
+ * The configuration of the Cloud Storage Ingestion pipeline.
+ *
+ *
+ * Protobuf type {@code google.cloud.contentwarehouse.v1.GcsIngestPipeline}
+ */
+ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ implements
+ // @@protoc_insertion_point(builder_implements:google.cloud.contentwarehouse.v1.GcsIngestPipeline)
+ com.google.cloud.contentwarehouse.v1.GcsIngestPipelineOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.contentwarehouse.v1.PipelinesProto
+ .internal_static_google_cloud_contentwarehouse_v1_GcsIngestPipeline_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.contentwarehouse.v1.PipelinesProto
+ .internal_static_google_cloud_contentwarehouse_v1_GcsIngestPipeline_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.contentwarehouse.v1.GcsIngestPipeline.class,
+ com.google.cloud.contentwarehouse.v1.GcsIngestPipeline.Builder.class);
+ }
+
+ // Construct using com.google.cloud.contentwarehouse.v1.GcsIngestPipeline.newBuilder()
+ private Builder() {}
+
+ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ }
+
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ inputPath_ = "";
+ schemaName_ = "";
+ processorType_ = "";
+ skipIngestedDocuments_ = false;
+ pipelineConfig_ = null;
+ if (pipelineConfigBuilder_ != null) {
+ pipelineConfigBuilder_.dispose();
+ pipelineConfigBuilder_ = null;
+ }
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+ return com.google.cloud.contentwarehouse.v1.PipelinesProto
+ .internal_static_google_cloud_contentwarehouse_v1_GcsIngestPipeline_descriptor;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.contentwarehouse.v1.GcsIngestPipeline getDefaultInstanceForType() {
+ return com.google.cloud.contentwarehouse.v1.GcsIngestPipeline.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public com.google.cloud.contentwarehouse.v1.GcsIngestPipeline build() {
+ com.google.cloud.contentwarehouse.v1.GcsIngestPipeline result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.contentwarehouse.v1.GcsIngestPipeline buildPartial() {
+ com.google.cloud.contentwarehouse.v1.GcsIngestPipeline result =
+ new com.google.cloud.contentwarehouse.v1.GcsIngestPipeline(this);
+ if (bitField0_ != 0) {
+ buildPartial0(result);
+ }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartial0(com.google.cloud.contentwarehouse.v1.GcsIngestPipeline result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.inputPath_ = inputPath_;
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.schemaName_ = schemaName_;
+ }
+ if (((from_bitField0_ & 0x00000004) != 0)) {
+ result.processorType_ = processorType_;
+ }
+ if (((from_bitField0_ & 0x00000008) != 0)) {
+ result.skipIngestedDocuments_ = skipIngestedDocuments_;
+ }
+ if (((from_bitField0_ & 0x00000010) != 0)) {
+ result.pipelineConfig_ =
+ pipelineConfigBuilder_ == null ? pipelineConfig_ : pipelineConfigBuilder_.build();
+ }
+ }
+
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+ return super.setField(field, value);
+ }
+
+ @java.lang.Override
+ public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+
+ @java.lang.Override
+ public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+ return super.addRepeatedField(field, value);
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof com.google.cloud.contentwarehouse.v1.GcsIngestPipeline) {
+ return mergeFrom((com.google.cloud.contentwarehouse.v1.GcsIngestPipeline) other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.GcsIngestPipeline other) {
+ if (other == com.google.cloud.contentwarehouse.v1.GcsIngestPipeline.getDefaultInstance())
+ return this;
+ if (!other.getInputPath().isEmpty()) {
+ inputPath_ = other.inputPath_;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ }
+ if (!other.getSchemaName().isEmpty()) {
+ schemaName_ = other.schemaName_;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ }
+ if (!other.getProcessorType().isEmpty()) {
+ processorType_ = other.processorType_;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ }
+ if (other.getSkipIngestedDocuments() != false) {
+ setSkipIngestedDocuments(other.getSkipIngestedDocuments());
+ }
+ if (other.hasPipelineConfig()) {
+ mergePipelineConfig(other.getPipelineConfig());
+ }
+ this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10:
+ {
+ inputPath_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000001;
+ break;
+ } // case 10
+ case 18:
+ {
+ schemaName_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000002;
+ break;
+ } // case 18
+ case 26:
+ {
+ processorType_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000004;
+ break;
+ } // case 26
+ case 32:
+ {
+ skipIngestedDocuments_ = input.readBool();
+ bitField0_ |= 0x00000008;
+ break;
+ } // case 32
+ case 42:
+ {
+ input.readMessage(getPipelineConfigFieldBuilder().getBuilder(), extensionRegistry);
+ bitField0_ |= 0x00000010;
+ break;
+ } // case 42
+ default:
+ {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.unwrapIOException();
+ } finally {
+ onChanged();
+ } // finally
+ return this;
+ }
+
+ private int bitField0_;
+
+ private java.lang.Object inputPath_ = "";
+ /**
+ *
+ *
+ *
+ * The input Cloud Storage folder. All files under this folder will be
+ * imported to Document Warehouse.
+ * Format: `gs://<bucket-name>/<folder-name>`.
+ *
+ *
+ * string input_path = 1;
+ *
+ * @return The inputPath.
+ */
+ public java.lang.String getInputPath() {
+ java.lang.Object ref = inputPath_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ inputPath_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The input Cloud Storage folder. All files under this folder will be
+ * imported to Document Warehouse.
+ * Format: `gs://<bucket-name>/<folder-name>`.
+ *
+ *
+ * string input_path = 1;
+ *
+ * @return The bytes for inputPath.
+ */
+ public com.google.protobuf.ByteString getInputPathBytes() {
+ java.lang.Object ref = inputPath_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ inputPath_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The input Cloud Storage folder. All files under this folder will be
+ * imported to Document Warehouse.
+ * Format: `gs://<bucket-name>/<folder-name>`.
+ *
+ *
+ * string input_path = 1;
+ *
+ * @param value The inputPath to set.
+ * @return This builder for chaining.
+ */
+ public Builder setInputPath(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ inputPath_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The input Cloud Storage folder. All files under this folder will be
+ * imported to Document Warehouse.
+ * Format: `gs://<bucket-name>/<folder-name>`.
+ *
+ *
+ * string input_path = 1;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearInputPath() {
+ inputPath_ = getDefaultInstance().getInputPath();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The input Cloud Storage folder. All files under this folder will be
+ * imported to Document Warehouse.
+ * Format: `gs://<bucket-name>/<folder-name>`.
+ *
+ *
+ * string input_path = 1;
+ *
+ * @param value The bytes for inputPath to set.
+ * @return This builder for chaining.
+ */
+ public Builder setInputPathBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ inputPath_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object schemaName_ = "";
+ /**
+ *
+ *
+ *
+ * The Document Warehouse schema resource name. All documents processed by
+ * this pipeline will use this schema.
+ * Format:
+ * projects/{project_number}/locations/{location}/documentSchemas/{document_schema_id}.
+ *
+ *
+ * string schema_name = 2;
+ *
+ * @return The schemaName.
+ */
+ public java.lang.String getSchemaName() {
+ java.lang.Object ref = schemaName_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ schemaName_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The Document Warehouse schema resource name. All documents processed by
+ * this pipeline will use this schema.
+ * Format:
+ * projects/{project_number}/locations/{location}/documentSchemas/{document_schema_id}.
+ *
+ *
+ * string schema_name = 2;
+ *
+ * @return The bytes for schemaName.
+ */
+ public com.google.protobuf.ByteString getSchemaNameBytes() {
+ java.lang.Object ref = schemaName_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ schemaName_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The Document Warehouse schema resource name. All documents processed by
+ * this pipeline will use this schema.
+ * Format:
+ * projects/{project_number}/locations/{location}/documentSchemas/{document_schema_id}.
+ *
+ *
+ * string schema_name = 2;
+ *
+ * @param value The schemaName to set.
+ * @return This builder for chaining.
+ */
+ public Builder setSchemaName(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ schemaName_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The Document Warehouse schema resource name. All documents processed by
+ * this pipeline will use this schema.
+ * Format:
+ * projects/{project_number}/locations/{location}/documentSchemas/{document_schema_id}.
+ *
+ *
+ * string schema_name = 2;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearSchemaName() {
+ schemaName_ = getDefaultInstance().getSchemaName();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The Document Warehouse schema resource name. All documents processed by
+ * this pipeline will use this schema.
+ * Format:
+ * projects/{project_number}/locations/{location}/documentSchemas/{document_schema_id}.
+ *
+ *
+ * string schema_name = 2;
+ *
+ * @param value The bytes for schemaName to set.
+ * @return This builder for chaining.
+ */
+ public Builder setSchemaNameBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ schemaName_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object processorType_ = "";
+ /**
+ *
+ *
+ *
+ * The Doc AI processor type name. Only used when the format of ingested
+ * files is Doc AI Document proto format.
+ *
+ *
+ * string processor_type = 3;
+ *
+ * @return The processorType.
+ */
+ public java.lang.String getProcessorType() {
+ java.lang.Object ref = processorType_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ processorType_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The Doc AI processor type name. Only used when the format of ingested
+ * files is Doc AI Document proto format.
+ *
+ *
+ * string processor_type = 3;
+ *
+ * @return The bytes for processorType.
+ */
+ public com.google.protobuf.ByteString getProcessorTypeBytes() {
+ java.lang.Object ref = processorType_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ processorType_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The Doc AI processor type name. Only used when the format of ingested
+ * files is Doc AI Document proto format.
+ *
+ *
+ * string processor_type = 3;
+ *
+ * @param value The processorType to set.
+ * @return This builder for chaining.
+ */
+ public Builder setProcessorType(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ processorType_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The Doc AI processor type name. Only used when the format of ingested
+ * files is Doc AI Document proto format.
+ *
+ *
+ * string processor_type = 3;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearProcessorType() {
+ processorType_ = getDefaultInstance().getProcessorType();
+ bitField0_ = (bitField0_ & ~0x00000004);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The Doc AI processor type name. Only used when the format of ingested
+ * files is Doc AI Document proto format.
+ *
+ *
+ * string processor_type = 3;
+ *
+ * @param value The bytes for processorType to set.
+ * @return This builder for chaining.
+ */
+ public Builder setProcessorTypeBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ processorType_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+
+ private boolean skipIngestedDocuments_;
+ /**
+ *
+ *
+ *
+ * The flag whether to skip ingested documents.
+ * If it is set to true, documents in Cloud Storage contains key "status" with
+ * value "status=ingested" in custom metadata will be skipped to ingest.
+ *
+ *
+ * bool skip_ingested_documents = 4;
+ *
+ * @return The skipIngestedDocuments.
+ */
+ @java.lang.Override
+ public boolean getSkipIngestedDocuments() {
+ return skipIngestedDocuments_;
+ }
+ /**
+ *
+ *
+ *
+ * The flag whether to skip ingested documents.
+ * If it is set to true, documents in Cloud Storage contains key "status" with
+ * value "status=ingested" in custom metadata will be skipped to ingest.
+ *
+ *
+ * bool skip_ingested_documents = 4;
+ *
+ * @param value The skipIngestedDocuments to set.
+ * @return This builder for chaining.
+ */
+ public Builder setSkipIngestedDocuments(boolean value) {
+
+ skipIngestedDocuments_ = value;
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The flag whether to skip ingested documents.
+ * If it is set to true, documents in Cloud Storage contains key "status" with
+ * value "status=ingested" in custom metadata will be skipped to ingest.
+ *
+ *
+ * bool skip_ingested_documents = 4;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearSkipIngestedDocuments() {
+ bitField0_ = (bitField0_ & ~0x00000008);
+ skipIngestedDocuments_ = false;
+ onChanged();
+ return this;
+ }
+
+ private com.google.cloud.contentwarehouse.v1.IngestPipelineConfig pipelineConfig_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.contentwarehouse.v1.IngestPipelineConfig,
+ com.google.cloud.contentwarehouse.v1.IngestPipelineConfig.Builder,
+ com.google.cloud.contentwarehouse.v1.IngestPipelineConfigOrBuilder>
+ pipelineConfigBuilder_;
+ /**
+ *
+ *
+ *
+ * Optional. The config for the Cloud Storage Ingestion pipeline.
+ * It provides additional customization options to run the pipeline and can be
+ * skipped if it is not applicable.
+ *
+ *
+ *
+ * .google.cloud.contentwarehouse.v1.IngestPipelineConfig pipeline_config = 5 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the pipelineConfig field is set.
+ */
+ public boolean hasPipelineConfig() {
+ return ((bitField0_ & 0x00000010) != 0);
+ }
+ /**
+ *
+ *
+ *
+ * Optional. The config for the Cloud Storage Ingestion pipeline.
+ * It provides additional customization options to run the pipeline and can be
+ * skipped if it is not applicable.
+ *
+ *
+ *
+ * .google.cloud.contentwarehouse.v1.IngestPipelineConfig pipeline_config = 5 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The pipelineConfig.
+ */
+ public com.google.cloud.contentwarehouse.v1.IngestPipelineConfig getPipelineConfig() {
+ if (pipelineConfigBuilder_ == null) {
+ return pipelineConfig_ == null
+ ? com.google.cloud.contentwarehouse.v1.IngestPipelineConfig.getDefaultInstance()
+ : pipelineConfig_;
+ } else {
+ return pipelineConfigBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Optional. The config for the Cloud Storage Ingestion pipeline.
+ * It provides additional customization options to run the pipeline and can be
+ * skipped if it is not applicable.
+ *
+ *
+ *
+ * .google.cloud.contentwarehouse.v1.IngestPipelineConfig pipeline_config = 5 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder setPipelineConfig(
+ com.google.cloud.contentwarehouse.v1.IngestPipelineConfig value) {
+ if (pipelineConfigBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ pipelineConfig_ = value;
+ } else {
+ pipelineConfigBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000010;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. The config for the Cloud Storage Ingestion pipeline.
+ * It provides additional customization options to run the pipeline and can be
+ * skipped if it is not applicable.
+ *
+ *
+ *
+ * .google.cloud.contentwarehouse.v1.IngestPipelineConfig pipeline_config = 5 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder setPipelineConfig(
+ com.google.cloud.contentwarehouse.v1.IngestPipelineConfig.Builder builderForValue) {
+ if (pipelineConfigBuilder_ == null) {
+ pipelineConfig_ = builderForValue.build();
+ } else {
+ pipelineConfigBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000010;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. The config for the Cloud Storage Ingestion pipeline.
+ * It provides additional customization options to run the pipeline and can be
+ * skipped if it is not applicable.
+ *
+ *
+ *
+ * .google.cloud.contentwarehouse.v1.IngestPipelineConfig pipeline_config = 5 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder mergePipelineConfig(
+ com.google.cloud.contentwarehouse.v1.IngestPipelineConfig value) {
+ if (pipelineConfigBuilder_ == null) {
+ if (((bitField0_ & 0x00000010) != 0)
+ && pipelineConfig_ != null
+ && pipelineConfig_
+ != com.google.cloud.contentwarehouse.v1.IngestPipelineConfig.getDefaultInstance()) {
+ getPipelineConfigBuilder().mergeFrom(value);
+ } else {
+ pipelineConfig_ = value;
+ }
+ } else {
+ pipelineConfigBuilder_.mergeFrom(value);
+ }
+ bitField0_ |= 0x00000010;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. The config for the Cloud Storage Ingestion pipeline.
+ * It provides additional customization options to run the pipeline and can be
+ * skipped if it is not applicable.
+ *
+ *
+ *
+ * .google.cloud.contentwarehouse.v1.IngestPipelineConfig pipeline_config = 5 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder clearPipelineConfig() {
+ bitField0_ = (bitField0_ & ~0x00000010);
+ pipelineConfig_ = null;
+ if (pipelineConfigBuilder_ != null) {
+ pipelineConfigBuilder_.dispose();
+ pipelineConfigBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. The config for the Cloud Storage Ingestion pipeline.
+ * It provides additional customization options to run the pipeline and can be
+ * skipped if it is not applicable.
+ *
+ *
+ *
+ * .google.cloud.contentwarehouse.v1.IngestPipelineConfig pipeline_config = 5 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.cloud.contentwarehouse.v1.IngestPipelineConfig.Builder
+ getPipelineConfigBuilder() {
+ bitField0_ |= 0x00000010;
+ onChanged();
+ return getPipelineConfigFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ *
+ * Optional. The config for the Cloud Storage Ingestion pipeline.
+ * It provides additional customization options to run the pipeline and can be
+ * skipped if it is not applicable.
+ *
+ *
+ *
+ * .google.cloud.contentwarehouse.v1.IngestPipelineConfig pipeline_config = 5 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.cloud.contentwarehouse.v1.IngestPipelineConfigOrBuilder
+ getPipelineConfigOrBuilder() {
+ if (pipelineConfigBuilder_ != null) {
+ return pipelineConfigBuilder_.getMessageOrBuilder();
+ } else {
+ return pipelineConfig_ == null
+ ? com.google.cloud.contentwarehouse.v1.IngestPipelineConfig.getDefaultInstance()
+ : pipelineConfig_;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Optional. The config for the Cloud Storage Ingestion pipeline.
+ * It provides additional customization options to run the pipeline and can be
+ * skipped if it is not applicable.
+ *
+ *
+ *
+ * .google.cloud.contentwarehouse.v1.IngestPipelineConfig pipeline_config = 5 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.contentwarehouse.v1.IngestPipelineConfig,
+ com.google.cloud.contentwarehouse.v1.IngestPipelineConfig.Builder,
+ com.google.cloud.contentwarehouse.v1.IngestPipelineConfigOrBuilder>
+ getPipelineConfigFieldBuilder() {
+ if (pipelineConfigBuilder_ == null) {
+ pipelineConfigBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.contentwarehouse.v1.IngestPipelineConfig,
+ com.google.cloud.contentwarehouse.v1.IngestPipelineConfig.Builder,
+ com.google.cloud.contentwarehouse.v1.IngestPipelineConfigOrBuilder>(
+ getPipelineConfig(), getParentForChildren(), isClean());
+ pipelineConfig_ = null;
+ }
+ return pipelineConfigBuilder_;
+ }
+
+ @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.contentwarehouse.v1.GcsIngestPipeline)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.GcsIngestPipeline)
+ private static final com.google.cloud.contentwarehouse.v1.GcsIngestPipeline DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.GcsIngestPipeline();
+ }
+
+ public static com.google.cloud.contentwarehouse.v1.GcsIngestPipeline getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser PARSER =
+ new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public GcsIngestPipeline parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ Builder builder = newBuilder();
+ try {
+ builder.mergeFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(builder.buildPartial());
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e)
+ .setUnfinishedMessage(builder.buildPartial());
+ }
+ return builder.buildPartial();
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.contentwarehouse.v1.GcsIngestPipeline getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+}
diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/GcsIngestPipelineOrBuilder.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/GcsIngestPipelineOrBuilder.java
new file mode 100644
index 000000000000..00b3b7cb21c2
--- /dev/null
+++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/GcsIngestPipelineOrBuilder.java
@@ -0,0 +1,174 @@
+/*
+ * 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/contentwarehouse/v1/pipelines.proto
+
+package com.google.cloud.contentwarehouse.v1;
+
+public interface GcsIngestPipelineOrBuilder
+ extends
+ // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.GcsIngestPipeline)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ *
+ *
+ *
+ * The input Cloud Storage folder. All files under this folder will be
+ * imported to Document Warehouse.
+ * Format: `gs://<bucket-name>/<folder-name>`.
+ *
+ *
+ * string input_path = 1;
+ *
+ * @return The inputPath.
+ */
+ java.lang.String getInputPath();
+ /**
+ *
+ *
+ *
+ * The input Cloud Storage folder. All files under this folder will be
+ * imported to Document Warehouse.
+ * Format: `gs://<bucket-name>/<folder-name>`.
+ *
+ *
+ * string input_path = 1;
+ *
+ * @return The bytes for inputPath.
+ */
+ com.google.protobuf.ByteString getInputPathBytes();
+
+ /**
+ *
+ *
+ *
+ * The Document Warehouse schema resource name. All documents processed by
+ * this pipeline will use this schema.
+ * Format:
+ * projects/{project_number}/locations/{location}/documentSchemas/{document_schema_id}.
+ *
+ *
+ * string schema_name = 2;
+ *
+ * @return The schemaName.
+ */
+ java.lang.String getSchemaName();
+ /**
+ *
+ *
+ *
+ * The Document Warehouse schema resource name. All documents processed by
+ * this pipeline will use this schema.
+ * Format:
+ * projects/{project_number}/locations/{location}/documentSchemas/{document_schema_id}.
+ *
+ *
+ * string schema_name = 2;
+ *
+ * @return The bytes for schemaName.
+ */
+ com.google.protobuf.ByteString getSchemaNameBytes();
+
+ /**
+ *
+ *
+ *
+ * The Doc AI processor type name. Only used when the format of ingested
+ * files is Doc AI Document proto format.
+ *
+ *
+ * string processor_type = 3;
+ *
+ * @return The processorType.
+ */
+ java.lang.String getProcessorType();
+ /**
+ *
+ *
+ *
+ * The Doc AI processor type name. Only used when the format of ingested
+ * files is Doc AI Document proto format.
+ *
+ *
+ * string processor_type = 3;
+ *
+ * @return The bytes for processorType.
+ */
+ com.google.protobuf.ByteString getProcessorTypeBytes();
+
+ /**
+ *
+ *
+ *
+ * The flag whether to skip ingested documents.
+ * If it is set to true, documents in Cloud Storage contains key "status" with
+ * value "status=ingested" in custom metadata will be skipped to ingest.
+ *
+ *
+ * bool skip_ingested_documents = 4;
+ *
+ * @return The skipIngestedDocuments.
+ */
+ boolean getSkipIngestedDocuments();
+
+ /**
+ *
+ *
+ *
+ * Optional. The config for the Cloud Storage Ingestion pipeline.
+ * It provides additional customization options to run the pipeline and can be
+ * skipped if it is not applicable.
+ *
+ *
+ *
+ * .google.cloud.contentwarehouse.v1.IngestPipelineConfig pipeline_config = 5 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the pipelineConfig field is set.
+ */
+ boolean hasPipelineConfig();
+ /**
+ *
+ *
+ *
+ * Optional. The config for the Cloud Storage Ingestion pipeline.
+ * It provides additional customization options to run the pipeline and can be
+ * skipped if it is not applicable.
+ *
+ *
+ *
+ * .google.cloud.contentwarehouse.v1.IngestPipelineConfig pipeline_config = 5 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The pipelineConfig.
+ */
+ com.google.cloud.contentwarehouse.v1.IngestPipelineConfig getPipelineConfig();
+ /**
+ *
+ *
+ *
+ * Optional. The config for the Cloud Storage Ingestion pipeline.
+ * It provides additional customization options to run the pipeline and can be
+ * skipped if it is not applicable.
+ *
+ *
+ *
+ * .google.cloud.contentwarehouse.v1.IngestPipelineConfig pipeline_config = 5 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ com.google.cloud.contentwarehouse.v1.IngestPipelineConfigOrBuilder getPipelineConfigOrBuilder();
+}
diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/GcsIngestWithDocAiProcessorsPipeline.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/GcsIngestWithDocAiProcessorsPipeline.java
new file mode 100644
index 000000000000..66ca5449ed62
--- /dev/null
+++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/GcsIngestWithDocAiProcessorsPipeline.java
@@ -0,0 +1,2196 @@
+/*
+ * 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/contentwarehouse/v1/pipelines.proto
+
+package com.google.cloud.contentwarehouse.v1;
+
+/**
+ *
+ *
+ *
+ * The configuration of the Cloud Storage Ingestion with DocAI Processors
+ * pipeline.
+ *
+ *
+ * Protobuf type {@code google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline}
+ */
+public final class GcsIngestWithDocAiProcessorsPipeline
+ extends com.google.protobuf.GeneratedMessageV3
+ implements
+ // @@protoc_insertion_point(message_implements:google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline)
+ GcsIngestWithDocAiProcessorsPipelineOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use GcsIngestWithDocAiProcessorsPipeline.newBuilder() to construct.
+ private GcsIngestWithDocAiProcessorsPipeline(
+ com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+
+ private GcsIngestWithDocAiProcessorsPipeline() {
+ inputPath_ = "";
+ extractProcessorInfos_ = java.util.Collections.emptyList();
+ processorResultsFolderPath_ = "";
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+ return new GcsIngestWithDocAiProcessorsPipeline();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.contentwarehouse.v1.PipelinesProto
+ .internal_static_google_cloud_contentwarehouse_v1_GcsIngestWithDocAiProcessorsPipeline_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.contentwarehouse.v1.PipelinesProto
+ .internal_static_google_cloud_contentwarehouse_v1_GcsIngestWithDocAiProcessorsPipeline_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline.class,
+ com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline.Builder
+ .class);
+ }
+
+ public static final int INPUT_PATH_FIELD_NUMBER = 1;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object inputPath_ = "";
+ /**
+ *
+ *
+ *
+ * The input Cloud Storage folder. All files under this folder will be
+ * imported to Document Warehouse.
+ * Format: `gs://<bucket-name>/<folder-name>`.
+ *
+ *
+ * string input_path = 1;
+ *
+ * @return The inputPath.
+ */
+ @java.lang.Override
+ public java.lang.String getInputPath() {
+ java.lang.Object ref = inputPath_;
+ 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();
+ inputPath_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The input Cloud Storage folder. All files under this folder will be
+ * imported to Document Warehouse.
+ * Format: `gs://<bucket-name>/<folder-name>`.
+ *
+ *
+ * string input_path = 1;
+ *
+ * @return The bytes for inputPath.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getInputPathBytes() {
+ java.lang.Object ref = inputPath_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ inputPath_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int SPLIT_CLASSIFY_PROCESSOR_INFO_FIELD_NUMBER = 2;
+ private com.google.cloud.contentwarehouse.v1.ProcessorInfo splitClassifyProcessorInfo_;
+ /**
+ *
+ *
+ *
+ * The split and classify processor information.
+ * The split and classify result will be used to find a matched extract
+ * processor.
+ *
+ *
+ * .google.cloud.contentwarehouse.v1.ProcessorInfo split_classify_processor_info = 2;
+ *
+ * @return Whether the splitClassifyProcessorInfo field is set.
+ */
+ @java.lang.Override
+ public boolean hasSplitClassifyProcessorInfo() {
+ return splitClassifyProcessorInfo_ != null;
+ }
+ /**
+ *
+ *
+ *
+ * The split and classify processor information.
+ * The split and classify result will be used to find a matched extract
+ * processor.
+ *
+ *
+ * .google.cloud.contentwarehouse.v1.ProcessorInfo split_classify_processor_info = 2;
+ *
+ * @return The splitClassifyProcessorInfo.
+ */
+ @java.lang.Override
+ public com.google.cloud.contentwarehouse.v1.ProcessorInfo getSplitClassifyProcessorInfo() {
+ return splitClassifyProcessorInfo_ == null
+ ? com.google.cloud.contentwarehouse.v1.ProcessorInfo.getDefaultInstance()
+ : splitClassifyProcessorInfo_;
+ }
+ /**
+ *
+ *
+ *
+ * The split and classify processor information.
+ * The split and classify result will be used to find a matched extract
+ * processor.
+ *
+ *
+ * .google.cloud.contentwarehouse.v1.ProcessorInfo split_classify_processor_info = 2;
+ */
+ @java.lang.Override
+ public com.google.cloud.contentwarehouse.v1.ProcessorInfoOrBuilder
+ getSplitClassifyProcessorInfoOrBuilder() {
+ return splitClassifyProcessorInfo_ == null
+ ? com.google.cloud.contentwarehouse.v1.ProcessorInfo.getDefaultInstance()
+ : splitClassifyProcessorInfo_;
+ }
+
+ public static final int EXTRACT_PROCESSOR_INFOS_FIELD_NUMBER = 3;
+
+ @SuppressWarnings("serial")
+ private java.util.List extractProcessorInfos_;
+ /**
+ *
+ *
+ *
+ * The extract processors information.
+ * One matched extract processor will be used to process documents based on
+ * the classify processor result. If no classify processor is specified, the
+ * first extract processor will be used.
+ *
+ *
+ * repeated .google.cloud.contentwarehouse.v1.ProcessorInfo extract_processor_infos = 3;
+ *
+ */
+ @java.lang.Override
+ public java.util.List
+ getExtractProcessorInfosList() {
+ return extractProcessorInfos_;
+ }
+ /**
+ *
+ *
+ *
+ * The extract processors information.
+ * One matched extract processor will be used to process documents based on
+ * the classify processor result. If no classify processor is specified, the
+ * first extract processor will be used.
+ *
+ *
+ * repeated .google.cloud.contentwarehouse.v1.ProcessorInfo extract_processor_infos = 3;
+ *
+ */
+ @java.lang.Override
+ public java.util.List extends com.google.cloud.contentwarehouse.v1.ProcessorInfoOrBuilder>
+ getExtractProcessorInfosOrBuilderList() {
+ return extractProcessorInfos_;
+ }
+ /**
+ *
+ *
+ *
+ * The extract processors information.
+ * One matched extract processor will be used to process documents based on
+ * the classify processor result. If no classify processor is specified, the
+ * first extract processor will be used.
+ *
+ *
+ * repeated .google.cloud.contentwarehouse.v1.ProcessorInfo extract_processor_infos = 3;
+ *
+ */
+ @java.lang.Override
+ public int getExtractProcessorInfosCount() {
+ return extractProcessorInfos_.size();
+ }
+ /**
+ *
+ *
+ *
+ * The extract processors information.
+ * One matched extract processor will be used to process documents based on
+ * the classify processor result. If no classify processor is specified, the
+ * first extract processor will be used.
+ *
+ *
+ * repeated .google.cloud.contentwarehouse.v1.ProcessorInfo extract_processor_infos = 3;
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.contentwarehouse.v1.ProcessorInfo getExtractProcessorInfos(int index) {
+ return extractProcessorInfos_.get(index);
+ }
+ /**
+ *
+ *
+ *
+ * The extract processors information.
+ * One matched extract processor will be used to process documents based on
+ * the classify processor result. If no classify processor is specified, the
+ * first extract processor will be used.
+ *
+ *
+ * repeated .google.cloud.contentwarehouse.v1.ProcessorInfo extract_processor_infos = 3;
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.contentwarehouse.v1.ProcessorInfoOrBuilder
+ getExtractProcessorInfosOrBuilder(int index) {
+ return extractProcessorInfos_.get(index);
+ }
+
+ public static final int PROCESSOR_RESULTS_FOLDER_PATH_FIELD_NUMBER = 4;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object processorResultsFolderPath_ = "";
+ /**
+ *
+ *
+ *
+ * The Cloud Storage folder path used to store the raw results from
+ * processors.
+ * Format: `gs://<bucket-name>/<folder-name>`.
+ *
+ *
+ * string processor_results_folder_path = 4;
+ *
+ * @return The processorResultsFolderPath.
+ */
+ @java.lang.Override
+ public java.lang.String getProcessorResultsFolderPath() {
+ java.lang.Object ref = processorResultsFolderPath_;
+ 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();
+ processorResultsFolderPath_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The Cloud Storage folder path used to store the raw results from
+ * processors.
+ * Format: `gs://<bucket-name>/<folder-name>`.
+ *
+ *
+ * string processor_results_folder_path = 4;
+ *
+ * @return The bytes for processorResultsFolderPath.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getProcessorResultsFolderPathBytes() {
+ java.lang.Object ref = processorResultsFolderPath_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ processorResultsFolderPath_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int SKIP_INGESTED_DOCUMENTS_FIELD_NUMBER = 5;
+ private boolean skipIngestedDocuments_ = false;
+ /**
+ *
+ *
+ *
+ * The flag whether to skip ingested documents.
+ * If it is set to true, documents in Cloud Storage contains key "status" with
+ * value "status=ingested" in custom metadata will be skipped to ingest.
+ *
+ *
+ * bool skip_ingested_documents = 5;
+ *
+ * @return The skipIngestedDocuments.
+ */
+ @java.lang.Override
+ public boolean getSkipIngestedDocuments() {
+ return skipIngestedDocuments_;
+ }
+
+ public static final int PIPELINE_CONFIG_FIELD_NUMBER = 6;
+ private com.google.cloud.contentwarehouse.v1.IngestPipelineConfig pipelineConfig_;
+ /**
+ *
+ *
+ *
+ * Optional. The config for the Cloud Storage Ingestion with DocAI Processors
+ * pipeline. It provides additional customization options to run the pipeline
+ * and can be skipped if it is not applicable.
+ *
+ *
+ *
+ * .google.cloud.contentwarehouse.v1.IngestPipelineConfig pipeline_config = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the pipelineConfig field is set.
+ */
+ @java.lang.Override
+ public boolean hasPipelineConfig() {
+ return pipelineConfig_ != null;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. The config for the Cloud Storage Ingestion with DocAI Processors
+ * pipeline. It provides additional customization options to run the pipeline
+ * and can be skipped if it is not applicable.
+ *
+ *
+ *
+ * .google.cloud.contentwarehouse.v1.IngestPipelineConfig pipeline_config = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The pipelineConfig.
+ */
+ @java.lang.Override
+ public com.google.cloud.contentwarehouse.v1.IngestPipelineConfig getPipelineConfig() {
+ return pipelineConfig_ == null
+ ? com.google.cloud.contentwarehouse.v1.IngestPipelineConfig.getDefaultInstance()
+ : pipelineConfig_;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. The config for the Cloud Storage Ingestion with DocAI Processors
+ * pipeline. It provides additional customization options to run the pipeline
+ * and can be skipped if it is not applicable.
+ *
+ *
+ *
+ * .google.cloud.contentwarehouse.v1.IngestPipelineConfig pipeline_config = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.contentwarehouse.v1.IngestPipelineConfigOrBuilder
+ getPipelineConfigOrBuilder() {
+ return pipelineConfig_ == null
+ ? com.google.cloud.contentwarehouse.v1.IngestPipelineConfig.getDefaultInstance()
+ : pipelineConfig_;
+ }
+
+ 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(inputPath_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, inputPath_);
+ }
+ if (splitClassifyProcessorInfo_ != null) {
+ output.writeMessage(2, getSplitClassifyProcessorInfo());
+ }
+ for (int i = 0; i < extractProcessorInfos_.size(); i++) {
+ output.writeMessage(3, extractProcessorInfos_.get(i));
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(processorResultsFolderPath_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 4, processorResultsFolderPath_);
+ }
+ if (skipIngestedDocuments_ != false) {
+ output.writeBool(5, skipIngestedDocuments_);
+ }
+ if (pipelineConfig_ != null) {
+ output.writeMessage(6, getPipelineConfig());
+ }
+ 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(inputPath_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, inputPath_);
+ }
+ if (splitClassifyProcessorInfo_ != null) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 2, getSplitClassifyProcessorInfo());
+ }
+ for (int i = 0; i < extractProcessorInfos_.size(); i++) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 3, extractProcessorInfos_.get(i));
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(processorResultsFolderPath_)) {
+ size +=
+ com.google.protobuf.GeneratedMessageV3.computeStringSize(4, processorResultsFolderPath_);
+ }
+ if (skipIngestedDocuments_ != false) {
+ size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, skipIngestedDocuments_);
+ }
+ if (pipelineConfig_ != null) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getPipelineConfig());
+ }
+ 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.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline other =
+ (com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline) obj;
+
+ if (!getInputPath().equals(other.getInputPath())) return false;
+ if (hasSplitClassifyProcessorInfo() != other.hasSplitClassifyProcessorInfo()) return false;
+ if (hasSplitClassifyProcessorInfo()) {
+ if (!getSplitClassifyProcessorInfo().equals(other.getSplitClassifyProcessorInfo()))
+ return false;
+ }
+ if (!getExtractProcessorInfosList().equals(other.getExtractProcessorInfosList())) return false;
+ if (!getProcessorResultsFolderPath().equals(other.getProcessorResultsFolderPath()))
+ return false;
+ if (getSkipIngestedDocuments() != other.getSkipIngestedDocuments()) return false;
+ if (hasPipelineConfig() != other.hasPipelineConfig()) return false;
+ if (hasPipelineConfig()) {
+ if (!getPipelineConfig().equals(other.getPipelineConfig())) 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) + INPUT_PATH_FIELD_NUMBER;
+ hash = (53 * hash) + getInputPath().hashCode();
+ if (hasSplitClassifyProcessorInfo()) {
+ hash = (37 * hash) + SPLIT_CLASSIFY_PROCESSOR_INFO_FIELD_NUMBER;
+ hash = (53 * hash) + getSplitClassifyProcessorInfo().hashCode();
+ }
+ if (getExtractProcessorInfosCount() > 0) {
+ hash = (37 * hash) + EXTRACT_PROCESSOR_INFOS_FIELD_NUMBER;
+ hash = (53 * hash) + getExtractProcessorInfosList().hashCode();
+ }
+ hash = (37 * hash) + PROCESSOR_RESULTS_FOLDER_PATH_FIELD_NUMBER;
+ hash = (53 * hash) + getProcessorResultsFolderPath().hashCode();
+ hash = (37 * hash) + SKIP_INGESTED_DOCUMENTS_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSkipIngestedDocuments());
+ if (hasPipelineConfig()) {
+ hash = (37 * hash) + PIPELINE_CONFIG_FIELD_NUMBER;
+ hash = (53 * hash) + getPipelineConfig().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline 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.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline 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.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline parseFrom(
+ byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline 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.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline
+ parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline
+ 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.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline 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.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ *
+ *
+ *
+ * The configuration of the Cloud Storage Ingestion with DocAI Processors
+ * pipeline.
+ *
+ *
+ * Protobuf type {@code google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline}
+ */
+ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ implements
+ // @@protoc_insertion_point(builder_implements:google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline)
+ com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipelineOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.contentwarehouse.v1.PipelinesProto
+ .internal_static_google_cloud_contentwarehouse_v1_GcsIngestWithDocAiProcessorsPipeline_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.contentwarehouse.v1.PipelinesProto
+ .internal_static_google_cloud_contentwarehouse_v1_GcsIngestWithDocAiProcessorsPipeline_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline.class,
+ com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline.Builder
+ .class);
+ }
+
+ // Construct using
+ // com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline.newBuilder()
+ private Builder() {}
+
+ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ }
+
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ inputPath_ = "";
+ splitClassifyProcessorInfo_ = null;
+ if (splitClassifyProcessorInfoBuilder_ != null) {
+ splitClassifyProcessorInfoBuilder_.dispose();
+ splitClassifyProcessorInfoBuilder_ = null;
+ }
+ if (extractProcessorInfosBuilder_ == null) {
+ extractProcessorInfos_ = java.util.Collections.emptyList();
+ } else {
+ extractProcessorInfos_ = null;
+ extractProcessorInfosBuilder_.clear();
+ }
+ bitField0_ = (bitField0_ & ~0x00000004);
+ processorResultsFolderPath_ = "";
+ skipIngestedDocuments_ = false;
+ pipelineConfig_ = null;
+ if (pipelineConfigBuilder_ != null) {
+ pipelineConfigBuilder_.dispose();
+ pipelineConfigBuilder_ = null;
+ }
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+ return com.google.cloud.contentwarehouse.v1.PipelinesProto
+ .internal_static_google_cloud_contentwarehouse_v1_GcsIngestWithDocAiProcessorsPipeline_descriptor;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline
+ getDefaultInstanceForType() {
+ return com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline
+ .getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline build() {
+ com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline result =
+ buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline
+ buildPartial() {
+ com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline result =
+ new com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline(this);
+ buildPartialRepeatedFields(result);
+ if (bitField0_ != 0) {
+ buildPartial0(result);
+ }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartialRepeatedFields(
+ com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline result) {
+ if (extractProcessorInfosBuilder_ == null) {
+ if (((bitField0_ & 0x00000004) != 0)) {
+ extractProcessorInfos_ = java.util.Collections.unmodifiableList(extractProcessorInfos_);
+ bitField0_ = (bitField0_ & ~0x00000004);
+ }
+ result.extractProcessorInfos_ = extractProcessorInfos_;
+ } else {
+ result.extractProcessorInfos_ = extractProcessorInfosBuilder_.build();
+ }
+ }
+
+ private void buildPartial0(
+ com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.inputPath_ = inputPath_;
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.splitClassifyProcessorInfo_ =
+ splitClassifyProcessorInfoBuilder_ == null
+ ? splitClassifyProcessorInfo_
+ : splitClassifyProcessorInfoBuilder_.build();
+ }
+ if (((from_bitField0_ & 0x00000008) != 0)) {
+ result.processorResultsFolderPath_ = processorResultsFolderPath_;
+ }
+ if (((from_bitField0_ & 0x00000010) != 0)) {
+ result.skipIngestedDocuments_ = skipIngestedDocuments_;
+ }
+ if (((from_bitField0_ & 0x00000020) != 0)) {
+ result.pipelineConfig_ =
+ pipelineConfigBuilder_ == null ? pipelineConfig_ : pipelineConfigBuilder_.build();
+ }
+ }
+
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+ return super.setField(field, value);
+ }
+
+ @java.lang.Override
+ public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+
+ @java.lang.Override
+ public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+ return super.addRepeatedField(field, value);
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other
+ instanceof com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline) {
+ return mergeFrom(
+ (com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline) other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(
+ com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline other) {
+ if (other
+ == com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline
+ .getDefaultInstance()) return this;
+ if (!other.getInputPath().isEmpty()) {
+ inputPath_ = other.inputPath_;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ }
+ if (other.hasSplitClassifyProcessorInfo()) {
+ mergeSplitClassifyProcessorInfo(other.getSplitClassifyProcessorInfo());
+ }
+ if (extractProcessorInfosBuilder_ == null) {
+ if (!other.extractProcessorInfos_.isEmpty()) {
+ if (extractProcessorInfos_.isEmpty()) {
+ extractProcessorInfos_ = other.extractProcessorInfos_;
+ bitField0_ = (bitField0_ & ~0x00000004);
+ } else {
+ ensureExtractProcessorInfosIsMutable();
+ extractProcessorInfos_.addAll(other.extractProcessorInfos_);
+ }
+ onChanged();
+ }
+ } else {
+ if (!other.extractProcessorInfos_.isEmpty()) {
+ if (extractProcessorInfosBuilder_.isEmpty()) {
+ extractProcessorInfosBuilder_.dispose();
+ extractProcessorInfosBuilder_ = null;
+ extractProcessorInfos_ = other.extractProcessorInfos_;
+ bitField0_ = (bitField0_ & ~0x00000004);
+ extractProcessorInfosBuilder_ =
+ com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+ ? getExtractProcessorInfosFieldBuilder()
+ : null;
+ } else {
+ extractProcessorInfosBuilder_.addAllMessages(other.extractProcessorInfos_);
+ }
+ }
+ }
+ if (!other.getProcessorResultsFolderPath().isEmpty()) {
+ processorResultsFolderPath_ = other.processorResultsFolderPath_;
+ bitField0_ |= 0x00000008;
+ onChanged();
+ }
+ if (other.getSkipIngestedDocuments() != false) {
+ setSkipIngestedDocuments(other.getSkipIngestedDocuments());
+ }
+ if (other.hasPipelineConfig()) {
+ mergePipelineConfig(other.getPipelineConfig());
+ }
+ this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10:
+ {
+ inputPath_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000001;
+ break;
+ } // case 10
+ case 18:
+ {
+ input.readMessage(
+ getSplitClassifyProcessorInfoFieldBuilder().getBuilder(), extensionRegistry);
+ bitField0_ |= 0x00000002;
+ break;
+ } // case 18
+ case 26:
+ {
+ com.google.cloud.contentwarehouse.v1.ProcessorInfo m =
+ input.readMessage(
+ com.google.cloud.contentwarehouse.v1.ProcessorInfo.parser(),
+ extensionRegistry);
+ if (extractProcessorInfosBuilder_ == null) {
+ ensureExtractProcessorInfosIsMutable();
+ extractProcessorInfos_.add(m);
+ } else {
+ extractProcessorInfosBuilder_.addMessage(m);
+ }
+ break;
+ } // case 26
+ case 34:
+ {
+ processorResultsFolderPath_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000008;
+ break;
+ } // case 34
+ case 40:
+ {
+ skipIngestedDocuments_ = input.readBool();
+ bitField0_ |= 0x00000010;
+ break;
+ } // case 40
+ case 50:
+ {
+ input.readMessage(getPipelineConfigFieldBuilder().getBuilder(), extensionRegistry);
+ bitField0_ |= 0x00000020;
+ break;
+ } // case 50
+ default:
+ {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.unwrapIOException();
+ } finally {
+ onChanged();
+ } // finally
+ return this;
+ }
+
+ private int bitField0_;
+
+ private java.lang.Object inputPath_ = "";
+ /**
+ *
+ *
+ *
+ * The input Cloud Storage folder. All files under this folder will be
+ * imported to Document Warehouse.
+ * Format: `gs://<bucket-name>/<folder-name>`.
+ *
+ *
+ * string input_path = 1;
+ *
+ * @return The inputPath.
+ */
+ public java.lang.String getInputPath() {
+ java.lang.Object ref = inputPath_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ inputPath_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The input Cloud Storage folder. All files under this folder will be
+ * imported to Document Warehouse.
+ * Format: `gs://<bucket-name>/<folder-name>`.
+ *
+ *
+ * string input_path = 1;
+ *
+ * @return The bytes for inputPath.
+ */
+ public com.google.protobuf.ByteString getInputPathBytes() {
+ java.lang.Object ref = inputPath_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ inputPath_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The input Cloud Storage folder. All files under this folder will be
+ * imported to Document Warehouse.
+ * Format: `gs://<bucket-name>/<folder-name>`.
+ *
+ *
+ * string input_path = 1;
+ *
+ * @param value The inputPath to set.
+ * @return This builder for chaining.
+ */
+ public Builder setInputPath(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ inputPath_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The input Cloud Storage folder. All files under this folder will be
+ * imported to Document Warehouse.
+ * Format: `gs://<bucket-name>/<folder-name>`.
+ *
+ *
+ * string input_path = 1;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearInputPath() {
+ inputPath_ = getDefaultInstance().getInputPath();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The input Cloud Storage folder. All files under this folder will be
+ * imported to Document Warehouse.
+ * Format: `gs://<bucket-name>/<folder-name>`.
+ *
+ *
+ * string input_path = 1;
+ *
+ * @param value The bytes for inputPath to set.
+ * @return This builder for chaining.
+ */
+ public Builder setInputPathBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ inputPath_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ private com.google.cloud.contentwarehouse.v1.ProcessorInfo splitClassifyProcessorInfo_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.contentwarehouse.v1.ProcessorInfo,
+ com.google.cloud.contentwarehouse.v1.ProcessorInfo.Builder,
+ com.google.cloud.contentwarehouse.v1.ProcessorInfoOrBuilder>
+ splitClassifyProcessorInfoBuilder_;
+ /**
+ *
+ *
+ *
+ * The split and classify processor information.
+ * The split and classify result will be used to find a matched extract
+ * processor.
+ *
+ *
+ * .google.cloud.contentwarehouse.v1.ProcessorInfo split_classify_processor_info = 2;
+ *
+ *
+ * @return Whether the splitClassifyProcessorInfo field is set.
+ */
+ public boolean hasSplitClassifyProcessorInfo() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+ /**
+ *
+ *
+ *
+ * The split and classify processor information.
+ * The split and classify result will be used to find a matched extract
+ * processor.
+ *
+ *
+ * .google.cloud.contentwarehouse.v1.ProcessorInfo split_classify_processor_info = 2;
+ *
+ *
+ * @return The splitClassifyProcessorInfo.
+ */
+ public com.google.cloud.contentwarehouse.v1.ProcessorInfo getSplitClassifyProcessorInfo() {
+ if (splitClassifyProcessorInfoBuilder_ == null) {
+ return splitClassifyProcessorInfo_ == null
+ ? com.google.cloud.contentwarehouse.v1.ProcessorInfo.getDefaultInstance()
+ : splitClassifyProcessorInfo_;
+ } else {
+ return splitClassifyProcessorInfoBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The split and classify processor information.
+ * The split and classify result will be used to find a matched extract
+ * processor.
+ *
+ *
+ * .google.cloud.contentwarehouse.v1.ProcessorInfo split_classify_processor_info = 2;
+ *
+ */
+ public Builder setSplitClassifyProcessorInfo(
+ com.google.cloud.contentwarehouse.v1.ProcessorInfo value) {
+ if (splitClassifyProcessorInfoBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ splitClassifyProcessorInfo_ = value;
+ } else {
+ splitClassifyProcessorInfoBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The split and classify processor information.
+ * The split and classify result will be used to find a matched extract
+ * processor.
+ *
+ *
+ * .google.cloud.contentwarehouse.v1.ProcessorInfo split_classify_processor_info = 2;
+ *
+ */
+ public Builder setSplitClassifyProcessorInfo(
+ com.google.cloud.contentwarehouse.v1.ProcessorInfo.Builder builderForValue) {
+ if (splitClassifyProcessorInfoBuilder_ == null) {
+ splitClassifyProcessorInfo_ = builderForValue.build();
+ } else {
+ splitClassifyProcessorInfoBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The split and classify processor information.
+ * The split and classify result will be used to find a matched extract
+ * processor.
+ *
+ *
+ * .google.cloud.contentwarehouse.v1.ProcessorInfo split_classify_processor_info = 2;
+ *
+ */
+ public Builder mergeSplitClassifyProcessorInfo(
+ com.google.cloud.contentwarehouse.v1.ProcessorInfo value) {
+ if (splitClassifyProcessorInfoBuilder_ == null) {
+ if (((bitField0_ & 0x00000002) != 0)
+ && splitClassifyProcessorInfo_ != null
+ && splitClassifyProcessorInfo_
+ != com.google.cloud.contentwarehouse.v1.ProcessorInfo.getDefaultInstance()) {
+ getSplitClassifyProcessorInfoBuilder().mergeFrom(value);
+ } else {
+ splitClassifyProcessorInfo_ = value;
+ }
+ } else {
+ splitClassifyProcessorInfoBuilder_.mergeFrom(value);
+ }
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The split and classify processor information.
+ * The split and classify result will be used to find a matched extract
+ * processor.
+ *
+ *
+ * .google.cloud.contentwarehouse.v1.ProcessorInfo split_classify_processor_info = 2;
+ *
+ */
+ public Builder clearSplitClassifyProcessorInfo() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ splitClassifyProcessorInfo_ = null;
+ if (splitClassifyProcessorInfoBuilder_ != null) {
+ splitClassifyProcessorInfoBuilder_.dispose();
+ splitClassifyProcessorInfoBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The split and classify processor information.
+ * The split and classify result will be used to find a matched extract
+ * processor.
+ *
+ *
+ * .google.cloud.contentwarehouse.v1.ProcessorInfo split_classify_processor_info = 2;
+ *
+ */
+ public com.google.cloud.contentwarehouse.v1.ProcessorInfo.Builder
+ getSplitClassifyProcessorInfoBuilder() {
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return getSplitClassifyProcessorInfoFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ *
+ * The split and classify processor information.
+ * The split and classify result will be used to find a matched extract
+ * processor.
+ *
+ *
+ * .google.cloud.contentwarehouse.v1.ProcessorInfo split_classify_processor_info = 2;
+ *
+ */
+ public com.google.cloud.contentwarehouse.v1.ProcessorInfoOrBuilder
+ getSplitClassifyProcessorInfoOrBuilder() {
+ if (splitClassifyProcessorInfoBuilder_ != null) {
+ return splitClassifyProcessorInfoBuilder_.getMessageOrBuilder();
+ } else {
+ return splitClassifyProcessorInfo_ == null
+ ? com.google.cloud.contentwarehouse.v1.ProcessorInfo.getDefaultInstance()
+ : splitClassifyProcessorInfo_;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The split and classify processor information.
+ * The split and classify result will be used to find a matched extract
+ * processor.
+ *
+ *
+ * .google.cloud.contentwarehouse.v1.ProcessorInfo split_classify_processor_info = 2;
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.contentwarehouse.v1.ProcessorInfo,
+ com.google.cloud.contentwarehouse.v1.ProcessorInfo.Builder,
+ com.google.cloud.contentwarehouse.v1.ProcessorInfoOrBuilder>
+ getSplitClassifyProcessorInfoFieldBuilder() {
+ if (splitClassifyProcessorInfoBuilder_ == null) {
+ splitClassifyProcessorInfoBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.contentwarehouse.v1.ProcessorInfo,
+ com.google.cloud.contentwarehouse.v1.ProcessorInfo.Builder,
+ com.google.cloud.contentwarehouse.v1.ProcessorInfoOrBuilder>(
+ getSplitClassifyProcessorInfo(), getParentForChildren(), isClean());
+ splitClassifyProcessorInfo_ = null;
+ }
+ return splitClassifyProcessorInfoBuilder_;
+ }
+
+ private java.util.List
+ extractProcessorInfos_ = java.util.Collections.emptyList();
+
+ private void ensureExtractProcessorInfosIsMutable() {
+ if (!((bitField0_ & 0x00000004) != 0)) {
+ extractProcessorInfos_ =
+ new java.util.ArrayList(
+ extractProcessorInfos_);
+ bitField0_ |= 0x00000004;
+ }
+ }
+
+ private com.google.protobuf.RepeatedFieldBuilderV3<
+ com.google.cloud.contentwarehouse.v1.ProcessorInfo,
+ com.google.cloud.contentwarehouse.v1.ProcessorInfo.Builder,
+ com.google.cloud.contentwarehouse.v1.ProcessorInfoOrBuilder>
+ extractProcessorInfosBuilder_;
+
+ /**
+ *
+ *
+ *
+ * The extract processors information.
+ * One matched extract processor will be used to process documents based on
+ * the classify processor result. If no classify processor is specified, the
+ * first extract processor will be used.
+ *
+ *
+ * repeated .google.cloud.contentwarehouse.v1.ProcessorInfo extract_processor_infos = 3;
+ *
+ */
+ public java.util.List
+ getExtractProcessorInfosList() {
+ if (extractProcessorInfosBuilder_ == null) {
+ return java.util.Collections.unmodifiableList(extractProcessorInfos_);
+ } else {
+ return extractProcessorInfosBuilder_.getMessageList();
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The extract processors information.
+ * One matched extract processor will be used to process documents based on
+ * the classify processor result. If no classify processor is specified, the
+ * first extract processor will be used.
+ *
+ *
+ * repeated .google.cloud.contentwarehouse.v1.ProcessorInfo extract_processor_infos = 3;
+ *
+ */
+ public int getExtractProcessorInfosCount() {
+ if (extractProcessorInfosBuilder_ == null) {
+ return extractProcessorInfos_.size();
+ } else {
+ return extractProcessorInfosBuilder_.getCount();
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The extract processors information.
+ * One matched extract processor will be used to process documents based on
+ * the classify processor result. If no classify processor is specified, the
+ * first extract processor will be used.
+ *
+ *
+ * repeated .google.cloud.contentwarehouse.v1.ProcessorInfo extract_processor_infos = 3;
+ *
+ */
+ public com.google.cloud.contentwarehouse.v1.ProcessorInfo getExtractProcessorInfos(int index) {
+ if (extractProcessorInfosBuilder_ == null) {
+ return extractProcessorInfos_.get(index);
+ } else {
+ return extractProcessorInfosBuilder_.getMessage(index);
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The extract processors information.
+ * One matched extract processor will be used to process documents based on
+ * the classify processor result. If no classify processor is specified, the
+ * first extract processor will be used.
+ *
+ *
+ * repeated .google.cloud.contentwarehouse.v1.ProcessorInfo extract_processor_infos = 3;
+ *
+ */
+ public Builder setExtractProcessorInfos(
+ int index, com.google.cloud.contentwarehouse.v1.ProcessorInfo value) {
+ if (extractProcessorInfosBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureExtractProcessorInfosIsMutable();
+ extractProcessorInfos_.set(index, value);
+ onChanged();
+ } else {
+ extractProcessorInfosBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The extract processors information.
+ * One matched extract processor will be used to process documents based on
+ * the classify processor result. If no classify processor is specified, the
+ * first extract processor will be used.
+ *
+ *
+ * repeated .google.cloud.contentwarehouse.v1.ProcessorInfo extract_processor_infos = 3;
+ *
+ */
+ public Builder setExtractProcessorInfos(
+ int index, com.google.cloud.contentwarehouse.v1.ProcessorInfo.Builder builderForValue) {
+ if (extractProcessorInfosBuilder_ == null) {
+ ensureExtractProcessorInfosIsMutable();
+ extractProcessorInfos_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ extractProcessorInfosBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The extract processors information.
+ * One matched extract processor will be used to process documents based on
+ * the classify processor result. If no classify processor is specified, the
+ * first extract processor will be used.
+ *
+ *
+ * repeated .google.cloud.contentwarehouse.v1.ProcessorInfo extract_processor_infos = 3;
+ *
+ */
+ public Builder addExtractProcessorInfos(
+ com.google.cloud.contentwarehouse.v1.ProcessorInfo value) {
+ if (extractProcessorInfosBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureExtractProcessorInfosIsMutable();
+ extractProcessorInfos_.add(value);
+ onChanged();
+ } else {
+ extractProcessorInfosBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The extract processors information.
+ * One matched extract processor will be used to process documents based on
+ * the classify processor result. If no classify processor is specified, the
+ * first extract processor will be used.
+ *
+ *
+ * repeated .google.cloud.contentwarehouse.v1.ProcessorInfo extract_processor_infos = 3;
+ *
+ */
+ public Builder addExtractProcessorInfos(
+ int index, com.google.cloud.contentwarehouse.v1.ProcessorInfo value) {
+ if (extractProcessorInfosBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureExtractProcessorInfosIsMutable();
+ extractProcessorInfos_.add(index, value);
+ onChanged();
+ } else {
+ extractProcessorInfosBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The extract processors information.
+ * One matched extract processor will be used to process documents based on
+ * the classify processor result. If no classify processor is specified, the
+ * first extract processor will be used.
+ *
+ *
+ * repeated .google.cloud.contentwarehouse.v1.ProcessorInfo extract_processor_infos = 3;
+ *
+ */
+ public Builder addExtractProcessorInfos(
+ com.google.cloud.contentwarehouse.v1.ProcessorInfo.Builder builderForValue) {
+ if (extractProcessorInfosBuilder_ == null) {
+ ensureExtractProcessorInfosIsMutable();
+ extractProcessorInfos_.add(builderForValue.build());
+ onChanged();
+ } else {
+ extractProcessorInfosBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The extract processors information.
+ * One matched extract processor will be used to process documents based on
+ * the classify processor result. If no classify processor is specified, the
+ * first extract processor will be used.
+ *
+ *
+ * repeated .google.cloud.contentwarehouse.v1.ProcessorInfo extract_processor_infos = 3;
+ *
+ */
+ public Builder addExtractProcessorInfos(
+ int index, com.google.cloud.contentwarehouse.v1.ProcessorInfo.Builder builderForValue) {
+ if (extractProcessorInfosBuilder_ == null) {
+ ensureExtractProcessorInfosIsMutable();
+ extractProcessorInfos_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ extractProcessorInfosBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The extract processors information.
+ * One matched extract processor will be used to process documents based on
+ * the classify processor result. If no classify processor is specified, the
+ * first extract processor will be used.
+ *
+ *
+ * repeated .google.cloud.contentwarehouse.v1.ProcessorInfo extract_processor_infos = 3;
+ *
+ */
+ public Builder addAllExtractProcessorInfos(
+ java.lang.Iterable extends com.google.cloud.contentwarehouse.v1.ProcessorInfo> values) {
+ if (extractProcessorInfosBuilder_ == null) {
+ ensureExtractProcessorInfosIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, extractProcessorInfos_);
+ onChanged();
+ } else {
+ extractProcessorInfosBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The extract processors information.
+ * One matched extract processor will be used to process documents based on
+ * the classify processor result. If no classify processor is specified, the
+ * first extract processor will be used.
+ *
+ *
+ * repeated .google.cloud.contentwarehouse.v1.ProcessorInfo extract_processor_infos = 3;
+ *
+ */
+ public Builder clearExtractProcessorInfos() {
+ if (extractProcessorInfosBuilder_ == null) {
+ extractProcessorInfos_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000004);
+ onChanged();
+ } else {
+ extractProcessorInfosBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The extract processors information.
+ * One matched extract processor will be used to process documents based on
+ * the classify processor result. If no classify processor is specified, the
+ * first extract processor will be used.
+ *
+ *
+ * repeated .google.cloud.contentwarehouse.v1.ProcessorInfo extract_processor_infos = 3;
+ *
+ */
+ public Builder removeExtractProcessorInfos(int index) {
+ if (extractProcessorInfosBuilder_ == null) {
+ ensureExtractProcessorInfosIsMutable();
+ extractProcessorInfos_.remove(index);
+ onChanged();
+ } else {
+ extractProcessorInfosBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The extract processors information.
+ * One matched extract processor will be used to process documents based on
+ * the classify processor result. If no classify processor is specified, the
+ * first extract processor will be used.
+ *
+ *
+ * repeated .google.cloud.contentwarehouse.v1.ProcessorInfo extract_processor_infos = 3;
+ *
+ */
+ public com.google.cloud.contentwarehouse.v1.ProcessorInfo.Builder
+ getExtractProcessorInfosBuilder(int index) {
+ return getExtractProcessorInfosFieldBuilder().getBuilder(index);
+ }
+ /**
+ *
+ *
+ *
+ * The extract processors information.
+ * One matched extract processor will be used to process documents based on
+ * the classify processor result. If no classify processor is specified, the
+ * first extract processor will be used.
+ *
+ *
+ * repeated .google.cloud.contentwarehouse.v1.ProcessorInfo extract_processor_infos = 3;
+ *
+ */
+ public com.google.cloud.contentwarehouse.v1.ProcessorInfoOrBuilder
+ getExtractProcessorInfosOrBuilder(int index) {
+ if (extractProcessorInfosBuilder_ == null) {
+ return extractProcessorInfos_.get(index);
+ } else {
+ return extractProcessorInfosBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The extract processors information.
+ * One matched extract processor will be used to process documents based on
+ * the classify processor result. If no classify processor is specified, the
+ * first extract processor will be used.
+ *
+ *
+ * repeated .google.cloud.contentwarehouse.v1.ProcessorInfo extract_processor_infos = 3;
+ *
+ */
+ public java.util.List extends com.google.cloud.contentwarehouse.v1.ProcessorInfoOrBuilder>
+ getExtractProcessorInfosOrBuilderList() {
+ if (extractProcessorInfosBuilder_ != null) {
+ return extractProcessorInfosBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(extractProcessorInfos_);
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The extract processors information.
+ * One matched extract processor will be used to process documents based on
+ * the classify processor result. If no classify processor is specified, the
+ * first extract processor will be used.
+ *
+ *
+ * repeated .google.cloud.contentwarehouse.v1.ProcessorInfo extract_processor_infos = 3;
+ *
+ */
+ public com.google.cloud.contentwarehouse.v1.ProcessorInfo.Builder
+ addExtractProcessorInfosBuilder() {
+ return getExtractProcessorInfosFieldBuilder()
+ .addBuilder(com.google.cloud.contentwarehouse.v1.ProcessorInfo.getDefaultInstance());
+ }
+ /**
+ *
+ *
+ *
+ * The extract processors information.
+ * One matched extract processor will be used to process documents based on
+ * the classify processor result. If no classify processor is specified, the
+ * first extract processor will be used.
+ *
+ *
+ * repeated .google.cloud.contentwarehouse.v1.ProcessorInfo extract_processor_infos = 3;
+ *
+ */
+ public com.google.cloud.contentwarehouse.v1.ProcessorInfo.Builder
+ addExtractProcessorInfosBuilder(int index) {
+ return getExtractProcessorInfosFieldBuilder()
+ .addBuilder(
+ index, com.google.cloud.contentwarehouse.v1.ProcessorInfo.getDefaultInstance());
+ }
+ /**
+ *
+ *
+ *
+ * The extract processors information.
+ * One matched extract processor will be used to process documents based on
+ * the classify processor result. If no classify processor is specified, the
+ * first extract processor will be used.
+ *
+ *
+ * repeated .google.cloud.contentwarehouse.v1.ProcessorInfo extract_processor_infos = 3;
+ *
+ */
+ public java.util.List
+ getExtractProcessorInfosBuilderList() {
+ return getExtractProcessorInfosFieldBuilder().getBuilderList();
+ }
+
+ private com.google.protobuf.RepeatedFieldBuilderV3<
+ com.google.cloud.contentwarehouse.v1.ProcessorInfo,
+ com.google.cloud.contentwarehouse.v1.ProcessorInfo.Builder,
+ com.google.cloud.contentwarehouse.v1.ProcessorInfoOrBuilder>
+ getExtractProcessorInfosFieldBuilder() {
+ if (extractProcessorInfosBuilder_ == null) {
+ extractProcessorInfosBuilder_ =
+ new com.google.protobuf.RepeatedFieldBuilderV3<
+ com.google.cloud.contentwarehouse.v1.ProcessorInfo,
+ com.google.cloud.contentwarehouse.v1.ProcessorInfo.Builder,
+ com.google.cloud.contentwarehouse.v1.ProcessorInfoOrBuilder>(
+ extractProcessorInfos_,
+ ((bitField0_ & 0x00000004) != 0),
+ getParentForChildren(),
+ isClean());
+ extractProcessorInfos_ = null;
+ }
+ return extractProcessorInfosBuilder_;
+ }
+
+ private java.lang.Object processorResultsFolderPath_ = "";
+ /**
+ *
+ *
+ *
+ * The Cloud Storage folder path used to store the raw results from
+ * processors.
+ * Format: `gs://<bucket-name>/<folder-name>`.
+ *
+ *
+ * string processor_results_folder_path = 4;
+ *
+ * @return The processorResultsFolderPath.
+ */
+ public java.lang.String getProcessorResultsFolderPath() {
+ java.lang.Object ref = processorResultsFolderPath_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ processorResultsFolderPath_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The Cloud Storage folder path used to store the raw results from
+ * processors.
+ * Format: `gs://<bucket-name>/<folder-name>`.
+ *
+ *
+ * string processor_results_folder_path = 4;
+ *
+ * @return The bytes for processorResultsFolderPath.
+ */
+ public com.google.protobuf.ByteString getProcessorResultsFolderPathBytes() {
+ java.lang.Object ref = processorResultsFolderPath_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ processorResultsFolderPath_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The Cloud Storage folder path used to store the raw results from
+ * processors.
+ * Format: `gs://<bucket-name>/<folder-name>`.
+ *
+ *
+ * string processor_results_folder_path = 4;
+ *
+ * @param value The processorResultsFolderPath to set.
+ * @return This builder for chaining.
+ */
+ public Builder setProcessorResultsFolderPath(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ processorResultsFolderPath_ = value;
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The Cloud Storage folder path used to store the raw results from
+ * processors.
+ * Format: `gs://<bucket-name>/<folder-name>`.
+ *
+ *
+ * string processor_results_folder_path = 4;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearProcessorResultsFolderPath() {
+ processorResultsFolderPath_ = getDefaultInstance().getProcessorResultsFolderPath();
+ bitField0_ = (bitField0_ & ~0x00000008);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The Cloud Storage folder path used to store the raw results from
+ * processors.
+ * Format: `gs://<bucket-name>/<folder-name>`.
+ *
+ *
+ * string processor_results_folder_path = 4;
+ *
+ * @param value The bytes for processorResultsFolderPath to set.
+ * @return This builder for chaining.
+ */
+ public Builder setProcessorResultsFolderPathBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ processorResultsFolderPath_ = value;
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return this;
+ }
+
+ private boolean skipIngestedDocuments_;
+ /**
+ *
+ *
+ *
+ * The flag whether to skip ingested documents.
+ * If it is set to true, documents in Cloud Storage contains key "status" with
+ * value "status=ingested" in custom metadata will be skipped to ingest.
+ *
+ *
+ * bool skip_ingested_documents = 5;
+ *
+ * @return The skipIngestedDocuments.
+ */
+ @java.lang.Override
+ public boolean getSkipIngestedDocuments() {
+ return skipIngestedDocuments_;
+ }
+ /**
+ *
+ *
+ *
+ * The flag whether to skip ingested documents.
+ * If it is set to true, documents in Cloud Storage contains key "status" with
+ * value "status=ingested" in custom metadata will be skipped to ingest.
+ *
+ *
+ * bool skip_ingested_documents = 5;
+ *
+ * @param value The skipIngestedDocuments to set.
+ * @return This builder for chaining.
+ */
+ public Builder setSkipIngestedDocuments(boolean value) {
+
+ skipIngestedDocuments_ = value;
+ bitField0_ |= 0x00000010;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The flag whether to skip ingested documents.
+ * If it is set to true, documents in Cloud Storage contains key "status" with
+ * value "status=ingested" in custom metadata will be skipped to ingest.
+ *
+ *
+ * bool skip_ingested_documents = 5;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearSkipIngestedDocuments() {
+ bitField0_ = (bitField0_ & ~0x00000010);
+ skipIngestedDocuments_ = false;
+ onChanged();
+ return this;
+ }
+
+ private com.google.cloud.contentwarehouse.v1.IngestPipelineConfig pipelineConfig_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.contentwarehouse.v1.IngestPipelineConfig,
+ com.google.cloud.contentwarehouse.v1.IngestPipelineConfig.Builder,
+ com.google.cloud.contentwarehouse.v1.IngestPipelineConfigOrBuilder>
+ pipelineConfigBuilder_;
+ /**
+ *
+ *
+ *
+ * Optional. The config for the Cloud Storage Ingestion with DocAI Processors
+ * pipeline. It provides additional customization options to run the pipeline
+ * and can be skipped if it is not applicable.
+ *
+ *
+ *
+ * .google.cloud.contentwarehouse.v1.IngestPipelineConfig pipeline_config = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the pipelineConfig field is set.
+ */
+ public boolean hasPipelineConfig() {
+ return ((bitField0_ & 0x00000020) != 0);
+ }
+ /**
+ *
+ *
+ *
+ * Optional. The config for the Cloud Storage Ingestion with DocAI Processors
+ * pipeline. It provides additional customization options to run the pipeline
+ * and can be skipped if it is not applicable.
+ *
+ *
+ *
+ * .google.cloud.contentwarehouse.v1.IngestPipelineConfig pipeline_config = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The pipelineConfig.
+ */
+ public com.google.cloud.contentwarehouse.v1.IngestPipelineConfig getPipelineConfig() {
+ if (pipelineConfigBuilder_ == null) {
+ return pipelineConfig_ == null
+ ? com.google.cloud.contentwarehouse.v1.IngestPipelineConfig.getDefaultInstance()
+ : pipelineConfig_;
+ } else {
+ return pipelineConfigBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Optional. The config for the Cloud Storage Ingestion with DocAI Processors
+ * pipeline. It provides additional customization options to run the pipeline
+ * and can be skipped if it is not applicable.
+ *
+ *
+ *
+ * .google.cloud.contentwarehouse.v1.IngestPipelineConfig pipeline_config = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder setPipelineConfig(
+ com.google.cloud.contentwarehouse.v1.IngestPipelineConfig value) {
+ if (pipelineConfigBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ pipelineConfig_ = value;
+ } else {
+ pipelineConfigBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000020;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. The config for the Cloud Storage Ingestion with DocAI Processors
+ * pipeline. It provides additional customization options to run the pipeline
+ * and can be skipped if it is not applicable.
+ *
+ *
+ *
+ * .google.cloud.contentwarehouse.v1.IngestPipelineConfig pipeline_config = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder setPipelineConfig(
+ com.google.cloud.contentwarehouse.v1.IngestPipelineConfig.Builder builderForValue) {
+ if (pipelineConfigBuilder_ == null) {
+ pipelineConfig_ = builderForValue.build();
+ } else {
+ pipelineConfigBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000020;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. The config for the Cloud Storage Ingestion with DocAI Processors
+ * pipeline. It provides additional customization options to run the pipeline
+ * and can be skipped if it is not applicable.
+ *
+ *
+ *
+ * .google.cloud.contentwarehouse.v1.IngestPipelineConfig pipeline_config = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder mergePipelineConfig(
+ com.google.cloud.contentwarehouse.v1.IngestPipelineConfig value) {
+ if (pipelineConfigBuilder_ == null) {
+ if (((bitField0_ & 0x00000020) != 0)
+ && pipelineConfig_ != null
+ && pipelineConfig_
+ != com.google.cloud.contentwarehouse.v1.IngestPipelineConfig.getDefaultInstance()) {
+ getPipelineConfigBuilder().mergeFrom(value);
+ } else {
+ pipelineConfig_ = value;
+ }
+ } else {
+ pipelineConfigBuilder_.mergeFrom(value);
+ }
+ bitField0_ |= 0x00000020;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. The config for the Cloud Storage Ingestion with DocAI Processors
+ * pipeline. It provides additional customization options to run the pipeline
+ * and can be skipped if it is not applicable.
+ *
+ *
+ *
+ * .google.cloud.contentwarehouse.v1.IngestPipelineConfig pipeline_config = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder clearPipelineConfig() {
+ bitField0_ = (bitField0_ & ~0x00000020);
+ pipelineConfig_ = null;
+ if (pipelineConfigBuilder_ != null) {
+ pipelineConfigBuilder_.dispose();
+ pipelineConfigBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. The config for the Cloud Storage Ingestion with DocAI Processors
+ * pipeline. It provides additional customization options to run the pipeline
+ * and can be skipped if it is not applicable.
+ *
+ *
+ *
+ * .google.cloud.contentwarehouse.v1.IngestPipelineConfig pipeline_config = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.cloud.contentwarehouse.v1.IngestPipelineConfig.Builder
+ getPipelineConfigBuilder() {
+ bitField0_ |= 0x00000020;
+ onChanged();
+ return getPipelineConfigFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ *
+ * Optional. The config for the Cloud Storage Ingestion with DocAI Processors
+ * pipeline. It provides additional customization options to run the pipeline
+ * and can be skipped if it is not applicable.
+ *
+ *
+ *
+ * .google.cloud.contentwarehouse.v1.IngestPipelineConfig pipeline_config = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.cloud.contentwarehouse.v1.IngestPipelineConfigOrBuilder
+ getPipelineConfigOrBuilder() {
+ if (pipelineConfigBuilder_ != null) {
+ return pipelineConfigBuilder_.getMessageOrBuilder();
+ } else {
+ return pipelineConfig_ == null
+ ? com.google.cloud.contentwarehouse.v1.IngestPipelineConfig.getDefaultInstance()
+ : pipelineConfig_;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Optional. The config for the Cloud Storage Ingestion with DocAI Processors
+ * pipeline. It provides additional customization options to run the pipeline
+ * and can be skipped if it is not applicable.
+ *
+ *
+ *
+ * .google.cloud.contentwarehouse.v1.IngestPipelineConfig pipeline_config = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.contentwarehouse.v1.IngestPipelineConfig,
+ com.google.cloud.contentwarehouse.v1.IngestPipelineConfig.Builder,
+ com.google.cloud.contentwarehouse.v1.IngestPipelineConfigOrBuilder>
+ getPipelineConfigFieldBuilder() {
+ if (pipelineConfigBuilder_ == null) {
+ pipelineConfigBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.contentwarehouse.v1.IngestPipelineConfig,
+ com.google.cloud.contentwarehouse.v1.IngestPipelineConfig.Builder,
+ com.google.cloud.contentwarehouse.v1.IngestPipelineConfigOrBuilder>(
+ getPipelineConfig(), getParentForChildren(), isClean());
+ pipelineConfig_ = null;
+ }
+ return pipelineConfigBuilder_;
+ }
+
+ @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.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline)
+ private static final com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline
+ DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE =
+ new com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline();
+ }
+
+ public static com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline
+ getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser PARSER =
+ new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public GcsIngestWithDocAiProcessorsPipeline parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ Builder builder = newBuilder();
+ try {
+ builder.mergeFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(builder.buildPartial());
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e)
+ .setUnfinishedMessage(builder.buildPartial());
+ }
+ return builder.buildPartial();
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline
+ getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+}
diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/GcsIngestWithDocAiProcessorsPipelineOrBuilder.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/GcsIngestWithDocAiProcessorsPipelineOrBuilder.java
new file mode 100644
index 000000000000..e9582cdbb26b
--- /dev/null
+++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/GcsIngestWithDocAiProcessorsPipelineOrBuilder.java
@@ -0,0 +1,260 @@
+/*
+ * 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/contentwarehouse/v1/pipelines.proto
+
+package com.google.cloud.contentwarehouse.v1;
+
+public interface GcsIngestWithDocAiProcessorsPipelineOrBuilder
+ extends
+ // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ *
+ *
+ *
+ * The input Cloud Storage folder. All files under this folder will be
+ * imported to Document Warehouse.
+ * Format: `gs://<bucket-name>/<folder-name>`.
+ *
+ *
+ * string input_path = 1;
+ *
+ * @return The inputPath.
+ */
+ java.lang.String getInputPath();
+ /**
+ *
+ *
+ *
+ * The input Cloud Storage folder. All files under this folder will be
+ * imported to Document Warehouse.
+ * Format: `gs://<bucket-name>/<folder-name>`.
+ *
+ *
+ * string input_path = 1;
+ *
+ * @return The bytes for inputPath.
+ */
+ com.google.protobuf.ByteString getInputPathBytes();
+
+ /**
+ *
+ *
+ *
+ * The split and classify processor information.
+ * The split and classify result will be used to find a matched extract
+ * processor.
+ *
+ *
+ * .google.cloud.contentwarehouse.v1.ProcessorInfo split_classify_processor_info = 2;
+ *
+ * @return Whether the splitClassifyProcessorInfo field is set.
+ */
+ boolean hasSplitClassifyProcessorInfo();
+ /**
+ *
+ *
+ *
+ * The split and classify processor information.
+ * The split and classify result will be used to find a matched extract
+ * processor.
+ *
+ *
+ * .google.cloud.contentwarehouse.v1.ProcessorInfo split_classify_processor_info = 2;
+ *
+ * @return The splitClassifyProcessorInfo.
+ */
+ com.google.cloud.contentwarehouse.v1.ProcessorInfo getSplitClassifyProcessorInfo();
+ /**
+ *
+ *
+ *
+ * The split and classify processor information.
+ * The split and classify result will be used to find a matched extract
+ * processor.
+ *
+ *
+ * .google.cloud.contentwarehouse.v1.ProcessorInfo split_classify_processor_info = 2;
+ */
+ com.google.cloud.contentwarehouse.v1.ProcessorInfoOrBuilder
+ getSplitClassifyProcessorInfoOrBuilder();
+
+ /**
+ *
+ *
+ *
+ * The extract processors information.
+ * One matched extract processor will be used to process documents based on
+ * the classify processor result. If no classify processor is specified, the
+ * first extract processor will be used.
+ *
+ *
+ * repeated .google.cloud.contentwarehouse.v1.ProcessorInfo extract_processor_infos = 3;
+ *
+ */
+ java.util.List getExtractProcessorInfosList();
+ /**
+ *
+ *
+ *
+ * The extract processors information.
+ * One matched extract processor will be used to process documents based on
+ * the classify processor result. If no classify processor is specified, the
+ * first extract processor will be used.
+ *
+ *
+ * repeated .google.cloud.contentwarehouse.v1.ProcessorInfo extract_processor_infos = 3;
+ *
+ */
+ com.google.cloud.contentwarehouse.v1.ProcessorInfo getExtractProcessorInfos(int index);
+ /**
+ *
+ *
+ *
+ * The extract processors information.
+ * One matched extract processor will be used to process documents based on
+ * the classify processor result. If no classify processor is specified, the
+ * first extract processor will be used.
+ *
+ *
+ * repeated .google.cloud.contentwarehouse.v1.ProcessorInfo extract_processor_infos = 3;
+ *
+ */
+ int getExtractProcessorInfosCount();
+ /**
+ *
+ *
+ *
+ * The extract processors information.
+ * One matched extract processor will be used to process documents based on
+ * the classify processor result. If no classify processor is specified, the
+ * first extract processor will be used.
+ *
+ *
+ * repeated .google.cloud.contentwarehouse.v1.ProcessorInfo extract_processor_infos = 3;
+ *
+ */
+ java.util.List extends com.google.cloud.contentwarehouse.v1.ProcessorInfoOrBuilder>
+ getExtractProcessorInfosOrBuilderList();
+ /**
+ *
+ *
+ *
+ * The extract processors information.
+ * One matched extract processor will be used to process documents based on
+ * the classify processor result. If no classify processor is specified, the
+ * first extract processor will be used.
+ *
+ *
+ * repeated .google.cloud.contentwarehouse.v1.ProcessorInfo extract_processor_infos = 3;
+ *
+ */
+ com.google.cloud.contentwarehouse.v1.ProcessorInfoOrBuilder getExtractProcessorInfosOrBuilder(
+ int index);
+
+ /**
+ *
+ *
+ *
+ * The Cloud Storage folder path used to store the raw results from
+ * processors.
+ * Format: `gs://<bucket-name>/<folder-name>`.
+ *
+ *
+ * string processor_results_folder_path = 4;
+ *
+ * @return The processorResultsFolderPath.
+ */
+ java.lang.String getProcessorResultsFolderPath();
+ /**
+ *
+ *
+ *
+ * The Cloud Storage folder path used to store the raw results from
+ * processors.
+ * Format: `gs://<bucket-name>/<folder-name>`.
+ *
+ *
+ * string processor_results_folder_path = 4;
+ *
+ * @return The bytes for processorResultsFolderPath.
+ */
+ com.google.protobuf.ByteString getProcessorResultsFolderPathBytes();
+
+ /**
+ *
+ *
+ *
+ * The flag whether to skip ingested documents.
+ * If it is set to true, documents in Cloud Storage contains key "status" with
+ * value "status=ingested" in custom metadata will be skipped to ingest.
+ *
+ *
+ * bool skip_ingested_documents = 5;
+ *
+ * @return The skipIngestedDocuments.
+ */
+ boolean getSkipIngestedDocuments();
+
+ /**
+ *
+ *
+ *
+ * Optional. The config for the Cloud Storage Ingestion with DocAI Processors
+ * pipeline. It provides additional customization options to run the pipeline
+ * and can be skipped if it is not applicable.
+ *
+ *
+ *
+ * .google.cloud.contentwarehouse.v1.IngestPipelineConfig pipeline_config = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the pipelineConfig field is set.
+ */
+ boolean hasPipelineConfig();
+ /**
+ *
+ *
+ *
+ * Optional. The config for the Cloud Storage Ingestion with DocAI Processors
+ * pipeline. It provides additional customization options to run the pipeline
+ * and can be skipped if it is not applicable.
+ *
+ *
+ *
+ * .google.cloud.contentwarehouse.v1.IngestPipelineConfig pipeline_config = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The pipelineConfig.
+ */
+ com.google.cloud.contentwarehouse.v1.IngestPipelineConfig getPipelineConfig();
+ /**
+ *
+ *
+ *
+ * Optional. The config for the Cloud Storage Ingestion with DocAI Processors
+ * pipeline. It provides additional customization options to run the pipeline
+ * and can be skipped if it is not applicable.
+ *
+ *
+ *
+ * .google.cloud.contentwarehouse.v1.IngestPipelineConfig pipeline_config = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ com.google.cloud.contentwarehouse.v1.IngestPipelineConfigOrBuilder getPipelineConfigOrBuilder();
+}
diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/IngestPipelineConfig.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/IngestPipelineConfig.java
new file mode 100644
index 000000000000..55130c6c0e65
--- /dev/null
+++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/IngestPipelineConfig.java
@@ -0,0 +1,1202 @@
+/*
+ * 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/contentwarehouse/v1/pipelines.proto
+
+package com.google.cloud.contentwarehouse.v1;
+
+/**
+ *
+ *
+ *
+ * The ingestion pipeline config.
+ *
+ *
+ * Protobuf type {@code google.cloud.contentwarehouse.v1.IngestPipelineConfig}
+ */
+public final class IngestPipelineConfig extends com.google.protobuf.GeneratedMessageV3
+ implements
+ // @@protoc_insertion_point(message_implements:google.cloud.contentwarehouse.v1.IngestPipelineConfig)
+ IngestPipelineConfigOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use IngestPipelineConfig.newBuilder() to construct.
+ private IngestPipelineConfig(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+
+ private IngestPipelineConfig() {
+ folder_ = "";
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+ return new IngestPipelineConfig();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.contentwarehouse.v1.PipelinesProto
+ .internal_static_google_cloud_contentwarehouse_v1_IngestPipelineConfig_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.contentwarehouse.v1.PipelinesProto
+ .internal_static_google_cloud_contentwarehouse_v1_IngestPipelineConfig_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.contentwarehouse.v1.IngestPipelineConfig.class,
+ com.google.cloud.contentwarehouse.v1.IngestPipelineConfig.Builder.class);
+ }
+
+ public static final int DOCUMENT_ACL_POLICY_FIELD_NUMBER = 1;
+ private com.google.iam.v1.Policy documentAclPolicy_;
+ /**
+ *
+ *
+ *
+ * The document level acl policy config.
+ * This refers to an Identity and Access (IAM) policy, which specifies access
+ * controls for all documents ingested by the pipeline. The
+ * [role][google.iam.v1.Binding.role] and
+ * [members][google.iam.v1.Binding.role] under the policy needs to be
+ * specified.
+ *
+ * The following roles are supported for document level acl control:
+ * * roles/contentwarehouse.documentAdmin
+ * * roles/contentwarehouse.documentEditor
+ * * roles/contentwarehouse.documentViewer
+ *
+ * The following members are supported for document level acl control:
+ * * user:user-email@example.com
+ * * group:group-email@example.com
+ * Note that for documents searched with LLM, only single level user or group
+ * acl check is supported.
+ *
+ *
+ * .google.iam.v1.Policy document_acl_policy = 1;
+ *
+ * @return Whether the documentAclPolicy field is set.
+ */
+ @java.lang.Override
+ public boolean hasDocumentAclPolicy() {
+ return documentAclPolicy_ != null;
+ }
+ /**
+ *
+ *
+ *
+ * The document level acl policy config.
+ * This refers to an Identity and Access (IAM) policy, which specifies access
+ * controls for all documents ingested by the pipeline. The
+ * [role][google.iam.v1.Binding.role] and
+ * [members][google.iam.v1.Binding.role] under the policy needs to be
+ * specified.
+ *
+ * The following roles are supported for document level acl control:
+ * * roles/contentwarehouse.documentAdmin
+ * * roles/contentwarehouse.documentEditor
+ * * roles/contentwarehouse.documentViewer
+ *
+ * The following members are supported for document level acl control:
+ * * user:user-email@example.com
+ * * group:group-email@example.com
+ * Note that for documents searched with LLM, only single level user or group
+ * acl check is supported.
+ *
+ *
+ * .google.iam.v1.Policy document_acl_policy = 1;
+ *
+ * @return The documentAclPolicy.
+ */
+ @java.lang.Override
+ public com.google.iam.v1.Policy getDocumentAclPolicy() {
+ return documentAclPolicy_ == null
+ ? com.google.iam.v1.Policy.getDefaultInstance()
+ : documentAclPolicy_;
+ }
+ /**
+ *
+ *
+ *
+ * The document level acl policy config.
+ * This refers to an Identity and Access (IAM) policy, which specifies access
+ * controls for all documents ingested by the pipeline. The
+ * [role][google.iam.v1.Binding.role] and
+ * [members][google.iam.v1.Binding.role] under the policy needs to be
+ * specified.
+ *
+ * The following roles are supported for document level acl control:
+ * * roles/contentwarehouse.documentAdmin
+ * * roles/contentwarehouse.documentEditor
+ * * roles/contentwarehouse.documentViewer
+ *
+ * The following members are supported for document level acl control:
+ * * user:user-email@example.com
+ * * group:group-email@example.com
+ * Note that for documents searched with LLM, only single level user or group
+ * acl check is supported.
+ *
+ *
+ * .google.iam.v1.Policy document_acl_policy = 1;
+ */
+ @java.lang.Override
+ public com.google.iam.v1.PolicyOrBuilder getDocumentAclPolicyOrBuilder() {
+ return documentAclPolicy_ == null
+ ? com.google.iam.v1.Policy.getDefaultInstance()
+ : documentAclPolicy_;
+ }
+
+ public static final int ENABLE_DOCUMENT_TEXT_EXTRACTION_FIELD_NUMBER = 2;
+ private boolean enableDocumentTextExtraction_ = false;
+ /**
+ *
+ *
+ *
+ * The document text extraction enabled flag.
+ * If the flag is set to true, DWH will perform text extraction on the raw
+ * document.
+ *
+ *
+ * bool enable_document_text_extraction = 2;
+ *
+ * @return The enableDocumentTextExtraction.
+ */
+ @java.lang.Override
+ public boolean getEnableDocumentTextExtraction() {
+ return enableDocumentTextExtraction_;
+ }
+
+ public static final int FOLDER_FIELD_NUMBER = 3;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object folder_ = "";
+ /**
+ *
+ *
+ *
+ * Optional. The name of the folder to which all ingested documents will be
+ * linked during ingestion process. Format is
+ * `projects/{project}/locations/{location}/documents/{folder_id}`
+ *
+ *
+ * string folder = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The folder.
+ */
+ @java.lang.Override
+ public java.lang.String getFolder() {
+ java.lang.Object ref = folder_;
+ 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();
+ folder_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Optional. The name of the folder to which all ingested documents will be
+ * linked during ingestion process. Format is
+ * `projects/{project}/locations/{location}/documents/{folder_id}`
+ *
+ *
+ * string folder = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for folder.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getFolderBytes() {
+ java.lang.Object ref = folder_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ folder_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (documentAclPolicy_ != null) {
+ output.writeMessage(1, getDocumentAclPolicy());
+ }
+ if (enableDocumentTextExtraction_ != false) {
+ output.writeBool(2, enableDocumentTextExtraction_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(folder_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 3, folder_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (documentAclPolicy_ != null) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getDocumentAclPolicy());
+ }
+ if (enableDocumentTextExtraction_ != false) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeBoolSize(2, enableDocumentTextExtraction_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(folder_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, folder_);
+ }
+ 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.contentwarehouse.v1.IngestPipelineConfig)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.contentwarehouse.v1.IngestPipelineConfig other =
+ (com.google.cloud.contentwarehouse.v1.IngestPipelineConfig) obj;
+
+ if (hasDocumentAclPolicy() != other.hasDocumentAclPolicy()) return false;
+ if (hasDocumentAclPolicy()) {
+ if (!getDocumentAclPolicy().equals(other.getDocumentAclPolicy())) return false;
+ }
+ if (getEnableDocumentTextExtraction() != other.getEnableDocumentTextExtraction()) return false;
+ if (!getFolder().equals(other.getFolder())) 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 (hasDocumentAclPolicy()) {
+ hash = (37 * hash) + DOCUMENT_ACL_POLICY_FIELD_NUMBER;
+ hash = (53 * hash) + getDocumentAclPolicy().hashCode();
+ }
+ hash = (37 * hash) + ENABLE_DOCUMENT_TEXT_EXTRACTION_FIELD_NUMBER;
+ hash =
+ (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableDocumentTextExtraction());
+ hash = (37 * hash) + FOLDER_FIELD_NUMBER;
+ hash = (53 * hash) + getFolder().hashCode();
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.contentwarehouse.v1.IngestPipelineConfig parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.contentwarehouse.v1.IngestPipelineConfig 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.contentwarehouse.v1.IngestPipelineConfig parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.contentwarehouse.v1.IngestPipelineConfig 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.contentwarehouse.v1.IngestPipelineConfig parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.contentwarehouse.v1.IngestPipelineConfig parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.contentwarehouse.v1.IngestPipelineConfig parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.contentwarehouse.v1.IngestPipelineConfig 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.contentwarehouse.v1.IngestPipelineConfig parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.contentwarehouse.v1.IngestPipelineConfig 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.contentwarehouse.v1.IngestPipelineConfig parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.contentwarehouse.v1.IngestPipelineConfig 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.contentwarehouse.v1.IngestPipelineConfig 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 ingestion pipeline config.
+ *
+ *
+ * Protobuf type {@code google.cloud.contentwarehouse.v1.IngestPipelineConfig}
+ */
+ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ implements
+ // @@protoc_insertion_point(builder_implements:google.cloud.contentwarehouse.v1.IngestPipelineConfig)
+ com.google.cloud.contentwarehouse.v1.IngestPipelineConfigOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.contentwarehouse.v1.PipelinesProto
+ .internal_static_google_cloud_contentwarehouse_v1_IngestPipelineConfig_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.contentwarehouse.v1.PipelinesProto
+ .internal_static_google_cloud_contentwarehouse_v1_IngestPipelineConfig_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.contentwarehouse.v1.IngestPipelineConfig.class,
+ com.google.cloud.contentwarehouse.v1.IngestPipelineConfig.Builder.class);
+ }
+
+ // Construct using com.google.cloud.contentwarehouse.v1.IngestPipelineConfig.newBuilder()
+ private Builder() {}
+
+ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ }
+
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ documentAclPolicy_ = null;
+ if (documentAclPolicyBuilder_ != null) {
+ documentAclPolicyBuilder_.dispose();
+ documentAclPolicyBuilder_ = null;
+ }
+ enableDocumentTextExtraction_ = false;
+ folder_ = "";
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+ return com.google.cloud.contentwarehouse.v1.PipelinesProto
+ .internal_static_google_cloud_contentwarehouse_v1_IngestPipelineConfig_descriptor;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.contentwarehouse.v1.IngestPipelineConfig getDefaultInstanceForType() {
+ return com.google.cloud.contentwarehouse.v1.IngestPipelineConfig.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public com.google.cloud.contentwarehouse.v1.IngestPipelineConfig build() {
+ com.google.cloud.contentwarehouse.v1.IngestPipelineConfig result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.contentwarehouse.v1.IngestPipelineConfig buildPartial() {
+ com.google.cloud.contentwarehouse.v1.IngestPipelineConfig result =
+ new com.google.cloud.contentwarehouse.v1.IngestPipelineConfig(this);
+ if (bitField0_ != 0) {
+ buildPartial0(result);
+ }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartial0(com.google.cloud.contentwarehouse.v1.IngestPipelineConfig result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.documentAclPolicy_ =
+ documentAclPolicyBuilder_ == null
+ ? documentAclPolicy_
+ : documentAclPolicyBuilder_.build();
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.enableDocumentTextExtraction_ = enableDocumentTextExtraction_;
+ }
+ if (((from_bitField0_ & 0x00000004) != 0)) {
+ result.folder_ = folder_;
+ }
+ }
+
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+ return super.setField(field, value);
+ }
+
+ @java.lang.Override
+ public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+
+ @java.lang.Override
+ public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+ return super.addRepeatedField(field, value);
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof com.google.cloud.contentwarehouse.v1.IngestPipelineConfig) {
+ return mergeFrom((com.google.cloud.contentwarehouse.v1.IngestPipelineConfig) other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.IngestPipelineConfig other) {
+ if (other == com.google.cloud.contentwarehouse.v1.IngestPipelineConfig.getDefaultInstance())
+ return this;
+ if (other.hasDocumentAclPolicy()) {
+ mergeDocumentAclPolicy(other.getDocumentAclPolicy());
+ }
+ if (other.getEnableDocumentTextExtraction() != false) {
+ setEnableDocumentTextExtraction(other.getEnableDocumentTextExtraction());
+ }
+ if (!other.getFolder().isEmpty()) {
+ folder_ = other.folder_;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ }
+ this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10:
+ {
+ input.readMessage(
+ getDocumentAclPolicyFieldBuilder().getBuilder(), extensionRegistry);
+ bitField0_ |= 0x00000001;
+ break;
+ } // case 10
+ case 16:
+ {
+ enableDocumentTextExtraction_ = input.readBool();
+ bitField0_ |= 0x00000002;
+ break;
+ } // case 16
+ case 26:
+ {
+ folder_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000004;
+ break;
+ } // case 26
+ default:
+ {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.unwrapIOException();
+ } finally {
+ onChanged();
+ } // finally
+ return this;
+ }
+
+ private int bitField0_;
+
+ private com.google.iam.v1.Policy documentAclPolicy_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.iam.v1.Policy,
+ com.google.iam.v1.Policy.Builder,
+ com.google.iam.v1.PolicyOrBuilder>
+ documentAclPolicyBuilder_;
+ /**
+ *
+ *
+ *
+ * The document level acl policy config.
+ * This refers to an Identity and Access (IAM) policy, which specifies access
+ * controls for all documents ingested by the pipeline. The
+ * [role][google.iam.v1.Binding.role] and
+ * [members][google.iam.v1.Binding.role] under the policy needs to be
+ * specified.
+ *
+ * The following roles are supported for document level acl control:
+ * * roles/contentwarehouse.documentAdmin
+ * * roles/contentwarehouse.documentEditor
+ * * roles/contentwarehouse.documentViewer
+ *
+ * The following members are supported for document level acl control:
+ * * user:user-email@example.com
+ * * group:group-email@example.com
+ * Note that for documents searched with LLM, only single level user or group
+ * acl check is supported.
+ *
+ *
+ * .google.iam.v1.Policy document_acl_policy = 1;
+ *
+ * @return Whether the documentAclPolicy field is set.
+ */
+ public boolean hasDocumentAclPolicy() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+ /**
+ *
+ *
+ *
+ * The document level acl policy config.
+ * This refers to an Identity and Access (IAM) policy, which specifies access
+ * controls for all documents ingested by the pipeline. The
+ * [role][google.iam.v1.Binding.role] and
+ * [members][google.iam.v1.Binding.role] under the policy needs to be
+ * specified.
+ *
+ * The following roles are supported for document level acl control:
+ * * roles/contentwarehouse.documentAdmin
+ * * roles/contentwarehouse.documentEditor
+ * * roles/contentwarehouse.documentViewer
+ *
+ * The following members are supported for document level acl control:
+ * * user:user-email@example.com
+ * * group:group-email@example.com
+ * Note that for documents searched with LLM, only single level user or group
+ * acl check is supported.
+ *
+ *
+ * .google.iam.v1.Policy document_acl_policy = 1;
+ *
+ * @return The documentAclPolicy.
+ */
+ public com.google.iam.v1.Policy getDocumentAclPolicy() {
+ if (documentAclPolicyBuilder_ == null) {
+ return documentAclPolicy_ == null
+ ? com.google.iam.v1.Policy.getDefaultInstance()
+ : documentAclPolicy_;
+ } else {
+ return documentAclPolicyBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The document level acl policy config.
+ * This refers to an Identity and Access (IAM) policy, which specifies access
+ * controls for all documents ingested by the pipeline. The
+ * [role][google.iam.v1.Binding.role] and
+ * [members][google.iam.v1.Binding.role] under the policy needs to be
+ * specified.
+ *
+ * The following roles are supported for document level acl control:
+ * * roles/contentwarehouse.documentAdmin
+ * * roles/contentwarehouse.documentEditor
+ * * roles/contentwarehouse.documentViewer
+ *
+ * The following members are supported for document level acl control:
+ * * user:user-email@example.com
+ * * group:group-email@example.com
+ * Note that for documents searched with LLM, only single level user or group
+ * acl check is supported.
+ *
+ *
+ * .google.iam.v1.Policy document_acl_policy = 1;
+ */
+ public Builder setDocumentAclPolicy(com.google.iam.v1.Policy value) {
+ if (documentAclPolicyBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ documentAclPolicy_ = value;
+ } else {
+ documentAclPolicyBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The document level acl policy config.
+ * This refers to an Identity and Access (IAM) policy, which specifies access
+ * controls for all documents ingested by the pipeline. The
+ * [role][google.iam.v1.Binding.role] and
+ * [members][google.iam.v1.Binding.role] under the policy needs to be
+ * specified.
+ *
+ * The following roles are supported for document level acl control:
+ * * roles/contentwarehouse.documentAdmin
+ * * roles/contentwarehouse.documentEditor
+ * * roles/contentwarehouse.documentViewer
+ *
+ * The following members are supported for document level acl control:
+ * * user:user-email@example.com
+ * * group:group-email@example.com
+ * Note that for documents searched with LLM, only single level user or group
+ * acl check is supported.
+ *
+ *
+ * .google.iam.v1.Policy document_acl_policy = 1;
+ */
+ public Builder setDocumentAclPolicy(com.google.iam.v1.Policy.Builder builderForValue) {
+ if (documentAclPolicyBuilder_ == null) {
+ documentAclPolicy_ = builderForValue.build();
+ } else {
+ documentAclPolicyBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The document level acl policy config.
+ * This refers to an Identity and Access (IAM) policy, which specifies access
+ * controls for all documents ingested by the pipeline. The
+ * [role][google.iam.v1.Binding.role] and
+ * [members][google.iam.v1.Binding.role] under the policy needs to be
+ * specified.
+ *
+ * The following roles are supported for document level acl control:
+ * * roles/contentwarehouse.documentAdmin
+ * * roles/contentwarehouse.documentEditor
+ * * roles/contentwarehouse.documentViewer
+ *
+ * The following members are supported for document level acl control:
+ * * user:user-email@example.com
+ * * group:group-email@example.com
+ * Note that for documents searched with LLM, only single level user or group
+ * acl check is supported.
+ *
+ *
+ * .google.iam.v1.Policy document_acl_policy = 1;
+ */
+ public Builder mergeDocumentAclPolicy(com.google.iam.v1.Policy value) {
+ if (documentAclPolicyBuilder_ == null) {
+ if (((bitField0_ & 0x00000001) != 0)
+ && documentAclPolicy_ != null
+ && documentAclPolicy_ != com.google.iam.v1.Policy.getDefaultInstance()) {
+ getDocumentAclPolicyBuilder().mergeFrom(value);
+ } else {
+ documentAclPolicy_ = value;
+ }
+ } else {
+ documentAclPolicyBuilder_.mergeFrom(value);
+ }
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The document level acl policy config.
+ * This refers to an Identity and Access (IAM) policy, which specifies access
+ * controls for all documents ingested by the pipeline. The
+ * [role][google.iam.v1.Binding.role] and
+ * [members][google.iam.v1.Binding.role] under the policy needs to be
+ * specified.
+ *
+ * The following roles are supported for document level acl control:
+ * * roles/contentwarehouse.documentAdmin
+ * * roles/contentwarehouse.documentEditor
+ * * roles/contentwarehouse.documentViewer
+ *
+ * The following members are supported for document level acl control:
+ * * user:user-email@example.com
+ * * group:group-email@example.com
+ * Note that for documents searched with LLM, only single level user or group
+ * acl check is supported.
+ *
+ *
+ * .google.iam.v1.Policy document_acl_policy = 1;
+ */
+ public Builder clearDocumentAclPolicy() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ documentAclPolicy_ = null;
+ if (documentAclPolicyBuilder_ != null) {
+ documentAclPolicyBuilder_.dispose();
+ documentAclPolicyBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The document level acl policy config.
+ * This refers to an Identity and Access (IAM) policy, which specifies access
+ * controls for all documents ingested by the pipeline. The
+ * [role][google.iam.v1.Binding.role] and
+ * [members][google.iam.v1.Binding.role] under the policy needs to be
+ * specified.
+ *
+ * The following roles are supported for document level acl control:
+ * * roles/contentwarehouse.documentAdmin
+ * * roles/contentwarehouse.documentEditor
+ * * roles/contentwarehouse.documentViewer
+ *
+ * The following members are supported for document level acl control:
+ * * user:user-email@example.com
+ * * group:group-email@example.com
+ * Note that for documents searched with LLM, only single level user or group
+ * acl check is supported.
+ *
+ *
+ * .google.iam.v1.Policy document_acl_policy = 1;
+ */
+ public com.google.iam.v1.Policy.Builder getDocumentAclPolicyBuilder() {
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return getDocumentAclPolicyFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ *
+ * The document level acl policy config.
+ * This refers to an Identity and Access (IAM) policy, which specifies access
+ * controls for all documents ingested by the pipeline. The
+ * [role][google.iam.v1.Binding.role] and
+ * [members][google.iam.v1.Binding.role] under the policy needs to be
+ * specified.
+ *
+ * The following roles are supported for document level acl control:
+ * * roles/contentwarehouse.documentAdmin
+ * * roles/contentwarehouse.documentEditor
+ * * roles/contentwarehouse.documentViewer
+ *
+ * The following members are supported for document level acl control:
+ * * user:user-email@example.com
+ * * group:group-email@example.com
+ * Note that for documents searched with LLM, only single level user or group
+ * acl check is supported.
+ *
+ *
+ * .google.iam.v1.Policy document_acl_policy = 1;
+ */
+ public com.google.iam.v1.PolicyOrBuilder getDocumentAclPolicyOrBuilder() {
+ if (documentAclPolicyBuilder_ != null) {
+ return documentAclPolicyBuilder_.getMessageOrBuilder();
+ } else {
+ return documentAclPolicy_ == null
+ ? com.google.iam.v1.Policy.getDefaultInstance()
+ : documentAclPolicy_;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The document level acl policy config.
+ * This refers to an Identity and Access (IAM) policy, which specifies access
+ * controls for all documents ingested by the pipeline. The
+ * [role][google.iam.v1.Binding.role] and
+ * [members][google.iam.v1.Binding.role] under the policy needs to be
+ * specified.
+ *
+ * The following roles are supported for document level acl control:
+ * * roles/contentwarehouse.documentAdmin
+ * * roles/contentwarehouse.documentEditor
+ * * roles/contentwarehouse.documentViewer
+ *
+ * The following members are supported for document level acl control:
+ * * user:user-email@example.com
+ * * group:group-email@example.com
+ * Note that for documents searched with LLM, only single level user or group
+ * acl check is supported.
+ *
+ *
+ * .google.iam.v1.Policy document_acl_policy = 1;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.iam.v1.Policy,
+ com.google.iam.v1.Policy.Builder,
+ com.google.iam.v1.PolicyOrBuilder>
+ getDocumentAclPolicyFieldBuilder() {
+ if (documentAclPolicyBuilder_ == null) {
+ documentAclPolicyBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.iam.v1.Policy,
+ com.google.iam.v1.Policy.Builder,
+ com.google.iam.v1.PolicyOrBuilder>(
+ getDocumentAclPolicy(), getParentForChildren(), isClean());
+ documentAclPolicy_ = null;
+ }
+ return documentAclPolicyBuilder_;
+ }
+
+ private boolean enableDocumentTextExtraction_;
+ /**
+ *
+ *
+ *
+ * The document text extraction enabled flag.
+ * If the flag is set to true, DWH will perform text extraction on the raw
+ * document.
+ *
+ *
+ * bool enable_document_text_extraction = 2;
+ *
+ * @return The enableDocumentTextExtraction.
+ */
+ @java.lang.Override
+ public boolean getEnableDocumentTextExtraction() {
+ return enableDocumentTextExtraction_;
+ }
+ /**
+ *
+ *
+ *
+ * The document text extraction enabled flag.
+ * If the flag is set to true, DWH will perform text extraction on the raw
+ * document.
+ *
+ *
+ * bool enable_document_text_extraction = 2;
+ *
+ * @param value The enableDocumentTextExtraction to set.
+ * @return This builder for chaining.
+ */
+ public Builder setEnableDocumentTextExtraction(boolean value) {
+
+ enableDocumentTextExtraction_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The document text extraction enabled flag.
+ * If the flag is set to true, DWH will perform text extraction on the raw
+ * document.
+ *
+ *
+ * bool enable_document_text_extraction = 2;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearEnableDocumentTextExtraction() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ enableDocumentTextExtraction_ = false;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object folder_ = "";
+ /**
+ *
+ *
+ *
+ * Optional. The name of the folder to which all ingested documents will be
+ * linked during ingestion process. Format is
+ * `projects/{project}/locations/{location}/documents/{folder_id}`
+ *
+ *
+ * string folder = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The folder.
+ */
+ public java.lang.String getFolder() {
+ java.lang.Object ref = folder_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ folder_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Optional. The name of the folder to which all ingested documents will be
+ * linked during ingestion process. Format is
+ * `projects/{project}/locations/{location}/documents/{folder_id}`
+ *
+ *
+ * string folder = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for folder.
+ */
+ public com.google.protobuf.ByteString getFolderBytes() {
+ java.lang.Object ref = folder_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ folder_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Optional. The name of the folder to which all ingested documents will be
+ * linked during ingestion process. Format is
+ * `projects/{project}/locations/{location}/documents/{folder_id}`
+ *
+ *
+ * string folder = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param value The folder to set.
+ * @return This builder for chaining.
+ */
+ public Builder setFolder(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ folder_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. The name of the folder to which all ingested documents will be
+ * linked during ingestion process. Format is
+ * `projects/{project}/locations/{location}/documents/{folder_id}`
+ *
+ *
+ * string folder = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearFolder() {
+ folder_ = getDefaultInstance().getFolder();
+ bitField0_ = (bitField0_ & ~0x00000004);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. The name of the folder to which all ingested documents will be
+ * linked during ingestion process. Format is
+ * `projects/{project}/locations/{location}/documents/{folder_id}`
+ *
+ *
+ * string folder = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param value The bytes for folder to set.
+ * @return This builder for chaining.
+ */
+ public Builder setFolderBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ folder_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.contentwarehouse.v1.IngestPipelineConfig)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.IngestPipelineConfig)
+ private static final com.google.cloud.contentwarehouse.v1.IngestPipelineConfig DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.IngestPipelineConfig();
+ }
+
+ public static com.google.cloud.contentwarehouse.v1.IngestPipelineConfig getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser PARSER =
+ new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public IngestPipelineConfig parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ Builder builder = newBuilder();
+ try {
+ builder.mergeFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(builder.buildPartial());
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e)
+ .setUnfinishedMessage(builder.buildPartial());
+ }
+ return builder.buildPartial();
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.contentwarehouse.v1.IngestPipelineConfig getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+}
diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/IngestPipelineConfigOrBuilder.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/IngestPipelineConfigOrBuilder.java
new file mode 100644
index 000000000000..31814767d8fb
--- /dev/null
+++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/IngestPipelineConfigOrBuilder.java
@@ -0,0 +1,152 @@
+/*
+ * 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/contentwarehouse/v1/pipelines.proto
+
+package com.google.cloud.contentwarehouse.v1;
+
+public interface IngestPipelineConfigOrBuilder
+ extends
+ // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.IngestPipelineConfig)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ *
+ *
+ *
+ * The document level acl policy config.
+ * This refers to an Identity and Access (IAM) policy, which specifies access
+ * controls for all documents ingested by the pipeline. The
+ * [role][google.iam.v1.Binding.role] and
+ * [members][google.iam.v1.Binding.role] under the policy needs to be
+ * specified.
+ *
+ * The following roles are supported for document level acl control:
+ * * roles/contentwarehouse.documentAdmin
+ * * roles/contentwarehouse.documentEditor
+ * * roles/contentwarehouse.documentViewer
+ *
+ * The following members are supported for document level acl control:
+ * * user:user-email@example.com
+ * * group:group-email@example.com
+ * Note that for documents searched with LLM, only single level user or group
+ * acl check is supported.
+ *
+ *
+ * .google.iam.v1.Policy document_acl_policy = 1;
+ *
+ * @return Whether the documentAclPolicy field is set.
+ */
+ boolean hasDocumentAclPolicy();
+ /**
+ *
+ *
+ *
+ * The document level acl policy config.
+ * This refers to an Identity and Access (IAM) policy, which specifies access
+ * controls for all documents ingested by the pipeline. The
+ * [role][google.iam.v1.Binding.role] and
+ * [members][google.iam.v1.Binding.role] under the policy needs to be
+ * specified.
+ *
+ * The following roles are supported for document level acl control:
+ * * roles/contentwarehouse.documentAdmin
+ * * roles/contentwarehouse.documentEditor
+ * * roles/contentwarehouse.documentViewer
+ *
+ * The following members are supported for document level acl control:
+ * * user:user-email@example.com
+ * * group:group-email@example.com
+ * Note that for documents searched with LLM, only single level user or group
+ * acl check is supported.
+ *
+ *
+ * .google.iam.v1.Policy document_acl_policy = 1;
+ *
+ * @return The documentAclPolicy.
+ */
+ com.google.iam.v1.Policy getDocumentAclPolicy();
+ /**
+ *
+ *
+ *
+ * The document level acl policy config.
+ * This refers to an Identity and Access (IAM) policy, which specifies access
+ * controls for all documents ingested by the pipeline. The
+ * [role][google.iam.v1.Binding.role] and
+ * [members][google.iam.v1.Binding.role] under the policy needs to be
+ * specified.
+ *
+ * The following roles are supported for document level acl control:
+ * * roles/contentwarehouse.documentAdmin
+ * * roles/contentwarehouse.documentEditor
+ * * roles/contentwarehouse.documentViewer
+ *
+ * The following members are supported for document level acl control:
+ * * user:user-email@example.com
+ * * group:group-email@example.com
+ * Note that for documents searched with LLM, only single level user or group
+ * acl check is supported.
+ *
+ *
+ * .google.iam.v1.Policy document_acl_policy = 1;
+ */
+ com.google.iam.v1.PolicyOrBuilder getDocumentAclPolicyOrBuilder();
+
+ /**
+ *
+ *
+ *
+ * The document text extraction enabled flag.
+ * If the flag is set to true, DWH will perform text extraction on the raw
+ * document.
+ *
+ *
+ * bool enable_document_text_extraction = 2;
+ *
+ * @return The enableDocumentTextExtraction.
+ */
+ boolean getEnableDocumentTextExtraction();
+
+ /**
+ *
+ *
+ *
+ * Optional. The name of the folder to which all ingested documents will be
+ * linked during ingestion process. Format is
+ * `projects/{project}/locations/{location}/documents/{folder_id}`
+ *
+ *
+ * string folder = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The folder.
+ */
+ java.lang.String getFolder();
+ /**
+ *
+ *
+ *
+ * Optional. The name of the folder to which all ingested documents will be
+ * linked during ingestion process. Format is
+ * `projects/{project}/locations/{location}/documents/{folder_id}`
+ *
+ *
+ * string folder = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for folder.
+ */
+ com.google.protobuf.ByteString getFolderBytes();
+}
diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/PipelineServiceProto.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/PipelineServiceProto.java
new file mode 100644
index 000000000000..a785ff999cc2
--- /dev/null
+++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/PipelineServiceProto.java
@@ -0,0 +1,129 @@
+/*
+ * 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/contentwarehouse/v1/pipeline_service.proto
+
+package com.google.cloud.contentwarehouse.v1;
+
+public final class PipelineServiceProto {
+ private PipelineServiceProto() {}
+
+ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {}
+
+ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) {
+ registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry);
+ }
+
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_contentwarehouse_v1_RunPipelineRequest_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_contentwarehouse_v1_RunPipelineRequest_fieldAccessorTable;
+
+ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ return descriptor;
+ }
+
+ private static com.google.protobuf.Descriptors.FileDescriptor descriptor;
+
+ static {
+ java.lang.String[] descriptorData = {
+ "\n7google/cloud/contentwarehouse/v1/pipel"
+ + "ine_service.proto\022 google.cloud.contentw"
+ + "arehouse.v1\032\034google/api/annotations.prot"
+ + "o\032\027google/api/client.proto\032\037google/api/f"
+ + "ield_behavior.proto\032\031google/api/resource"
+ + ".proto\032-google/cloud/contentwarehouse/v1"
+ + "/common.proto\0320google/cloud/contentwareh"
+ + "ouse/v1/pipelines.proto\032#google/longrunn"
+ + "ing/operations.proto\"\272\004\n\022RunPipelineRequ"
+ + "est\022?\n\004name\030\001 \001(\tB1\342A\001\002\372A*\n(contentwareh"
+ + "ouse.googleapis.com/Location\022R\n\023gcs_inge"
+ + "st_pipeline\030\002 \001(\01323.google.cloud.content"
+ + "warehouse.v1.GcsIngestPipelineH\000\022|\n*gcs_"
+ + "ingest_with_doc_ai_processors_pipeline\030\003"
+ + " \001(\0132F.google.cloud.contentwarehouse.v1."
+ + "GcsIngestWithDocAiProcessorsPipelineH\000\022T"
+ + "\n\023export_cdw_pipeline\030\004 \001(\01325.google.clo"
+ + "ud.contentwarehouse.v1.ExportToCdwPipeli"
+ + "neH\000\022b\n\034process_with_doc_ai_pipeline\030\005 \001"
+ + "(\0132:.google.cloud.contentwarehouse.v1.Pr"
+ + "ocessWithDocAiPipelineH\000\022K\n\020request_meta"
+ + "data\030\006 \001(\01321.google.cloud.contentwarehou"
+ + "se.v1.RequestMetadataB\n\n\010pipeline2\271\002\n\017Pi"
+ + "pelineService\022\320\001\n\013RunPipeline\0224.google.c"
+ + "loud.contentwarehouse.v1.RunPipelineRequ"
+ + "est\032\035.google.longrunning.Operation\"l\312A*\n"
+ + "\023RunPipelineResponse\022\023RunPipelineMetadat"
+ + "a\332A\004name\202\323\344\223\0022\"-/v1/{name=projects/*/loc"
+ + "ations/*}:runPipeline:\001*\032S\312A\037contentware"
+ + "house.googleapis.com\322A.https://www.googl"
+ + "eapis.com/auth/cloud-platformB\374\001\n$com.go"
+ + "ogle.cloud.contentwarehouse.v1B\024Pipeline"
+ + "ServiceProtoP\001ZPcloud.google.com/go/cont"
+ + "entwarehouse/apiv1/contentwarehousepb;co"
+ + "ntentwarehousepb\252\002 Google.Cloud.ContentW"
+ + "arehouse.V1\312\002 Google\\Cloud\\ContentWareho"
+ + "use\\V1\352\002#Google::Cloud::ContentWarehouse"
+ + "::V1b\006proto3"
+ };
+ descriptor =
+ com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
+ descriptorData,
+ new com.google.protobuf.Descriptors.FileDescriptor[] {
+ com.google.api.AnnotationsProto.getDescriptor(),
+ com.google.api.ClientProto.getDescriptor(),
+ com.google.api.FieldBehaviorProto.getDescriptor(),
+ com.google.api.ResourceProto.getDescriptor(),
+ com.google.cloud.contentwarehouse.v1.CommonProto.getDescriptor(),
+ com.google.cloud.contentwarehouse.v1.PipelinesProto.getDescriptor(),
+ com.google.longrunning.OperationsProto.getDescriptor(),
+ });
+ internal_static_google_cloud_contentwarehouse_v1_RunPipelineRequest_descriptor =
+ getDescriptor().getMessageTypes().get(0);
+ internal_static_google_cloud_contentwarehouse_v1_RunPipelineRequest_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_contentwarehouse_v1_RunPipelineRequest_descriptor,
+ new java.lang.String[] {
+ "Name",
+ "GcsIngestPipeline",
+ "GcsIngestWithDocAiProcessorsPipeline",
+ "ExportCdwPipeline",
+ "ProcessWithDocAiPipeline",
+ "RequestMetadata",
+ "Pipeline",
+ });
+ com.google.protobuf.ExtensionRegistry registry =
+ com.google.protobuf.ExtensionRegistry.newInstance();
+ registry.add(com.google.api.ClientProto.defaultHost);
+ registry.add(com.google.api.FieldBehaviorProto.fieldBehavior);
+ registry.add(com.google.api.AnnotationsProto.http);
+ registry.add(com.google.api.ClientProto.methodSignature);
+ registry.add(com.google.api.ClientProto.oauthScopes);
+ registry.add(com.google.api.ResourceProto.resourceReference);
+ registry.add(com.google.longrunning.OperationsProto.operationInfo);
+ com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor(
+ descriptor, registry);
+ com.google.api.AnnotationsProto.getDescriptor();
+ com.google.api.ClientProto.getDescriptor();
+ com.google.api.FieldBehaviorProto.getDescriptor();
+ com.google.api.ResourceProto.getDescriptor();
+ com.google.cloud.contentwarehouse.v1.CommonProto.getDescriptor();
+ com.google.cloud.contentwarehouse.v1.PipelinesProto.getDescriptor();
+ com.google.longrunning.OperationsProto.getDescriptor();
+ }
+
+ // @@protoc_insertion_point(outer_class_scope)
+}
diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/PipelinesProto.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/PipelinesProto.java
new file mode 100644
index 000000000000..e61fbd318215
--- /dev/null
+++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/PipelinesProto.java
@@ -0,0 +1,293 @@
+/*
+ * 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/contentwarehouse/v1/pipelines.proto
+
+package com.google.cloud.contentwarehouse.v1;
+
+public final class PipelinesProto {
+ private PipelinesProto() {}
+
+ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {}
+
+ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) {
+ registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry);
+ }
+
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_contentwarehouse_v1_RunPipelineResponse_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_contentwarehouse_v1_RunPipelineResponse_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_contentwarehouse_v1_RunPipelineMetadata_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_contentwarehouse_v1_RunPipelineMetadata_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_contentwarehouse_v1_RunPipelineMetadata_GcsIngestPipelineMetadata_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_contentwarehouse_v1_RunPipelineMetadata_GcsIngestPipelineMetadata_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_contentwarehouse_v1_RunPipelineMetadata_ExportToCdwPipelineMetadata_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_contentwarehouse_v1_RunPipelineMetadata_ExportToCdwPipelineMetadata_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_contentwarehouse_v1_RunPipelineMetadata_ProcessWithDocAiPipelineMetadata_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_contentwarehouse_v1_RunPipelineMetadata_ProcessWithDocAiPipelineMetadata_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_contentwarehouse_v1_RunPipelineMetadata_IndividualDocumentStatus_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_contentwarehouse_v1_RunPipelineMetadata_IndividualDocumentStatus_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_contentwarehouse_v1_ProcessorInfo_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_contentwarehouse_v1_ProcessorInfo_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_contentwarehouse_v1_IngestPipelineConfig_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_contentwarehouse_v1_IngestPipelineConfig_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_contentwarehouse_v1_GcsIngestPipeline_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_contentwarehouse_v1_GcsIngestPipeline_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_contentwarehouse_v1_GcsIngestWithDocAiProcessorsPipeline_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_contentwarehouse_v1_GcsIngestWithDocAiProcessorsPipeline_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_contentwarehouse_v1_ExportToCdwPipeline_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_contentwarehouse_v1_ExportToCdwPipeline_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_contentwarehouse_v1_ProcessWithDocAiPipeline_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_contentwarehouse_v1_ProcessWithDocAiPipeline_fieldAccessorTable;
+
+ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ return descriptor;
+ }
+
+ private static com.google.protobuf.Descriptors.FileDescriptor descriptor;
+
+ static {
+ java.lang.String[] descriptorData = {
+ "\n0google/cloud/contentwarehouse/v1/pipel"
+ + "ines.proto\022 google.cloud.contentwarehous"
+ + "e.v1\032\037google/api/field_behavior.proto\032\031g"
+ + "oogle/api/resource.proto\032-google/cloud/c"
+ + "ontentwarehouse/v1/common.proto\032\032google/"
+ + "iam/v1/policy.proto\032\027google/rpc/status.p"
+ + "roto\"\025\n\023RunPipelineResponse\"\372\007\n\023RunPipel"
+ + "ineMetadata\022\030\n\020total_file_count\030\001 \001(\005\022\031\n"
+ + "\021failed_file_count\030\002 \001(\005\022=\n\tuser_info\030\003 "
+ + "\001(\0132*.google.cloud.contentwarehouse.v1.U"
+ + "serInfo\022w\n\034gcs_ingest_pipeline_metadata\030"
+ + "\004 \001(\0132O.google.cloud.contentwarehouse.v1"
+ + ".RunPipelineMetadata.GcsIngestPipelineMe"
+ + "tadataH\000\022|\n\037export_to_cdw_pipeline_metad"
+ + "ata\030\006 \001(\0132Q.google.cloud.contentwarehous"
+ + "e.v1.RunPipelineMetadata.ExportToCdwPipe"
+ + "lineMetadataH\000\022\207\001\n%process_with_doc_ai_p"
+ + "ipeline_metadata\030\007 \001(\0132V.google.cloud.co"
+ + "ntentwarehouse.v1.RunPipelineMetadata.Pr"
+ + "ocessWithDocAiPipelineMetadataH\000\022t\n\034indi"
+ + "vidual_document_statuses\030\005 \003(\0132N.google."
+ + "cloud.contentwarehouse.v1.RunPipelineMet"
+ + "adata.IndividualDocumentStatus\032/\n\031GcsIng"
+ + "estPipelineMetadata\022\022\n\ninput_path\030\001 \001(\t\032"
+ + "]\n\033ExportToCdwPipelineMetadata\022\021\n\tdocume"
+ + "nts\030\001 \003(\t\022\026\n\016doc_ai_dataset\030\002 \001(\t\022\023\n\013out"
+ + "put_path\030\003 \001(\t\032~\n ProcessWithDocAiPipeli"
+ + "neMetadata\022\021\n\tdocuments\030\001 \003(\t\022G\n\016process"
+ + "or_info\030\002 \001(\0132/.google.cloud.contentware"
+ + "house.v1.ProcessorInfo\032S\n\030IndividualDocu"
+ + "mentStatus\022\023\n\013document_id\030\001 \001(\t\022\"\n\006statu"
+ + "s\030\002 \001(\0132\022.google.rpc.StatusB\023\n\021pipeline_"
+ + "metadata\"S\n\rProcessorInfo\022\026\n\016processor_n"
+ + "ame\030\001 \001(\t\022\025\n\rdocument_type\030\002 \001(\t\022\023\n\013sche"
+ + "ma_name\030\003 \001(\t\"\211\001\n\024IngestPipelineConfig\0222"
+ + "\n\023document_acl_policy\030\001 \001(\0132\025.google.iam"
+ + ".v1.Policy\022\'\n\037enable_document_text_extra"
+ + "ction\030\002 \001(\010\022\024\n\006folder\030\003 \001(\tB\004\342A\001\001\"\314\001\n\021Gc"
+ + "sIngestPipeline\022\022\n\ninput_path\030\001 \001(\t\022\023\n\013s"
+ + "chema_name\030\002 \001(\t\022\026\n\016processor_type\030\003 \001(\t"
+ + "\022\037\n\027skip_ingested_documents\030\004 \001(\010\022U\n\017pip"
+ + "eline_config\030\005 \001(\01326.google.cloud.conten"
+ + "twarehouse.v1.IngestPipelineConfigB\004\342A\001\001"
+ + "\"\203\003\n$GcsIngestWithDocAiProcessorsPipelin"
+ + "e\022\022\n\ninput_path\030\001 \001(\t\022V\n\035split_classify_"
+ + "processor_info\030\002 \001(\0132/.google.cloud.cont"
+ + "entwarehouse.v1.ProcessorInfo\022P\n\027extract"
+ + "_processor_infos\030\003 \003(\0132/.google.cloud.co"
+ + "ntentwarehouse.v1.ProcessorInfo\022%\n\035proce"
+ + "ssor_results_folder_path\030\004 \001(\t\022\037\n\027skip_i"
+ + "ngested_documents\030\005 \001(\010\022U\n\017pipeline_conf"
+ + "ig\030\006 \001(\01326.google.cloud.contentwarehouse"
+ + ".v1.IngestPipelineConfigB\004\342A\001\001\"\200\001\n\023Expor"
+ + "tToCdwPipeline\022\021\n\tdocuments\030\001 \003(\t\022\032\n\022exp"
+ + "ort_folder_path\030\002 \001(\t\022\034\n\016doc_ai_dataset\030"
+ + "\003 \001(\tB\004\342A\001\001\022\034\n\024training_split_ratio\030\004 \001("
+ + "\002\"\271\001\n\030ProcessWithDocAiPipeline\022\021\n\tdocume"
+ + "nts\030\001 \003(\t\022\032\n\022export_folder_path\030\002 \001(\t\022G\n"
+ + "\016processor_info\030\003 \001(\0132/.google.cloud.con"
+ + "tentwarehouse.v1.ProcessorInfo\022%\n\035proces"
+ + "sor_results_folder_path\030\004 \001(\tB\366\001\n$com.go"
+ + "ogle.cloud.contentwarehouse.v1B\016Pipeline"
+ + "sProtoP\001ZPcloud.google.com/go/contentwar"
+ + "ehouse/apiv1/contentwarehousepb;contentw"
+ + "arehousepb\252\002 Google.Cloud.ContentWarehou"
+ + "se.V1\312\002 Google\\Cloud\\ContentWarehouse\\V1"
+ + "\352\002#Google::Cloud::ContentWarehouse::V1b\006"
+ + "proto3"
+ };
+ descriptor =
+ com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
+ descriptorData,
+ new com.google.protobuf.Descriptors.FileDescriptor[] {
+ com.google.api.FieldBehaviorProto.getDescriptor(),
+ com.google.api.ResourceProto.getDescriptor(),
+ com.google.cloud.contentwarehouse.v1.CommonProto.getDescriptor(),
+ com.google.iam.v1.PolicyProto.getDescriptor(),
+ com.google.rpc.StatusProto.getDescriptor(),
+ });
+ internal_static_google_cloud_contentwarehouse_v1_RunPipelineResponse_descriptor =
+ getDescriptor().getMessageTypes().get(0);
+ internal_static_google_cloud_contentwarehouse_v1_RunPipelineResponse_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_contentwarehouse_v1_RunPipelineResponse_descriptor,
+ new java.lang.String[] {});
+ internal_static_google_cloud_contentwarehouse_v1_RunPipelineMetadata_descriptor =
+ getDescriptor().getMessageTypes().get(1);
+ internal_static_google_cloud_contentwarehouse_v1_RunPipelineMetadata_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_contentwarehouse_v1_RunPipelineMetadata_descriptor,
+ new java.lang.String[] {
+ "TotalFileCount",
+ "FailedFileCount",
+ "UserInfo",
+ "GcsIngestPipelineMetadata",
+ "ExportToCdwPipelineMetadata",
+ "ProcessWithDocAiPipelineMetadata",
+ "IndividualDocumentStatuses",
+ "PipelineMetadata",
+ });
+ internal_static_google_cloud_contentwarehouse_v1_RunPipelineMetadata_GcsIngestPipelineMetadata_descriptor =
+ internal_static_google_cloud_contentwarehouse_v1_RunPipelineMetadata_descriptor
+ .getNestedTypes()
+ .get(0);
+ internal_static_google_cloud_contentwarehouse_v1_RunPipelineMetadata_GcsIngestPipelineMetadata_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_contentwarehouse_v1_RunPipelineMetadata_GcsIngestPipelineMetadata_descriptor,
+ new java.lang.String[] {
+ "InputPath",
+ });
+ internal_static_google_cloud_contentwarehouse_v1_RunPipelineMetadata_ExportToCdwPipelineMetadata_descriptor =
+ internal_static_google_cloud_contentwarehouse_v1_RunPipelineMetadata_descriptor
+ .getNestedTypes()
+ .get(1);
+ internal_static_google_cloud_contentwarehouse_v1_RunPipelineMetadata_ExportToCdwPipelineMetadata_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_contentwarehouse_v1_RunPipelineMetadata_ExportToCdwPipelineMetadata_descriptor,
+ new java.lang.String[] {
+ "Documents", "DocAiDataset", "OutputPath",
+ });
+ internal_static_google_cloud_contentwarehouse_v1_RunPipelineMetadata_ProcessWithDocAiPipelineMetadata_descriptor =
+ internal_static_google_cloud_contentwarehouse_v1_RunPipelineMetadata_descriptor
+ .getNestedTypes()
+ .get(2);
+ internal_static_google_cloud_contentwarehouse_v1_RunPipelineMetadata_ProcessWithDocAiPipelineMetadata_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_contentwarehouse_v1_RunPipelineMetadata_ProcessWithDocAiPipelineMetadata_descriptor,
+ new java.lang.String[] {
+ "Documents", "ProcessorInfo",
+ });
+ internal_static_google_cloud_contentwarehouse_v1_RunPipelineMetadata_IndividualDocumentStatus_descriptor =
+ internal_static_google_cloud_contentwarehouse_v1_RunPipelineMetadata_descriptor
+ .getNestedTypes()
+ .get(3);
+ internal_static_google_cloud_contentwarehouse_v1_RunPipelineMetadata_IndividualDocumentStatus_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_contentwarehouse_v1_RunPipelineMetadata_IndividualDocumentStatus_descriptor,
+ new java.lang.String[] {
+ "DocumentId", "Status",
+ });
+ internal_static_google_cloud_contentwarehouse_v1_ProcessorInfo_descriptor =
+ getDescriptor().getMessageTypes().get(2);
+ internal_static_google_cloud_contentwarehouse_v1_ProcessorInfo_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_contentwarehouse_v1_ProcessorInfo_descriptor,
+ new java.lang.String[] {
+ "ProcessorName", "DocumentType", "SchemaName",
+ });
+ internal_static_google_cloud_contentwarehouse_v1_IngestPipelineConfig_descriptor =
+ getDescriptor().getMessageTypes().get(3);
+ internal_static_google_cloud_contentwarehouse_v1_IngestPipelineConfig_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_contentwarehouse_v1_IngestPipelineConfig_descriptor,
+ new java.lang.String[] {
+ "DocumentAclPolicy", "EnableDocumentTextExtraction", "Folder",
+ });
+ internal_static_google_cloud_contentwarehouse_v1_GcsIngestPipeline_descriptor =
+ getDescriptor().getMessageTypes().get(4);
+ internal_static_google_cloud_contentwarehouse_v1_GcsIngestPipeline_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_contentwarehouse_v1_GcsIngestPipeline_descriptor,
+ new java.lang.String[] {
+ "InputPath", "SchemaName", "ProcessorType", "SkipIngestedDocuments", "PipelineConfig",
+ });
+ internal_static_google_cloud_contentwarehouse_v1_GcsIngestWithDocAiProcessorsPipeline_descriptor =
+ getDescriptor().getMessageTypes().get(5);
+ internal_static_google_cloud_contentwarehouse_v1_GcsIngestWithDocAiProcessorsPipeline_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_contentwarehouse_v1_GcsIngestWithDocAiProcessorsPipeline_descriptor,
+ new java.lang.String[] {
+ "InputPath",
+ "SplitClassifyProcessorInfo",
+ "ExtractProcessorInfos",
+ "ProcessorResultsFolderPath",
+ "SkipIngestedDocuments",
+ "PipelineConfig",
+ });
+ internal_static_google_cloud_contentwarehouse_v1_ExportToCdwPipeline_descriptor =
+ getDescriptor().getMessageTypes().get(6);
+ internal_static_google_cloud_contentwarehouse_v1_ExportToCdwPipeline_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_contentwarehouse_v1_ExportToCdwPipeline_descriptor,
+ new java.lang.String[] {
+ "Documents", "ExportFolderPath", "DocAiDataset", "TrainingSplitRatio",
+ });
+ internal_static_google_cloud_contentwarehouse_v1_ProcessWithDocAiPipeline_descriptor =
+ getDescriptor().getMessageTypes().get(7);
+ internal_static_google_cloud_contentwarehouse_v1_ProcessWithDocAiPipeline_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_contentwarehouse_v1_ProcessWithDocAiPipeline_descriptor,
+ new java.lang.String[] {
+ "Documents", "ExportFolderPath", "ProcessorInfo", "ProcessorResultsFolderPath",
+ });
+ com.google.protobuf.ExtensionRegistry registry =
+ com.google.protobuf.ExtensionRegistry.newInstance();
+ registry.add(com.google.api.FieldBehaviorProto.fieldBehavior);
+ com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor(
+ descriptor, registry);
+ com.google.api.FieldBehaviorProto.getDescriptor();
+ com.google.api.ResourceProto.getDescriptor();
+ com.google.cloud.contentwarehouse.v1.CommonProto.getDescriptor();
+ com.google.iam.v1.PolicyProto.getDescriptor();
+ com.google.rpc.StatusProto.getDescriptor();
+ }
+
+ // @@protoc_insertion_point(outer_class_scope)
+}
diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ProcessWithDocAiPipeline.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ProcessWithDocAiPipeline.java
new file mode 100644
index 000000000000..d91b14a8d293
--- /dev/null
+++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ProcessWithDocAiPipeline.java
@@ -0,0 +1,1413 @@
+/*
+ * 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/contentwarehouse/v1/pipelines.proto
+
+package com.google.cloud.contentwarehouse.v1;
+
+/**
+ *
+ *
+ *
+ * The configuration of processing documents in Document Warehouse with DocAi
+ * processors pipeline.
+ *
+ *
+ * Protobuf type {@code google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline}
+ */
+public final class ProcessWithDocAiPipeline extends com.google.protobuf.GeneratedMessageV3
+ implements
+ // @@protoc_insertion_point(message_implements:google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline)
+ ProcessWithDocAiPipelineOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use ProcessWithDocAiPipeline.newBuilder() to construct.
+ private ProcessWithDocAiPipeline(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+
+ private ProcessWithDocAiPipeline() {
+ documents_ = com.google.protobuf.LazyStringArrayList.emptyList();
+ exportFolderPath_ = "";
+ processorResultsFolderPath_ = "";
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+ return new ProcessWithDocAiPipeline();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.contentwarehouse.v1.PipelinesProto
+ .internal_static_google_cloud_contentwarehouse_v1_ProcessWithDocAiPipeline_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.contentwarehouse.v1.PipelinesProto
+ .internal_static_google_cloud_contentwarehouse_v1_ProcessWithDocAiPipeline_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline.class,
+ com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline.Builder.class);
+ }
+
+ public static final int DOCUMENTS_FIELD_NUMBER = 1;
+
+ @SuppressWarnings("serial")
+ private com.google.protobuf.LazyStringArrayList documents_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
+ /**
+ *
+ *
+ *
+ * The list of all the resource names of the documents to be processed.
+ * Format:
+ * projects/{project_number}/locations/{location}/documents/{document_id}.
+ *
+ *
+ * repeated string documents = 1;
+ *
+ * @return A list containing the documents.
+ */
+ public com.google.protobuf.ProtocolStringList getDocumentsList() {
+ return documents_;
+ }
+ /**
+ *
+ *
+ *
+ * The list of all the resource names of the documents to be processed.
+ * Format:
+ * projects/{project_number}/locations/{location}/documents/{document_id}.
+ *
+ *
+ * repeated string documents = 1;
+ *
+ * @return The count of documents.
+ */
+ public int getDocumentsCount() {
+ return documents_.size();
+ }
+ /**
+ *
+ *
+ *
+ * The list of all the resource names of the documents to be processed.
+ * Format:
+ * projects/{project_number}/locations/{location}/documents/{document_id}.
+ *
+ *
+ * repeated string documents = 1;
+ *
+ * @param index The index of the element to return.
+ * @return The documents at the given index.
+ */
+ public java.lang.String getDocuments(int index) {
+ return documents_.get(index);
+ }
+ /**
+ *
+ *
+ *
+ * The list of all the resource names of the documents to be processed.
+ * Format:
+ * projects/{project_number}/locations/{location}/documents/{document_id}.
+ *
+ *
+ * repeated string documents = 1;
+ *
+ * @param index The index of the value to return.
+ * @return The bytes of the documents at the given index.
+ */
+ public com.google.protobuf.ByteString getDocumentsBytes(int index) {
+ return documents_.getByteString(index);
+ }
+
+ public static final int EXPORT_FOLDER_PATH_FIELD_NUMBER = 2;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object exportFolderPath_ = "";
+ /**
+ *
+ *
+ *
+ * The Cloud Storage folder path used to store the exported documents before
+ * being sent to CDW.
+ * Format: `gs://<bucket-name>/<folder-name>`.
+ *
+ *
+ * string export_folder_path = 2;
+ *
+ * @return The exportFolderPath.
+ */
+ @java.lang.Override
+ public java.lang.String getExportFolderPath() {
+ java.lang.Object ref = exportFolderPath_;
+ 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();
+ exportFolderPath_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The Cloud Storage folder path used to store the exported documents before
+ * being sent to CDW.
+ * Format: `gs://<bucket-name>/<folder-name>`.
+ *
+ *
+ * string export_folder_path = 2;
+ *
+ * @return The bytes for exportFolderPath.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getExportFolderPathBytes() {
+ java.lang.Object ref = exportFolderPath_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ exportFolderPath_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int PROCESSOR_INFO_FIELD_NUMBER = 3;
+ private com.google.cloud.contentwarehouse.v1.ProcessorInfo processorInfo_;
+ /**
+ *
+ *
+ *
+ * The CDW processor information.
+ *
+ *
+ * .google.cloud.contentwarehouse.v1.ProcessorInfo processor_info = 3;
+ *
+ * @return Whether the processorInfo field is set.
+ */
+ @java.lang.Override
+ public boolean hasProcessorInfo() {
+ return processorInfo_ != null;
+ }
+ /**
+ *
+ *
+ *
+ * The CDW processor information.
+ *
+ *
+ * .google.cloud.contentwarehouse.v1.ProcessorInfo processor_info = 3;
+ *
+ * @return The processorInfo.
+ */
+ @java.lang.Override
+ public com.google.cloud.contentwarehouse.v1.ProcessorInfo getProcessorInfo() {
+ return processorInfo_ == null
+ ? com.google.cloud.contentwarehouse.v1.ProcessorInfo.getDefaultInstance()
+ : processorInfo_;
+ }
+ /**
+ *
+ *
+ *
+ * The CDW processor information.
+ *
+ *
+ * .google.cloud.contentwarehouse.v1.ProcessorInfo processor_info = 3;
+ */
+ @java.lang.Override
+ public com.google.cloud.contentwarehouse.v1.ProcessorInfoOrBuilder getProcessorInfoOrBuilder() {
+ return processorInfo_ == null
+ ? com.google.cloud.contentwarehouse.v1.ProcessorInfo.getDefaultInstance()
+ : processorInfo_;
+ }
+
+ public static final int PROCESSOR_RESULTS_FOLDER_PATH_FIELD_NUMBER = 4;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object processorResultsFolderPath_ = "";
+ /**
+ *
+ *
+ *
+ * The Cloud Storage folder path used to store the raw results from
+ * processors.
+ * Format: `gs://<bucket-name>/<folder-name>`.
+ *
+ *
+ * string processor_results_folder_path = 4;
+ *
+ * @return The processorResultsFolderPath.
+ */
+ @java.lang.Override
+ public java.lang.String getProcessorResultsFolderPath() {
+ java.lang.Object ref = processorResultsFolderPath_;
+ 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();
+ processorResultsFolderPath_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The Cloud Storage folder path used to store the raw results from
+ * processors.
+ * Format: `gs://<bucket-name>/<folder-name>`.
+ *
+ *
+ * string processor_results_folder_path = 4;
+ *
+ * @return The bytes for processorResultsFolderPath.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getProcessorResultsFolderPathBytes() {
+ java.lang.Object ref = processorResultsFolderPath_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ processorResultsFolderPath_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ for (int i = 0; i < documents_.size(); i++) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, documents_.getRaw(i));
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(exportFolderPath_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, exportFolderPath_);
+ }
+ if (processorInfo_ != null) {
+ output.writeMessage(3, getProcessorInfo());
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(processorResultsFolderPath_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 4, processorResultsFolderPath_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ {
+ int dataSize = 0;
+ for (int i = 0; i < documents_.size(); i++) {
+ dataSize += computeStringSizeNoTag(documents_.getRaw(i));
+ }
+ size += dataSize;
+ size += 1 * getDocumentsList().size();
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(exportFolderPath_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, exportFolderPath_);
+ }
+ if (processorInfo_ != null) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getProcessorInfo());
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(processorResultsFolderPath_)) {
+ size +=
+ com.google.protobuf.GeneratedMessageV3.computeStringSize(4, processorResultsFolderPath_);
+ }
+ 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.contentwarehouse.v1.ProcessWithDocAiPipeline)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline other =
+ (com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline) obj;
+
+ if (!getDocumentsList().equals(other.getDocumentsList())) return false;
+ if (!getExportFolderPath().equals(other.getExportFolderPath())) return false;
+ if (hasProcessorInfo() != other.hasProcessorInfo()) return false;
+ if (hasProcessorInfo()) {
+ if (!getProcessorInfo().equals(other.getProcessorInfo())) return false;
+ }
+ if (!getProcessorResultsFolderPath().equals(other.getProcessorResultsFolderPath()))
+ 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 (getDocumentsCount() > 0) {
+ hash = (37 * hash) + DOCUMENTS_FIELD_NUMBER;
+ hash = (53 * hash) + getDocumentsList().hashCode();
+ }
+ hash = (37 * hash) + EXPORT_FOLDER_PATH_FIELD_NUMBER;
+ hash = (53 * hash) + getExportFolderPath().hashCode();
+ if (hasProcessorInfo()) {
+ hash = (37 * hash) + PROCESSOR_INFO_FIELD_NUMBER;
+ hash = (53 * hash) + getProcessorInfo().hashCode();
+ }
+ hash = (37 * hash) + PROCESSOR_RESULTS_FOLDER_PATH_FIELD_NUMBER;
+ hash = (53 * hash) + getProcessorResultsFolderPath().hashCode();
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline 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.contentwarehouse.v1.ProcessWithDocAiPipeline parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline 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.contentwarehouse.v1.ProcessWithDocAiPipeline parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline 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.contentwarehouse.v1.ProcessWithDocAiPipeline parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline 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.contentwarehouse.v1.ProcessWithDocAiPipeline parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline 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.contentwarehouse.v1.ProcessWithDocAiPipeline prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ *
+ *
+ *
+ * The configuration of processing documents in Document Warehouse with DocAi
+ * processors pipeline.
+ *
+ *
+ * Protobuf type {@code google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline}
+ */
+ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ implements
+ // @@protoc_insertion_point(builder_implements:google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline)
+ com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipelineOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.contentwarehouse.v1.PipelinesProto
+ .internal_static_google_cloud_contentwarehouse_v1_ProcessWithDocAiPipeline_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.contentwarehouse.v1.PipelinesProto
+ .internal_static_google_cloud_contentwarehouse_v1_ProcessWithDocAiPipeline_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline.class,
+ com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline.Builder.class);
+ }
+
+ // Construct using com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline.newBuilder()
+ private Builder() {}
+
+ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ }
+
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ documents_ = com.google.protobuf.LazyStringArrayList.emptyList();
+ exportFolderPath_ = "";
+ processorInfo_ = null;
+ if (processorInfoBuilder_ != null) {
+ processorInfoBuilder_.dispose();
+ processorInfoBuilder_ = null;
+ }
+ processorResultsFolderPath_ = "";
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+ return com.google.cloud.contentwarehouse.v1.PipelinesProto
+ .internal_static_google_cloud_contentwarehouse_v1_ProcessWithDocAiPipeline_descriptor;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline
+ getDefaultInstanceForType() {
+ return com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline build() {
+ com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline buildPartial() {
+ com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline result =
+ new com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline(this);
+ if (bitField0_ != 0) {
+ buildPartial0(result);
+ }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartial0(
+ com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ documents_.makeImmutable();
+ result.documents_ = documents_;
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.exportFolderPath_ = exportFolderPath_;
+ }
+ if (((from_bitField0_ & 0x00000004) != 0)) {
+ result.processorInfo_ =
+ processorInfoBuilder_ == null ? processorInfo_ : processorInfoBuilder_.build();
+ }
+ if (((from_bitField0_ & 0x00000008) != 0)) {
+ result.processorResultsFolderPath_ = processorResultsFolderPath_;
+ }
+ }
+
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+ return super.setField(field, value);
+ }
+
+ @java.lang.Override
+ public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+
+ @java.lang.Override
+ public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+ return super.addRepeatedField(field, value);
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline) {
+ return mergeFrom((com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline) other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline other) {
+ if (other
+ == com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline.getDefaultInstance())
+ return this;
+ if (!other.documents_.isEmpty()) {
+ if (documents_.isEmpty()) {
+ documents_ = other.documents_;
+ bitField0_ |= 0x00000001;
+ } else {
+ ensureDocumentsIsMutable();
+ documents_.addAll(other.documents_);
+ }
+ onChanged();
+ }
+ if (!other.getExportFolderPath().isEmpty()) {
+ exportFolderPath_ = other.exportFolderPath_;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ }
+ if (other.hasProcessorInfo()) {
+ mergeProcessorInfo(other.getProcessorInfo());
+ }
+ if (!other.getProcessorResultsFolderPath().isEmpty()) {
+ processorResultsFolderPath_ = other.processorResultsFolderPath_;
+ bitField0_ |= 0x00000008;
+ onChanged();
+ }
+ this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+ ensureDocumentsIsMutable();
+ documents_.add(s);
+ break;
+ } // case 10
+ case 18:
+ {
+ exportFolderPath_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000002;
+ break;
+ } // case 18
+ case 26:
+ {
+ input.readMessage(getProcessorInfoFieldBuilder().getBuilder(), extensionRegistry);
+ bitField0_ |= 0x00000004;
+ break;
+ } // case 26
+ case 34:
+ {
+ processorResultsFolderPath_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000008;
+ break;
+ } // case 34
+ default:
+ {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.unwrapIOException();
+ } finally {
+ onChanged();
+ } // finally
+ return this;
+ }
+
+ private int bitField0_;
+
+ private com.google.protobuf.LazyStringArrayList documents_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
+
+ private void ensureDocumentsIsMutable() {
+ if (!documents_.isModifiable()) {
+ documents_ = new com.google.protobuf.LazyStringArrayList(documents_);
+ }
+ bitField0_ |= 0x00000001;
+ }
+ /**
+ *
+ *
+ *
+ * The list of all the resource names of the documents to be processed.
+ * Format:
+ * projects/{project_number}/locations/{location}/documents/{document_id}.
+ *
+ *
+ * repeated string documents = 1;
+ *
+ * @return A list containing the documents.
+ */
+ public com.google.protobuf.ProtocolStringList getDocumentsList() {
+ documents_.makeImmutable();
+ return documents_;
+ }
+ /**
+ *
+ *
+ *
+ * The list of all the resource names of the documents to be processed.
+ * Format:
+ * projects/{project_number}/locations/{location}/documents/{document_id}.
+ *
+ *
+ * repeated string documents = 1;
+ *
+ * @return The count of documents.
+ */
+ public int getDocumentsCount() {
+ return documents_.size();
+ }
+ /**
+ *
+ *
+ *
+ * The list of all the resource names of the documents to be processed.
+ * Format:
+ * projects/{project_number}/locations/{location}/documents/{document_id}.
+ *
+ *
+ * repeated string documents = 1;
+ *
+ * @param index The index of the element to return.
+ * @return The documents at the given index.
+ */
+ public java.lang.String getDocuments(int index) {
+ return documents_.get(index);
+ }
+ /**
+ *
+ *
+ *
+ * The list of all the resource names of the documents to be processed.
+ * Format:
+ * projects/{project_number}/locations/{location}/documents/{document_id}.
+ *
+ *
+ * repeated string documents = 1;
+ *
+ * @param index The index of the value to return.
+ * @return The bytes of the documents at the given index.
+ */
+ public com.google.protobuf.ByteString getDocumentsBytes(int index) {
+ return documents_.getByteString(index);
+ }
+ /**
+ *
+ *
+ *
+ * The list of all the resource names of the documents to be processed.
+ * Format:
+ * projects/{project_number}/locations/{location}/documents/{document_id}.
+ *
+ *
+ * repeated string documents = 1;
+ *
+ * @param index The index to set the value at.
+ * @param value The documents to set.
+ * @return This builder for chaining.
+ */
+ public Builder setDocuments(int index, java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureDocumentsIsMutable();
+ documents_.set(index, value);
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The list of all the resource names of the documents to be processed.
+ * Format:
+ * projects/{project_number}/locations/{location}/documents/{document_id}.
+ *
+ *
+ * repeated string documents = 1;
+ *
+ * @param value The documents to add.
+ * @return This builder for chaining.
+ */
+ public Builder addDocuments(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureDocumentsIsMutable();
+ documents_.add(value);
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The list of all the resource names of the documents to be processed.
+ * Format:
+ * projects/{project_number}/locations/{location}/documents/{document_id}.
+ *
+ *
+ * repeated string documents = 1;
+ *
+ * @param values The documents to add.
+ * @return This builder for chaining.
+ */
+ public Builder addAllDocuments(java.lang.Iterable values) {
+ ensureDocumentsIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, documents_);
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The list of all the resource names of the documents to be processed.
+ * Format:
+ * projects/{project_number}/locations/{location}/documents/{document_id}.
+ *
+ *
+ * repeated string documents = 1;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearDocuments() {
+ documents_ = com.google.protobuf.LazyStringArrayList.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ ;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The list of all the resource names of the documents to be processed.
+ * Format:
+ * projects/{project_number}/locations/{location}/documents/{document_id}.
+ *
+ *
+ * repeated string documents = 1;
+ *
+ * @param value The bytes of the documents to add.
+ * @return This builder for chaining.
+ */
+ public Builder addDocumentsBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ ensureDocumentsIsMutable();
+ documents_.add(value);
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object exportFolderPath_ = "";
+ /**
+ *
+ *
+ *
+ * The Cloud Storage folder path used to store the exported documents before
+ * being sent to CDW.
+ * Format: `gs://<bucket-name>/<folder-name>`.
+ *
+ *
+ * string export_folder_path = 2;
+ *
+ * @return The exportFolderPath.
+ */
+ public java.lang.String getExportFolderPath() {
+ java.lang.Object ref = exportFolderPath_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ exportFolderPath_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The Cloud Storage folder path used to store the exported documents before
+ * being sent to CDW.
+ * Format: `gs://<bucket-name>/<folder-name>`.
+ *
+ *
+ * string export_folder_path = 2;
+ *
+ * @return The bytes for exportFolderPath.
+ */
+ public com.google.protobuf.ByteString getExportFolderPathBytes() {
+ java.lang.Object ref = exportFolderPath_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ exportFolderPath_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The Cloud Storage folder path used to store the exported documents before
+ * being sent to CDW.
+ * Format: `gs://<bucket-name>/<folder-name>`.
+ *
+ *
+ * string export_folder_path = 2;
+ *
+ * @param value The exportFolderPath to set.
+ * @return This builder for chaining.
+ */
+ public Builder setExportFolderPath(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ exportFolderPath_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The Cloud Storage folder path used to store the exported documents before
+ * being sent to CDW.
+ * Format: `gs://<bucket-name>/<folder-name>`.
+ *
+ *
+ * string export_folder_path = 2;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearExportFolderPath() {
+ exportFolderPath_ = getDefaultInstance().getExportFolderPath();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The Cloud Storage folder path used to store the exported documents before
+ * being sent to CDW.
+ * Format: `gs://<bucket-name>/<folder-name>`.
+ *
+ *
+ * string export_folder_path = 2;
+ *
+ * @param value The bytes for exportFolderPath to set.
+ * @return This builder for chaining.
+ */
+ public Builder setExportFolderPathBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ exportFolderPath_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ private com.google.cloud.contentwarehouse.v1.ProcessorInfo processorInfo_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.contentwarehouse.v1.ProcessorInfo,
+ com.google.cloud.contentwarehouse.v1.ProcessorInfo.Builder,
+ com.google.cloud.contentwarehouse.v1.ProcessorInfoOrBuilder>
+ processorInfoBuilder_;
+ /**
+ *
+ *
+ *
+ * The CDW processor information.
+ *
+ *
+ * .google.cloud.contentwarehouse.v1.ProcessorInfo processor_info = 3;
+ *
+ * @return Whether the processorInfo field is set.
+ */
+ public boolean hasProcessorInfo() {
+ return ((bitField0_ & 0x00000004) != 0);
+ }
+ /**
+ *
+ *
+ *
+ * The CDW processor information.
+ *
+ *
+ * .google.cloud.contentwarehouse.v1.ProcessorInfo processor_info = 3;
+ *
+ * @return The processorInfo.
+ */
+ public com.google.cloud.contentwarehouse.v1.ProcessorInfo getProcessorInfo() {
+ if (processorInfoBuilder_ == null) {
+ return processorInfo_ == null
+ ? com.google.cloud.contentwarehouse.v1.ProcessorInfo.getDefaultInstance()
+ : processorInfo_;
+ } else {
+ return processorInfoBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The CDW processor information.
+ *
+ *
+ * .google.cloud.contentwarehouse.v1.ProcessorInfo processor_info = 3;
+ */
+ public Builder setProcessorInfo(com.google.cloud.contentwarehouse.v1.ProcessorInfo value) {
+ if (processorInfoBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ processorInfo_ = value;
+ } else {
+ processorInfoBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The CDW processor information.
+ *
+ *
+ * .google.cloud.contentwarehouse.v1.ProcessorInfo processor_info = 3;
+ */
+ public Builder setProcessorInfo(
+ com.google.cloud.contentwarehouse.v1.ProcessorInfo.Builder builderForValue) {
+ if (processorInfoBuilder_ == null) {
+ processorInfo_ = builderForValue.build();
+ } else {
+ processorInfoBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The CDW processor information.
+ *
+ *
+ * .google.cloud.contentwarehouse.v1.ProcessorInfo processor_info = 3;
+ */
+ public Builder mergeProcessorInfo(com.google.cloud.contentwarehouse.v1.ProcessorInfo value) {
+ if (processorInfoBuilder_ == null) {
+ if (((bitField0_ & 0x00000004) != 0)
+ && processorInfo_ != null
+ && processorInfo_
+ != com.google.cloud.contentwarehouse.v1.ProcessorInfo.getDefaultInstance()) {
+ getProcessorInfoBuilder().mergeFrom(value);
+ } else {
+ processorInfo_ = value;
+ }
+ } else {
+ processorInfoBuilder_.mergeFrom(value);
+ }
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The CDW processor information.
+ *
+ *
+ * .google.cloud.contentwarehouse.v1.ProcessorInfo processor_info = 3;
+ */
+ public Builder clearProcessorInfo() {
+ bitField0_ = (bitField0_ & ~0x00000004);
+ processorInfo_ = null;
+ if (processorInfoBuilder_ != null) {
+ processorInfoBuilder_.dispose();
+ processorInfoBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The CDW processor information.
+ *
+ *
+ * .google.cloud.contentwarehouse.v1.ProcessorInfo processor_info = 3;
+ */
+ public com.google.cloud.contentwarehouse.v1.ProcessorInfo.Builder getProcessorInfoBuilder() {
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return getProcessorInfoFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ *
+ * The CDW processor information.
+ *
+ *
+ * .google.cloud.contentwarehouse.v1.ProcessorInfo processor_info = 3;
+ */
+ public com.google.cloud.contentwarehouse.v1.ProcessorInfoOrBuilder getProcessorInfoOrBuilder() {
+ if (processorInfoBuilder_ != null) {
+ return processorInfoBuilder_.getMessageOrBuilder();
+ } else {
+ return processorInfo_ == null
+ ? com.google.cloud.contentwarehouse.v1.ProcessorInfo.getDefaultInstance()
+ : processorInfo_;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The CDW processor information.
+ *
+ *
+ * .google.cloud.contentwarehouse.v1.ProcessorInfo processor_info = 3;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.contentwarehouse.v1.ProcessorInfo,
+ com.google.cloud.contentwarehouse.v1.ProcessorInfo.Builder,
+ com.google.cloud.contentwarehouse.v1.ProcessorInfoOrBuilder>
+ getProcessorInfoFieldBuilder() {
+ if (processorInfoBuilder_ == null) {
+ processorInfoBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.contentwarehouse.v1.ProcessorInfo,
+ com.google.cloud.contentwarehouse.v1.ProcessorInfo.Builder,
+ com.google.cloud.contentwarehouse.v1.ProcessorInfoOrBuilder>(
+ getProcessorInfo(), getParentForChildren(), isClean());
+ processorInfo_ = null;
+ }
+ return processorInfoBuilder_;
+ }
+
+ private java.lang.Object processorResultsFolderPath_ = "";
+ /**
+ *
+ *
+ *
+ * The Cloud Storage folder path used to store the raw results from
+ * processors.
+ * Format: `gs://<bucket-name>/<folder-name>`.
+ *
+ *
+ * string processor_results_folder_path = 4;
+ *
+ * @return The processorResultsFolderPath.
+ */
+ public java.lang.String getProcessorResultsFolderPath() {
+ java.lang.Object ref = processorResultsFolderPath_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ processorResultsFolderPath_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The Cloud Storage folder path used to store the raw results from
+ * processors.
+ * Format: `gs://<bucket-name>/<folder-name>`.
+ *
+ *
+ * string processor_results_folder_path = 4;
+ *
+ * @return The bytes for processorResultsFolderPath.
+ */
+ public com.google.protobuf.ByteString getProcessorResultsFolderPathBytes() {
+ java.lang.Object ref = processorResultsFolderPath_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ processorResultsFolderPath_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The Cloud Storage folder path used to store the raw results from
+ * processors.
+ * Format: `gs://<bucket-name>/<folder-name>`.
+ *
+ *
+ * string processor_results_folder_path = 4;
+ *
+ * @param value The processorResultsFolderPath to set.
+ * @return This builder for chaining.
+ */
+ public Builder setProcessorResultsFolderPath(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ processorResultsFolderPath_ = value;
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The Cloud Storage folder path used to store the raw results from
+ * processors.
+ * Format: `gs://<bucket-name>/<folder-name>`.
+ *
+ *
+ * string processor_results_folder_path = 4;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearProcessorResultsFolderPath() {
+ processorResultsFolderPath_ = getDefaultInstance().getProcessorResultsFolderPath();
+ bitField0_ = (bitField0_ & ~0x00000008);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The Cloud Storage folder path used to store the raw results from
+ * processors.
+ * Format: `gs://<bucket-name>/<folder-name>`.
+ *
+ *
+ * string processor_results_folder_path = 4;
+ *
+ * @param value The bytes for processorResultsFolderPath to set.
+ * @return This builder for chaining.
+ */
+ public Builder setProcessorResultsFolderPathBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ processorResultsFolderPath_ = value;
+ bitField0_ |= 0x00000008;
+ 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.contentwarehouse.v1.ProcessWithDocAiPipeline)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline)
+ private static final com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline
+ DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline();
+ }
+
+ public static com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser PARSER =
+ new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public ProcessWithDocAiPipeline parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ Builder builder = newBuilder();
+ try {
+ builder.mergeFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(builder.buildPartial());
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e)
+ .setUnfinishedMessage(builder.buildPartial());
+ }
+ return builder.buildPartial();
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+}
diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ProcessWithDocAiPipelineOrBuilder.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ProcessWithDocAiPipelineOrBuilder.java
new file mode 100644
index 000000000000..3dbed890082e
--- /dev/null
+++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ProcessWithDocAiPipelineOrBuilder.java
@@ -0,0 +1,177 @@
+/*
+ * 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/contentwarehouse/v1/pipelines.proto
+
+package com.google.cloud.contentwarehouse.v1;
+
+public interface ProcessWithDocAiPipelineOrBuilder
+ extends
+ // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ *
+ *
+ *
+ * The list of all the resource names of the documents to be processed.
+ * Format:
+ * projects/{project_number}/locations/{location}/documents/{document_id}.
+ *
+ *
+ * repeated string documents = 1;
+ *
+ * @return A list containing the documents.
+ */
+ java.util.List getDocumentsList();
+ /**
+ *
+ *
+ *
+ * The list of all the resource names of the documents to be processed.
+ * Format:
+ * projects/{project_number}/locations/{location}/documents/{document_id}.
+ *
+ *
+ * repeated string documents = 1;
+ *
+ * @return The count of documents.
+ */
+ int getDocumentsCount();
+ /**
+ *
+ *
+ *
+ * The list of all the resource names of the documents to be processed.
+ * Format:
+ * projects/{project_number}/locations/{location}/documents/{document_id}.
+ *
+ *
+ * repeated string documents = 1;
+ *
+ * @param index The index of the element to return.
+ * @return The documents at the given index.
+ */
+ java.lang.String getDocuments(int index);
+ /**
+ *
+ *
+ *
+ * The list of all the resource names of the documents to be processed.
+ * Format:
+ * projects/{project_number}/locations/{location}/documents/{document_id}.
+ *
+ *
+ * repeated string documents = 1;
+ *
+ * @param index The index of the value to return.
+ * @return The bytes of the documents at the given index.
+ */
+ com.google.protobuf.ByteString getDocumentsBytes(int index);
+
+ /**
+ *
+ *
+ *
+ * The Cloud Storage folder path used to store the exported documents before
+ * being sent to CDW.
+ * Format: `gs://<bucket-name>/<folder-name>`.
+ *
+ *
+ * string export_folder_path = 2;
+ *
+ * @return The exportFolderPath.
+ */
+ java.lang.String getExportFolderPath();
+ /**
+ *
+ *
+ *
+ * The Cloud Storage folder path used to store the exported documents before
+ * being sent to CDW.
+ * Format: `gs://<bucket-name>/<folder-name>`.
+ *
+ *
+ * string export_folder_path = 2;
+ *
+ * @return The bytes for exportFolderPath.
+ */
+ com.google.protobuf.ByteString getExportFolderPathBytes();
+
+ /**
+ *
+ *
+ *
+ * The CDW processor information.
+ *
+ *
+ * .google.cloud.contentwarehouse.v1.ProcessorInfo processor_info = 3;
+ *
+ * @return Whether the processorInfo field is set.
+ */
+ boolean hasProcessorInfo();
+ /**
+ *
+ *
+ *
+ * The CDW processor information.
+ *
+ *
+ * .google.cloud.contentwarehouse.v1.ProcessorInfo processor_info = 3;
+ *
+ * @return The processorInfo.
+ */
+ com.google.cloud.contentwarehouse.v1.ProcessorInfo getProcessorInfo();
+ /**
+ *
+ *
+ *
+ * The CDW processor information.
+ *
+ *
+ * .google.cloud.contentwarehouse.v1.ProcessorInfo processor_info = 3;
+ */
+ com.google.cloud.contentwarehouse.v1.ProcessorInfoOrBuilder getProcessorInfoOrBuilder();
+
+ /**
+ *
+ *
+ *
+ * The Cloud Storage folder path used to store the raw results from
+ * processors.
+ * Format: `gs://<bucket-name>/<folder-name>`.
+ *
+ *
+ * string processor_results_folder_path = 4;
+ *
+ * @return The processorResultsFolderPath.
+ */
+ java.lang.String getProcessorResultsFolderPath();
+ /**
+ *
+ *
+ *
+ * The Cloud Storage folder path used to store the raw results from
+ * processors.
+ * Format: `gs://<bucket-name>/<folder-name>`.
+ *
+ *
+ * string processor_results_folder_path = 4;
+ *
+ * @return The bytes for processorResultsFolderPath.
+ */
+ com.google.protobuf.ByteString getProcessorResultsFolderPathBytes();
+}
diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ProcessorInfo.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ProcessorInfo.java
new file mode 100644
index 000000000000..5aacaafc5067
--- /dev/null
+++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ProcessorInfo.java
@@ -0,0 +1,1030 @@
+/*
+ * 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/contentwarehouse/v1/pipelines.proto
+
+package com.google.cloud.contentwarehouse.v1;
+
+/**
+ *
+ *
+ *
+ * The DocAI processor information.
+ *
+ *
+ * Protobuf type {@code google.cloud.contentwarehouse.v1.ProcessorInfo}
+ */
+public final class ProcessorInfo extends com.google.protobuf.GeneratedMessageV3
+ implements
+ // @@protoc_insertion_point(message_implements:google.cloud.contentwarehouse.v1.ProcessorInfo)
+ ProcessorInfoOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use ProcessorInfo.newBuilder() to construct.
+ private ProcessorInfo(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+
+ private ProcessorInfo() {
+ processorName_ = "";
+ documentType_ = "";
+ schemaName_ = "";
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+ return new ProcessorInfo();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.contentwarehouse.v1.PipelinesProto
+ .internal_static_google_cloud_contentwarehouse_v1_ProcessorInfo_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.contentwarehouse.v1.PipelinesProto
+ .internal_static_google_cloud_contentwarehouse_v1_ProcessorInfo_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.contentwarehouse.v1.ProcessorInfo.class,
+ com.google.cloud.contentwarehouse.v1.ProcessorInfo.Builder.class);
+ }
+
+ public static final int PROCESSOR_NAME_FIELD_NUMBER = 1;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object processorName_ = "";
+ /**
+ *
+ *
+ *
+ * The processor resource name.
+ * Format is `projects/{project}/locations/{location}/processors/{processor}`,
+ * or
+ * `projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processorVersion}`
+ *
+ *
+ * string processor_name = 1;
+ *
+ * @return The processorName.
+ */
+ @java.lang.Override
+ public java.lang.String getProcessorName() {
+ java.lang.Object ref = processorName_;
+ 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();
+ processorName_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The processor resource name.
+ * Format is `projects/{project}/locations/{location}/processors/{processor}`,
+ * or
+ * `projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processorVersion}`
+ *
+ *
+ * string processor_name = 1;
+ *
+ * @return The bytes for processorName.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getProcessorNameBytes() {
+ java.lang.Object ref = processorName_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ processorName_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int DOCUMENT_TYPE_FIELD_NUMBER = 2;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object documentType_ = "";
+ /**
+ *
+ *
+ *
+ * The processor will process the documents with this document type.
+ *
+ *
+ * string document_type = 2;
+ *
+ * @return The documentType.
+ */
+ @java.lang.Override
+ public java.lang.String getDocumentType() {
+ java.lang.Object ref = documentType_;
+ 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();
+ documentType_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The processor will process the documents with this document type.
+ *
+ *
+ * string document_type = 2;
+ *
+ * @return The bytes for documentType.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getDocumentTypeBytes() {
+ java.lang.Object ref = documentType_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ documentType_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int SCHEMA_NAME_FIELD_NUMBER = 3;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object schemaName_ = "";
+ /**
+ *
+ *
+ *
+ * The Document schema resource name. All documents processed by this
+ * processor will use this schema.
+ * Format:
+ * projects/{project_number}/locations/{location}/documentSchemas/{document_schema_id}.
+ *
+ *
+ * string schema_name = 3;
+ *
+ * @return The schemaName.
+ */
+ @java.lang.Override
+ public java.lang.String getSchemaName() {
+ java.lang.Object ref = schemaName_;
+ 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();
+ schemaName_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The Document schema resource name. All documents processed by this
+ * processor will use this schema.
+ * Format:
+ * projects/{project_number}/locations/{location}/documentSchemas/{document_schema_id}.
+ *
+ *
+ * string schema_name = 3;
+ *
+ * @return The bytes for schemaName.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getSchemaNameBytes() {
+ java.lang.Object ref = schemaName_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ schemaName_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(processorName_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, processorName_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(documentType_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, documentType_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(schemaName_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 3, schemaName_);
+ }
+ 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(processorName_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, processorName_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(documentType_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, documentType_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(schemaName_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, schemaName_);
+ }
+ 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.contentwarehouse.v1.ProcessorInfo)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.contentwarehouse.v1.ProcessorInfo other =
+ (com.google.cloud.contentwarehouse.v1.ProcessorInfo) obj;
+
+ if (!getProcessorName().equals(other.getProcessorName())) return false;
+ if (!getDocumentType().equals(other.getDocumentType())) return false;
+ if (!getSchemaName().equals(other.getSchemaName())) 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) + PROCESSOR_NAME_FIELD_NUMBER;
+ hash = (53 * hash) + getProcessorName().hashCode();
+ hash = (37 * hash) + DOCUMENT_TYPE_FIELD_NUMBER;
+ hash = (53 * hash) + getDocumentType().hashCode();
+ hash = (37 * hash) + SCHEMA_NAME_FIELD_NUMBER;
+ hash = (53 * hash) + getSchemaName().hashCode();
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.contentwarehouse.v1.ProcessorInfo parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.contentwarehouse.v1.ProcessorInfo 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.contentwarehouse.v1.ProcessorInfo parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.contentwarehouse.v1.ProcessorInfo 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.contentwarehouse.v1.ProcessorInfo parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.contentwarehouse.v1.ProcessorInfo parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.contentwarehouse.v1.ProcessorInfo parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.contentwarehouse.v1.ProcessorInfo 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.contentwarehouse.v1.ProcessorInfo parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.contentwarehouse.v1.ProcessorInfo 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.contentwarehouse.v1.ProcessorInfo parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.contentwarehouse.v1.ProcessorInfo 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.contentwarehouse.v1.ProcessorInfo 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 DocAI processor information.
+ *
+ *
+ * Protobuf type {@code google.cloud.contentwarehouse.v1.ProcessorInfo}
+ */
+ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ implements
+ // @@protoc_insertion_point(builder_implements:google.cloud.contentwarehouse.v1.ProcessorInfo)
+ com.google.cloud.contentwarehouse.v1.ProcessorInfoOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.contentwarehouse.v1.PipelinesProto
+ .internal_static_google_cloud_contentwarehouse_v1_ProcessorInfo_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.contentwarehouse.v1.PipelinesProto
+ .internal_static_google_cloud_contentwarehouse_v1_ProcessorInfo_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.contentwarehouse.v1.ProcessorInfo.class,
+ com.google.cloud.contentwarehouse.v1.ProcessorInfo.Builder.class);
+ }
+
+ // Construct using com.google.cloud.contentwarehouse.v1.ProcessorInfo.newBuilder()
+ private Builder() {}
+
+ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ }
+
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ processorName_ = "";
+ documentType_ = "";
+ schemaName_ = "";
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+ return com.google.cloud.contentwarehouse.v1.PipelinesProto
+ .internal_static_google_cloud_contentwarehouse_v1_ProcessorInfo_descriptor;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.contentwarehouse.v1.ProcessorInfo getDefaultInstanceForType() {
+ return com.google.cloud.contentwarehouse.v1.ProcessorInfo.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public com.google.cloud.contentwarehouse.v1.ProcessorInfo build() {
+ com.google.cloud.contentwarehouse.v1.ProcessorInfo result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.contentwarehouse.v1.ProcessorInfo buildPartial() {
+ com.google.cloud.contentwarehouse.v1.ProcessorInfo result =
+ new com.google.cloud.contentwarehouse.v1.ProcessorInfo(this);
+ if (bitField0_ != 0) {
+ buildPartial0(result);
+ }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartial0(com.google.cloud.contentwarehouse.v1.ProcessorInfo result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.processorName_ = processorName_;
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.documentType_ = documentType_;
+ }
+ if (((from_bitField0_ & 0x00000004) != 0)) {
+ result.schemaName_ = schemaName_;
+ }
+ }
+
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+ return super.setField(field, value);
+ }
+
+ @java.lang.Override
+ public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+
+ @java.lang.Override
+ public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+ return super.addRepeatedField(field, value);
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof com.google.cloud.contentwarehouse.v1.ProcessorInfo) {
+ return mergeFrom((com.google.cloud.contentwarehouse.v1.ProcessorInfo) other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.ProcessorInfo other) {
+ if (other == com.google.cloud.contentwarehouse.v1.ProcessorInfo.getDefaultInstance())
+ return this;
+ if (!other.getProcessorName().isEmpty()) {
+ processorName_ = other.processorName_;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ }
+ if (!other.getDocumentType().isEmpty()) {
+ documentType_ = other.documentType_;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ }
+ if (!other.getSchemaName().isEmpty()) {
+ schemaName_ = other.schemaName_;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ }
+ this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10:
+ {
+ processorName_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000001;
+ break;
+ } // case 10
+ case 18:
+ {
+ documentType_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000002;
+ break;
+ } // case 18
+ case 26:
+ {
+ schemaName_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000004;
+ break;
+ } // case 26
+ default:
+ {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.unwrapIOException();
+ } finally {
+ onChanged();
+ } // finally
+ return this;
+ }
+
+ private int bitField0_;
+
+ private java.lang.Object processorName_ = "";
+ /**
+ *
+ *
+ *
+ * The processor resource name.
+ * Format is `projects/{project}/locations/{location}/processors/{processor}`,
+ * or
+ * `projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processorVersion}`
+ *
+ *
+ * string processor_name = 1;
+ *
+ * @return The processorName.
+ */
+ public java.lang.String getProcessorName() {
+ java.lang.Object ref = processorName_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ processorName_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The processor resource name.
+ * Format is `projects/{project}/locations/{location}/processors/{processor}`,
+ * or
+ * `projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processorVersion}`
+ *
+ *
+ * string processor_name = 1;
+ *
+ * @return The bytes for processorName.
+ */
+ public com.google.protobuf.ByteString getProcessorNameBytes() {
+ java.lang.Object ref = processorName_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ processorName_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The processor resource name.
+ * Format is `projects/{project}/locations/{location}/processors/{processor}`,
+ * or
+ * `projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processorVersion}`
+ *
+ *
+ * string processor_name = 1;
+ *
+ * @param value The processorName to set.
+ * @return This builder for chaining.
+ */
+ public Builder setProcessorName(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ processorName_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The processor resource name.
+ * Format is `projects/{project}/locations/{location}/processors/{processor}`,
+ * or
+ * `projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processorVersion}`
+ *
+ *
+ * string processor_name = 1;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearProcessorName() {
+ processorName_ = getDefaultInstance().getProcessorName();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The processor resource name.
+ * Format is `projects/{project}/locations/{location}/processors/{processor}`,
+ * or
+ * `projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processorVersion}`
+ *
+ *
+ * string processor_name = 1;
+ *
+ * @param value The bytes for processorName to set.
+ * @return This builder for chaining.
+ */
+ public Builder setProcessorNameBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ processorName_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object documentType_ = "";
+ /**
+ *
+ *
+ *
+ * The processor will process the documents with this document type.
+ *
+ *
+ * string document_type = 2;
+ *
+ * @return The documentType.
+ */
+ public java.lang.String getDocumentType() {
+ java.lang.Object ref = documentType_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ documentType_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The processor will process the documents with this document type.
+ *
+ *
+ * string document_type = 2;
+ *
+ * @return The bytes for documentType.
+ */
+ public com.google.protobuf.ByteString getDocumentTypeBytes() {
+ java.lang.Object ref = documentType_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ documentType_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The processor will process the documents with this document type.
+ *
+ *
+ * string document_type = 2;
+ *
+ * @param value The documentType to set.
+ * @return This builder for chaining.
+ */
+ public Builder setDocumentType(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ documentType_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The processor will process the documents with this document type.
+ *
+ *
+ * string document_type = 2;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearDocumentType() {
+ documentType_ = getDefaultInstance().getDocumentType();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The processor will process the documents with this document type.
+ *
+ *
+ * string document_type = 2;
+ *
+ * @param value The bytes for documentType to set.
+ * @return This builder for chaining.
+ */
+ public Builder setDocumentTypeBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ documentType_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object schemaName_ = "";
+ /**
+ *
+ *
+ *
+ * The Document schema resource name. All documents processed by this
+ * processor will use this schema.
+ * Format:
+ * projects/{project_number}/locations/{location}/documentSchemas/{document_schema_id}.
+ *
+ *
+ * string schema_name = 3;
+ *
+ * @return The schemaName.
+ */
+ public java.lang.String getSchemaName() {
+ java.lang.Object ref = schemaName_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ schemaName_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The Document schema resource name. All documents processed by this
+ * processor will use this schema.
+ * Format:
+ * projects/{project_number}/locations/{location}/documentSchemas/{document_schema_id}.
+ *
+ *
+ * string schema_name = 3;
+ *
+ * @return The bytes for schemaName.
+ */
+ public com.google.protobuf.ByteString getSchemaNameBytes() {
+ java.lang.Object ref = schemaName_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ schemaName_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The Document schema resource name. All documents processed by this
+ * processor will use this schema.
+ * Format:
+ * projects/{project_number}/locations/{location}/documentSchemas/{document_schema_id}.
+ *
+ *
+ * string schema_name = 3;
+ *
+ * @param value The schemaName to set.
+ * @return This builder for chaining.
+ */
+ public Builder setSchemaName(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ schemaName_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The Document schema resource name. All documents processed by this
+ * processor will use this schema.
+ * Format:
+ * projects/{project_number}/locations/{location}/documentSchemas/{document_schema_id}.
+ *
+ *
+ * string schema_name = 3;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearSchemaName() {
+ schemaName_ = getDefaultInstance().getSchemaName();
+ bitField0_ = (bitField0_ & ~0x00000004);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The Document schema resource name. All documents processed by this
+ * processor will use this schema.
+ * Format:
+ * projects/{project_number}/locations/{location}/documentSchemas/{document_schema_id}.
+ *
+ *
+ * string schema_name = 3;
+ *
+ * @param value The bytes for schemaName to set.
+ * @return This builder for chaining.
+ */
+ public Builder setSchemaNameBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ schemaName_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.contentwarehouse.v1.ProcessorInfo)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.ProcessorInfo)
+ private static final com.google.cloud.contentwarehouse.v1.ProcessorInfo DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.ProcessorInfo();
+ }
+
+ public static com.google.cloud.contentwarehouse.v1.ProcessorInfo getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser PARSER =
+ new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public ProcessorInfo parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ Builder builder = newBuilder();
+ try {
+ builder.mergeFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(builder.buildPartial());
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e)
+ .setUnfinishedMessage(builder.buildPartial());
+ }
+ return builder.buildPartial();
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.contentwarehouse.v1.ProcessorInfo getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+}
diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ProcessorInfoOrBuilder.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ProcessorInfoOrBuilder.java
new file mode 100644
index 000000000000..1443887561e1
--- /dev/null
+++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ProcessorInfoOrBuilder.java
@@ -0,0 +1,112 @@
+/*
+ * 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/contentwarehouse/v1/pipelines.proto
+
+package com.google.cloud.contentwarehouse.v1;
+
+public interface ProcessorInfoOrBuilder
+ extends
+ // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.ProcessorInfo)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ *
+ *
+ *
+ * The processor resource name.
+ * Format is `projects/{project}/locations/{location}/processors/{processor}`,
+ * or
+ * `projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processorVersion}`
+ *
+ *
+ * string processor_name = 1;
+ *
+ * @return The processorName.
+ */
+ java.lang.String getProcessorName();
+ /**
+ *
+ *
+ *
+ * The processor resource name.
+ * Format is `projects/{project}/locations/{location}/processors/{processor}`,
+ * or
+ * `projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processorVersion}`
+ *
+ *
+ * string processor_name = 1;
+ *
+ * @return The bytes for processorName.
+ */
+ com.google.protobuf.ByteString getProcessorNameBytes();
+
+ /**
+ *
+ *
+ *
+ * The processor will process the documents with this document type.
+ *
+ *
+ * string document_type = 2;
+ *
+ * @return The documentType.
+ */
+ java.lang.String getDocumentType();
+ /**
+ *
+ *
+ *
+ * The processor will process the documents with this document type.
+ *
+ *
+ * string document_type = 2;
+ *
+ * @return The bytes for documentType.
+ */
+ com.google.protobuf.ByteString getDocumentTypeBytes();
+
+ /**
+ *
+ *
+ *
+ * The Document schema resource name. All documents processed by this
+ * processor will use this schema.
+ * Format:
+ * projects/{project_number}/locations/{location}/documentSchemas/{document_schema_id}.
+ *
+ *
+ * string schema_name = 3;
+ *
+ * @return The schemaName.
+ */
+ java.lang.String getSchemaName();
+ /**
+ *
+ *
+ *
+ * The Document schema resource name. All documents processed by this
+ * processor will use this schema.
+ * Format:
+ * projects/{project_number}/locations/{location}/documentSchemas/{document_schema_id}.
+ *
+ *
+ * string schema_name = 3;
+ *
+ * @return The bytes for schemaName.
+ */
+ com.google.protobuf.ByteString getSchemaNameBytes();
+}
diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/Rule.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/Rule.java
index c96c9a7e1f8e..7cbdc0cda73e 100644
--- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/Rule.java
+++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/Rule.java
@@ -106,6 +106,26 @@ public enum TriggerType implements com.google.protobuf.ProtocolMessageEnum {
* ON_UPDATE = 4;
*/
ON_UPDATE(4),
+ /**
+ *
+ *
+ *
+ * Trigger for create link action.
+ *
+ *
+ * ON_CREATE_LINK = 7;
+ */
+ ON_CREATE_LINK(7),
+ /**
+ *
+ *
+ *
+ * Trigger for delete link action.
+ *
+ *
+ * ON_DELETE_LINK = 8;
+ */
+ ON_DELETE_LINK(8),
UNRECOGNIZED(-1),
;
@@ -139,6 +159,26 @@ public enum TriggerType implements com.google.protobuf.ProtocolMessageEnum {
* ON_UPDATE = 4;
*/
public static final int ON_UPDATE_VALUE = 4;
+ /**
+ *
+ *
+ *
+ * Trigger for create link action.
+ *
+ *
+ * ON_CREATE_LINK = 7;
+ */
+ public static final int ON_CREATE_LINK_VALUE = 7;
+ /**
+ *
+ *
+ *
+ * Trigger for delete link action.
+ *
+ *
+ * ON_DELETE_LINK = 8;
+ */
+ public static final int ON_DELETE_LINK_VALUE = 8;
public final int getNumber() {
if (this == UNRECOGNIZED) {
@@ -170,6 +210,10 @@ public static TriggerType forNumber(int value) {
return ON_CREATE;
case 4:
return ON_UPDATE;
+ case 7:
+ return ON_CREATE_LINK;
+ case 8:
+ return ON_DELETE_LINK;
default:
return null;
}
diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RuleEngineProto.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RuleEngineProto.java
index bdf42ed896e4..7839b4c04f29 100644
--- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RuleEngineProto.java
+++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RuleEngineProto.java
@@ -118,13 +118,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "ouse.v1.Rule:i\352Af\n\'contentwarehouse.goog"
+ "leapis.com/RuleSet\022;projects/{project}/l"
+ "ocations/{location}/ruleSets/{rule_set}\""
- + "\376\001\n\004Rule\022\023\n\013description\030\001 \001(\t\022\017\n\007rule_id"
+ + "\246\002\n\004Rule\022\023\n\013description\030\001 \001(\t\022\017\n\007rule_id"
+ "\030\002 \001(\t\022H\n\014trigger_type\030\003 \001(\01622.google.cl"
+ "oud.contentwarehouse.v1.Rule.TriggerType"
+ "\022\021\n\tcondition\030\004 \001(\t\0229\n\007actions\030\005 \003(\0132(.g"
- + "oogle.cloud.contentwarehouse.v1.Action\"8"
+ + "oogle.cloud.contentwarehouse.v1.Action\"`"
+ "\n\013TriggerType\022\013\n\007UNKNOWN\020\000\022\r\n\tON_CREATE\020"
- + "\001\022\r\n\tON_UPDATE\020\004\"\352\004\n\006Action\022\021\n\taction_id"
+ + "\001\022\r\n\tON_UPDATE\020\004\022\022\n\016ON_CREATE_LINK\020\007\022\022\n\016"
+ + "ON_DELETE_LINK\020\010\"\352\004\n\006Action\022\021\n\taction_id"
+ "\030\001 \001(\t\022O\n\016access_control\030\002 \001(\01325.google."
+ "cloud.contentwarehouse.v1.AccessControlA"
+ "ctionH\000\022Q\n\017data_validation\030\003 \001(\01326.googl"
diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RunPipelineMetadata.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RunPipelineMetadata.java
new file mode 100644
index 000000000000..513a98269f6a
--- /dev/null
+++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RunPipelineMetadata.java
@@ -0,0 +1,6705 @@
+/*
+ * 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/contentwarehouse/v1/pipelines.proto
+
+package com.google.cloud.contentwarehouse.v1;
+
+/**
+ *
+ *
+ *
+ * Metadata message of RunPipeline method.
+ *
+ *
+ * Protobuf type {@code google.cloud.contentwarehouse.v1.RunPipelineMetadata}
+ */
+public final class RunPipelineMetadata extends com.google.protobuf.GeneratedMessageV3
+ implements
+ // @@protoc_insertion_point(message_implements:google.cloud.contentwarehouse.v1.RunPipelineMetadata)
+ RunPipelineMetadataOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use RunPipelineMetadata.newBuilder() to construct.
+ private RunPipelineMetadata(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+
+ private RunPipelineMetadata() {
+ individualDocumentStatuses_ = java.util.Collections.emptyList();
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+ return new RunPipelineMetadata();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.contentwarehouse.v1.PipelinesProto
+ .internal_static_google_cloud_contentwarehouse_v1_RunPipelineMetadata_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.contentwarehouse.v1.PipelinesProto
+ .internal_static_google_cloud_contentwarehouse_v1_RunPipelineMetadata_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.class,
+ com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.Builder.class);
+ }
+
+ public interface GcsIngestPipelineMetadataOrBuilder
+ extends
+ // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ *
+ *
+ *
+ * The input Cloud Storage folder in this pipeline.
+ * Format: `gs://<bucket-name>/<folder-name>`.
+ *
+ *
+ * string input_path = 1;
+ *
+ * @return The inputPath.
+ */
+ java.lang.String getInputPath();
+ /**
+ *
+ *
+ *
+ * The input Cloud Storage folder in this pipeline.
+ * Format: `gs://<bucket-name>/<folder-name>`.
+ *
+ *
+ * string input_path = 1;
+ *
+ * @return The bytes for inputPath.
+ */
+ com.google.protobuf.ByteString getInputPathBytes();
+ }
+ /**
+ *
+ *
+ *
+ * The metadata message for GcsIngest pipeline.
+ *
+ *
+ * Protobuf type {@code
+ * google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata}
+ */
+ public static final class GcsIngestPipelineMetadata extends com.google.protobuf.GeneratedMessageV3
+ implements
+ // @@protoc_insertion_point(message_implements:google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata)
+ GcsIngestPipelineMetadataOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use GcsIngestPipelineMetadata.newBuilder() to construct.
+ private GcsIngestPipelineMetadata(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+
+ private GcsIngestPipelineMetadata() {
+ inputPath_ = "";
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+ return new GcsIngestPipelineMetadata();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.contentwarehouse.v1.PipelinesProto
+ .internal_static_google_cloud_contentwarehouse_v1_RunPipelineMetadata_GcsIngestPipelineMetadata_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.contentwarehouse.v1.PipelinesProto
+ .internal_static_google_cloud_contentwarehouse_v1_RunPipelineMetadata_GcsIngestPipelineMetadata_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata
+ .class,
+ com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata
+ .Builder.class);
+ }
+
+ public static final int INPUT_PATH_FIELD_NUMBER = 1;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object inputPath_ = "";
+ /**
+ *
+ *
+ *
+ * The input Cloud Storage folder in this pipeline.
+ * Format: `gs://<bucket-name>/<folder-name>`.
+ *
+ *
+ * string input_path = 1;
+ *
+ * @return The inputPath.
+ */
+ @java.lang.Override
+ public java.lang.String getInputPath() {
+ java.lang.Object ref = inputPath_;
+ 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();
+ inputPath_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The input Cloud Storage folder in this pipeline.
+ * Format: `gs://<bucket-name>/<folder-name>`.
+ *
+ *
+ * string input_path = 1;
+ *
+ * @return The bytes for inputPath.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getInputPathBytes() {
+ java.lang.Object ref = inputPath_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ inputPath_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(inputPath_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, inputPath_);
+ }
+ 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(inputPath_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, inputPath_);
+ }
+ 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.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata other =
+ (com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata) obj;
+
+ if (!getInputPath().equals(other.getInputPath())) 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) + INPUT_PATH_FIELD_NUMBER;
+ hash = (53 * hash) + getInputPath().hashCode();
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata
+ parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata
+ 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.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata
+ parseFrom(com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata
+ 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.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata
+ parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata
+ parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata
+ parseFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata
+ 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.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata
+ parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata
+ 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.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata
+ parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata
+ 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.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata
+ 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 message for GcsIngest pipeline.
+ *
+ *
+ * Protobuf type {@code
+ * google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata}
+ */
+ public static final class Builder
+ extends com.google.protobuf.GeneratedMessageV3.Builder
+ implements
+ // @@protoc_insertion_point(builder_implements:google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata)
+ com.google.cloud.contentwarehouse.v1.RunPipelineMetadata
+ .GcsIngestPipelineMetadataOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.contentwarehouse.v1.PipelinesProto
+ .internal_static_google_cloud_contentwarehouse_v1_RunPipelineMetadata_GcsIngestPipelineMetadata_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.contentwarehouse.v1.PipelinesProto
+ .internal_static_google_cloud_contentwarehouse_v1_RunPipelineMetadata_GcsIngestPipelineMetadata_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata
+ .class,
+ com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata
+ .Builder.class);
+ }
+
+ // Construct using
+ // com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata.newBuilder()
+ private Builder() {}
+
+ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ }
+
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ inputPath_ = "";
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+ return com.google.cloud.contentwarehouse.v1.PipelinesProto
+ .internal_static_google_cloud_contentwarehouse_v1_RunPipelineMetadata_GcsIngestPipelineMetadata_descriptor;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata
+ getDefaultInstanceForType() {
+ return com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata
+ .getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata
+ build() {
+ com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata result =
+ buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata
+ buildPartial() {
+ com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata result =
+ new com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata(
+ this);
+ if (bitField0_ != 0) {
+ buildPartial0(result);
+ }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartial0(
+ com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata
+ result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.inputPath_ = inputPath_;
+ }
+ }
+
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+ return super.setField(field, value);
+ }
+
+ @java.lang.Override
+ public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+
+ @java.lang.Override
+ public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index,
+ java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+ return super.addRepeatedField(field, value);
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other
+ instanceof
+ com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata) {
+ return mergeFrom(
+ (com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata)
+ other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(
+ com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata
+ other) {
+ if (other
+ == com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata
+ .getDefaultInstance()) return this;
+ if (!other.getInputPath().isEmpty()) {
+ inputPath_ = other.inputPath_;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ }
+ this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10:
+ {
+ inputPath_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000001;
+ break;
+ } // case 10
+ default:
+ {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.unwrapIOException();
+ } finally {
+ onChanged();
+ } // finally
+ return this;
+ }
+
+ private int bitField0_;
+
+ private java.lang.Object inputPath_ = "";
+ /**
+ *
+ *
+ *
+ * The input Cloud Storage folder in this pipeline.
+ * Format: `gs://<bucket-name>/<folder-name>`.
+ *
+ *
+ * string input_path = 1;
+ *
+ * @return The inputPath.
+ */
+ public java.lang.String getInputPath() {
+ java.lang.Object ref = inputPath_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ inputPath_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The input Cloud Storage folder in this pipeline.
+ * Format: `gs://<bucket-name>/<folder-name>`.
+ *
+ *
+ * string input_path = 1;
+ *
+ * @return The bytes for inputPath.
+ */
+ public com.google.protobuf.ByteString getInputPathBytes() {
+ java.lang.Object ref = inputPath_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ inputPath_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The input Cloud Storage folder in this pipeline.
+ * Format: `gs://<bucket-name>/<folder-name>`.
+ *
+ *
+ * string input_path = 1;
+ *
+ * @param value The inputPath to set.
+ * @return This builder for chaining.
+ */
+ public Builder setInputPath(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ inputPath_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The input Cloud Storage folder in this pipeline.
+ * Format: `gs://<bucket-name>/<folder-name>`.
+ *
+ *
+ * string input_path = 1;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearInputPath() {
+ inputPath_ = getDefaultInstance().getInputPath();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The input Cloud Storage folder in this pipeline.
+ * Format: `gs://<bucket-name>/<folder-name>`.
+ *
+ *
+ * string input_path = 1;
+ *
+ * @param value The bytes for inputPath to set.
+ * @return This builder for chaining.
+ */
+ public Builder setInputPathBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ inputPath_ = value;
+ bitField0_ |= 0x00000001;
+ 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.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata)
+ private static final com.google.cloud.contentwarehouse.v1.RunPipelineMetadata
+ .GcsIngestPipelineMetadata
+ DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE =
+ new com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata();
+ }
+
+ public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata
+ getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser PARSER =
+ new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public GcsIngestPipelineMetadata parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ Builder builder = newBuilder();
+ try {
+ builder.mergeFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(builder.buildPartial());
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException()
+ .setUnfinishedMessage(builder.buildPartial());
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e)
+ .setUnfinishedMessage(builder.buildPartial());
+ }
+ return builder.buildPartial();
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata
+ getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+ }
+
+ public interface ExportToCdwPipelineMetadataOrBuilder
+ extends
+ // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ *
+ *
+ *
+ * The input list of all the resource names of the documents to be exported.
+ *
+ *
+ * repeated string documents = 1;
+ *
+ * @return A list containing the documents.
+ */
+ java.util.List getDocumentsList();
+ /**
+ *
+ *
+ *
+ * The input list of all the resource names of the documents to be exported.
+ *
+ *
+ * repeated string documents = 1;
+ *
+ * @return The count of documents.
+ */
+ int getDocumentsCount();
+ /**
+ *
+ *
+ *
+ * The input list of all the resource names of the documents to be exported.
+ *
+ *
+ * repeated string documents = 1;
+ *
+ * @param index The index of the element to return.
+ * @return The documents at the given index.
+ */
+ java.lang.String getDocuments(int index);
+ /**
+ *
+ *
+ *
+ * The input list of all the resource names of the documents to be exported.
+ *
+ *
+ * repeated string documents = 1;
+ *
+ * @param index The index of the value to return.
+ * @return The bytes of the documents at the given index.
+ */
+ com.google.protobuf.ByteString getDocumentsBytes(int index);
+
+ /**
+ *
+ *
+ *
+ * The output CDW dataset resource name.
+ *
+ *
+ * string doc_ai_dataset = 2;
+ *
+ * @return The docAiDataset.
+ */
+ java.lang.String getDocAiDataset();
+ /**
+ *
+ *
+ *
+ * The output CDW dataset resource name.
+ *
+ *
+ * string doc_ai_dataset = 2;
+ *
+ * @return The bytes for docAiDataset.
+ */
+ com.google.protobuf.ByteString getDocAiDatasetBytes();
+
+ /**
+ *
+ *
+ *
+ * The output Cloud Storage folder in this pipeline.
+ *
+ *
+ * string output_path = 3;
+ *
+ * @return The outputPath.
+ */
+ java.lang.String getOutputPath();
+ /**
+ *
+ *
+ *
+ * The output Cloud Storage folder in this pipeline.
+ *
+ *
+ * string output_path = 3;
+ *
+ * @return The bytes for outputPath.
+ */
+ com.google.protobuf.ByteString getOutputPathBytes();
+ }
+ /**
+ *
+ *
+ *
+ * The metadata message for Export-to-CDW pipeline.
+ *
+ *
+ * Protobuf type {@code
+ * google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata}
+ */
+ public static final class ExportToCdwPipelineMetadata
+ extends com.google.protobuf.GeneratedMessageV3
+ implements
+ // @@protoc_insertion_point(message_implements:google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata)
+ ExportToCdwPipelineMetadataOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use ExportToCdwPipelineMetadata.newBuilder() to construct.
+ private ExportToCdwPipelineMetadata(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+
+ private ExportToCdwPipelineMetadata() {
+ documents_ = com.google.protobuf.LazyStringArrayList.emptyList();
+ docAiDataset_ = "";
+ outputPath_ = "";
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+ return new ExportToCdwPipelineMetadata();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.contentwarehouse.v1.PipelinesProto
+ .internal_static_google_cloud_contentwarehouse_v1_RunPipelineMetadata_ExportToCdwPipelineMetadata_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.contentwarehouse.v1.PipelinesProto
+ .internal_static_google_cloud_contentwarehouse_v1_RunPipelineMetadata_ExportToCdwPipelineMetadata_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata
+ .class,
+ com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata
+ .Builder.class);
+ }
+
+ public static final int DOCUMENTS_FIELD_NUMBER = 1;
+
+ @SuppressWarnings("serial")
+ private com.google.protobuf.LazyStringArrayList documents_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
+ /**
+ *
+ *
+ *
+ * The input list of all the resource names of the documents to be exported.
+ *
+ *
+ * repeated string documents = 1;
+ *
+ * @return A list containing the documents.
+ */
+ public com.google.protobuf.ProtocolStringList getDocumentsList() {
+ return documents_;
+ }
+ /**
+ *
+ *
+ *
+ * The input list of all the resource names of the documents to be exported.
+ *
+ *
+ * repeated string documents = 1;
+ *
+ * @return The count of documents.
+ */
+ public int getDocumentsCount() {
+ return documents_.size();
+ }
+ /**
+ *
+ *
+ *
+ * The input list of all the resource names of the documents to be exported.
+ *
+ *
+ * repeated string documents = 1;
+ *
+ * @param index The index of the element to return.
+ * @return The documents at the given index.
+ */
+ public java.lang.String getDocuments(int index) {
+ return documents_.get(index);
+ }
+ /**
+ *
+ *
+ *
+ * The input list of all the resource names of the documents to be exported.
+ *
+ *
+ * repeated string documents = 1;
+ *
+ * @param index The index of the value to return.
+ * @return The bytes of the documents at the given index.
+ */
+ public com.google.protobuf.ByteString getDocumentsBytes(int index) {
+ return documents_.getByteString(index);
+ }
+
+ public static final int DOC_AI_DATASET_FIELD_NUMBER = 2;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object docAiDataset_ = "";
+ /**
+ *
+ *
+ *
+ * The output CDW dataset resource name.
+ *
+ *
+ * string doc_ai_dataset = 2;
+ *
+ * @return The docAiDataset.
+ */
+ @java.lang.Override
+ public java.lang.String getDocAiDataset() {
+ java.lang.Object ref = docAiDataset_;
+ 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();
+ docAiDataset_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The output CDW dataset resource name.
+ *
+ *
+ * string doc_ai_dataset = 2;
+ *
+ * @return The bytes for docAiDataset.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getDocAiDatasetBytes() {
+ java.lang.Object ref = docAiDataset_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ docAiDataset_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int OUTPUT_PATH_FIELD_NUMBER = 3;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object outputPath_ = "";
+ /**
+ *
+ *
+ *
+ * The output Cloud Storage folder in this pipeline.
+ *
+ *
+ * string output_path = 3;
+ *
+ * @return The outputPath.
+ */
+ @java.lang.Override
+ public java.lang.String getOutputPath() {
+ java.lang.Object ref = outputPath_;
+ 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();
+ outputPath_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The output Cloud Storage folder in this pipeline.
+ *
+ *
+ * string output_path = 3;
+ *
+ * @return The bytes for outputPath.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getOutputPathBytes() {
+ java.lang.Object ref = outputPath_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ outputPath_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ for (int i = 0; i < documents_.size(); i++) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, documents_.getRaw(i));
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(docAiDataset_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, docAiDataset_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(outputPath_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 3, outputPath_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ {
+ int dataSize = 0;
+ for (int i = 0; i < documents_.size(); i++) {
+ dataSize += computeStringSizeNoTag(documents_.getRaw(i));
+ }
+ size += dataSize;
+ size += 1 * getDocumentsList().size();
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(docAiDataset_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, docAiDataset_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(outputPath_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, outputPath_);
+ }
+ 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.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata other =
+ (com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata)
+ obj;
+
+ if (!getDocumentsList().equals(other.getDocumentsList())) return false;
+ if (!getDocAiDataset().equals(other.getDocAiDataset())) return false;
+ if (!getOutputPath().equals(other.getOutputPath())) 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 (getDocumentsCount() > 0) {
+ hash = (37 * hash) + DOCUMENTS_FIELD_NUMBER;
+ hash = (53 * hash) + getDocumentsList().hashCode();
+ }
+ hash = (37 * hash) + DOC_AI_DATASET_FIELD_NUMBER;
+ hash = (53 * hash) + getDocAiDataset().hashCode();
+ hash = (37 * hash) + OUTPUT_PATH_FIELD_NUMBER;
+ hash = (53 * hash) + getOutputPath().hashCode();
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata
+ .ExportToCdwPipelineMetadata
+ parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata
+ .ExportToCdwPipelineMetadata
+ 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.contentwarehouse.v1.RunPipelineMetadata
+ .ExportToCdwPipelineMetadata
+ parseFrom(com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata
+ .ExportToCdwPipelineMetadata
+ 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.contentwarehouse.v1.RunPipelineMetadata
+ .ExportToCdwPipelineMetadata
+ parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata
+ .ExportToCdwPipelineMetadata
+ parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata
+ .ExportToCdwPipelineMetadata
+ parseFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata
+ .ExportToCdwPipelineMetadata
+ 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.contentwarehouse.v1.RunPipelineMetadata
+ .ExportToCdwPipelineMetadata
+ parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata
+ .ExportToCdwPipelineMetadata
+ 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.contentwarehouse.v1.RunPipelineMetadata
+ .ExportToCdwPipelineMetadata
+ parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata
+ .ExportToCdwPipelineMetadata
+ 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.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata
+ 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 message for Export-to-CDW pipeline.
+ *
+ *
+ * Protobuf type {@code
+ * google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata}
+ */
+ public static final class Builder
+ extends com.google.protobuf.GeneratedMessageV3.Builder
+ implements
+ // @@protoc_insertion_point(builder_implements:google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata)
+ com.google.cloud.contentwarehouse.v1.RunPipelineMetadata
+ .ExportToCdwPipelineMetadataOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.contentwarehouse.v1.PipelinesProto
+ .internal_static_google_cloud_contentwarehouse_v1_RunPipelineMetadata_ExportToCdwPipelineMetadata_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.contentwarehouse.v1.PipelinesProto
+ .internal_static_google_cloud_contentwarehouse_v1_RunPipelineMetadata_ExportToCdwPipelineMetadata_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata
+ .class,
+ com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata
+ .Builder.class);
+ }
+
+ // Construct using
+ // com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata.newBuilder()
+ private Builder() {}
+
+ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ }
+
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ documents_ = com.google.protobuf.LazyStringArrayList.emptyList();
+ docAiDataset_ = "";
+ outputPath_ = "";
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+ return com.google.cloud.contentwarehouse.v1.PipelinesProto
+ .internal_static_google_cloud_contentwarehouse_v1_RunPipelineMetadata_ExportToCdwPipelineMetadata_descriptor;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata
+ getDefaultInstanceForType() {
+ return com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata
+ .getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata
+ build() {
+ com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata
+ result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata
+ buildPartial() {
+ com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata
+ result =
+ new com.google.cloud.contentwarehouse.v1.RunPipelineMetadata
+ .ExportToCdwPipelineMetadata(this);
+ if (bitField0_ != 0) {
+ buildPartial0(result);
+ }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartial0(
+ com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata
+ result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ documents_.makeImmutable();
+ result.documents_ = documents_;
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.docAiDataset_ = docAiDataset_;
+ }
+ if (((from_bitField0_ & 0x00000004) != 0)) {
+ result.outputPath_ = outputPath_;
+ }
+ }
+
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+ return super.setField(field, value);
+ }
+
+ @java.lang.Override
+ public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+
+ @java.lang.Override
+ public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index,
+ java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+ return super.addRepeatedField(field, value);
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other
+ instanceof
+ com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata) {
+ return mergeFrom(
+ (com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata)
+ other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(
+ com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata
+ other) {
+ if (other
+ == com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata
+ .getDefaultInstance()) return this;
+ if (!other.documents_.isEmpty()) {
+ if (documents_.isEmpty()) {
+ documents_ = other.documents_;
+ bitField0_ |= 0x00000001;
+ } else {
+ ensureDocumentsIsMutable();
+ documents_.addAll(other.documents_);
+ }
+ onChanged();
+ }
+ if (!other.getDocAiDataset().isEmpty()) {
+ docAiDataset_ = other.docAiDataset_;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ }
+ if (!other.getOutputPath().isEmpty()) {
+ outputPath_ = other.outputPath_;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ }
+ this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+ ensureDocumentsIsMutable();
+ documents_.add(s);
+ break;
+ } // case 10
+ case 18:
+ {
+ docAiDataset_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000002;
+ break;
+ } // case 18
+ case 26:
+ {
+ outputPath_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000004;
+ break;
+ } // case 26
+ default:
+ {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.unwrapIOException();
+ } finally {
+ onChanged();
+ } // finally
+ return this;
+ }
+
+ private int bitField0_;
+
+ private com.google.protobuf.LazyStringArrayList documents_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
+
+ private void ensureDocumentsIsMutable() {
+ if (!documents_.isModifiable()) {
+ documents_ = new com.google.protobuf.LazyStringArrayList(documents_);
+ }
+ bitField0_ |= 0x00000001;
+ }
+ /**
+ *
+ *
+ *
+ * The input list of all the resource names of the documents to be exported.
+ *
+ *
+ * repeated string documents = 1;
+ *
+ * @return A list containing the documents.
+ */
+ public com.google.protobuf.ProtocolStringList getDocumentsList() {
+ documents_.makeImmutable();
+ return documents_;
+ }
+ /**
+ *
+ *
+ *
+ * The input list of all the resource names of the documents to be exported.
+ *
+ *
+ * repeated string documents = 1;
+ *
+ * @return The count of documents.
+ */
+ public int getDocumentsCount() {
+ return documents_.size();
+ }
+ /**
+ *
+ *
+ *
+ * The input list of all the resource names of the documents to be exported.
+ *
+ *
+ * repeated string documents = 1;
+ *
+ * @param index The index of the element to return.
+ * @return The documents at the given index.
+ */
+ public java.lang.String getDocuments(int index) {
+ return documents_.get(index);
+ }
+ /**
+ *
+ *
+ *
+ * The input list of all the resource names of the documents to be exported.
+ *
+ *
+ * repeated string documents = 1;
+ *
+ * @param index The index of the value to return.
+ * @return The bytes of the documents at the given index.
+ */
+ public com.google.protobuf.ByteString getDocumentsBytes(int index) {
+ return documents_.getByteString(index);
+ }
+ /**
+ *
+ *
+ *
+ * The input list of all the resource names of the documents to be exported.
+ *
+ *
+ * repeated string documents = 1;
+ *
+ * @param index The index to set the value at.
+ * @param value The documents to set.
+ * @return This builder for chaining.
+ */
+ public Builder setDocuments(int index, java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureDocumentsIsMutable();
+ documents_.set(index, value);
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The input list of all the resource names of the documents to be exported.
+ *
+ *
+ * repeated string documents = 1;
+ *
+ * @param value The documents to add.
+ * @return This builder for chaining.
+ */
+ public Builder addDocuments(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureDocumentsIsMutable();
+ documents_.add(value);
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The input list of all the resource names of the documents to be exported.
+ *
+ *
+ * repeated string documents = 1;
+ *
+ * @param values The documents to add.
+ * @return This builder for chaining.
+ */
+ public Builder addAllDocuments(java.lang.Iterable values) {
+ ensureDocumentsIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, documents_);
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The input list of all the resource names of the documents to be exported.
+ *
+ *
+ * repeated string documents = 1;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearDocuments() {
+ documents_ = com.google.protobuf.LazyStringArrayList.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ ;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The input list of all the resource names of the documents to be exported.
+ *
+ *
+ * repeated string documents = 1;
+ *
+ * @param value The bytes of the documents to add.
+ * @return This builder for chaining.
+ */
+ public Builder addDocumentsBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ ensureDocumentsIsMutable();
+ documents_.add(value);
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object docAiDataset_ = "";
+ /**
+ *
+ *
+ *
+ * The output CDW dataset resource name.
+ *
+ *
+ * string doc_ai_dataset = 2;
+ *
+ * @return The docAiDataset.
+ */
+ public java.lang.String getDocAiDataset() {
+ java.lang.Object ref = docAiDataset_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ docAiDataset_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The output CDW dataset resource name.
+ *
+ *
+ * string doc_ai_dataset = 2;
+ *
+ * @return The bytes for docAiDataset.
+ */
+ public com.google.protobuf.ByteString getDocAiDatasetBytes() {
+ java.lang.Object ref = docAiDataset_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ docAiDataset_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The output CDW dataset resource name.
+ *
+ *
+ * string doc_ai_dataset = 2;
+ *
+ * @param value The docAiDataset to set.
+ * @return This builder for chaining.
+ */
+ public Builder setDocAiDataset(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ docAiDataset_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The output CDW dataset resource name.
+ *
+ *
+ * string doc_ai_dataset = 2;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearDocAiDataset() {
+ docAiDataset_ = getDefaultInstance().getDocAiDataset();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The output CDW dataset resource name.
+ *
+ *
+ * string doc_ai_dataset = 2;
+ *
+ * @param value The bytes for docAiDataset to set.
+ * @return This builder for chaining.
+ */
+ public Builder setDocAiDatasetBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ docAiDataset_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object outputPath_ = "";
+ /**
+ *
+ *
+ *
+ * The output Cloud Storage folder in this pipeline.
+ *
+ *
+ * string output_path = 3;
+ *
+ * @return The outputPath.
+ */
+ public java.lang.String getOutputPath() {
+ java.lang.Object ref = outputPath_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ outputPath_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The output Cloud Storage folder in this pipeline.
+ *
+ *
+ * string output_path = 3;
+ *
+ * @return The bytes for outputPath.
+ */
+ public com.google.protobuf.ByteString getOutputPathBytes() {
+ java.lang.Object ref = outputPath_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ outputPath_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The output Cloud Storage folder in this pipeline.
+ *
+ *
+ * string output_path = 3;
+ *
+ * @param value The outputPath to set.
+ * @return This builder for chaining.
+ */
+ public Builder setOutputPath(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ outputPath_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The output Cloud Storage folder in this pipeline.
+ *
+ *
+ * string output_path = 3;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearOutputPath() {
+ outputPath_ = getDefaultInstance().getOutputPath();
+ bitField0_ = (bitField0_ & ~0x00000004);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The output Cloud Storage folder in this pipeline.
+ *
+ *
+ * string output_path = 3;
+ *
+ * @param value The bytes for outputPath to set.
+ * @return This builder for chaining.
+ */
+ public Builder setOutputPathBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ outputPath_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata)
+ private static final com.google.cloud.contentwarehouse.v1.RunPipelineMetadata
+ .ExportToCdwPipelineMetadata
+ DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE =
+ new com.google.cloud.contentwarehouse.v1.RunPipelineMetadata
+ .ExportToCdwPipelineMetadata();
+ }
+
+ public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata
+ .ExportToCdwPipelineMetadata
+ getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser PARSER =
+ new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public ExportToCdwPipelineMetadata parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ Builder builder = newBuilder();
+ try {
+ builder.mergeFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(builder.buildPartial());
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException()
+ .setUnfinishedMessage(builder.buildPartial());
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e)
+ .setUnfinishedMessage(builder.buildPartial());
+ }
+ return builder.buildPartial();
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata
+ getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+ }
+
+ public interface ProcessWithDocAiPipelineMetadataOrBuilder
+ extends
+ // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ *
+ *
+ *
+ * The input list of all the resource names of the documents to be
+ * processed.
+ *
+ *
+ * repeated string documents = 1;
+ *
+ * @return A list containing the documents.
+ */
+ java.util.List getDocumentsList();
+ /**
+ *
+ *
+ *
+ * The input list of all the resource names of the documents to be
+ * processed.
+ *
+ *
+ * repeated string documents = 1;
+ *
+ * @return The count of documents.
+ */
+ int getDocumentsCount();
+ /**
+ *
+ *
+ *
+ * The input list of all the resource names of the documents to be
+ * processed.
+ *
+ *
+ * repeated string documents = 1;
+ *
+ * @param index The index of the element to return.
+ * @return The documents at the given index.
+ */
+ java.lang.String getDocuments(int index);
+ /**
+ *
+ *
+ *
+ * The input list of all the resource names of the documents to be
+ * processed.
+ *
+ *
+ * repeated string documents = 1;
+ *
+ * @param index The index of the value to return.
+ * @return The bytes of the documents at the given index.
+ */
+ com.google.protobuf.ByteString getDocumentsBytes(int index);
+
+ /**
+ *
+ *
+ *
+ * The DocAI processor to process the documents with.
+ *
+ *
+ * .google.cloud.contentwarehouse.v1.ProcessorInfo processor_info = 2;
+ *
+ * @return Whether the processorInfo field is set.
+ */
+ boolean hasProcessorInfo();
+ /**
+ *
+ *
+ *
+ * The DocAI processor to process the documents with.
+ *
+ *
+ * .google.cloud.contentwarehouse.v1.ProcessorInfo processor_info = 2;
+ *
+ * @return The processorInfo.
+ */
+ com.google.cloud.contentwarehouse.v1.ProcessorInfo getProcessorInfo();
+ /**
+ *
+ *
+ *
+ * The DocAI processor to process the documents with.
+ *
+ *
+ * .google.cloud.contentwarehouse.v1.ProcessorInfo processor_info = 2;
+ */
+ com.google.cloud.contentwarehouse.v1.ProcessorInfoOrBuilder getProcessorInfoOrBuilder();
+ }
+ /**
+ *
+ *
+ *
+ * The metadata message for Process-with-DocAi pipeline.
+ *
+ *
+ * Protobuf type {@code
+ * google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata}
+ */
+ public static final class ProcessWithDocAiPipelineMetadata
+ extends com.google.protobuf.GeneratedMessageV3
+ implements
+ // @@protoc_insertion_point(message_implements:google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata)
+ ProcessWithDocAiPipelineMetadataOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use ProcessWithDocAiPipelineMetadata.newBuilder() to construct.
+ private ProcessWithDocAiPipelineMetadata(
+ com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+
+ private ProcessWithDocAiPipelineMetadata() {
+ documents_ = com.google.protobuf.LazyStringArrayList.emptyList();
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+ return new ProcessWithDocAiPipelineMetadata();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.contentwarehouse.v1.PipelinesProto
+ .internal_static_google_cloud_contentwarehouse_v1_RunPipelineMetadata_ProcessWithDocAiPipelineMetadata_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.contentwarehouse.v1.PipelinesProto
+ .internal_static_google_cloud_contentwarehouse_v1_RunPipelineMetadata_ProcessWithDocAiPipelineMetadata_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.contentwarehouse.v1.RunPipelineMetadata
+ .ProcessWithDocAiPipelineMetadata.class,
+ com.google.cloud.contentwarehouse.v1.RunPipelineMetadata
+ .ProcessWithDocAiPipelineMetadata.Builder.class);
+ }
+
+ public static final int DOCUMENTS_FIELD_NUMBER = 1;
+
+ @SuppressWarnings("serial")
+ private com.google.protobuf.LazyStringArrayList documents_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
+ /**
+ *
+ *
+ *
+ * The input list of all the resource names of the documents to be
+ * processed.
+ *
+ *
+ * repeated string documents = 1;
+ *
+ * @return A list containing the documents.
+ */
+ public com.google.protobuf.ProtocolStringList getDocumentsList() {
+ return documents_;
+ }
+ /**
+ *
+ *
+ *
+ * The input list of all the resource names of the documents to be
+ * processed.
+ *
+ *
+ * repeated string documents = 1;
+ *
+ * @return The count of documents.
+ */
+ public int getDocumentsCount() {
+ return documents_.size();
+ }
+ /**
+ *
+ *
+ *
+ * The input list of all the resource names of the documents to be
+ * processed.
+ *
+ *
+ * repeated string documents = 1;
+ *
+ * @param index The index of the element to return.
+ * @return The documents at the given index.
+ */
+ public java.lang.String getDocuments(int index) {
+ return documents_.get(index);
+ }
+ /**
+ *
+ *
+ *
+ * The input list of all the resource names of the documents to be
+ * processed.
+ *
+ *
+ * repeated string documents = 1;
+ *
+ * @param index The index of the value to return.
+ * @return The bytes of the documents at the given index.
+ */
+ public com.google.protobuf.ByteString getDocumentsBytes(int index) {
+ return documents_.getByteString(index);
+ }
+
+ public static final int PROCESSOR_INFO_FIELD_NUMBER = 2;
+ private com.google.cloud.contentwarehouse.v1.ProcessorInfo processorInfo_;
+ /**
+ *
+ *
+ *
+ * The DocAI processor to process the documents with.
+ *
+ *
+ * .google.cloud.contentwarehouse.v1.ProcessorInfo processor_info = 2;
+ *
+ * @return Whether the processorInfo field is set.
+ */
+ @java.lang.Override
+ public boolean hasProcessorInfo() {
+ return processorInfo_ != null;
+ }
+ /**
+ *
+ *
+ *
+ * The DocAI processor to process the documents with.
+ *
+ *
+ * .google.cloud.contentwarehouse.v1.ProcessorInfo processor_info = 2;
+ *
+ * @return The processorInfo.
+ */
+ @java.lang.Override
+ public com.google.cloud.contentwarehouse.v1.ProcessorInfo getProcessorInfo() {
+ return processorInfo_ == null
+ ? com.google.cloud.contentwarehouse.v1.ProcessorInfo.getDefaultInstance()
+ : processorInfo_;
+ }
+ /**
+ *
+ *
+ *
+ * The DocAI processor to process the documents with.
+ *
+ *
+ * .google.cloud.contentwarehouse.v1.ProcessorInfo processor_info = 2;
+ */
+ @java.lang.Override
+ public com.google.cloud.contentwarehouse.v1.ProcessorInfoOrBuilder getProcessorInfoOrBuilder() {
+ return processorInfo_ == null
+ ? com.google.cloud.contentwarehouse.v1.ProcessorInfo.getDefaultInstance()
+ : processorInfo_;
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ for (int i = 0; i < documents_.size(); i++) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, documents_.getRaw(i));
+ }
+ if (processorInfo_ != null) {
+ output.writeMessage(2, getProcessorInfo());
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ {
+ int dataSize = 0;
+ for (int i = 0; i < documents_.size(); i++) {
+ dataSize += computeStringSizeNoTag(documents_.getRaw(i));
+ }
+ size += dataSize;
+ size += 1 * getDocumentsList().size();
+ }
+ if (processorInfo_ != null) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getProcessorInfo());
+ }
+ 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.contentwarehouse.v1.RunPipelineMetadata
+ .ProcessWithDocAiPipelineMetadata)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata
+ other =
+ (com.google.cloud.contentwarehouse.v1.RunPipelineMetadata
+ .ProcessWithDocAiPipelineMetadata)
+ obj;
+
+ if (!getDocumentsList().equals(other.getDocumentsList())) return false;
+ if (hasProcessorInfo() != other.hasProcessorInfo()) return false;
+ if (hasProcessorInfo()) {
+ if (!getProcessorInfo().equals(other.getProcessorInfo())) 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 (getDocumentsCount() > 0) {
+ hash = (37 * hash) + DOCUMENTS_FIELD_NUMBER;
+ hash = (53 * hash) + getDocumentsList().hashCode();
+ }
+ if (hasProcessorInfo()) {
+ hash = (37 * hash) + PROCESSOR_INFO_FIELD_NUMBER;
+ hash = (53 * hash) + getProcessorInfo().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata
+ .ProcessWithDocAiPipelineMetadata
+ parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata
+ .ProcessWithDocAiPipelineMetadata
+ 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.contentwarehouse.v1.RunPipelineMetadata
+ .ProcessWithDocAiPipelineMetadata
+ parseFrom(com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata
+ .ProcessWithDocAiPipelineMetadata
+ 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.contentwarehouse.v1.RunPipelineMetadata
+ .ProcessWithDocAiPipelineMetadata
+ parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata
+ .ProcessWithDocAiPipelineMetadata
+ parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata
+ .ProcessWithDocAiPipelineMetadata
+ parseFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata
+ .ProcessWithDocAiPipelineMetadata
+ 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.contentwarehouse.v1.RunPipelineMetadata
+ .ProcessWithDocAiPipelineMetadata
+ parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata
+ .ProcessWithDocAiPipelineMetadata
+ 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.contentwarehouse.v1.RunPipelineMetadata
+ .ProcessWithDocAiPipelineMetadata
+ parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata
+ .ProcessWithDocAiPipelineMetadata
+ 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.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata
+ 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 message for Process-with-DocAi pipeline.
+ *
+ *
+ * Protobuf type {@code
+ * google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata}
+ */
+ public static final class Builder
+ extends com.google.protobuf.GeneratedMessageV3.Builder
+ implements
+ // @@protoc_insertion_point(builder_implements:google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata)
+ com.google.cloud.contentwarehouse.v1.RunPipelineMetadata
+ .ProcessWithDocAiPipelineMetadataOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.contentwarehouse.v1.PipelinesProto
+ .internal_static_google_cloud_contentwarehouse_v1_RunPipelineMetadata_ProcessWithDocAiPipelineMetadata_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.contentwarehouse.v1.PipelinesProto
+ .internal_static_google_cloud_contentwarehouse_v1_RunPipelineMetadata_ProcessWithDocAiPipelineMetadata_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.contentwarehouse.v1.RunPipelineMetadata
+ .ProcessWithDocAiPipelineMetadata.class,
+ com.google.cloud.contentwarehouse.v1.RunPipelineMetadata
+ .ProcessWithDocAiPipelineMetadata.Builder.class);
+ }
+
+ // Construct using
+ // com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata.newBuilder()
+ private Builder() {}
+
+ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ }
+
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ documents_ = com.google.protobuf.LazyStringArrayList.emptyList();
+ processorInfo_ = null;
+ if (processorInfoBuilder_ != null) {
+ processorInfoBuilder_.dispose();
+ processorInfoBuilder_ = null;
+ }
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+ return com.google.cloud.contentwarehouse.v1.PipelinesProto
+ .internal_static_google_cloud_contentwarehouse_v1_RunPipelineMetadata_ProcessWithDocAiPipelineMetadata_descriptor;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.contentwarehouse.v1.RunPipelineMetadata
+ .ProcessWithDocAiPipelineMetadata
+ getDefaultInstanceForType() {
+ return com.google.cloud.contentwarehouse.v1.RunPipelineMetadata
+ .ProcessWithDocAiPipelineMetadata.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public com.google.cloud.contentwarehouse.v1.RunPipelineMetadata
+ .ProcessWithDocAiPipelineMetadata
+ build() {
+ com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata
+ result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.contentwarehouse.v1.RunPipelineMetadata
+ .ProcessWithDocAiPipelineMetadata
+ buildPartial() {
+ com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata
+ result =
+ new com.google.cloud.contentwarehouse.v1.RunPipelineMetadata
+ .ProcessWithDocAiPipelineMetadata(this);
+ if (bitField0_ != 0) {
+ buildPartial0(result);
+ }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartial0(
+ com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata
+ result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ documents_.makeImmutable();
+ result.documents_ = documents_;
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.processorInfo_ =
+ processorInfoBuilder_ == null ? processorInfo_ : processorInfoBuilder_.build();
+ }
+ }
+
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+ return super.setField(field, value);
+ }
+
+ @java.lang.Override
+ public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+
+ @java.lang.Override
+ public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index,
+ java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+ return super.addRepeatedField(field, value);
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other
+ instanceof
+ com.google.cloud.contentwarehouse.v1.RunPipelineMetadata
+ .ProcessWithDocAiPipelineMetadata) {
+ return mergeFrom(
+ (com.google.cloud.contentwarehouse.v1.RunPipelineMetadata
+ .ProcessWithDocAiPipelineMetadata)
+ other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(
+ com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata
+ other) {
+ if (other
+ == com.google.cloud.contentwarehouse.v1.RunPipelineMetadata
+ .ProcessWithDocAiPipelineMetadata.getDefaultInstance()) return this;
+ if (!other.documents_.isEmpty()) {
+ if (documents_.isEmpty()) {
+ documents_ = other.documents_;
+ bitField0_ |= 0x00000001;
+ } else {
+ ensureDocumentsIsMutable();
+ documents_.addAll(other.documents_);
+ }
+ onChanged();
+ }
+ if (other.hasProcessorInfo()) {
+ mergeProcessorInfo(other.getProcessorInfo());
+ }
+ this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+ ensureDocumentsIsMutable();
+ documents_.add(s);
+ break;
+ } // case 10
+ case 18:
+ {
+ input.readMessage(getProcessorInfoFieldBuilder().getBuilder(), extensionRegistry);
+ bitField0_ |= 0x00000002;
+ break;
+ } // case 18
+ default:
+ {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.unwrapIOException();
+ } finally {
+ onChanged();
+ } // finally
+ return this;
+ }
+
+ private int bitField0_;
+
+ private com.google.protobuf.LazyStringArrayList documents_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
+
+ private void ensureDocumentsIsMutable() {
+ if (!documents_.isModifiable()) {
+ documents_ = new com.google.protobuf.LazyStringArrayList(documents_);
+ }
+ bitField0_ |= 0x00000001;
+ }
+ /**
+ *
+ *
+ *
+ * The input list of all the resource names of the documents to be
+ * processed.
+ *
+ *
+ * repeated string documents = 1;
+ *
+ * @return A list containing the documents.
+ */
+ public com.google.protobuf.ProtocolStringList getDocumentsList() {
+ documents_.makeImmutable();
+ return documents_;
+ }
+ /**
+ *
+ *
+ *
+ * The input list of all the resource names of the documents to be
+ * processed.
+ *
+ *
+ * repeated string documents = 1;
+ *
+ * @return The count of documents.
+ */
+ public int getDocumentsCount() {
+ return documents_.size();
+ }
+ /**
+ *
+ *
+ *
+ * The input list of all the resource names of the documents to be
+ * processed.
+ *
+ *
+ * repeated string documents = 1;
+ *
+ * @param index The index of the element to return.
+ * @return The documents at the given index.
+ */
+ public java.lang.String getDocuments(int index) {
+ return documents_.get(index);
+ }
+ /**
+ *
+ *
+ *
+ * The input list of all the resource names of the documents to be
+ * processed.
+ *
+ *
+ * repeated string documents = 1;
+ *
+ * @param index The index of the value to return.
+ * @return The bytes of the documents at the given index.
+ */
+ public com.google.protobuf.ByteString getDocumentsBytes(int index) {
+ return documents_.getByteString(index);
+ }
+ /**
+ *
+ *
+ *
+ * The input list of all the resource names of the documents to be
+ * processed.
+ *
+ *
+ * repeated string documents = 1;
+ *
+ * @param index The index to set the value at.
+ * @param value The documents to set.
+ * @return This builder for chaining.
+ */
+ public Builder setDocuments(int index, java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureDocumentsIsMutable();
+ documents_.set(index, value);
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The input list of all the resource names of the documents to be
+ * processed.
+ *
+ *
+ * repeated string documents = 1;
+ *
+ * @param value The documents to add.
+ * @return This builder for chaining.
+ */
+ public Builder addDocuments(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureDocumentsIsMutable();
+ documents_.add(value);
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The input list of all the resource names of the documents to be
+ * processed.
+ *
+ *
+ * repeated string documents = 1;
+ *
+ * @param values The documents to add.
+ * @return This builder for chaining.
+ */
+ public Builder addAllDocuments(java.lang.Iterable values) {
+ ensureDocumentsIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, documents_);
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The input list of all the resource names of the documents to be
+ * processed.
+ *
+ *
+ * repeated string documents = 1;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearDocuments() {
+ documents_ = com.google.protobuf.LazyStringArrayList.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ ;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The input list of all the resource names of the documents to be
+ * processed.
+ *
+ *
+ * repeated string documents = 1;
+ *
+ * @param value The bytes of the documents to add.
+ * @return This builder for chaining.
+ */
+ public Builder addDocumentsBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ ensureDocumentsIsMutable();
+ documents_.add(value);
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ private com.google.cloud.contentwarehouse.v1.ProcessorInfo processorInfo_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.contentwarehouse.v1.ProcessorInfo,
+ com.google.cloud.contentwarehouse.v1.ProcessorInfo.Builder,
+ com.google.cloud.contentwarehouse.v1.ProcessorInfoOrBuilder>
+ processorInfoBuilder_;
+ /**
+ *
+ *
+ *
+ * The DocAI processor to process the documents with.
+ *
+ *
+ * .google.cloud.contentwarehouse.v1.ProcessorInfo processor_info = 2;
+ *
+ * @return Whether the processorInfo field is set.
+ */
+ public boolean hasProcessorInfo() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+ /**
+ *
+ *
+ *
+ * The DocAI processor to process the documents with.
+ *
+ *
+ * .google.cloud.contentwarehouse.v1.ProcessorInfo processor_info = 2;
+ *
+ * @return The processorInfo.
+ */
+ public com.google.cloud.contentwarehouse.v1.ProcessorInfo getProcessorInfo() {
+ if (processorInfoBuilder_ == null) {
+ return processorInfo_ == null
+ ? com.google.cloud.contentwarehouse.v1.ProcessorInfo.getDefaultInstance()
+ : processorInfo_;
+ } else {
+ return processorInfoBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The DocAI processor to process the documents with.
+ *
+ *
+ * .google.cloud.contentwarehouse.v1.ProcessorInfo processor_info = 2;
+ */
+ public Builder setProcessorInfo(com.google.cloud.contentwarehouse.v1.ProcessorInfo value) {
+ if (processorInfoBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ processorInfo_ = value;
+ } else {
+ processorInfoBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The DocAI processor to process the documents with.
+ *
+ *
+ * .google.cloud.contentwarehouse.v1.ProcessorInfo processor_info = 2;
+ */
+ public Builder setProcessorInfo(
+ com.google.cloud.contentwarehouse.v1.ProcessorInfo.Builder builderForValue) {
+ if (processorInfoBuilder_ == null) {
+ processorInfo_ = builderForValue.build();
+ } else {
+ processorInfoBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The DocAI processor to process the documents with.
+ *
+ *
+ * .google.cloud.contentwarehouse.v1.ProcessorInfo processor_info = 2;
+ */
+ public Builder mergeProcessorInfo(com.google.cloud.contentwarehouse.v1.ProcessorInfo value) {
+ if (processorInfoBuilder_ == null) {
+ if (((bitField0_ & 0x00000002) != 0)
+ && processorInfo_ != null
+ && processorInfo_
+ != com.google.cloud.contentwarehouse.v1.ProcessorInfo.getDefaultInstance()) {
+ getProcessorInfoBuilder().mergeFrom(value);
+ } else {
+ processorInfo_ = value;
+ }
+ } else {
+ processorInfoBuilder_.mergeFrom(value);
+ }
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The DocAI processor to process the documents with.
+ *
+ *
+ * .google.cloud.contentwarehouse.v1.ProcessorInfo processor_info = 2;
+ */
+ public Builder clearProcessorInfo() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ processorInfo_ = null;
+ if (processorInfoBuilder_ != null) {
+ processorInfoBuilder_.dispose();
+ processorInfoBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The DocAI processor to process the documents with.
+ *
+ *
+ * .google.cloud.contentwarehouse.v1.ProcessorInfo processor_info = 2;
+ */
+ public com.google.cloud.contentwarehouse.v1.ProcessorInfo.Builder getProcessorInfoBuilder() {
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return getProcessorInfoFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ *
+ * The DocAI processor to process the documents with.
+ *
+ *
+ * .google.cloud.contentwarehouse.v1.ProcessorInfo processor_info = 2;
+ */
+ public com.google.cloud.contentwarehouse.v1.ProcessorInfoOrBuilder
+ getProcessorInfoOrBuilder() {
+ if (processorInfoBuilder_ != null) {
+ return processorInfoBuilder_.getMessageOrBuilder();
+ } else {
+ return processorInfo_ == null
+ ? com.google.cloud.contentwarehouse.v1.ProcessorInfo.getDefaultInstance()
+ : processorInfo_;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The DocAI processor to process the documents with.
+ *
+ *
+ * .google.cloud.contentwarehouse.v1.ProcessorInfo processor_info = 2;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.contentwarehouse.v1.ProcessorInfo,
+ com.google.cloud.contentwarehouse.v1.ProcessorInfo.Builder,
+ com.google.cloud.contentwarehouse.v1.ProcessorInfoOrBuilder>
+ getProcessorInfoFieldBuilder() {
+ if (processorInfoBuilder_ == null) {
+ processorInfoBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.contentwarehouse.v1.ProcessorInfo,
+ com.google.cloud.contentwarehouse.v1.ProcessorInfo.Builder,
+ com.google.cloud.contentwarehouse.v1.ProcessorInfoOrBuilder>(
+ getProcessorInfo(), getParentForChildren(), isClean());
+ processorInfo_ = null;
+ }
+ return processorInfoBuilder_;
+ }
+
+ @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.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata)
+ private static final com.google.cloud.contentwarehouse.v1.RunPipelineMetadata
+ .ProcessWithDocAiPipelineMetadata
+ DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE =
+ new com.google.cloud.contentwarehouse.v1.RunPipelineMetadata
+ .ProcessWithDocAiPipelineMetadata();
+ }
+
+ public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata
+ .ProcessWithDocAiPipelineMetadata
+ getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser PARSER =
+ new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public ProcessWithDocAiPipelineMetadata parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ Builder builder = newBuilder();
+ try {
+ builder.mergeFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(builder.buildPartial());
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException()
+ .setUnfinishedMessage(builder.buildPartial());
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e)
+ .setUnfinishedMessage(builder.buildPartial());
+ }
+ return builder.buildPartial();
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata
+ getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+ }
+
+ public interface IndividualDocumentStatusOrBuilder
+ extends
+ // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ *
+ *
+ *
+ * Document identifier of an existing document.
+ *
+ *
+ * string document_id = 1;
+ *
+ * @return The documentId.
+ */
+ java.lang.String getDocumentId();
+ /**
+ *
+ *
+ *
+ * Document identifier of an existing document.
+ *
+ *
+ * string document_id = 1;
+ *
+ * @return The bytes for documentId.
+ */
+ com.google.protobuf.ByteString getDocumentIdBytes();
+
+ /**
+ *
+ *
+ *
+ * The status processing the document.
+ *
+ *
+ * .google.rpc.Status status = 2;
+ *
+ * @return Whether the status field is set.
+ */
+ boolean hasStatus();
+ /**
+ *
+ *
+ *
+ * The status processing the document.
+ *
+ *
+ * .google.rpc.Status status = 2;
+ *
+ * @return The status.
+ */
+ com.google.rpc.Status getStatus();
+ /**
+ *
+ *
+ *
+ * The status processing the document.
+ *
+ *
+ * .google.rpc.Status status = 2;
+ */
+ com.google.rpc.StatusOrBuilder getStatusOrBuilder();
+ }
+ /**
+ *
+ *
+ *
+ * The status of processing a document.
+ *
+ *
+ * Protobuf type {@code
+ * google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus}
+ */
+ public static final class IndividualDocumentStatus extends com.google.protobuf.GeneratedMessageV3
+ implements
+ // @@protoc_insertion_point(message_implements:google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus)
+ IndividualDocumentStatusOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use IndividualDocumentStatus.newBuilder() to construct.
+ private IndividualDocumentStatus(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+
+ private IndividualDocumentStatus() {
+ documentId_ = "";
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+ return new IndividualDocumentStatus();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.contentwarehouse.v1.PipelinesProto
+ .internal_static_google_cloud_contentwarehouse_v1_RunPipelineMetadata_IndividualDocumentStatus_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.contentwarehouse.v1.PipelinesProto
+ .internal_static_google_cloud_contentwarehouse_v1_RunPipelineMetadata_IndividualDocumentStatus_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus
+ .class,
+ com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus
+ .Builder.class);
+ }
+
+ public static final int DOCUMENT_ID_FIELD_NUMBER = 1;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object documentId_ = "";
+ /**
+ *
+ *
+ *
+ * Document identifier of an existing document.
+ *
+ *
+ * string document_id = 1;
+ *
+ * @return The documentId.
+ */
+ @java.lang.Override
+ public java.lang.String getDocumentId() {
+ java.lang.Object ref = documentId_;
+ 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();
+ documentId_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Document identifier of an existing document.
+ *
+ *
+ * string document_id = 1;
+ *
+ * @return The bytes for documentId.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getDocumentIdBytes() {
+ java.lang.Object ref = documentId_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ documentId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int STATUS_FIELD_NUMBER = 2;
+ private com.google.rpc.Status status_;
+ /**
+ *
+ *
+ *
+ * The status processing the document.
+ *
+ *
+ * .google.rpc.Status status = 2;
+ *
+ * @return Whether the status field is set.
+ */
+ @java.lang.Override
+ public boolean hasStatus() {
+ return status_ != null;
+ }
+ /**
+ *
+ *
+ *
+ * The status processing the document.
+ *
+ *
+ * .google.rpc.Status status = 2;
+ *
+ * @return The status.
+ */
+ @java.lang.Override
+ public com.google.rpc.Status getStatus() {
+ return status_ == null ? com.google.rpc.Status.getDefaultInstance() : status_;
+ }
+ /**
+ *
+ *
+ *
+ * The status processing the document.
+ *
+ *
+ * .google.rpc.Status status = 2;
+ */
+ @java.lang.Override
+ public com.google.rpc.StatusOrBuilder getStatusOrBuilder() {
+ return status_ == null ? com.google.rpc.Status.getDefaultInstance() : status_;
+ }
+
+ 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(documentId_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, documentId_);
+ }
+ if (status_ != null) {
+ output.writeMessage(2, getStatus());
+ }
+ 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(documentId_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, documentId_);
+ }
+ if (status_ != null) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getStatus());
+ }
+ 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.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus other =
+ (com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus) obj;
+
+ if (!getDocumentId().equals(other.getDocumentId())) return false;
+ if (hasStatus() != other.hasStatus()) return false;
+ if (hasStatus()) {
+ if (!getStatus().equals(other.getStatus())) 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) + DOCUMENT_ID_FIELD_NUMBER;
+ hash = (53 * hash) + getDocumentId().hashCode();
+ if (hasStatus()) {
+ hash = (37 * hash) + STATUS_FIELD_NUMBER;
+ hash = (53 * hash) + getStatus().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus
+ parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus
+ 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.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus
+ parseFrom(com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus
+ 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.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus
+ parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus
+ parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus
+ parseFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus
+ 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.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus
+ parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus
+ 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.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus
+ parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus
+ 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.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus
+ 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 status of processing a document.
+ *
+ *
+ * Protobuf type {@code
+ * google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus}
+ */
+ public static final class Builder
+ extends com.google.protobuf.GeneratedMessageV3.Builder
+ implements
+ // @@protoc_insertion_point(builder_implements:google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus)
+ com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatusOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.contentwarehouse.v1.PipelinesProto
+ .internal_static_google_cloud_contentwarehouse_v1_RunPipelineMetadata_IndividualDocumentStatus_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.contentwarehouse.v1.PipelinesProto
+ .internal_static_google_cloud_contentwarehouse_v1_RunPipelineMetadata_IndividualDocumentStatus_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus
+ .class,
+ com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus
+ .Builder.class);
+ }
+
+ // Construct using
+ // com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus.newBuilder()
+ private Builder() {}
+
+ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ }
+
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ documentId_ = "";
+ status_ = null;
+ if (statusBuilder_ != null) {
+ statusBuilder_.dispose();
+ statusBuilder_ = null;
+ }
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+ return com.google.cloud.contentwarehouse.v1.PipelinesProto
+ .internal_static_google_cloud_contentwarehouse_v1_RunPipelineMetadata_IndividualDocumentStatus_descriptor;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus
+ getDefaultInstanceForType() {
+ return com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus
+ .getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus
+ build() {
+ com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus result =
+ buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus
+ buildPartial() {
+ com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus result =
+ new com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus(
+ this);
+ if (bitField0_ != 0) {
+ buildPartial0(result);
+ }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartial0(
+ com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus
+ result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.documentId_ = documentId_;
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.status_ = statusBuilder_ == null ? status_ : statusBuilder_.build();
+ }
+ }
+
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+ return super.setField(field, value);
+ }
+
+ @java.lang.Override
+ public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+
+ @java.lang.Override
+ public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index,
+ java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+ return super.addRepeatedField(field, value);
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other
+ instanceof
+ com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus) {
+ return mergeFrom(
+ (com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus)
+ other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(
+ com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus other) {
+ if (other
+ == com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus
+ .getDefaultInstance()) return this;
+ if (!other.getDocumentId().isEmpty()) {
+ documentId_ = other.documentId_;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ }
+ if (other.hasStatus()) {
+ mergeStatus(other.getStatus());
+ }
+ this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10:
+ {
+ documentId_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000001;
+ break;
+ } // case 10
+ case 18:
+ {
+ input.readMessage(getStatusFieldBuilder().getBuilder(), extensionRegistry);
+ bitField0_ |= 0x00000002;
+ break;
+ } // case 18
+ default:
+ {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.unwrapIOException();
+ } finally {
+ onChanged();
+ } // finally
+ return this;
+ }
+
+ private int bitField0_;
+
+ private java.lang.Object documentId_ = "";
+ /**
+ *
+ *
+ *
+ * Document identifier of an existing document.
+ *
+ *
+ * string document_id = 1;
+ *
+ * @return The documentId.
+ */
+ public java.lang.String getDocumentId() {
+ java.lang.Object ref = documentId_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ documentId_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Document identifier of an existing document.
+ *
+ *
+ * string document_id = 1;
+ *
+ * @return The bytes for documentId.
+ */
+ public com.google.protobuf.ByteString getDocumentIdBytes() {
+ java.lang.Object ref = documentId_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ documentId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Document identifier of an existing document.
+ *
+ *
+ * string document_id = 1;
+ *
+ * @param value The documentId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setDocumentId(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ documentId_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Document identifier of an existing document.
+ *
+ *
+ * string document_id = 1;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearDocumentId() {
+ documentId_ = getDefaultInstance().getDocumentId();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Document identifier of an existing document.
+ *
+ *
+ * string document_id = 1;
+ *
+ * @param value The bytes for documentId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setDocumentIdBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ documentId_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ private com.google.rpc.Status status_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>
+ statusBuilder_;
+ /**
+ *
+ *
+ *
+ * The status processing the document.
+ *
+ *
+ * .google.rpc.Status status = 2;
+ *
+ * @return Whether the status field is set.
+ */
+ public boolean hasStatus() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+ /**
+ *
+ *
+ *
+ * The status processing the document.
+ *
+ *
+ * .google.rpc.Status status = 2;
+ *
+ * @return The status.
+ */
+ public com.google.rpc.Status getStatus() {
+ if (statusBuilder_ == null) {
+ return status_ == null ? com.google.rpc.Status.getDefaultInstance() : status_;
+ } else {
+ return statusBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The status processing the document.
+ *
+ *
+ * .google.rpc.Status status = 2;
+ */
+ public Builder setStatus(com.google.rpc.Status value) {
+ if (statusBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ status_ = value;
+ } else {
+ statusBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The status processing the document.
+ *
+ *
+ * .google.rpc.Status status = 2;
+ */
+ public Builder setStatus(com.google.rpc.Status.Builder builderForValue) {
+ if (statusBuilder_ == null) {
+ status_ = builderForValue.build();
+ } else {
+ statusBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The status processing the document.
+ *
+ *
+ * .google.rpc.Status status = 2;
+ */
+ public Builder mergeStatus(com.google.rpc.Status value) {
+ if (statusBuilder_ == null) {
+ if (((bitField0_ & 0x00000002) != 0)
+ && status_ != null
+ && status_ != com.google.rpc.Status.getDefaultInstance()) {
+ getStatusBuilder().mergeFrom(value);
+ } else {
+ status_ = value;
+ }
+ } else {
+ statusBuilder_.mergeFrom(value);
+ }
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The status processing the document.
+ *
+ *
+ * .google.rpc.Status status = 2;
+ */
+ public Builder clearStatus() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ status_ = null;
+ if (statusBuilder_ != null) {
+ statusBuilder_.dispose();
+ statusBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The status processing the document.
+ *
+ *
+ * .google.rpc.Status status = 2;
+ */
+ public com.google.rpc.Status.Builder getStatusBuilder() {
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return getStatusFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ *
+ * The status processing the document.
+ *
+ *
+ * .google.rpc.Status status = 2;
+ */
+ public com.google.rpc.StatusOrBuilder getStatusOrBuilder() {
+ if (statusBuilder_ != null) {
+ return statusBuilder_.getMessageOrBuilder();
+ } else {
+ return status_ == null ? com.google.rpc.Status.getDefaultInstance() : status_;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The status processing the document.
+ *
+ *
+ * .google.rpc.Status status = 2;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>
+ getStatusFieldBuilder() {
+ if (statusBuilder_ == null) {
+ statusBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.rpc.Status,
+ com.google.rpc.Status.Builder,
+ com.google.rpc.StatusOrBuilder>(getStatus(), getParentForChildren(), isClean());
+ status_ = null;
+ }
+ return statusBuilder_;
+ }
+
+ @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.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus)
+ private static final com.google.cloud.contentwarehouse.v1.RunPipelineMetadata
+ .IndividualDocumentStatus
+ DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE =
+ new com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus();
+ }
+
+ public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus
+ getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser PARSER =
+ new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public IndividualDocumentStatus parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ Builder builder = newBuilder();
+ try {
+ builder.mergeFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(builder.buildPartial());
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException()
+ .setUnfinishedMessage(builder.buildPartial());
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e)
+ .setUnfinishedMessage(builder.buildPartial());
+ }
+ return builder.buildPartial();
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus
+ getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+ }
+
+ private int pipelineMetadataCase_ = 0;
+
+ @SuppressWarnings("serial")
+ private java.lang.Object pipelineMetadata_;
+
+ public enum PipelineMetadataCase
+ implements
+ com.google.protobuf.Internal.EnumLite,
+ com.google.protobuf.AbstractMessage.InternalOneOfEnum {
+ GCS_INGEST_PIPELINE_METADATA(4),
+ EXPORT_TO_CDW_PIPELINE_METADATA(6),
+ PROCESS_WITH_DOC_AI_PIPELINE_METADATA(7),
+ PIPELINEMETADATA_NOT_SET(0);
+ private final int value;
+
+ private PipelineMetadataCase(int value) {
+ this.value = value;
+ }
+ /**
+ * @param value The number of the enum to look for.
+ * @return The enum associated with the given number.
+ * @deprecated Use {@link #forNumber(int)} instead.
+ */
+ @java.lang.Deprecated
+ public static PipelineMetadataCase valueOf(int value) {
+ return forNumber(value);
+ }
+
+ public static PipelineMetadataCase forNumber(int value) {
+ switch (value) {
+ case 4:
+ return GCS_INGEST_PIPELINE_METADATA;
+ case 6:
+ return EXPORT_TO_CDW_PIPELINE_METADATA;
+ case 7:
+ return PROCESS_WITH_DOC_AI_PIPELINE_METADATA;
+ case 0:
+ return PIPELINEMETADATA_NOT_SET;
+ default:
+ return null;
+ }
+ }
+
+ public int getNumber() {
+ return this.value;
+ }
+ };
+
+ public PipelineMetadataCase getPipelineMetadataCase() {
+ return PipelineMetadataCase.forNumber(pipelineMetadataCase_);
+ }
+
+ public static final int TOTAL_FILE_COUNT_FIELD_NUMBER = 1;
+ private int totalFileCount_ = 0;
+ /**
+ *
+ *
+ *
+ * Number of files that were processed by the pipeline.
+ *
+ *
+ * int32 total_file_count = 1;
+ *
+ * @return The totalFileCount.
+ */
+ @java.lang.Override
+ public int getTotalFileCount() {
+ return totalFileCount_;
+ }
+
+ public static final int FAILED_FILE_COUNT_FIELD_NUMBER = 2;
+ private int failedFileCount_ = 0;
+ /**
+ *
+ *
+ *
+ * Number of files that have failed at some point in the pipeline.
+ *
+ *
+ * int32 failed_file_count = 2;
+ *
+ * @return The failedFileCount.
+ */
+ @java.lang.Override
+ public int getFailedFileCount() {
+ return failedFileCount_;
+ }
+
+ public static final int USER_INFO_FIELD_NUMBER = 3;
+ private com.google.cloud.contentwarehouse.v1.UserInfo userInfo_;
+ /**
+ *
+ *
+ *
+ * User unique identification and groups information.
+ *
+ *
+ * .google.cloud.contentwarehouse.v1.UserInfo user_info = 3;
+ *
+ * @return Whether the userInfo field is set.
+ */
+ @java.lang.Override
+ public boolean hasUserInfo() {
+ return userInfo_ != null;
+ }
+ /**
+ *
+ *
+ *
+ * User unique identification and groups information.
+ *
+ *
+ * .google.cloud.contentwarehouse.v1.UserInfo user_info = 3;
+ *
+ * @return The userInfo.
+ */
+ @java.lang.Override
+ public com.google.cloud.contentwarehouse.v1.UserInfo getUserInfo() {
+ return userInfo_ == null
+ ? com.google.cloud.contentwarehouse.v1.UserInfo.getDefaultInstance()
+ : userInfo_;
+ }
+ /**
+ *
+ *
+ *
+ * User unique identification and groups information.
+ *
+ *
+ * .google.cloud.contentwarehouse.v1.UserInfo user_info = 3;
+ */
+ @java.lang.Override
+ public com.google.cloud.contentwarehouse.v1.UserInfoOrBuilder getUserInfoOrBuilder() {
+ return userInfo_ == null
+ ? com.google.cloud.contentwarehouse.v1.UserInfo.getDefaultInstance()
+ : userInfo_;
+ }
+
+ public static final int GCS_INGEST_PIPELINE_METADATA_FIELD_NUMBER = 4;
+ /**
+ *
+ *
+ *
+ * The pipeline metadata for GcsIngest pipeline.
+ *
+ *
+ *
+ * .google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata gcs_ingest_pipeline_metadata = 4;
+ *
+ *
+ * @return Whether the gcsIngestPipelineMetadata field is set.
+ */
+ @java.lang.Override
+ public boolean hasGcsIngestPipelineMetadata() {
+ return pipelineMetadataCase_ == 4;
+ }
+ /**
+ *
+ *
+ *
+ * The pipeline metadata for GcsIngest pipeline.
+ *
+ *
+ *
+ * .google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata gcs_ingest_pipeline_metadata = 4;
+ *
+ *
+ * @return The gcsIngestPipelineMetadata.
+ */
+ @java.lang.Override
+ public com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata
+ getGcsIngestPipelineMetadata() {
+ if (pipelineMetadataCase_ == 4) {
+ return (com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata)
+ pipelineMetadata_;
+ }
+ return com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata
+ .getDefaultInstance();
+ }
+ /**
+ *
+ *
+ *
+ * The pipeline metadata for GcsIngest pipeline.
+ *
+ *
+ *
+ * .google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata gcs_ingest_pipeline_metadata = 4;
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadataOrBuilder
+ getGcsIngestPipelineMetadataOrBuilder() {
+ if (pipelineMetadataCase_ == 4) {
+ return (com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata)
+ pipelineMetadata_;
+ }
+ return com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata
+ .getDefaultInstance();
+ }
+
+ public static final int EXPORT_TO_CDW_PIPELINE_METADATA_FIELD_NUMBER = 6;
+ /**
+ *
+ *
+ *
+ * The pipeline metadata for Export-to-CDW pipeline.
+ *
+ *
+ *
+ * .google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata export_to_cdw_pipeline_metadata = 6;
+ *
+ *
+ * @return Whether the exportToCdwPipelineMetadata field is set.
+ */
+ @java.lang.Override
+ public boolean hasExportToCdwPipelineMetadata() {
+ return pipelineMetadataCase_ == 6;
+ }
+ /**
+ *
+ *
+ *
+ * The pipeline metadata for Export-to-CDW pipeline.
+ *
+ *
+ *
+ * .google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata export_to_cdw_pipeline_metadata = 6;
+ *
+ *
+ * @return The exportToCdwPipelineMetadata.
+ */
+ @java.lang.Override
+ public com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata
+ getExportToCdwPipelineMetadata() {
+ if (pipelineMetadataCase_ == 6) {
+ return (com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata)
+ pipelineMetadata_;
+ }
+ return com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata
+ .getDefaultInstance();
+ }
+ /**
+ *
+ *
+ *
+ * The pipeline metadata for Export-to-CDW pipeline.
+ *
+ *
+ *
+ * .google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata export_to_cdw_pipeline_metadata = 6;
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.contentwarehouse.v1.RunPipelineMetadata
+ .ExportToCdwPipelineMetadataOrBuilder
+ getExportToCdwPipelineMetadataOrBuilder() {
+ if (pipelineMetadataCase_ == 6) {
+ return (com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata)
+ pipelineMetadata_;
+ }
+ return com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata
+ .getDefaultInstance();
+ }
+
+ public static final int PROCESS_WITH_DOC_AI_PIPELINE_METADATA_FIELD_NUMBER = 7;
+ /**
+ *
+ *
+ *
+ * The pipeline metadata for Process-with-DocAi pipeline.
+ *
+ *
+ *
+ * .google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata process_with_doc_ai_pipeline_metadata = 7;
+ *
+ *
+ * @return Whether the processWithDocAiPipelineMetadata field is set.
+ */
+ @java.lang.Override
+ public boolean hasProcessWithDocAiPipelineMetadata() {
+ return pipelineMetadataCase_ == 7;
+ }
+ /**
+ *
+ *
+ *
+ * The pipeline metadata for Process-with-DocAi pipeline.
+ *
+ *
+ *
+ * .google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata process_with_doc_ai_pipeline_metadata = 7;
+ *
+ *
+ * @return The processWithDocAiPipelineMetadata.
+ */
+ @java.lang.Override
+ public com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata
+ getProcessWithDocAiPipelineMetadata() {
+ if (pipelineMetadataCase_ == 7) {
+ return (com.google.cloud.contentwarehouse.v1.RunPipelineMetadata
+ .ProcessWithDocAiPipelineMetadata)
+ pipelineMetadata_;
+ }
+ return com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata
+ .getDefaultInstance();
+ }
+ /**
+ *
+ *
+ *
+ * The pipeline metadata for Process-with-DocAi pipeline.
+ *
+ *
+ *
+ * .google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata process_with_doc_ai_pipeline_metadata = 7;
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.contentwarehouse.v1.RunPipelineMetadata
+ .ProcessWithDocAiPipelineMetadataOrBuilder
+ getProcessWithDocAiPipelineMetadataOrBuilder() {
+ if (pipelineMetadataCase_ == 7) {
+ return (com.google.cloud.contentwarehouse.v1.RunPipelineMetadata
+ .ProcessWithDocAiPipelineMetadata)
+ pipelineMetadata_;
+ }
+ return com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata
+ .getDefaultInstance();
+ }
+
+ public static final int INDIVIDUAL_DOCUMENT_STATUSES_FIELD_NUMBER = 5;
+
+ @SuppressWarnings("serial")
+ private java.util.List<
+ com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus>
+ individualDocumentStatuses_;
+ /**
+ *
+ *
+ *
+ * The list of response details of each document.
+ *
+ *
+ *
+ * repeated .google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus individual_document_statuses = 5;
+ *
+ */
+ @java.lang.Override
+ public java.util.List<
+ com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus>
+ getIndividualDocumentStatusesList() {
+ return individualDocumentStatuses_;
+ }
+ /**
+ *
+ *
+ *
+ * The list of response details of each document.
+ *
+ *
+ *
+ * repeated .google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus individual_document_statuses = 5;
+ *
+ */
+ @java.lang.Override
+ public java.util.List<
+ ? extends
+ com.google.cloud.contentwarehouse.v1.RunPipelineMetadata
+ .IndividualDocumentStatusOrBuilder>
+ getIndividualDocumentStatusesOrBuilderList() {
+ return individualDocumentStatuses_;
+ }
+ /**
+ *
+ *
+ *
+ * The list of response details of each document.
+ *
+ *
+ *
+ * repeated .google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus individual_document_statuses = 5;
+ *
+ */
+ @java.lang.Override
+ public int getIndividualDocumentStatusesCount() {
+ return individualDocumentStatuses_.size();
+ }
+ /**
+ *
+ *
+ *
+ * The list of response details of each document.
+ *
+ *
+ *
+ * repeated .google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus individual_document_statuses = 5;
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus
+ getIndividualDocumentStatuses(int index) {
+ return individualDocumentStatuses_.get(index);
+ }
+ /**
+ *
+ *
+ *
+ * The list of response details of each document.
+ *
+ *
+ *
+ * repeated .google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus individual_document_statuses = 5;
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatusOrBuilder
+ getIndividualDocumentStatusesOrBuilder(int index) {
+ return individualDocumentStatuses_.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 (totalFileCount_ != 0) {
+ output.writeInt32(1, totalFileCount_);
+ }
+ if (failedFileCount_ != 0) {
+ output.writeInt32(2, failedFileCount_);
+ }
+ if (userInfo_ != null) {
+ output.writeMessage(3, getUserInfo());
+ }
+ if (pipelineMetadataCase_ == 4) {
+ output.writeMessage(
+ 4,
+ (com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata)
+ pipelineMetadata_);
+ }
+ for (int i = 0; i < individualDocumentStatuses_.size(); i++) {
+ output.writeMessage(5, individualDocumentStatuses_.get(i));
+ }
+ if (pipelineMetadataCase_ == 6) {
+ output.writeMessage(
+ 6,
+ (com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata)
+ pipelineMetadata_);
+ }
+ if (pipelineMetadataCase_ == 7) {
+ output.writeMessage(
+ 7,
+ (com.google.cloud.contentwarehouse.v1.RunPipelineMetadata
+ .ProcessWithDocAiPipelineMetadata)
+ pipelineMetadata_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (totalFileCount_ != 0) {
+ size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, totalFileCount_);
+ }
+ if (failedFileCount_ != 0) {
+ size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, failedFileCount_);
+ }
+ if (userInfo_ != null) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUserInfo());
+ }
+ if (pipelineMetadataCase_ == 4) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 4,
+ (com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata)
+ pipelineMetadata_);
+ }
+ for (int i = 0; i < individualDocumentStatuses_.size(); i++) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 5, individualDocumentStatuses_.get(i));
+ }
+ if (pipelineMetadataCase_ == 6) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 6,
+ (com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata)
+ pipelineMetadata_);
+ }
+ if (pipelineMetadataCase_ == 7) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 7,
+ (com.google.cloud.contentwarehouse.v1.RunPipelineMetadata
+ .ProcessWithDocAiPipelineMetadata)
+ pipelineMetadata_);
+ }
+ 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.contentwarehouse.v1.RunPipelineMetadata)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.contentwarehouse.v1.RunPipelineMetadata other =
+ (com.google.cloud.contentwarehouse.v1.RunPipelineMetadata) obj;
+
+ if (getTotalFileCount() != other.getTotalFileCount()) return false;
+ if (getFailedFileCount() != other.getFailedFileCount()) return false;
+ if (hasUserInfo() != other.hasUserInfo()) return false;
+ if (hasUserInfo()) {
+ if (!getUserInfo().equals(other.getUserInfo())) return false;
+ }
+ if (!getIndividualDocumentStatusesList().equals(other.getIndividualDocumentStatusesList()))
+ return false;
+ if (!getPipelineMetadataCase().equals(other.getPipelineMetadataCase())) return false;
+ switch (pipelineMetadataCase_) {
+ case 4:
+ if (!getGcsIngestPipelineMetadata().equals(other.getGcsIngestPipelineMetadata()))
+ return false;
+ break;
+ case 6:
+ if (!getExportToCdwPipelineMetadata().equals(other.getExportToCdwPipelineMetadata()))
+ return false;
+ break;
+ case 7:
+ if (!getProcessWithDocAiPipelineMetadata()
+ .equals(other.getProcessWithDocAiPipelineMetadata())) return false;
+ break;
+ case 0:
+ default:
+ }
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + TOTAL_FILE_COUNT_FIELD_NUMBER;
+ hash = (53 * hash) + getTotalFileCount();
+ hash = (37 * hash) + FAILED_FILE_COUNT_FIELD_NUMBER;
+ hash = (53 * hash) + getFailedFileCount();
+ if (hasUserInfo()) {
+ hash = (37 * hash) + USER_INFO_FIELD_NUMBER;
+ hash = (53 * hash) + getUserInfo().hashCode();
+ }
+ if (getIndividualDocumentStatusesCount() > 0) {
+ hash = (37 * hash) + INDIVIDUAL_DOCUMENT_STATUSES_FIELD_NUMBER;
+ hash = (53 * hash) + getIndividualDocumentStatusesList().hashCode();
+ }
+ switch (pipelineMetadataCase_) {
+ case 4:
+ hash = (37 * hash) + GCS_INGEST_PIPELINE_METADATA_FIELD_NUMBER;
+ hash = (53 * hash) + getGcsIngestPipelineMetadata().hashCode();
+ break;
+ case 6:
+ hash = (37 * hash) + EXPORT_TO_CDW_PIPELINE_METADATA_FIELD_NUMBER;
+ hash = (53 * hash) + getExportToCdwPipelineMetadata().hashCode();
+ break;
+ case 7:
+ hash = (37 * hash) + PROCESS_WITH_DOC_AI_PIPELINE_METADATA_FIELD_NUMBER;
+ hash = (53 * hash) + getProcessWithDocAiPipelineMetadata().hashCode();
+ break;
+ case 0:
+ default:
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata 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.contentwarehouse.v1.RunPipelineMetadata parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata 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.contentwarehouse.v1.RunPipelineMetadata parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata 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.contentwarehouse.v1.RunPipelineMetadata parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata 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.contentwarehouse.v1.RunPipelineMetadata parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata 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.contentwarehouse.v1.RunPipelineMetadata prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ *
+ *
+ *
+ * Metadata message of RunPipeline method.
+ *
+ *
+ * Protobuf type {@code google.cloud.contentwarehouse.v1.RunPipelineMetadata}
+ */
+ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ implements
+ // @@protoc_insertion_point(builder_implements:google.cloud.contentwarehouse.v1.RunPipelineMetadata)
+ com.google.cloud.contentwarehouse.v1.RunPipelineMetadataOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.contentwarehouse.v1.PipelinesProto
+ .internal_static_google_cloud_contentwarehouse_v1_RunPipelineMetadata_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.contentwarehouse.v1.PipelinesProto
+ .internal_static_google_cloud_contentwarehouse_v1_RunPipelineMetadata_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.class,
+ com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.Builder.class);
+ }
+
+ // Construct using com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.newBuilder()
+ private Builder() {}
+
+ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ }
+
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ totalFileCount_ = 0;
+ failedFileCount_ = 0;
+ userInfo_ = null;
+ if (userInfoBuilder_ != null) {
+ userInfoBuilder_.dispose();
+ userInfoBuilder_ = null;
+ }
+ if (gcsIngestPipelineMetadataBuilder_ != null) {
+ gcsIngestPipelineMetadataBuilder_.clear();
+ }
+ if (exportToCdwPipelineMetadataBuilder_ != null) {
+ exportToCdwPipelineMetadataBuilder_.clear();
+ }
+ if (processWithDocAiPipelineMetadataBuilder_ != null) {
+ processWithDocAiPipelineMetadataBuilder_.clear();
+ }
+ if (individualDocumentStatusesBuilder_ == null) {
+ individualDocumentStatuses_ = java.util.Collections.emptyList();
+ } else {
+ individualDocumentStatuses_ = null;
+ individualDocumentStatusesBuilder_.clear();
+ }
+ bitField0_ = (bitField0_ & ~0x00000040);
+ pipelineMetadataCase_ = 0;
+ pipelineMetadata_ = null;
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+ return com.google.cloud.contentwarehouse.v1.PipelinesProto
+ .internal_static_google_cloud_contentwarehouse_v1_RunPipelineMetadata_descriptor;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.contentwarehouse.v1.RunPipelineMetadata getDefaultInstanceForType() {
+ return com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public com.google.cloud.contentwarehouse.v1.RunPipelineMetadata build() {
+ com.google.cloud.contentwarehouse.v1.RunPipelineMetadata result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.contentwarehouse.v1.RunPipelineMetadata buildPartial() {
+ com.google.cloud.contentwarehouse.v1.RunPipelineMetadata result =
+ new com.google.cloud.contentwarehouse.v1.RunPipelineMetadata(this);
+ buildPartialRepeatedFields(result);
+ if (bitField0_ != 0) {
+ buildPartial0(result);
+ }
+ buildPartialOneofs(result);
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartialRepeatedFields(
+ com.google.cloud.contentwarehouse.v1.RunPipelineMetadata result) {
+ if (individualDocumentStatusesBuilder_ == null) {
+ if (((bitField0_ & 0x00000040) != 0)) {
+ individualDocumentStatuses_ =
+ java.util.Collections.unmodifiableList(individualDocumentStatuses_);
+ bitField0_ = (bitField0_ & ~0x00000040);
+ }
+ result.individualDocumentStatuses_ = individualDocumentStatuses_;
+ } else {
+ result.individualDocumentStatuses_ = individualDocumentStatusesBuilder_.build();
+ }
+ }
+
+ private void buildPartial0(com.google.cloud.contentwarehouse.v1.RunPipelineMetadata result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.totalFileCount_ = totalFileCount_;
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.failedFileCount_ = failedFileCount_;
+ }
+ if (((from_bitField0_ & 0x00000004) != 0)) {
+ result.userInfo_ = userInfoBuilder_ == null ? userInfo_ : userInfoBuilder_.build();
+ }
+ }
+
+ private void buildPartialOneofs(
+ com.google.cloud.contentwarehouse.v1.RunPipelineMetadata result) {
+ result.pipelineMetadataCase_ = pipelineMetadataCase_;
+ result.pipelineMetadata_ = this.pipelineMetadata_;
+ if (pipelineMetadataCase_ == 4 && gcsIngestPipelineMetadataBuilder_ != null) {
+ result.pipelineMetadata_ = gcsIngestPipelineMetadataBuilder_.build();
+ }
+ if (pipelineMetadataCase_ == 6 && exportToCdwPipelineMetadataBuilder_ != null) {
+ result.pipelineMetadata_ = exportToCdwPipelineMetadataBuilder_.build();
+ }
+ if (pipelineMetadataCase_ == 7 && processWithDocAiPipelineMetadataBuilder_ != null) {
+ result.pipelineMetadata_ = processWithDocAiPipelineMetadataBuilder_.build();
+ }
+ }
+
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+ return super.setField(field, value);
+ }
+
+ @java.lang.Override
+ public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+
+ @java.lang.Override
+ public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+ return super.addRepeatedField(field, value);
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof com.google.cloud.contentwarehouse.v1.RunPipelineMetadata) {
+ return mergeFrom((com.google.cloud.contentwarehouse.v1.RunPipelineMetadata) other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.RunPipelineMetadata other) {
+ if (other == com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.getDefaultInstance())
+ return this;
+ if (other.getTotalFileCount() != 0) {
+ setTotalFileCount(other.getTotalFileCount());
+ }
+ if (other.getFailedFileCount() != 0) {
+ setFailedFileCount(other.getFailedFileCount());
+ }
+ if (other.hasUserInfo()) {
+ mergeUserInfo(other.getUserInfo());
+ }
+ if (individualDocumentStatusesBuilder_ == null) {
+ if (!other.individualDocumentStatuses_.isEmpty()) {
+ if (individualDocumentStatuses_.isEmpty()) {
+ individualDocumentStatuses_ = other.individualDocumentStatuses_;
+ bitField0_ = (bitField0_ & ~0x00000040);
+ } else {
+ ensureIndividualDocumentStatusesIsMutable();
+ individualDocumentStatuses_.addAll(other.individualDocumentStatuses_);
+ }
+ onChanged();
+ }
+ } else {
+ if (!other.individualDocumentStatuses_.isEmpty()) {
+ if (individualDocumentStatusesBuilder_.isEmpty()) {
+ individualDocumentStatusesBuilder_.dispose();
+ individualDocumentStatusesBuilder_ = null;
+ individualDocumentStatuses_ = other.individualDocumentStatuses_;
+ bitField0_ = (bitField0_ & ~0x00000040);
+ individualDocumentStatusesBuilder_ =
+ com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+ ? getIndividualDocumentStatusesFieldBuilder()
+ : null;
+ } else {
+ individualDocumentStatusesBuilder_.addAllMessages(other.individualDocumentStatuses_);
+ }
+ }
+ }
+ switch (other.getPipelineMetadataCase()) {
+ case GCS_INGEST_PIPELINE_METADATA:
+ {
+ mergeGcsIngestPipelineMetadata(other.getGcsIngestPipelineMetadata());
+ break;
+ }
+ case EXPORT_TO_CDW_PIPELINE_METADATA:
+ {
+ mergeExportToCdwPipelineMetadata(other.getExportToCdwPipelineMetadata());
+ break;
+ }
+ case PROCESS_WITH_DOC_AI_PIPELINE_METADATA:
+ {
+ mergeProcessWithDocAiPipelineMetadata(other.getProcessWithDocAiPipelineMetadata());
+ break;
+ }
+ case PIPELINEMETADATA_NOT_SET:
+ {
+ break;
+ }
+ }
+ this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 8:
+ {
+ totalFileCount_ = input.readInt32();
+ bitField0_ |= 0x00000001;
+ break;
+ } // case 8
+ case 16:
+ {
+ failedFileCount_ = input.readInt32();
+ bitField0_ |= 0x00000002;
+ break;
+ } // case 16
+ case 26:
+ {
+ input.readMessage(getUserInfoFieldBuilder().getBuilder(), extensionRegistry);
+ bitField0_ |= 0x00000004;
+ break;
+ } // case 26
+ case 34:
+ {
+ input.readMessage(
+ getGcsIngestPipelineMetadataFieldBuilder().getBuilder(), extensionRegistry);
+ pipelineMetadataCase_ = 4;
+ break;
+ } // case 34
+ case 42:
+ {
+ com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus
+ m =
+ input.readMessage(
+ com.google.cloud.contentwarehouse.v1.RunPipelineMetadata
+ .IndividualDocumentStatus.parser(),
+ extensionRegistry);
+ if (individualDocumentStatusesBuilder_ == null) {
+ ensureIndividualDocumentStatusesIsMutable();
+ individualDocumentStatuses_.add(m);
+ } else {
+ individualDocumentStatusesBuilder_.addMessage(m);
+ }
+ break;
+ } // case 42
+ case 50:
+ {
+ input.readMessage(
+ getExportToCdwPipelineMetadataFieldBuilder().getBuilder(), extensionRegistry);
+ pipelineMetadataCase_ = 6;
+ break;
+ } // case 50
+ case 58:
+ {
+ input.readMessage(
+ getProcessWithDocAiPipelineMetadataFieldBuilder().getBuilder(),
+ extensionRegistry);
+ pipelineMetadataCase_ = 7;
+ break;
+ } // case 58
+ default:
+ {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.unwrapIOException();
+ } finally {
+ onChanged();
+ } // finally
+ return this;
+ }
+
+ private int pipelineMetadataCase_ = 0;
+ private java.lang.Object pipelineMetadata_;
+
+ public PipelineMetadataCase getPipelineMetadataCase() {
+ return PipelineMetadataCase.forNumber(pipelineMetadataCase_);
+ }
+
+ public Builder clearPipelineMetadata() {
+ pipelineMetadataCase_ = 0;
+ pipelineMetadata_ = null;
+ onChanged();
+ return this;
+ }
+
+ private int bitField0_;
+
+ private int totalFileCount_;
+ /**
+ *
+ *
+ *
+ * Number of files that were processed by the pipeline.
+ *
+ *
+ * int32 total_file_count = 1;
+ *
+ * @return The totalFileCount.
+ */
+ @java.lang.Override
+ public int getTotalFileCount() {
+ return totalFileCount_;
+ }
+ /**
+ *
+ *
+ *
+ * Number of files that were processed by the pipeline.
+ *
+ *
+ * int32 total_file_count = 1;
+ *
+ * @param value The totalFileCount to set.
+ * @return This builder for chaining.
+ */
+ public Builder setTotalFileCount(int value) {
+
+ totalFileCount_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Number of files that were processed by the pipeline.
+ *
+ *
+ * int32 total_file_count = 1;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearTotalFileCount() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ totalFileCount_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private int failedFileCount_;
+ /**
+ *
+ *
+ *
+ * Number of files that have failed at some point in the pipeline.
+ *
+ *
+ * int32 failed_file_count = 2;
+ *
+ * @return The failedFileCount.
+ */
+ @java.lang.Override
+ public int getFailedFileCount() {
+ return failedFileCount_;
+ }
+ /**
+ *
+ *
+ *
+ * Number of files that have failed at some point in the pipeline.
+ *
+ *
+ * int32 failed_file_count = 2;
+ *
+ * @param value The failedFileCount to set.
+ * @return This builder for chaining.
+ */
+ public Builder setFailedFileCount(int value) {
+
+ failedFileCount_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Number of files that have failed at some point in the pipeline.
+ *
+ *
+ * int32 failed_file_count = 2;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearFailedFileCount() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ failedFileCount_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private com.google.cloud.contentwarehouse.v1.UserInfo userInfo_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.contentwarehouse.v1.UserInfo,
+ com.google.cloud.contentwarehouse.v1.UserInfo.Builder,
+ com.google.cloud.contentwarehouse.v1.UserInfoOrBuilder>
+ userInfoBuilder_;
+ /**
+ *
+ *
+ *
+ * User unique identification and groups information.
+ *
+ *
+ * .google.cloud.contentwarehouse.v1.UserInfo user_info = 3;
+ *
+ * @return Whether the userInfo field is set.
+ */
+ public boolean hasUserInfo() {
+ return ((bitField0_ & 0x00000004) != 0);
+ }
+ /**
+ *
+ *
+ *
+ * User unique identification and groups information.
+ *
+ *
+ * .google.cloud.contentwarehouse.v1.UserInfo user_info = 3;
+ *
+ * @return The userInfo.
+ */
+ public com.google.cloud.contentwarehouse.v1.UserInfo getUserInfo() {
+ if (userInfoBuilder_ == null) {
+ return userInfo_ == null
+ ? com.google.cloud.contentwarehouse.v1.UserInfo.getDefaultInstance()
+ : userInfo_;
+ } else {
+ return userInfoBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ *
+ * User unique identification and groups information.
+ *
+ *
+ * .google.cloud.contentwarehouse.v1.UserInfo user_info = 3;
+ */
+ public Builder setUserInfo(com.google.cloud.contentwarehouse.v1.UserInfo value) {
+ if (userInfoBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ userInfo_ = value;
+ } else {
+ userInfoBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * User unique identification and groups information.
+ *
+ *
+ * .google.cloud.contentwarehouse.v1.UserInfo user_info = 3;
+ */
+ public Builder setUserInfo(
+ com.google.cloud.contentwarehouse.v1.UserInfo.Builder builderForValue) {
+ if (userInfoBuilder_ == null) {
+ userInfo_ = builderForValue.build();
+ } else {
+ userInfoBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * User unique identification and groups information.
+ *
+ *
+ * .google.cloud.contentwarehouse.v1.UserInfo user_info = 3;
+ */
+ public Builder mergeUserInfo(com.google.cloud.contentwarehouse.v1.UserInfo value) {
+ if (userInfoBuilder_ == null) {
+ if (((bitField0_ & 0x00000004) != 0)
+ && userInfo_ != null
+ && userInfo_ != com.google.cloud.contentwarehouse.v1.UserInfo.getDefaultInstance()) {
+ getUserInfoBuilder().mergeFrom(value);
+ } else {
+ userInfo_ = value;
+ }
+ } else {
+ userInfoBuilder_.mergeFrom(value);
+ }
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * User unique identification and groups information.
+ *
+ *
+ * .google.cloud.contentwarehouse.v1.UserInfo user_info = 3;
+ */
+ public Builder clearUserInfo() {
+ bitField0_ = (bitField0_ & ~0x00000004);
+ userInfo_ = null;
+ if (userInfoBuilder_ != null) {
+ userInfoBuilder_.dispose();
+ userInfoBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * User unique identification and groups information.
+ *
+ *
+ * .google.cloud.contentwarehouse.v1.UserInfo user_info = 3;
+ */
+ public com.google.cloud.contentwarehouse.v1.UserInfo.Builder getUserInfoBuilder() {
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return getUserInfoFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ *
+ * User unique identification and groups information.
+ *
+ *
+ * .google.cloud.contentwarehouse.v1.UserInfo user_info = 3;
+ */
+ public com.google.cloud.contentwarehouse.v1.UserInfoOrBuilder getUserInfoOrBuilder() {
+ if (userInfoBuilder_ != null) {
+ return userInfoBuilder_.getMessageOrBuilder();
+ } else {
+ return userInfo_ == null
+ ? com.google.cloud.contentwarehouse.v1.UserInfo.getDefaultInstance()
+ : userInfo_;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * User unique identification and groups information.
+ *
+ *
+ * .google.cloud.contentwarehouse.v1.UserInfo user_info = 3;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.contentwarehouse.v1.UserInfo,
+ com.google.cloud.contentwarehouse.v1.UserInfo.Builder,
+ com.google.cloud.contentwarehouse.v1.UserInfoOrBuilder>
+ getUserInfoFieldBuilder() {
+ if (userInfoBuilder_ == null) {
+ userInfoBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.contentwarehouse.v1.UserInfo,
+ com.google.cloud.contentwarehouse.v1.UserInfo.Builder,
+ com.google.cloud.contentwarehouse.v1.UserInfoOrBuilder>(
+ getUserInfo(), getParentForChildren(), isClean());
+ userInfo_ = null;
+ }
+ return userInfoBuilder_;
+ }
+
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata,
+ com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata
+ .Builder,
+ com.google.cloud.contentwarehouse.v1.RunPipelineMetadata
+ .GcsIngestPipelineMetadataOrBuilder>
+ gcsIngestPipelineMetadataBuilder_;
+ /**
+ *
+ *
+ *
+ * The pipeline metadata for GcsIngest pipeline.
+ *
+ *
+ *
+ * .google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata gcs_ingest_pipeline_metadata = 4;
+ *
+ *
+ * @return Whether the gcsIngestPipelineMetadata field is set.
+ */
+ @java.lang.Override
+ public boolean hasGcsIngestPipelineMetadata() {
+ return pipelineMetadataCase_ == 4;
+ }
+ /**
+ *
+ *
+ *
+ * The pipeline metadata for GcsIngest pipeline.
+ *
+ *
+ *
+ * .google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata gcs_ingest_pipeline_metadata = 4;
+ *
+ *
+ * @return The gcsIngestPipelineMetadata.
+ */
+ @java.lang.Override
+ public com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata
+ getGcsIngestPipelineMetadata() {
+ if (gcsIngestPipelineMetadataBuilder_ == null) {
+ if (pipelineMetadataCase_ == 4) {
+ return (com.google.cloud.contentwarehouse.v1.RunPipelineMetadata
+ .GcsIngestPipelineMetadata)
+ pipelineMetadata_;
+ }
+ return com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata
+ .getDefaultInstance();
+ } else {
+ if (pipelineMetadataCase_ == 4) {
+ return gcsIngestPipelineMetadataBuilder_.getMessage();
+ }
+ return com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata
+ .getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The pipeline metadata for GcsIngest pipeline.
+ *
+ *
+ *
+ * .google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata gcs_ingest_pipeline_metadata = 4;
+ *
+ */
+ public Builder setGcsIngestPipelineMetadata(
+ com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata value) {
+ if (gcsIngestPipelineMetadataBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ pipelineMetadata_ = value;
+ onChanged();
+ } else {
+ gcsIngestPipelineMetadataBuilder_.setMessage(value);
+ }
+ pipelineMetadataCase_ = 4;
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The pipeline metadata for GcsIngest pipeline.
+ *
+ *
+ *
+ * .google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata gcs_ingest_pipeline_metadata = 4;
+ *
+ */
+ public Builder setGcsIngestPipelineMetadata(
+ com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata.Builder
+ builderForValue) {
+ if (gcsIngestPipelineMetadataBuilder_ == null) {
+ pipelineMetadata_ = builderForValue.build();
+ onChanged();
+ } else {
+ gcsIngestPipelineMetadataBuilder_.setMessage(builderForValue.build());
+ }
+ pipelineMetadataCase_ = 4;
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The pipeline metadata for GcsIngest pipeline.
+ *
+ *
+ *
+ * .google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata gcs_ingest_pipeline_metadata = 4;
+ *
+ */
+ public Builder mergeGcsIngestPipelineMetadata(
+ com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata value) {
+ if (gcsIngestPipelineMetadataBuilder_ == null) {
+ if (pipelineMetadataCase_ == 4
+ && pipelineMetadata_
+ != com.google.cloud.contentwarehouse.v1.RunPipelineMetadata
+ .GcsIngestPipelineMetadata.getDefaultInstance()) {
+ pipelineMetadata_ =
+ com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata
+ .newBuilder(
+ (com.google.cloud.contentwarehouse.v1.RunPipelineMetadata
+ .GcsIngestPipelineMetadata)
+ pipelineMetadata_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ pipelineMetadata_ = value;
+ }
+ onChanged();
+ } else {
+ if (pipelineMetadataCase_ == 4) {
+ gcsIngestPipelineMetadataBuilder_.mergeFrom(value);
+ } else {
+ gcsIngestPipelineMetadataBuilder_.setMessage(value);
+ }
+ }
+ pipelineMetadataCase_ = 4;
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The pipeline metadata for GcsIngest pipeline.
+ *
+ *
+ *
+ * .google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata gcs_ingest_pipeline_metadata = 4;
+ *
+ */
+ public Builder clearGcsIngestPipelineMetadata() {
+ if (gcsIngestPipelineMetadataBuilder_ == null) {
+ if (pipelineMetadataCase_ == 4) {
+ pipelineMetadataCase_ = 0;
+ pipelineMetadata_ = null;
+ onChanged();
+ }
+ } else {
+ if (pipelineMetadataCase_ == 4) {
+ pipelineMetadataCase_ = 0;
+ pipelineMetadata_ = null;
+ }
+ gcsIngestPipelineMetadataBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The pipeline metadata for GcsIngest pipeline.
+ *
+ *
+ *
+ * .google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata gcs_ingest_pipeline_metadata = 4;
+ *
+ */
+ public com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata
+ .Builder
+ getGcsIngestPipelineMetadataBuilder() {
+ return getGcsIngestPipelineMetadataFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ *
+ * The pipeline metadata for GcsIngest pipeline.
+ *
+ *
+ *
+ * .google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata gcs_ingest_pipeline_metadata = 4;
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.contentwarehouse.v1.RunPipelineMetadata
+ .GcsIngestPipelineMetadataOrBuilder
+ getGcsIngestPipelineMetadataOrBuilder() {
+ if ((pipelineMetadataCase_ == 4) && (gcsIngestPipelineMetadataBuilder_ != null)) {
+ return gcsIngestPipelineMetadataBuilder_.getMessageOrBuilder();
+ } else {
+ if (pipelineMetadataCase_ == 4) {
+ return (com.google.cloud.contentwarehouse.v1.RunPipelineMetadata
+ .GcsIngestPipelineMetadata)
+ pipelineMetadata_;
+ }
+ return com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata
+ .getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The pipeline metadata for GcsIngest pipeline.
+ *
+ *
+ *
+ * .google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata gcs_ingest_pipeline_metadata = 4;
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata,
+ com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata
+ .Builder,
+ com.google.cloud.contentwarehouse.v1.RunPipelineMetadata
+ .GcsIngestPipelineMetadataOrBuilder>
+ getGcsIngestPipelineMetadataFieldBuilder() {
+ if (gcsIngestPipelineMetadataBuilder_ == null) {
+ if (!(pipelineMetadataCase_ == 4)) {
+ pipelineMetadata_ =
+ com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata
+ .getDefaultInstance();
+ }
+ gcsIngestPipelineMetadataBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata,
+ com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata
+ .Builder,
+ com.google.cloud.contentwarehouse.v1.RunPipelineMetadata
+ .GcsIngestPipelineMetadataOrBuilder>(
+ (com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata)
+ pipelineMetadata_,
+ getParentForChildren(),
+ isClean());
+ pipelineMetadata_ = null;
+ }
+ pipelineMetadataCase_ = 4;
+ onChanged();
+ return gcsIngestPipelineMetadataBuilder_;
+ }
+
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata,
+ com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata
+ .Builder,
+ com.google.cloud.contentwarehouse.v1.RunPipelineMetadata
+ .ExportToCdwPipelineMetadataOrBuilder>
+ exportToCdwPipelineMetadataBuilder_;
+ /**
+ *
+ *
+ *
+ * The pipeline metadata for Export-to-CDW pipeline.
+ *
+ *
+ *
+ * .google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata export_to_cdw_pipeline_metadata = 6;
+ *
+ *
+ * @return Whether the exportToCdwPipelineMetadata field is set.
+ */
+ @java.lang.Override
+ public boolean hasExportToCdwPipelineMetadata() {
+ return pipelineMetadataCase_ == 6;
+ }
+ /**
+ *
+ *
+ *
+ * The pipeline metadata for Export-to-CDW pipeline.
+ *
+ *
+ *
+ * .google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata export_to_cdw_pipeline_metadata = 6;
+ *
+ *
+ * @return The exportToCdwPipelineMetadata.
+ */
+ @java.lang.Override
+ public com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata
+ getExportToCdwPipelineMetadata() {
+ if (exportToCdwPipelineMetadataBuilder_ == null) {
+ if (pipelineMetadataCase_ == 6) {
+ return (com.google.cloud.contentwarehouse.v1.RunPipelineMetadata
+ .ExportToCdwPipelineMetadata)
+ pipelineMetadata_;
+ }
+ return com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata
+ .getDefaultInstance();
+ } else {
+ if (pipelineMetadataCase_ == 6) {
+ return exportToCdwPipelineMetadataBuilder_.getMessage();
+ }
+ return com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata
+ .getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The pipeline metadata for Export-to-CDW pipeline.
+ *
+ *
+ *
+ * .google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata export_to_cdw_pipeline_metadata = 6;
+ *
+ */
+ public Builder setExportToCdwPipelineMetadata(
+ com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata
+ value) {
+ if (exportToCdwPipelineMetadataBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ pipelineMetadata_ = value;
+ onChanged();
+ } else {
+ exportToCdwPipelineMetadataBuilder_.setMessage(value);
+ }
+ pipelineMetadataCase_ = 6;
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The pipeline metadata for Export-to-CDW pipeline.
+ *
+ *
+ *
+ * .google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata export_to_cdw_pipeline_metadata = 6;
+ *
+ */
+ public Builder setExportToCdwPipelineMetadata(
+ com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata.Builder
+ builderForValue) {
+ if (exportToCdwPipelineMetadataBuilder_ == null) {
+ pipelineMetadata_ = builderForValue.build();
+ onChanged();
+ } else {
+ exportToCdwPipelineMetadataBuilder_.setMessage(builderForValue.build());
+ }
+ pipelineMetadataCase_ = 6;
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The pipeline metadata for Export-to-CDW pipeline.
+ *
+ *
+ *
+ * .google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata export_to_cdw_pipeline_metadata = 6;
+ *
+ */
+ public Builder mergeExportToCdwPipelineMetadata(
+ com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata
+ value) {
+ if (exportToCdwPipelineMetadataBuilder_ == null) {
+ if (pipelineMetadataCase_ == 6
+ && pipelineMetadata_
+ != com.google.cloud.contentwarehouse.v1.RunPipelineMetadata
+ .ExportToCdwPipelineMetadata.getDefaultInstance()) {
+ pipelineMetadata_ =
+ com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata
+ .newBuilder(
+ (com.google.cloud.contentwarehouse.v1.RunPipelineMetadata
+ .ExportToCdwPipelineMetadata)
+ pipelineMetadata_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ pipelineMetadata_ = value;
+ }
+ onChanged();
+ } else {
+ if (pipelineMetadataCase_ == 6) {
+ exportToCdwPipelineMetadataBuilder_.mergeFrom(value);
+ } else {
+ exportToCdwPipelineMetadataBuilder_.setMessage(value);
+ }
+ }
+ pipelineMetadataCase_ = 6;
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The pipeline metadata for Export-to-CDW pipeline.
+ *
+ *
+ *
+ * .google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata export_to_cdw_pipeline_metadata = 6;
+ *
+ */
+ public Builder clearExportToCdwPipelineMetadata() {
+ if (exportToCdwPipelineMetadataBuilder_ == null) {
+ if (pipelineMetadataCase_ == 6) {
+ pipelineMetadataCase_ = 0;
+ pipelineMetadata_ = null;
+ onChanged();
+ }
+ } else {
+ if (pipelineMetadataCase_ == 6) {
+ pipelineMetadataCase_ = 0;
+ pipelineMetadata_ = null;
+ }
+ exportToCdwPipelineMetadataBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The pipeline metadata for Export-to-CDW pipeline.
+ *
+ *
+ *
+ * .google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata export_to_cdw_pipeline_metadata = 6;
+ *
+ */
+ public com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata
+ .Builder
+ getExportToCdwPipelineMetadataBuilder() {
+ return getExportToCdwPipelineMetadataFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ *
+ * The pipeline metadata for Export-to-CDW pipeline.
+ *
+ *
+ *
+ * .google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata export_to_cdw_pipeline_metadata = 6;
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.contentwarehouse.v1.RunPipelineMetadata
+ .ExportToCdwPipelineMetadataOrBuilder
+ getExportToCdwPipelineMetadataOrBuilder() {
+ if ((pipelineMetadataCase_ == 6) && (exportToCdwPipelineMetadataBuilder_ != null)) {
+ return exportToCdwPipelineMetadataBuilder_.getMessageOrBuilder();
+ } else {
+ if (pipelineMetadataCase_ == 6) {
+ return (com.google.cloud.contentwarehouse.v1.RunPipelineMetadata
+ .ExportToCdwPipelineMetadata)
+ pipelineMetadata_;
+ }
+ return com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata
+ .getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The pipeline metadata for Export-to-CDW pipeline.
+ *
+ *
+ *
+ * .google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata export_to_cdw_pipeline_metadata = 6;
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata,
+ com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata
+ .Builder,
+ com.google.cloud.contentwarehouse.v1.RunPipelineMetadata
+ .ExportToCdwPipelineMetadataOrBuilder>
+ getExportToCdwPipelineMetadataFieldBuilder() {
+ if (exportToCdwPipelineMetadataBuilder_ == null) {
+ if (!(pipelineMetadataCase_ == 6)) {
+ pipelineMetadata_ =
+ com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata
+ .getDefaultInstance();
+ }
+ exportToCdwPipelineMetadataBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.contentwarehouse.v1.RunPipelineMetadata
+ .ExportToCdwPipelineMetadata,
+ com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata
+ .Builder,
+ com.google.cloud.contentwarehouse.v1.RunPipelineMetadata
+ .ExportToCdwPipelineMetadataOrBuilder>(
+ (com.google.cloud.contentwarehouse.v1.RunPipelineMetadata
+ .ExportToCdwPipelineMetadata)
+ pipelineMetadata_,
+ getParentForChildren(),
+ isClean());
+ pipelineMetadata_ = null;
+ }
+ pipelineMetadataCase_ = 6;
+ onChanged();
+ return exportToCdwPipelineMetadataBuilder_;
+ }
+
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.contentwarehouse.v1.RunPipelineMetadata
+ .ProcessWithDocAiPipelineMetadata,
+ com.google.cloud.contentwarehouse.v1.RunPipelineMetadata
+ .ProcessWithDocAiPipelineMetadata.Builder,
+ com.google.cloud.contentwarehouse.v1.RunPipelineMetadata
+ .ProcessWithDocAiPipelineMetadataOrBuilder>
+ processWithDocAiPipelineMetadataBuilder_;
+ /**
+ *
+ *
+ *
+ * The pipeline metadata for Process-with-DocAi pipeline.
+ *
+ *
+ *
+ * .google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata process_with_doc_ai_pipeline_metadata = 7;
+ *
+ *
+ * @return Whether the processWithDocAiPipelineMetadata field is set.
+ */
+ @java.lang.Override
+ public boolean hasProcessWithDocAiPipelineMetadata() {
+ return pipelineMetadataCase_ == 7;
+ }
+ /**
+ *
+ *
+ *
+ * The pipeline metadata for Process-with-DocAi pipeline.
+ *
+ *
+ *
+ * .google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata process_with_doc_ai_pipeline_metadata = 7;
+ *
+ *
+ * @return The processWithDocAiPipelineMetadata.
+ */
+ @java.lang.Override
+ public com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata
+ getProcessWithDocAiPipelineMetadata() {
+ if (processWithDocAiPipelineMetadataBuilder_ == null) {
+ if (pipelineMetadataCase_ == 7) {
+ return (com.google.cloud.contentwarehouse.v1.RunPipelineMetadata
+ .ProcessWithDocAiPipelineMetadata)
+ pipelineMetadata_;
+ }
+ return com.google.cloud.contentwarehouse.v1.RunPipelineMetadata
+ .ProcessWithDocAiPipelineMetadata.getDefaultInstance();
+ } else {
+ if (pipelineMetadataCase_ == 7) {
+ return processWithDocAiPipelineMetadataBuilder_.getMessage();
+ }
+ return com.google.cloud.contentwarehouse.v1.RunPipelineMetadata
+ .ProcessWithDocAiPipelineMetadata.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The pipeline metadata for Process-with-DocAi pipeline.
+ *
+ *
+ *
+ * .google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata process_with_doc_ai_pipeline_metadata = 7;
+ *
+ */
+ public Builder setProcessWithDocAiPipelineMetadata(
+ com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata
+ value) {
+ if (processWithDocAiPipelineMetadataBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ pipelineMetadata_ = value;
+ onChanged();
+ } else {
+ processWithDocAiPipelineMetadataBuilder_.setMessage(value);
+ }
+ pipelineMetadataCase_ = 7;
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The pipeline metadata for Process-with-DocAi pipeline.
+ *
+ *
+ *
+ * .google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata process_with_doc_ai_pipeline_metadata = 7;
+ *
+ */
+ public Builder setProcessWithDocAiPipelineMetadata(
+ com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata
+ .Builder
+ builderForValue) {
+ if (processWithDocAiPipelineMetadataBuilder_ == null) {
+ pipelineMetadata_ = builderForValue.build();
+ onChanged();
+ } else {
+ processWithDocAiPipelineMetadataBuilder_.setMessage(builderForValue.build());
+ }
+ pipelineMetadataCase_ = 7;
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The pipeline metadata for Process-with-DocAi pipeline.
+ *
+ *
+ *
+ * .google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata process_with_doc_ai_pipeline_metadata = 7;
+ *
+ */
+ public Builder mergeProcessWithDocAiPipelineMetadata(
+ com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata
+ value) {
+ if (processWithDocAiPipelineMetadataBuilder_ == null) {
+ if (pipelineMetadataCase_ == 7
+ && pipelineMetadata_
+ != com.google.cloud.contentwarehouse.v1.RunPipelineMetadata
+ .ProcessWithDocAiPipelineMetadata.getDefaultInstance()) {
+ pipelineMetadata_ =
+ com.google.cloud.contentwarehouse.v1.RunPipelineMetadata
+ .ProcessWithDocAiPipelineMetadata.newBuilder(
+ (com.google.cloud.contentwarehouse.v1.RunPipelineMetadata
+ .ProcessWithDocAiPipelineMetadata)
+ pipelineMetadata_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ pipelineMetadata_ = value;
+ }
+ onChanged();
+ } else {
+ if (pipelineMetadataCase_ == 7) {
+ processWithDocAiPipelineMetadataBuilder_.mergeFrom(value);
+ } else {
+ processWithDocAiPipelineMetadataBuilder_.setMessage(value);
+ }
+ }
+ pipelineMetadataCase_ = 7;
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The pipeline metadata for Process-with-DocAi pipeline.
+ *
+ *
+ *
+ * .google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata process_with_doc_ai_pipeline_metadata = 7;
+ *
+ */
+ public Builder clearProcessWithDocAiPipelineMetadata() {
+ if (processWithDocAiPipelineMetadataBuilder_ == null) {
+ if (pipelineMetadataCase_ == 7) {
+ pipelineMetadataCase_ = 0;
+ pipelineMetadata_ = null;
+ onChanged();
+ }
+ } else {
+ if (pipelineMetadataCase_ == 7) {
+ pipelineMetadataCase_ = 0;
+ pipelineMetadata_ = null;
+ }
+ processWithDocAiPipelineMetadataBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The pipeline metadata for Process-with-DocAi pipeline.
+ *
+ *
+ *
+ * .google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata process_with_doc_ai_pipeline_metadata = 7;
+ *
+ */
+ public com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata
+ .Builder
+ getProcessWithDocAiPipelineMetadataBuilder() {
+ return getProcessWithDocAiPipelineMetadataFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ *
+ * The pipeline metadata for Process-with-DocAi pipeline.
+ *
+ *
+ *
+ * .google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata process_with_doc_ai_pipeline_metadata = 7;
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.contentwarehouse.v1.RunPipelineMetadata
+ .ProcessWithDocAiPipelineMetadataOrBuilder
+ getProcessWithDocAiPipelineMetadataOrBuilder() {
+ if ((pipelineMetadataCase_ == 7) && (processWithDocAiPipelineMetadataBuilder_ != null)) {
+ return processWithDocAiPipelineMetadataBuilder_.getMessageOrBuilder();
+ } else {
+ if (pipelineMetadataCase_ == 7) {
+ return (com.google.cloud.contentwarehouse.v1.RunPipelineMetadata
+ .ProcessWithDocAiPipelineMetadata)
+ pipelineMetadata_;
+ }
+ return com.google.cloud.contentwarehouse.v1.RunPipelineMetadata
+ .ProcessWithDocAiPipelineMetadata.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The pipeline metadata for Process-with-DocAi pipeline.
+ *
+ *
+ *
+ * .google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata process_with_doc_ai_pipeline_metadata = 7;
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.contentwarehouse.v1.RunPipelineMetadata
+ .ProcessWithDocAiPipelineMetadata,
+ com.google.cloud.contentwarehouse.v1.RunPipelineMetadata
+ .ProcessWithDocAiPipelineMetadata.Builder,
+ com.google.cloud.contentwarehouse.v1.RunPipelineMetadata
+ .ProcessWithDocAiPipelineMetadataOrBuilder>
+ getProcessWithDocAiPipelineMetadataFieldBuilder() {
+ if (processWithDocAiPipelineMetadataBuilder_ == null) {
+ if (!(pipelineMetadataCase_ == 7)) {
+ pipelineMetadata_ =
+ com.google.cloud.contentwarehouse.v1.RunPipelineMetadata
+ .ProcessWithDocAiPipelineMetadata.getDefaultInstance();
+ }
+ processWithDocAiPipelineMetadataBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.contentwarehouse.v1.RunPipelineMetadata
+ .ProcessWithDocAiPipelineMetadata,
+ com.google.cloud.contentwarehouse.v1.RunPipelineMetadata
+ .ProcessWithDocAiPipelineMetadata.Builder,
+ com.google.cloud.contentwarehouse.v1.RunPipelineMetadata
+ .ProcessWithDocAiPipelineMetadataOrBuilder>(
+ (com.google.cloud.contentwarehouse.v1.RunPipelineMetadata
+ .ProcessWithDocAiPipelineMetadata)
+ pipelineMetadata_,
+ getParentForChildren(),
+ isClean());
+ pipelineMetadata_ = null;
+ }
+ pipelineMetadataCase_ = 7;
+ onChanged();
+ return processWithDocAiPipelineMetadataBuilder_;
+ }
+
+ private java.util.List<
+ com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus>
+ individualDocumentStatuses_ = java.util.Collections.emptyList();
+
+ private void ensureIndividualDocumentStatusesIsMutable() {
+ if (!((bitField0_ & 0x00000040) != 0)) {
+ individualDocumentStatuses_ =
+ new java.util.ArrayList<
+ com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus>(
+ individualDocumentStatuses_);
+ bitField0_ |= 0x00000040;
+ }
+ }
+
+ private com.google.protobuf.RepeatedFieldBuilderV3<
+ com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus,
+ com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus
+ .Builder,
+ com.google.cloud.contentwarehouse.v1.RunPipelineMetadata
+ .IndividualDocumentStatusOrBuilder>
+ individualDocumentStatusesBuilder_;
+
+ /**
+ *
+ *
+ *
+ * The list of response details of each document.
+ *
+ *
+ *
+ * repeated .google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus individual_document_statuses = 5;
+ *
+ */
+ public java.util.List<
+ com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus>
+ getIndividualDocumentStatusesList() {
+ if (individualDocumentStatusesBuilder_ == null) {
+ return java.util.Collections.unmodifiableList(individualDocumentStatuses_);
+ } else {
+ return individualDocumentStatusesBuilder_.getMessageList();
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The list of response details of each document.
+ *
+ *
+ *
+ * repeated .google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus individual_document_statuses = 5;
+ *
+ */
+ public int getIndividualDocumentStatusesCount() {
+ if (individualDocumentStatusesBuilder_ == null) {
+ return individualDocumentStatuses_.size();
+ } else {
+ return individualDocumentStatusesBuilder_.getCount();
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The list of response details of each document.
+ *
+ *
+ *
+ * repeated .google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus individual_document_statuses = 5;
+ *
+ */
+ public com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus
+ getIndividualDocumentStatuses(int index) {
+ if (individualDocumentStatusesBuilder_ == null) {
+ return individualDocumentStatuses_.get(index);
+ } else {
+ return individualDocumentStatusesBuilder_.getMessage(index);
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The list of response details of each document.
+ *
+ *
+ *
+ * repeated .google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus individual_document_statuses = 5;
+ *
+ */
+ public Builder setIndividualDocumentStatuses(
+ int index,
+ com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus value) {
+ if (individualDocumentStatusesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureIndividualDocumentStatusesIsMutable();
+ individualDocumentStatuses_.set(index, value);
+ onChanged();
+ } else {
+ individualDocumentStatusesBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The list of response details of each document.
+ *
+ *
+ *
+ * repeated .google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus individual_document_statuses = 5;
+ *
+ */
+ public Builder setIndividualDocumentStatuses(
+ int index,
+ com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus.Builder
+ builderForValue) {
+ if (individualDocumentStatusesBuilder_ == null) {
+ ensureIndividualDocumentStatusesIsMutable();
+ individualDocumentStatuses_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ individualDocumentStatusesBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The list of response details of each document.
+ *
+ *
+ *
+ * repeated .google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus individual_document_statuses = 5;
+ *
+ */
+ public Builder addIndividualDocumentStatuses(
+ com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus value) {
+ if (individualDocumentStatusesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureIndividualDocumentStatusesIsMutable();
+ individualDocumentStatuses_.add(value);
+ onChanged();
+ } else {
+ individualDocumentStatusesBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The list of response details of each document.
+ *
+ *
+ *
+ * repeated .google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus individual_document_statuses = 5;
+ *
+ */
+ public Builder addIndividualDocumentStatuses(
+ int index,
+ com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus value) {
+ if (individualDocumentStatusesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureIndividualDocumentStatusesIsMutable();
+ individualDocumentStatuses_.add(index, value);
+ onChanged();
+ } else {
+ individualDocumentStatusesBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The list of response details of each document.
+ *
+ *
+ *
+ * repeated .google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus individual_document_statuses = 5;
+ *
+ */
+ public Builder addIndividualDocumentStatuses(
+ com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus.Builder
+ builderForValue) {
+ if (individualDocumentStatusesBuilder_ == null) {
+ ensureIndividualDocumentStatusesIsMutable();
+ individualDocumentStatuses_.add(builderForValue.build());
+ onChanged();
+ } else {
+ individualDocumentStatusesBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The list of response details of each document.
+ *
+ *
+ *
+ * repeated .google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus individual_document_statuses = 5;
+ *
+ */
+ public Builder addIndividualDocumentStatuses(
+ int index,
+ com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus.Builder
+ builderForValue) {
+ if (individualDocumentStatusesBuilder_ == null) {
+ ensureIndividualDocumentStatusesIsMutable();
+ individualDocumentStatuses_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ individualDocumentStatusesBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The list of response details of each document.
+ *
+ *
+ *
+ * repeated .google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus individual_document_statuses = 5;
+ *
+ */
+ public Builder addAllIndividualDocumentStatuses(
+ java.lang.Iterable<
+ ? extends
+ com.google.cloud.contentwarehouse.v1.RunPipelineMetadata
+ .IndividualDocumentStatus>
+ values) {
+ if (individualDocumentStatusesBuilder_ == null) {
+ ensureIndividualDocumentStatusesIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, individualDocumentStatuses_);
+ onChanged();
+ } else {
+ individualDocumentStatusesBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The list of response details of each document.
+ *
+ *
+ *
+ * repeated .google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus individual_document_statuses = 5;
+ *
+ */
+ public Builder clearIndividualDocumentStatuses() {
+ if (individualDocumentStatusesBuilder_ == null) {
+ individualDocumentStatuses_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000040);
+ onChanged();
+ } else {
+ individualDocumentStatusesBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The list of response details of each document.
+ *
+ *
+ *
+ * repeated .google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus individual_document_statuses = 5;
+ *
+ */
+ public Builder removeIndividualDocumentStatuses(int index) {
+ if (individualDocumentStatusesBuilder_ == null) {
+ ensureIndividualDocumentStatusesIsMutable();
+ individualDocumentStatuses_.remove(index);
+ onChanged();
+ } else {
+ individualDocumentStatusesBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The list of response details of each document.
+ *
+ *
+ *
+ * repeated .google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus individual_document_statuses = 5;
+ *
+ */
+ public com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus.Builder
+ getIndividualDocumentStatusesBuilder(int index) {
+ return getIndividualDocumentStatusesFieldBuilder().getBuilder(index);
+ }
+ /**
+ *
+ *
+ *
+ * The list of response details of each document.
+ *
+ *
+ *
+ * repeated .google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus individual_document_statuses = 5;
+ *
+ */
+ public com.google.cloud.contentwarehouse.v1.RunPipelineMetadata
+ .IndividualDocumentStatusOrBuilder
+ getIndividualDocumentStatusesOrBuilder(int index) {
+ if (individualDocumentStatusesBuilder_ == null) {
+ return individualDocumentStatuses_.get(index);
+ } else {
+ return individualDocumentStatusesBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The list of response details of each document.
+ *
+ *
+ *
+ * repeated .google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus individual_document_statuses = 5;
+ *
+ */
+ public java.util.List<
+ ? extends
+ com.google.cloud.contentwarehouse.v1.RunPipelineMetadata
+ .IndividualDocumentStatusOrBuilder>
+ getIndividualDocumentStatusesOrBuilderList() {
+ if (individualDocumentStatusesBuilder_ != null) {
+ return individualDocumentStatusesBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(individualDocumentStatuses_);
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The list of response details of each document.
+ *
+ *
+ *
+ * repeated .google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus individual_document_statuses = 5;
+ *
+ */
+ public com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus.Builder
+ addIndividualDocumentStatusesBuilder() {
+ return getIndividualDocumentStatusesFieldBuilder()
+ .addBuilder(
+ com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus
+ .getDefaultInstance());
+ }
+ /**
+ *
+ *
+ *
+ * The list of response details of each document.
+ *
+ *
+ *
+ * repeated .google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus individual_document_statuses = 5;
+ *
+ */
+ public com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus.Builder
+ addIndividualDocumentStatusesBuilder(int index) {
+ return getIndividualDocumentStatusesFieldBuilder()
+ .addBuilder(
+ index,
+ com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus
+ .getDefaultInstance());
+ }
+ /**
+ *
+ *
+ *
+ * The list of response details of each document.
+ *
+ *
+ *
+ * repeated .google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus individual_document_statuses = 5;
+ *
+ */
+ public java.util.List<
+ com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus
+ .Builder>
+ getIndividualDocumentStatusesBuilderList() {
+ return getIndividualDocumentStatusesFieldBuilder().getBuilderList();
+ }
+
+ private com.google.protobuf.RepeatedFieldBuilderV3<
+ com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus,
+ com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus
+ .Builder,
+ com.google.cloud.contentwarehouse.v1.RunPipelineMetadata
+ .IndividualDocumentStatusOrBuilder>
+ getIndividualDocumentStatusesFieldBuilder() {
+ if (individualDocumentStatusesBuilder_ == null) {
+ individualDocumentStatusesBuilder_ =
+ new com.google.protobuf.RepeatedFieldBuilderV3<
+ com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus,
+ com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus
+ .Builder,
+ com.google.cloud.contentwarehouse.v1.RunPipelineMetadata
+ .IndividualDocumentStatusOrBuilder>(
+ individualDocumentStatuses_,
+ ((bitField0_ & 0x00000040) != 0),
+ getParentForChildren(),
+ isClean());
+ individualDocumentStatuses_ = null;
+ }
+ return individualDocumentStatusesBuilder_;
+ }
+
+ @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.contentwarehouse.v1.RunPipelineMetadata)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.RunPipelineMetadata)
+ private static final com.google.cloud.contentwarehouse.v1.RunPipelineMetadata DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.RunPipelineMetadata();
+ }
+
+ public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser PARSER =
+ new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public RunPipelineMetadata parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ Builder builder = newBuilder();
+ try {
+ builder.mergeFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(builder.buildPartial());
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e)
+ .setUnfinishedMessage(builder.buildPartial());
+ }
+ return builder.buildPartial();
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.contentwarehouse.v1.RunPipelineMetadata getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+}
diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RunPipelineMetadataOrBuilder.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RunPipelineMetadataOrBuilder.java
new file mode 100644
index 000000000000..9dfec5393bb6
--- /dev/null
+++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RunPipelineMetadataOrBuilder.java
@@ -0,0 +1,286 @@
+/*
+ * 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/contentwarehouse/v1/pipelines.proto
+
+package com.google.cloud.contentwarehouse.v1;
+
+public interface RunPipelineMetadataOrBuilder
+ extends
+ // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.RunPipelineMetadata)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ *
+ *
+ *
+ * Number of files that were processed by the pipeline.
+ *
+ *
+ * int32 total_file_count = 1;
+ *
+ * @return The totalFileCount.
+ */
+ int getTotalFileCount();
+
+ /**
+ *
+ *
+ *
+ * Number of files that have failed at some point in the pipeline.
+ *
+ *
+ * int32 failed_file_count = 2;
+ *
+ * @return The failedFileCount.
+ */
+ int getFailedFileCount();
+
+ /**
+ *
+ *
+ *
+ * User unique identification and groups information.
+ *
+ *
+ * .google.cloud.contentwarehouse.v1.UserInfo user_info = 3;
+ *
+ * @return Whether the userInfo field is set.
+ */
+ boolean hasUserInfo();
+ /**
+ *
+ *
+ *
+ * User unique identification and groups information.
+ *
+ *
+ * .google.cloud.contentwarehouse.v1.UserInfo user_info = 3;
+ *
+ * @return The userInfo.
+ */
+ com.google.cloud.contentwarehouse.v1.UserInfo getUserInfo();
+ /**
+ *
+ *
+ *
+ * User unique identification and groups information.
+ *
+ *
+ * .google.cloud.contentwarehouse.v1.UserInfo user_info = 3;
+ */
+ com.google.cloud.contentwarehouse.v1.UserInfoOrBuilder getUserInfoOrBuilder();
+
+ /**
+ *
+ *
+ *
+ * The pipeline metadata for GcsIngest pipeline.
+ *
+ *
+ *
+ * .google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata gcs_ingest_pipeline_metadata = 4;
+ *
+ *
+ * @return Whether the gcsIngestPipelineMetadata field is set.
+ */
+ boolean hasGcsIngestPipelineMetadata();
+ /**
+ *
+ *
+ *
+ * The pipeline metadata for GcsIngest pipeline.
+ *
+ *
+ *
+ * .google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata gcs_ingest_pipeline_metadata = 4;
+ *
+ *
+ * @return The gcsIngestPipelineMetadata.
+ */
+ com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata
+ getGcsIngestPipelineMetadata();
+ /**
+ *
+ *
+ *
+ * The pipeline metadata for GcsIngest pipeline.
+ *
+ *
+ *
+ * .google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata gcs_ingest_pipeline_metadata = 4;
+ *
+ */
+ com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadataOrBuilder
+ getGcsIngestPipelineMetadataOrBuilder();
+
+ /**
+ *
+ *
+ *
+ * The pipeline metadata for Export-to-CDW pipeline.
+ *
+ *
+ *
+ * .google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata export_to_cdw_pipeline_metadata = 6;
+ *
+ *
+ * @return Whether the exportToCdwPipelineMetadata field is set.
+ */
+ boolean hasExportToCdwPipelineMetadata();
+ /**
+ *
+ *
+ *
+ * The pipeline metadata for Export-to-CDW pipeline.
+ *
+ *
+ *
+ * .google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata export_to_cdw_pipeline_metadata = 6;
+ *
+ *
+ * @return The exportToCdwPipelineMetadata.
+ */
+ com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata
+ getExportToCdwPipelineMetadata();
+ /**
+ *
+ *
+ *
+ * The pipeline metadata for Export-to-CDW pipeline.
+ *
+ *
+ *
+ * .google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata export_to_cdw_pipeline_metadata = 6;
+ *
+ */
+ com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadataOrBuilder
+ getExportToCdwPipelineMetadataOrBuilder();
+
+ /**
+ *
+ *
+ *
+ * The pipeline metadata for Process-with-DocAi pipeline.
+ *
+ *
+ *
+ * .google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata process_with_doc_ai_pipeline_metadata = 7;
+ *
+ *
+ * @return Whether the processWithDocAiPipelineMetadata field is set.
+ */
+ boolean hasProcessWithDocAiPipelineMetadata();
+ /**
+ *
+ *
+ *
+ * The pipeline metadata for Process-with-DocAi pipeline.
+ *
+ *
+ *
+ * .google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata process_with_doc_ai_pipeline_metadata = 7;
+ *
+ *
+ * @return The processWithDocAiPipelineMetadata.
+ */
+ com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata
+ getProcessWithDocAiPipelineMetadata();
+ /**
+ *
+ *
+ *
+ * The pipeline metadata for Process-with-DocAi pipeline.
+ *
+ *
+ *
+ * .google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata process_with_doc_ai_pipeline_metadata = 7;
+ *
+ */
+ com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadataOrBuilder
+ getProcessWithDocAiPipelineMetadataOrBuilder();
+
+ /**
+ *
+ *
+ *
+ * The list of response details of each document.
+ *
+ *
+ *
+ * repeated .google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus individual_document_statuses = 5;
+ *
+ */
+ java.util.List
+ getIndividualDocumentStatusesList();
+ /**
+ *
+ *
+ *
+ * The list of response details of each document.
+ *
+ *
+ *
+ * repeated .google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus individual_document_statuses = 5;
+ *
+ */
+ com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus
+ getIndividualDocumentStatuses(int index);
+ /**
+ *
+ *
+ *
+ * The list of response details of each document.
+ *
+ *
+ *
+ * repeated .google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus individual_document_statuses = 5;
+ *
+ */
+ int getIndividualDocumentStatusesCount();
+ /**
+ *
+ *
+ *
+ * The list of response details of each document.
+ *
+ *
+ *
+ * repeated .google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus individual_document_statuses = 5;
+ *
+ */
+ java.util.List<
+ ? extends
+ com.google.cloud.contentwarehouse.v1.RunPipelineMetadata
+ .IndividualDocumentStatusOrBuilder>
+ getIndividualDocumentStatusesOrBuilderList();
+ /**
+ *
+ *
+ *
+ * The list of response details of each document.
+ *
+ *
+ *
+ * repeated .google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus individual_document_statuses = 5;
+ *
+ */
+ com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatusOrBuilder
+ getIndividualDocumentStatusesOrBuilder(int index);
+
+ com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.PipelineMetadataCase
+ getPipelineMetadataCase();
+}
diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RunPipelineRequest.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RunPipelineRequest.java
new file mode 100644
index 000000000000..a734e647111e
--- /dev/null
+++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RunPipelineRequest.java
@@ -0,0 +1,2317 @@
+/*
+ * 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/contentwarehouse/v1/pipeline_service.proto
+
+package com.google.cloud.contentwarehouse.v1;
+
+/**
+ *
+ *
+ *
+ * Request message for DocumentService.RunPipeline.
+ *
+ *
+ * Protobuf type {@code google.cloud.contentwarehouse.v1.RunPipelineRequest}
+ */
+public final class RunPipelineRequest extends com.google.protobuf.GeneratedMessageV3
+ implements
+ // @@protoc_insertion_point(message_implements:google.cloud.contentwarehouse.v1.RunPipelineRequest)
+ RunPipelineRequestOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use RunPipelineRequest.newBuilder() to construct.
+ private RunPipelineRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+
+ private RunPipelineRequest() {
+ name_ = "";
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+ return new RunPipelineRequest();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.contentwarehouse.v1.PipelineServiceProto
+ .internal_static_google_cloud_contentwarehouse_v1_RunPipelineRequest_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.contentwarehouse.v1.PipelineServiceProto
+ .internal_static_google_cloud_contentwarehouse_v1_RunPipelineRequest_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.contentwarehouse.v1.RunPipelineRequest.class,
+ com.google.cloud.contentwarehouse.v1.RunPipelineRequest.Builder.class);
+ }
+
+ private int pipelineCase_ = 0;
+
+ @SuppressWarnings("serial")
+ private java.lang.Object pipeline_;
+
+ public enum PipelineCase
+ implements
+ com.google.protobuf.Internal.EnumLite,
+ com.google.protobuf.AbstractMessage.InternalOneOfEnum {
+ GCS_INGEST_PIPELINE(2),
+ GCS_INGEST_WITH_DOC_AI_PROCESSORS_PIPELINE(3),
+ EXPORT_CDW_PIPELINE(4),
+ PROCESS_WITH_DOC_AI_PIPELINE(5),
+ PIPELINE_NOT_SET(0);
+ private final int value;
+
+ private PipelineCase(int value) {
+ this.value = value;
+ }
+ /**
+ * @param value The number of the enum to look for.
+ * @return The enum associated with the given number.
+ * @deprecated Use {@link #forNumber(int)} instead.
+ */
+ @java.lang.Deprecated
+ public static PipelineCase valueOf(int value) {
+ return forNumber(value);
+ }
+
+ public static PipelineCase forNumber(int value) {
+ switch (value) {
+ case 2:
+ return GCS_INGEST_PIPELINE;
+ case 3:
+ return GCS_INGEST_WITH_DOC_AI_PROCESSORS_PIPELINE;
+ case 4:
+ return EXPORT_CDW_PIPELINE;
+ case 5:
+ return PROCESS_WITH_DOC_AI_PIPELINE;
+ case 0:
+ return PIPELINE_NOT_SET;
+ default:
+ return null;
+ }
+ }
+
+ public int getNumber() {
+ return this.value;
+ }
+ };
+
+ public PipelineCase getPipelineCase() {
+ return PipelineCase.forNumber(pipelineCase_);
+ }
+
+ public static final int NAME_FIELD_NUMBER = 1;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object name_ = "";
+ /**
+ *
+ *
+ *
+ * Required. The resource name which owns the resources of the pipeline.
+ * Format: projects/{project_number}/locations/{location}.
+ *
+ *
+ *
+ * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The name.
+ */
+ @java.lang.Override
+ public java.lang.String getName() {
+ java.lang.Object ref = name_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ name_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Required. The resource name which owns the resources of the pipeline.
+ * Format: projects/{project_number}/locations/{location}.
+ *
+ *
+ *
+ * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The bytes for name.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getNameBytes() {
+ java.lang.Object ref = name_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ name_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int GCS_INGEST_PIPELINE_FIELD_NUMBER = 2;
+ /**
+ *
+ *
+ *
+ * Cloud Storage ingestion pipeline.
+ *
+ *
+ * .google.cloud.contentwarehouse.v1.GcsIngestPipeline gcs_ingest_pipeline = 2;
+ *
+ * @return Whether the gcsIngestPipeline field is set.
+ */
+ @java.lang.Override
+ public boolean hasGcsIngestPipeline() {
+ return pipelineCase_ == 2;
+ }
+ /**
+ *
+ *
+ *
+ * Cloud Storage ingestion pipeline.
+ *
+ *
+ * .google.cloud.contentwarehouse.v1.GcsIngestPipeline gcs_ingest_pipeline = 2;
+ *
+ * @return The gcsIngestPipeline.
+ */
+ @java.lang.Override
+ public com.google.cloud.contentwarehouse.v1.GcsIngestPipeline getGcsIngestPipeline() {
+ if (pipelineCase_ == 2) {
+ return (com.google.cloud.contentwarehouse.v1.GcsIngestPipeline) pipeline_;
+ }
+ return com.google.cloud.contentwarehouse.v1.GcsIngestPipeline.getDefaultInstance();
+ }
+ /**
+ *
+ *
+ *
+ * Cloud Storage ingestion pipeline.
+ *
+ *
+ * .google.cloud.contentwarehouse.v1.GcsIngestPipeline gcs_ingest_pipeline = 2;
+ */
+ @java.lang.Override
+ public com.google.cloud.contentwarehouse.v1.GcsIngestPipelineOrBuilder
+ getGcsIngestPipelineOrBuilder() {
+ if (pipelineCase_ == 2) {
+ return (com.google.cloud.contentwarehouse.v1.GcsIngestPipeline) pipeline_;
+ }
+ return com.google.cloud.contentwarehouse.v1.GcsIngestPipeline.getDefaultInstance();
+ }
+
+ public static final int GCS_INGEST_WITH_DOC_AI_PROCESSORS_PIPELINE_FIELD_NUMBER = 3;
+ /**
+ *
+ *
+ *
+ * Use DocAI processors to process documents in Cloud Storage and ingest
+ * them to Document Warehouse.
+ *
+ *
+ *
+ * .google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline gcs_ingest_with_doc_ai_processors_pipeline = 3;
+ *
+ *
+ * @return Whether the gcsIngestWithDocAiProcessorsPipeline field is set.
+ */
+ @java.lang.Override
+ public boolean hasGcsIngestWithDocAiProcessorsPipeline() {
+ return pipelineCase_ == 3;
+ }
+ /**
+ *
+ *
+ *
+ * Use DocAI processors to process documents in Cloud Storage and ingest
+ * them to Document Warehouse.
+ *
+ *
+ *
+ * .google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline gcs_ingest_with_doc_ai_processors_pipeline = 3;
+ *
+ *
+ * @return The gcsIngestWithDocAiProcessorsPipeline.
+ */
+ @java.lang.Override
+ public com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline
+ getGcsIngestWithDocAiProcessorsPipeline() {
+ if (pipelineCase_ == 3) {
+ return (com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline) pipeline_;
+ }
+ return com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline
+ .getDefaultInstance();
+ }
+ /**
+ *
+ *
+ *
+ * Use DocAI processors to process documents in Cloud Storage and ingest
+ * them to Document Warehouse.
+ *
+ *
+ *
+ * .google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline gcs_ingest_with_doc_ai_processors_pipeline = 3;
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipelineOrBuilder
+ getGcsIngestWithDocAiProcessorsPipelineOrBuilder() {
+ if (pipelineCase_ == 3) {
+ return (com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline) pipeline_;
+ }
+ return com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline
+ .getDefaultInstance();
+ }
+
+ public static final int EXPORT_CDW_PIPELINE_FIELD_NUMBER = 4;
+ /**
+ *
+ *
+ *
+ * Export docuemnts from Document Warehouse to CDW for training purpose.
+ *
+ *
+ * .google.cloud.contentwarehouse.v1.ExportToCdwPipeline export_cdw_pipeline = 4;
+ *
+ * @return Whether the exportCdwPipeline field is set.
+ */
+ @java.lang.Override
+ public boolean hasExportCdwPipeline() {
+ return pipelineCase_ == 4;
+ }
+ /**
+ *
+ *
+ *
+ * Export docuemnts from Document Warehouse to CDW for training purpose.
+ *
+ *
+ * .google.cloud.contentwarehouse.v1.ExportToCdwPipeline export_cdw_pipeline = 4;
+ *
+ * @return The exportCdwPipeline.
+ */
+ @java.lang.Override
+ public com.google.cloud.contentwarehouse.v1.ExportToCdwPipeline getExportCdwPipeline() {
+ if (pipelineCase_ == 4) {
+ return (com.google.cloud.contentwarehouse.v1.ExportToCdwPipeline) pipeline_;
+ }
+ return com.google.cloud.contentwarehouse.v1.ExportToCdwPipeline.getDefaultInstance();
+ }
+ /**
+ *
+ *
+ *
+ * Export docuemnts from Document Warehouse to CDW for training purpose.
+ *
+ *
+ * .google.cloud.contentwarehouse.v1.ExportToCdwPipeline export_cdw_pipeline = 4;
+ */
+ @java.lang.Override
+ public com.google.cloud.contentwarehouse.v1.ExportToCdwPipelineOrBuilder
+ getExportCdwPipelineOrBuilder() {
+ if (pipelineCase_ == 4) {
+ return (com.google.cloud.contentwarehouse.v1.ExportToCdwPipeline) pipeline_;
+ }
+ return com.google.cloud.contentwarehouse.v1.ExportToCdwPipeline.getDefaultInstance();
+ }
+
+ public static final int PROCESS_WITH_DOC_AI_PIPELINE_FIELD_NUMBER = 5;
+ /**
+ *
+ *
+ *
+ * Use a DocAI processor to process documents in Document Warehouse, and
+ * re-ingest the updated results into Document Warehouse.
+ *
+ *
+ *
+ * .google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline process_with_doc_ai_pipeline = 5;
+ *
+ *
+ * @return Whether the processWithDocAiPipeline field is set.
+ */
+ @java.lang.Override
+ public boolean hasProcessWithDocAiPipeline() {
+ return pipelineCase_ == 5;
+ }
+ /**
+ *
+ *
+ *
+ * Use a DocAI processor to process documents in Document Warehouse, and
+ * re-ingest the updated results into Document Warehouse.
+ *
+ *
+ *
+ * .google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline process_with_doc_ai_pipeline = 5;
+ *
+ *
+ * @return The processWithDocAiPipeline.
+ */
+ @java.lang.Override
+ public com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline
+ getProcessWithDocAiPipeline() {
+ if (pipelineCase_ == 5) {
+ return (com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline) pipeline_;
+ }
+ return com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline.getDefaultInstance();
+ }
+ /**
+ *
+ *
+ *
+ * Use a DocAI processor to process documents in Document Warehouse, and
+ * re-ingest the updated results into Document Warehouse.
+ *
+ *
+ *
+ * .google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline process_with_doc_ai_pipeline = 5;
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipelineOrBuilder
+ getProcessWithDocAiPipelineOrBuilder() {
+ if (pipelineCase_ == 5) {
+ return (com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline) pipeline_;
+ }
+ return com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline.getDefaultInstance();
+ }
+
+ public static final int REQUEST_METADATA_FIELD_NUMBER = 6;
+ private com.google.cloud.contentwarehouse.v1.RequestMetadata requestMetadata_;
+ /**
+ *
+ *
+ *
+ * The meta information collected about the end user, used to enforce access
+ * control for the service.
+ *
+ *
+ * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 6;
+ *
+ * @return Whether the requestMetadata field is set.
+ */
+ @java.lang.Override
+ public boolean hasRequestMetadata() {
+ return requestMetadata_ != null;
+ }
+ /**
+ *
+ *
+ *
+ * The meta information collected about the end user, used to enforce access
+ * control for the service.
+ *
+ *
+ * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 6;
+ *
+ * @return The requestMetadata.
+ */
+ @java.lang.Override
+ public com.google.cloud.contentwarehouse.v1.RequestMetadata getRequestMetadata() {
+ return requestMetadata_ == null
+ ? com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance()
+ : requestMetadata_;
+ }
+ /**
+ *
+ *
+ *
+ * The meta information collected about the end user, used to enforce access
+ * control for the service.
+ *
+ *
+ * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 6;
+ */
+ @java.lang.Override
+ public com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder
+ getRequestMetadataOrBuilder() {
+ return requestMetadata_ == null
+ ? com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance()
+ : requestMetadata_;
+ }
+
+ 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(name_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
+ }
+ if (pipelineCase_ == 2) {
+ output.writeMessage(2, (com.google.cloud.contentwarehouse.v1.GcsIngestPipeline) pipeline_);
+ }
+ if (pipelineCase_ == 3) {
+ output.writeMessage(
+ 3, (com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline) pipeline_);
+ }
+ if (pipelineCase_ == 4) {
+ output.writeMessage(4, (com.google.cloud.contentwarehouse.v1.ExportToCdwPipeline) pipeline_);
+ }
+ if (pipelineCase_ == 5) {
+ output.writeMessage(
+ 5, (com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline) pipeline_);
+ }
+ if (requestMetadata_ != null) {
+ output.writeMessage(6, getRequestMetadata());
+ }
+ 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(name_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
+ }
+ if (pipelineCase_ == 2) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 2, (com.google.cloud.contentwarehouse.v1.GcsIngestPipeline) pipeline_);
+ }
+ if (pipelineCase_ == 3) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 3,
+ (com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline)
+ pipeline_);
+ }
+ if (pipelineCase_ == 4) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 4, (com.google.cloud.contentwarehouse.v1.ExportToCdwPipeline) pipeline_);
+ }
+ if (pipelineCase_ == 5) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 5, (com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline) pipeline_);
+ }
+ if (requestMetadata_ != null) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getRequestMetadata());
+ }
+ 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.contentwarehouse.v1.RunPipelineRequest)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.contentwarehouse.v1.RunPipelineRequest other =
+ (com.google.cloud.contentwarehouse.v1.RunPipelineRequest) obj;
+
+ if (!getName().equals(other.getName())) return false;
+ if (hasRequestMetadata() != other.hasRequestMetadata()) return false;
+ if (hasRequestMetadata()) {
+ if (!getRequestMetadata().equals(other.getRequestMetadata())) return false;
+ }
+ if (!getPipelineCase().equals(other.getPipelineCase())) return false;
+ switch (pipelineCase_) {
+ case 2:
+ if (!getGcsIngestPipeline().equals(other.getGcsIngestPipeline())) return false;
+ break;
+ case 3:
+ if (!getGcsIngestWithDocAiProcessorsPipeline()
+ .equals(other.getGcsIngestWithDocAiProcessorsPipeline())) return false;
+ break;
+ case 4:
+ if (!getExportCdwPipeline().equals(other.getExportCdwPipeline())) return false;
+ break;
+ case 5:
+ if (!getProcessWithDocAiPipeline().equals(other.getProcessWithDocAiPipeline()))
+ return false;
+ break;
+ case 0:
+ default:
+ }
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + NAME_FIELD_NUMBER;
+ hash = (53 * hash) + getName().hashCode();
+ if (hasRequestMetadata()) {
+ hash = (37 * hash) + REQUEST_METADATA_FIELD_NUMBER;
+ hash = (53 * hash) + getRequestMetadata().hashCode();
+ }
+ switch (pipelineCase_) {
+ case 2:
+ hash = (37 * hash) + GCS_INGEST_PIPELINE_FIELD_NUMBER;
+ hash = (53 * hash) + getGcsIngestPipeline().hashCode();
+ break;
+ case 3:
+ hash = (37 * hash) + GCS_INGEST_WITH_DOC_AI_PROCESSORS_PIPELINE_FIELD_NUMBER;
+ hash = (53 * hash) + getGcsIngestWithDocAiProcessorsPipeline().hashCode();
+ break;
+ case 4:
+ hash = (37 * hash) + EXPORT_CDW_PIPELINE_FIELD_NUMBER;
+ hash = (53 * hash) + getExportCdwPipeline().hashCode();
+ break;
+ case 5:
+ hash = (37 * hash) + PROCESS_WITH_DOC_AI_PIPELINE_FIELD_NUMBER;
+ hash = (53 * hash) + getProcessWithDocAiPipeline().hashCode();
+ break;
+ case 0:
+ default:
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.contentwarehouse.v1.RunPipelineRequest parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.contentwarehouse.v1.RunPipelineRequest 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.contentwarehouse.v1.RunPipelineRequest parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.contentwarehouse.v1.RunPipelineRequest 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.contentwarehouse.v1.RunPipelineRequest parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.contentwarehouse.v1.RunPipelineRequest parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.contentwarehouse.v1.RunPipelineRequest parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.contentwarehouse.v1.RunPipelineRequest 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.contentwarehouse.v1.RunPipelineRequest parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.contentwarehouse.v1.RunPipelineRequest 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.contentwarehouse.v1.RunPipelineRequest parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.contentwarehouse.v1.RunPipelineRequest 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.contentwarehouse.v1.RunPipelineRequest 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;
+ }
+ /**
+ *
+ *
+ *
+ * Request message for DocumentService.RunPipeline.
+ *
+ *
+ * Protobuf type {@code google.cloud.contentwarehouse.v1.RunPipelineRequest}
+ */
+ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ implements
+ // @@protoc_insertion_point(builder_implements:google.cloud.contentwarehouse.v1.RunPipelineRequest)
+ com.google.cloud.contentwarehouse.v1.RunPipelineRequestOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.contentwarehouse.v1.PipelineServiceProto
+ .internal_static_google_cloud_contentwarehouse_v1_RunPipelineRequest_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.contentwarehouse.v1.PipelineServiceProto
+ .internal_static_google_cloud_contentwarehouse_v1_RunPipelineRequest_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.contentwarehouse.v1.RunPipelineRequest.class,
+ com.google.cloud.contentwarehouse.v1.RunPipelineRequest.Builder.class);
+ }
+
+ // Construct using com.google.cloud.contentwarehouse.v1.RunPipelineRequest.newBuilder()
+ private Builder() {}
+
+ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ }
+
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ name_ = "";
+ if (gcsIngestPipelineBuilder_ != null) {
+ gcsIngestPipelineBuilder_.clear();
+ }
+ if (gcsIngestWithDocAiProcessorsPipelineBuilder_ != null) {
+ gcsIngestWithDocAiProcessorsPipelineBuilder_.clear();
+ }
+ if (exportCdwPipelineBuilder_ != null) {
+ exportCdwPipelineBuilder_.clear();
+ }
+ if (processWithDocAiPipelineBuilder_ != null) {
+ processWithDocAiPipelineBuilder_.clear();
+ }
+ requestMetadata_ = null;
+ if (requestMetadataBuilder_ != null) {
+ requestMetadataBuilder_.dispose();
+ requestMetadataBuilder_ = null;
+ }
+ pipelineCase_ = 0;
+ pipeline_ = null;
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+ return com.google.cloud.contentwarehouse.v1.PipelineServiceProto
+ .internal_static_google_cloud_contentwarehouse_v1_RunPipelineRequest_descriptor;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.contentwarehouse.v1.RunPipelineRequest getDefaultInstanceForType() {
+ return com.google.cloud.contentwarehouse.v1.RunPipelineRequest.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public com.google.cloud.contentwarehouse.v1.RunPipelineRequest build() {
+ com.google.cloud.contentwarehouse.v1.RunPipelineRequest result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.contentwarehouse.v1.RunPipelineRequest buildPartial() {
+ com.google.cloud.contentwarehouse.v1.RunPipelineRequest result =
+ new com.google.cloud.contentwarehouse.v1.RunPipelineRequest(this);
+ if (bitField0_ != 0) {
+ buildPartial0(result);
+ }
+ buildPartialOneofs(result);
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartial0(com.google.cloud.contentwarehouse.v1.RunPipelineRequest result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.name_ = name_;
+ }
+ if (((from_bitField0_ & 0x00000020) != 0)) {
+ result.requestMetadata_ =
+ requestMetadataBuilder_ == null ? requestMetadata_ : requestMetadataBuilder_.build();
+ }
+ }
+
+ private void buildPartialOneofs(
+ com.google.cloud.contentwarehouse.v1.RunPipelineRequest result) {
+ result.pipelineCase_ = pipelineCase_;
+ result.pipeline_ = this.pipeline_;
+ if (pipelineCase_ == 2 && gcsIngestPipelineBuilder_ != null) {
+ result.pipeline_ = gcsIngestPipelineBuilder_.build();
+ }
+ if (pipelineCase_ == 3 && gcsIngestWithDocAiProcessorsPipelineBuilder_ != null) {
+ result.pipeline_ = gcsIngestWithDocAiProcessorsPipelineBuilder_.build();
+ }
+ if (pipelineCase_ == 4 && exportCdwPipelineBuilder_ != null) {
+ result.pipeline_ = exportCdwPipelineBuilder_.build();
+ }
+ if (pipelineCase_ == 5 && processWithDocAiPipelineBuilder_ != null) {
+ result.pipeline_ = processWithDocAiPipelineBuilder_.build();
+ }
+ }
+
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+ return super.setField(field, value);
+ }
+
+ @java.lang.Override
+ public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+
+ @java.lang.Override
+ public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+ return super.addRepeatedField(field, value);
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof com.google.cloud.contentwarehouse.v1.RunPipelineRequest) {
+ return mergeFrom((com.google.cloud.contentwarehouse.v1.RunPipelineRequest) other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.RunPipelineRequest other) {
+ if (other == com.google.cloud.contentwarehouse.v1.RunPipelineRequest.getDefaultInstance())
+ return this;
+ if (!other.getName().isEmpty()) {
+ name_ = other.name_;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ }
+ if (other.hasRequestMetadata()) {
+ mergeRequestMetadata(other.getRequestMetadata());
+ }
+ switch (other.getPipelineCase()) {
+ case GCS_INGEST_PIPELINE:
+ {
+ mergeGcsIngestPipeline(other.getGcsIngestPipeline());
+ break;
+ }
+ case GCS_INGEST_WITH_DOC_AI_PROCESSORS_PIPELINE:
+ {
+ mergeGcsIngestWithDocAiProcessorsPipeline(
+ other.getGcsIngestWithDocAiProcessorsPipeline());
+ break;
+ }
+ case EXPORT_CDW_PIPELINE:
+ {
+ mergeExportCdwPipeline(other.getExportCdwPipeline());
+ break;
+ }
+ case PROCESS_WITH_DOC_AI_PIPELINE:
+ {
+ mergeProcessWithDocAiPipeline(other.getProcessWithDocAiPipeline());
+ break;
+ }
+ case PIPELINE_NOT_SET:
+ {
+ break;
+ }
+ }
+ this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10:
+ {
+ name_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000001;
+ break;
+ } // case 10
+ case 18:
+ {
+ input.readMessage(
+ getGcsIngestPipelineFieldBuilder().getBuilder(), extensionRegistry);
+ pipelineCase_ = 2;
+ break;
+ } // case 18
+ case 26:
+ {
+ input.readMessage(
+ getGcsIngestWithDocAiProcessorsPipelineFieldBuilder().getBuilder(),
+ extensionRegistry);
+ pipelineCase_ = 3;
+ break;
+ } // case 26
+ case 34:
+ {
+ input.readMessage(
+ getExportCdwPipelineFieldBuilder().getBuilder(), extensionRegistry);
+ pipelineCase_ = 4;
+ break;
+ } // case 34
+ case 42:
+ {
+ input.readMessage(
+ getProcessWithDocAiPipelineFieldBuilder().getBuilder(), extensionRegistry);
+ pipelineCase_ = 5;
+ break;
+ } // case 42
+ case 50:
+ {
+ input.readMessage(getRequestMetadataFieldBuilder().getBuilder(), extensionRegistry);
+ bitField0_ |= 0x00000020;
+ break;
+ } // case 50
+ default:
+ {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.unwrapIOException();
+ } finally {
+ onChanged();
+ } // finally
+ return this;
+ }
+
+ private int pipelineCase_ = 0;
+ private java.lang.Object pipeline_;
+
+ public PipelineCase getPipelineCase() {
+ return PipelineCase.forNumber(pipelineCase_);
+ }
+
+ public Builder clearPipeline() {
+ pipelineCase_ = 0;
+ pipeline_ = null;
+ onChanged();
+ return this;
+ }
+
+ private int bitField0_;
+
+ private java.lang.Object name_ = "";
+ /**
+ *
+ *
+ *
+ * Required. The resource name which owns the resources of the pipeline.
+ * Format: projects/{project_number}/locations/{location}.
+ *
+ *
+ *
+ * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The name.
+ */
+ public java.lang.String getName() {
+ java.lang.Object ref = name_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ name_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Required. The resource name which owns the resources of the pipeline.
+ * Format: projects/{project_number}/locations/{location}.
+ *
+ *
+ *
+ * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The bytes for name.
+ */
+ public com.google.protobuf.ByteString getNameBytes() {
+ java.lang.Object ref = name_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ name_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Required. The resource name which owns the resources of the pipeline.
+ * Format: projects/{project_number}/locations/{location}.
+ *
+ *
+ *
+ * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @param value The name to set.
+ * @return This builder for chaining.
+ */
+ public Builder setName(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ name_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Required. The resource name which owns the resources of the pipeline.
+ * Format: projects/{project_number}/locations/{location}.
+ *
+ *
+ *
+ * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearName() {
+ name_ = getDefaultInstance().getName();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Required. The resource name which owns the resources of the pipeline.
+ * Format: projects/{project_number}/locations/{location}.
+ *
+ *
+ *
+ * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @param value The bytes for name to set.
+ * @return This builder for chaining.
+ */
+ public Builder setNameBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ name_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.contentwarehouse.v1.GcsIngestPipeline,
+ com.google.cloud.contentwarehouse.v1.GcsIngestPipeline.Builder,
+ com.google.cloud.contentwarehouse.v1.GcsIngestPipelineOrBuilder>
+ gcsIngestPipelineBuilder_;
+ /**
+ *
+ *
+ *
+ * Cloud Storage ingestion pipeline.
+ *
+ *
+ * .google.cloud.contentwarehouse.v1.GcsIngestPipeline gcs_ingest_pipeline = 2;
+ *
+ * @return Whether the gcsIngestPipeline field is set.
+ */
+ @java.lang.Override
+ public boolean hasGcsIngestPipeline() {
+ return pipelineCase_ == 2;
+ }
+ /**
+ *
+ *
+ *
+ * Cloud Storage ingestion pipeline.
+ *
+ *
+ * .google.cloud.contentwarehouse.v1.GcsIngestPipeline gcs_ingest_pipeline = 2;
+ *
+ * @return The gcsIngestPipeline.
+ */
+ @java.lang.Override
+ public com.google.cloud.contentwarehouse.v1.GcsIngestPipeline getGcsIngestPipeline() {
+ if (gcsIngestPipelineBuilder_ == null) {
+ if (pipelineCase_ == 2) {
+ return (com.google.cloud.contentwarehouse.v1.GcsIngestPipeline) pipeline_;
+ }
+ return com.google.cloud.contentwarehouse.v1.GcsIngestPipeline.getDefaultInstance();
+ } else {
+ if (pipelineCase_ == 2) {
+ return gcsIngestPipelineBuilder_.getMessage();
+ }
+ return com.google.cloud.contentwarehouse.v1.GcsIngestPipeline.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Cloud Storage ingestion pipeline.
+ *
+ *
+ * .google.cloud.contentwarehouse.v1.GcsIngestPipeline gcs_ingest_pipeline = 2;
+ */
+ public Builder setGcsIngestPipeline(
+ com.google.cloud.contentwarehouse.v1.GcsIngestPipeline value) {
+ if (gcsIngestPipelineBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ pipeline_ = value;
+ onChanged();
+ } else {
+ gcsIngestPipelineBuilder_.setMessage(value);
+ }
+ pipelineCase_ = 2;
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Cloud Storage ingestion pipeline.
+ *
+ *
+ * .google.cloud.contentwarehouse.v1.GcsIngestPipeline gcs_ingest_pipeline = 2;
+ */
+ public Builder setGcsIngestPipeline(
+ com.google.cloud.contentwarehouse.v1.GcsIngestPipeline.Builder builderForValue) {
+ if (gcsIngestPipelineBuilder_ == null) {
+ pipeline_ = builderForValue.build();
+ onChanged();
+ } else {
+ gcsIngestPipelineBuilder_.setMessage(builderForValue.build());
+ }
+ pipelineCase_ = 2;
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Cloud Storage ingestion pipeline.
+ *
+ *
+ * .google.cloud.contentwarehouse.v1.GcsIngestPipeline gcs_ingest_pipeline = 2;
+ */
+ public Builder mergeGcsIngestPipeline(
+ com.google.cloud.contentwarehouse.v1.GcsIngestPipeline value) {
+ if (gcsIngestPipelineBuilder_ == null) {
+ if (pipelineCase_ == 2
+ && pipeline_
+ != com.google.cloud.contentwarehouse.v1.GcsIngestPipeline.getDefaultInstance()) {
+ pipeline_ =
+ com.google.cloud.contentwarehouse.v1.GcsIngestPipeline.newBuilder(
+ (com.google.cloud.contentwarehouse.v1.GcsIngestPipeline) pipeline_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ pipeline_ = value;
+ }
+ onChanged();
+ } else {
+ if (pipelineCase_ == 2) {
+ gcsIngestPipelineBuilder_.mergeFrom(value);
+ } else {
+ gcsIngestPipelineBuilder_.setMessage(value);
+ }
+ }
+ pipelineCase_ = 2;
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Cloud Storage ingestion pipeline.
+ *
+ *
+ * .google.cloud.contentwarehouse.v1.GcsIngestPipeline gcs_ingest_pipeline = 2;
+ */
+ public Builder clearGcsIngestPipeline() {
+ if (gcsIngestPipelineBuilder_ == null) {
+ if (pipelineCase_ == 2) {
+ pipelineCase_ = 0;
+ pipeline_ = null;
+ onChanged();
+ }
+ } else {
+ if (pipelineCase_ == 2) {
+ pipelineCase_ = 0;
+ pipeline_ = null;
+ }
+ gcsIngestPipelineBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Cloud Storage ingestion pipeline.
+ *
+ *
+ * .google.cloud.contentwarehouse.v1.GcsIngestPipeline gcs_ingest_pipeline = 2;
+ */
+ public com.google.cloud.contentwarehouse.v1.GcsIngestPipeline.Builder
+ getGcsIngestPipelineBuilder() {
+ return getGcsIngestPipelineFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ *
+ * Cloud Storage ingestion pipeline.
+ *
+ *
+ * .google.cloud.contentwarehouse.v1.GcsIngestPipeline gcs_ingest_pipeline = 2;
+ */
+ @java.lang.Override
+ public com.google.cloud.contentwarehouse.v1.GcsIngestPipelineOrBuilder
+ getGcsIngestPipelineOrBuilder() {
+ if ((pipelineCase_ == 2) && (gcsIngestPipelineBuilder_ != null)) {
+ return gcsIngestPipelineBuilder_.getMessageOrBuilder();
+ } else {
+ if (pipelineCase_ == 2) {
+ return (com.google.cloud.contentwarehouse.v1.GcsIngestPipeline) pipeline_;
+ }
+ return com.google.cloud.contentwarehouse.v1.GcsIngestPipeline.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Cloud Storage ingestion pipeline.
+ *
+ *
+ * .google.cloud.contentwarehouse.v1.GcsIngestPipeline gcs_ingest_pipeline = 2;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.contentwarehouse.v1.GcsIngestPipeline,
+ com.google.cloud.contentwarehouse.v1.GcsIngestPipeline.Builder,
+ com.google.cloud.contentwarehouse.v1.GcsIngestPipelineOrBuilder>
+ getGcsIngestPipelineFieldBuilder() {
+ if (gcsIngestPipelineBuilder_ == null) {
+ if (!(pipelineCase_ == 2)) {
+ pipeline_ = com.google.cloud.contentwarehouse.v1.GcsIngestPipeline.getDefaultInstance();
+ }
+ gcsIngestPipelineBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.contentwarehouse.v1.GcsIngestPipeline,
+ com.google.cloud.contentwarehouse.v1.GcsIngestPipeline.Builder,
+ com.google.cloud.contentwarehouse.v1.GcsIngestPipelineOrBuilder>(
+ (com.google.cloud.contentwarehouse.v1.GcsIngestPipeline) pipeline_,
+ getParentForChildren(),
+ isClean());
+ pipeline_ = null;
+ }
+ pipelineCase_ = 2;
+ onChanged();
+ return gcsIngestPipelineBuilder_;
+ }
+
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline,
+ com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline.Builder,
+ com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipelineOrBuilder>
+ gcsIngestWithDocAiProcessorsPipelineBuilder_;
+ /**
+ *
+ *
+ *
+ * Use DocAI processors to process documents in Cloud Storage and ingest
+ * them to Document Warehouse.
+ *
+ *
+ *
+ * .google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline gcs_ingest_with_doc_ai_processors_pipeline = 3;
+ *
+ *
+ * @return Whether the gcsIngestWithDocAiProcessorsPipeline field is set.
+ */
+ @java.lang.Override
+ public boolean hasGcsIngestWithDocAiProcessorsPipeline() {
+ return pipelineCase_ == 3;
+ }
+ /**
+ *
+ *
+ *
+ * Use DocAI processors to process documents in Cloud Storage and ingest
+ * them to Document Warehouse.
+ *
+ *
+ *
+ * .google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline gcs_ingest_with_doc_ai_processors_pipeline = 3;
+ *
+ *
+ * @return The gcsIngestWithDocAiProcessorsPipeline.
+ */
+ @java.lang.Override
+ public com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline
+ getGcsIngestWithDocAiProcessorsPipeline() {
+ if (gcsIngestWithDocAiProcessorsPipelineBuilder_ == null) {
+ if (pipelineCase_ == 3) {
+ return (com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline)
+ pipeline_;
+ }
+ return com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline
+ .getDefaultInstance();
+ } else {
+ if (pipelineCase_ == 3) {
+ return gcsIngestWithDocAiProcessorsPipelineBuilder_.getMessage();
+ }
+ return com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline
+ .getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Use DocAI processors to process documents in Cloud Storage and ingest
+ * them to Document Warehouse.
+ *
+ *
+ *
+ * .google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline gcs_ingest_with_doc_ai_processors_pipeline = 3;
+ *
+ */
+ public Builder setGcsIngestWithDocAiProcessorsPipeline(
+ com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline value) {
+ if (gcsIngestWithDocAiProcessorsPipelineBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ pipeline_ = value;
+ onChanged();
+ } else {
+ gcsIngestWithDocAiProcessorsPipelineBuilder_.setMessage(value);
+ }
+ pipelineCase_ = 3;
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Use DocAI processors to process documents in Cloud Storage and ingest
+ * them to Document Warehouse.
+ *
+ *
+ *
+ * .google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline gcs_ingest_with_doc_ai_processors_pipeline = 3;
+ *
+ */
+ public Builder setGcsIngestWithDocAiProcessorsPipeline(
+ com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline.Builder
+ builderForValue) {
+ if (gcsIngestWithDocAiProcessorsPipelineBuilder_ == null) {
+ pipeline_ = builderForValue.build();
+ onChanged();
+ } else {
+ gcsIngestWithDocAiProcessorsPipelineBuilder_.setMessage(builderForValue.build());
+ }
+ pipelineCase_ = 3;
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Use DocAI processors to process documents in Cloud Storage and ingest
+ * them to Document Warehouse.
+ *
+ *
+ *
+ * .google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline gcs_ingest_with_doc_ai_processors_pipeline = 3;
+ *
+ */
+ public Builder mergeGcsIngestWithDocAiProcessorsPipeline(
+ com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline value) {
+ if (gcsIngestWithDocAiProcessorsPipelineBuilder_ == null) {
+ if (pipelineCase_ == 3
+ && pipeline_
+ != com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline
+ .getDefaultInstance()) {
+ pipeline_ =
+ com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline.newBuilder(
+ (com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline)
+ pipeline_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ pipeline_ = value;
+ }
+ onChanged();
+ } else {
+ if (pipelineCase_ == 3) {
+ gcsIngestWithDocAiProcessorsPipelineBuilder_.mergeFrom(value);
+ } else {
+ gcsIngestWithDocAiProcessorsPipelineBuilder_.setMessage(value);
+ }
+ }
+ pipelineCase_ = 3;
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Use DocAI processors to process documents in Cloud Storage and ingest
+ * them to Document Warehouse.
+ *
+ *
+ *
+ * .google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline gcs_ingest_with_doc_ai_processors_pipeline = 3;
+ *
+ */
+ public Builder clearGcsIngestWithDocAiProcessorsPipeline() {
+ if (gcsIngestWithDocAiProcessorsPipelineBuilder_ == null) {
+ if (pipelineCase_ == 3) {
+ pipelineCase_ = 0;
+ pipeline_ = null;
+ onChanged();
+ }
+ } else {
+ if (pipelineCase_ == 3) {
+ pipelineCase_ = 0;
+ pipeline_ = null;
+ }
+ gcsIngestWithDocAiProcessorsPipelineBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Use DocAI processors to process documents in Cloud Storage and ingest
+ * them to Document Warehouse.
+ *
+ *
+ *
+ * .google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline gcs_ingest_with_doc_ai_processors_pipeline = 3;
+ *
+ */
+ public com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline.Builder
+ getGcsIngestWithDocAiProcessorsPipelineBuilder() {
+ return getGcsIngestWithDocAiProcessorsPipelineFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ *
+ * Use DocAI processors to process documents in Cloud Storage and ingest
+ * them to Document Warehouse.
+ *
+ *
+ *
+ * .google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline gcs_ingest_with_doc_ai_processors_pipeline = 3;
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipelineOrBuilder
+ getGcsIngestWithDocAiProcessorsPipelineOrBuilder() {
+ if ((pipelineCase_ == 3) && (gcsIngestWithDocAiProcessorsPipelineBuilder_ != null)) {
+ return gcsIngestWithDocAiProcessorsPipelineBuilder_.getMessageOrBuilder();
+ } else {
+ if (pipelineCase_ == 3) {
+ return (com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline)
+ pipeline_;
+ }
+ return com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline
+ .getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Use DocAI processors to process documents in Cloud Storage and ingest
+ * them to Document Warehouse.
+ *
+ *
+ *
+ * .google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline gcs_ingest_with_doc_ai_processors_pipeline = 3;
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline,
+ com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline.Builder,
+ com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipelineOrBuilder>
+ getGcsIngestWithDocAiProcessorsPipelineFieldBuilder() {
+ if (gcsIngestWithDocAiProcessorsPipelineBuilder_ == null) {
+ if (!(pipelineCase_ == 3)) {
+ pipeline_ =
+ com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline
+ .getDefaultInstance();
+ }
+ gcsIngestWithDocAiProcessorsPipelineBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline,
+ com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline.Builder,
+ com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipelineOrBuilder>(
+ (com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline)
+ pipeline_,
+ getParentForChildren(),
+ isClean());
+ pipeline_ = null;
+ }
+ pipelineCase_ = 3;
+ onChanged();
+ return gcsIngestWithDocAiProcessorsPipelineBuilder_;
+ }
+
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.contentwarehouse.v1.ExportToCdwPipeline,
+ com.google.cloud.contentwarehouse.v1.ExportToCdwPipeline.Builder,
+ com.google.cloud.contentwarehouse.v1.ExportToCdwPipelineOrBuilder>
+ exportCdwPipelineBuilder_;
+ /**
+ *
+ *
+ *
+ * Export docuemnts from Document Warehouse to CDW for training purpose.
+ *
+ *
+ * .google.cloud.contentwarehouse.v1.ExportToCdwPipeline export_cdw_pipeline = 4;
+ *
+ * @return Whether the exportCdwPipeline field is set.
+ */
+ @java.lang.Override
+ public boolean hasExportCdwPipeline() {
+ return pipelineCase_ == 4;
+ }
+ /**
+ *
+ *
+ *
+ * Export docuemnts from Document Warehouse to CDW for training purpose.
+ *
+ *
+ * .google.cloud.contentwarehouse.v1.ExportToCdwPipeline export_cdw_pipeline = 4;
+ *
+ * @return The exportCdwPipeline.
+ */
+ @java.lang.Override
+ public com.google.cloud.contentwarehouse.v1.ExportToCdwPipeline getExportCdwPipeline() {
+ if (exportCdwPipelineBuilder_ == null) {
+ if (pipelineCase_ == 4) {
+ return (com.google.cloud.contentwarehouse.v1.ExportToCdwPipeline) pipeline_;
+ }
+ return com.google.cloud.contentwarehouse.v1.ExportToCdwPipeline.getDefaultInstance();
+ } else {
+ if (pipelineCase_ == 4) {
+ return exportCdwPipelineBuilder_.getMessage();
+ }
+ return com.google.cloud.contentwarehouse.v1.ExportToCdwPipeline.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Export docuemnts from Document Warehouse to CDW for training purpose.
+ *
+ *
+ * .google.cloud.contentwarehouse.v1.ExportToCdwPipeline export_cdw_pipeline = 4;
+ */
+ public Builder setExportCdwPipeline(
+ com.google.cloud.contentwarehouse.v1.ExportToCdwPipeline value) {
+ if (exportCdwPipelineBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ pipeline_ = value;
+ onChanged();
+ } else {
+ exportCdwPipelineBuilder_.setMessage(value);
+ }
+ pipelineCase_ = 4;
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Export docuemnts from Document Warehouse to CDW for training purpose.
+ *
+ *
+ * .google.cloud.contentwarehouse.v1.ExportToCdwPipeline export_cdw_pipeline = 4;
+ */
+ public Builder setExportCdwPipeline(
+ com.google.cloud.contentwarehouse.v1.ExportToCdwPipeline.Builder builderForValue) {
+ if (exportCdwPipelineBuilder_ == null) {
+ pipeline_ = builderForValue.build();
+ onChanged();
+ } else {
+ exportCdwPipelineBuilder_.setMessage(builderForValue.build());
+ }
+ pipelineCase_ = 4;
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Export docuemnts from Document Warehouse to CDW for training purpose.
+ *
+ *
+ * .google.cloud.contentwarehouse.v1.ExportToCdwPipeline export_cdw_pipeline = 4;
+ */
+ public Builder mergeExportCdwPipeline(
+ com.google.cloud.contentwarehouse.v1.ExportToCdwPipeline value) {
+ if (exportCdwPipelineBuilder_ == null) {
+ if (pipelineCase_ == 4
+ && pipeline_
+ != com.google.cloud.contentwarehouse.v1.ExportToCdwPipeline.getDefaultInstance()) {
+ pipeline_ =
+ com.google.cloud.contentwarehouse.v1.ExportToCdwPipeline.newBuilder(
+ (com.google.cloud.contentwarehouse.v1.ExportToCdwPipeline) pipeline_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ pipeline_ = value;
+ }
+ onChanged();
+ } else {
+ if (pipelineCase_ == 4) {
+ exportCdwPipelineBuilder_.mergeFrom(value);
+ } else {
+ exportCdwPipelineBuilder_.setMessage(value);
+ }
+ }
+ pipelineCase_ = 4;
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Export docuemnts from Document Warehouse to CDW for training purpose.
+ *
+ *
+ * .google.cloud.contentwarehouse.v1.ExportToCdwPipeline export_cdw_pipeline = 4;
+ */
+ public Builder clearExportCdwPipeline() {
+ if (exportCdwPipelineBuilder_ == null) {
+ if (pipelineCase_ == 4) {
+ pipelineCase_ = 0;
+ pipeline_ = null;
+ onChanged();
+ }
+ } else {
+ if (pipelineCase_ == 4) {
+ pipelineCase_ = 0;
+ pipeline_ = null;
+ }
+ exportCdwPipelineBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Export docuemnts from Document Warehouse to CDW for training purpose.
+ *
+ *
+ * .google.cloud.contentwarehouse.v1.ExportToCdwPipeline export_cdw_pipeline = 4;
+ */
+ public com.google.cloud.contentwarehouse.v1.ExportToCdwPipeline.Builder
+ getExportCdwPipelineBuilder() {
+ return getExportCdwPipelineFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ *
+ * Export docuemnts from Document Warehouse to CDW for training purpose.
+ *
+ *
+ * .google.cloud.contentwarehouse.v1.ExportToCdwPipeline export_cdw_pipeline = 4;
+ */
+ @java.lang.Override
+ public com.google.cloud.contentwarehouse.v1.ExportToCdwPipelineOrBuilder
+ getExportCdwPipelineOrBuilder() {
+ if ((pipelineCase_ == 4) && (exportCdwPipelineBuilder_ != null)) {
+ return exportCdwPipelineBuilder_.getMessageOrBuilder();
+ } else {
+ if (pipelineCase_ == 4) {
+ return (com.google.cloud.contentwarehouse.v1.ExportToCdwPipeline) pipeline_;
+ }
+ return com.google.cloud.contentwarehouse.v1.ExportToCdwPipeline.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Export docuemnts from Document Warehouse to CDW for training purpose.
+ *
+ *
+ * .google.cloud.contentwarehouse.v1.ExportToCdwPipeline export_cdw_pipeline = 4;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.contentwarehouse.v1.ExportToCdwPipeline,
+ com.google.cloud.contentwarehouse.v1.ExportToCdwPipeline.Builder,
+ com.google.cloud.contentwarehouse.v1.ExportToCdwPipelineOrBuilder>
+ getExportCdwPipelineFieldBuilder() {
+ if (exportCdwPipelineBuilder_ == null) {
+ if (!(pipelineCase_ == 4)) {
+ pipeline_ = com.google.cloud.contentwarehouse.v1.ExportToCdwPipeline.getDefaultInstance();
+ }
+ exportCdwPipelineBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.contentwarehouse.v1.ExportToCdwPipeline,
+ com.google.cloud.contentwarehouse.v1.ExportToCdwPipeline.Builder,
+ com.google.cloud.contentwarehouse.v1.ExportToCdwPipelineOrBuilder>(
+ (com.google.cloud.contentwarehouse.v1.ExportToCdwPipeline) pipeline_,
+ getParentForChildren(),
+ isClean());
+ pipeline_ = null;
+ }
+ pipelineCase_ = 4;
+ onChanged();
+ return exportCdwPipelineBuilder_;
+ }
+
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline,
+ com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline.Builder,
+ com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipelineOrBuilder>
+ processWithDocAiPipelineBuilder_;
+ /**
+ *
+ *
+ *
+ * Use a DocAI processor to process documents in Document Warehouse, and
+ * re-ingest the updated results into Document Warehouse.
+ *
+ *
+ *
+ * .google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline process_with_doc_ai_pipeline = 5;
+ *
+ *
+ * @return Whether the processWithDocAiPipeline field is set.
+ */
+ @java.lang.Override
+ public boolean hasProcessWithDocAiPipeline() {
+ return pipelineCase_ == 5;
+ }
+ /**
+ *
+ *
+ *
+ * Use a DocAI processor to process documents in Document Warehouse, and
+ * re-ingest the updated results into Document Warehouse.
+ *
+ *
+ *
+ * .google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline process_with_doc_ai_pipeline = 5;
+ *
+ *
+ * @return The processWithDocAiPipeline.
+ */
+ @java.lang.Override
+ public com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline
+ getProcessWithDocAiPipeline() {
+ if (processWithDocAiPipelineBuilder_ == null) {
+ if (pipelineCase_ == 5) {
+ return (com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline) pipeline_;
+ }
+ return com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline.getDefaultInstance();
+ } else {
+ if (pipelineCase_ == 5) {
+ return processWithDocAiPipelineBuilder_.getMessage();
+ }
+ return com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Use a DocAI processor to process documents in Document Warehouse, and
+ * re-ingest the updated results into Document Warehouse.
+ *
+ *
+ *
+ * .google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline process_with_doc_ai_pipeline = 5;
+ *
+ */
+ public Builder setProcessWithDocAiPipeline(
+ com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline value) {
+ if (processWithDocAiPipelineBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ pipeline_ = value;
+ onChanged();
+ } else {
+ processWithDocAiPipelineBuilder_.setMessage(value);
+ }
+ pipelineCase_ = 5;
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Use a DocAI processor to process documents in Document Warehouse, and
+ * re-ingest the updated results into Document Warehouse.
+ *
+ *
+ *
+ * .google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline process_with_doc_ai_pipeline = 5;
+ *
+ */
+ public Builder setProcessWithDocAiPipeline(
+ com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline.Builder builderForValue) {
+ if (processWithDocAiPipelineBuilder_ == null) {
+ pipeline_ = builderForValue.build();
+ onChanged();
+ } else {
+ processWithDocAiPipelineBuilder_.setMessage(builderForValue.build());
+ }
+ pipelineCase_ = 5;
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Use a DocAI processor to process documents in Document Warehouse, and
+ * re-ingest the updated results into Document Warehouse.
+ *
+ *
+ *
+ * .google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline process_with_doc_ai_pipeline = 5;
+ *
+ */
+ public Builder mergeProcessWithDocAiPipeline(
+ com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline value) {
+ if (processWithDocAiPipelineBuilder_ == null) {
+ if (pipelineCase_ == 5
+ && pipeline_
+ != com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline
+ .getDefaultInstance()) {
+ pipeline_ =
+ com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline.newBuilder(
+ (com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline) pipeline_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ pipeline_ = value;
+ }
+ onChanged();
+ } else {
+ if (pipelineCase_ == 5) {
+ processWithDocAiPipelineBuilder_.mergeFrom(value);
+ } else {
+ processWithDocAiPipelineBuilder_.setMessage(value);
+ }
+ }
+ pipelineCase_ = 5;
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Use a DocAI processor to process documents in Document Warehouse, and
+ * re-ingest the updated results into Document Warehouse.
+ *
+ *
+ *
+ * .google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline process_with_doc_ai_pipeline = 5;
+ *
+ */
+ public Builder clearProcessWithDocAiPipeline() {
+ if (processWithDocAiPipelineBuilder_ == null) {
+ if (pipelineCase_ == 5) {
+ pipelineCase_ = 0;
+ pipeline_ = null;
+ onChanged();
+ }
+ } else {
+ if (pipelineCase_ == 5) {
+ pipelineCase_ = 0;
+ pipeline_ = null;
+ }
+ processWithDocAiPipelineBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Use a DocAI processor to process documents in Document Warehouse, and
+ * re-ingest the updated results into Document Warehouse.
+ *
+ *
+ *
+ * .google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline process_with_doc_ai_pipeline = 5;
+ *
+ */
+ public com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline.Builder
+ getProcessWithDocAiPipelineBuilder() {
+ return getProcessWithDocAiPipelineFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ *
+ * Use a DocAI processor to process documents in Document Warehouse, and
+ * re-ingest the updated results into Document Warehouse.
+ *
+ *
+ *
+ * .google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline process_with_doc_ai_pipeline = 5;
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipelineOrBuilder
+ getProcessWithDocAiPipelineOrBuilder() {
+ if ((pipelineCase_ == 5) && (processWithDocAiPipelineBuilder_ != null)) {
+ return processWithDocAiPipelineBuilder_.getMessageOrBuilder();
+ } else {
+ if (pipelineCase_ == 5) {
+ return (com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline) pipeline_;
+ }
+ return com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Use a DocAI processor to process documents in Document Warehouse, and
+ * re-ingest the updated results into Document Warehouse.
+ *
+ *
+ *
+ * .google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline process_with_doc_ai_pipeline = 5;
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline,
+ com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline.Builder,
+ com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipelineOrBuilder>
+ getProcessWithDocAiPipelineFieldBuilder() {
+ if (processWithDocAiPipelineBuilder_ == null) {
+ if (!(pipelineCase_ == 5)) {
+ pipeline_ =
+ com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline.getDefaultInstance();
+ }
+ processWithDocAiPipelineBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline,
+ com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline.Builder,
+ com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipelineOrBuilder>(
+ (com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline) pipeline_,
+ getParentForChildren(),
+ isClean());
+ pipeline_ = null;
+ }
+ pipelineCase_ = 5;
+ onChanged();
+ return processWithDocAiPipelineBuilder_;
+ }
+
+ private com.google.cloud.contentwarehouse.v1.RequestMetadata requestMetadata_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.contentwarehouse.v1.RequestMetadata,
+ com.google.cloud.contentwarehouse.v1.RequestMetadata.Builder,
+ com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder>
+ requestMetadataBuilder_;
+ /**
+ *
+ *
+ *
+ * The meta information collected about the end user, used to enforce access
+ * control for the service.
+ *
+ *
+ * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 6;
+ *
+ * @return Whether the requestMetadata field is set.
+ */
+ public boolean hasRequestMetadata() {
+ return ((bitField0_ & 0x00000020) != 0);
+ }
+ /**
+ *
+ *
+ *
+ * The meta information collected about the end user, used to enforce access
+ * control for the service.
+ *
+ *
+ * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 6;
+ *
+ * @return The requestMetadata.
+ */
+ public com.google.cloud.contentwarehouse.v1.RequestMetadata getRequestMetadata() {
+ if (requestMetadataBuilder_ == null) {
+ return requestMetadata_ == null
+ ? com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance()
+ : requestMetadata_;
+ } else {
+ return requestMetadataBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The meta information collected about the end user, used to enforce access
+ * control for the service.
+ *
+ *
+ * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 6;
+ */
+ public Builder setRequestMetadata(com.google.cloud.contentwarehouse.v1.RequestMetadata value) {
+ if (requestMetadataBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ requestMetadata_ = value;
+ } else {
+ requestMetadataBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000020;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The meta information collected about the end user, used to enforce access
+ * control for the service.
+ *
+ *
+ * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 6;
+ */
+ public Builder setRequestMetadata(
+ com.google.cloud.contentwarehouse.v1.RequestMetadata.Builder builderForValue) {
+ if (requestMetadataBuilder_ == null) {
+ requestMetadata_ = builderForValue.build();
+ } else {
+ requestMetadataBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000020;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The meta information collected about the end user, used to enforce access
+ * control for the service.
+ *
+ *
+ * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 6;
+ */
+ public Builder mergeRequestMetadata(
+ com.google.cloud.contentwarehouse.v1.RequestMetadata value) {
+ if (requestMetadataBuilder_ == null) {
+ if (((bitField0_ & 0x00000020) != 0)
+ && requestMetadata_ != null
+ && requestMetadata_
+ != com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance()) {
+ getRequestMetadataBuilder().mergeFrom(value);
+ } else {
+ requestMetadata_ = value;
+ }
+ } else {
+ requestMetadataBuilder_.mergeFrom(value);
+ }
+ bitField0_ |= 0x00000020;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The meta information collected about the end user, used to enforce access
+ * control for the service.
+ *
+ *
+ * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 6;
+ */
+ public Builder clearRequestMetadata() {
+ bitField0_ = (bitField0_ & ~0x00000020);
+ requestMetadata_ = null;
+ if (requestMetadataBuilder_ != null) {
+ requestMetadataBuilder_.dispose();
+ requestMetadataBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The meta information collected about the end user, used to enforce access
+ * control for the service.
+ *
+ *
+ * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 6;
+ */
+ public com.google.cloud.contentwarehouse.v1.RequestMetadata.Builder
+ getRequestMetadataBuilder() {
+ bitField0_ |= 0x00000020;
+ onChanged();
+ return getRequestMetadataFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ *
+ * The meta information collected about the end user, used to enforce access
+ * control for the service.
+ *
+ *
+ * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 6;
+ */
+ public com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder
+ getRequestMetadataOrBuilder() {
+ if (requestMetadataBuilder_ != null) {
+ return requestMetadataBuilder_.getMessageOrBuilder();
+ } else {
+ return requestMetadata_ == null
+ ? com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance()
+ : requestMetadata_;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The meta information collected about the end user, used to enforce access
+ * control for the service.
+ *
+ *
+ * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 6;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.contentwarehouse.v1.RequestMetadata,
+ com.google.cloud.contentwarehouse.v1.RequestMetadata.Builder,
+ com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder>
+ getRequestMetadataFieldBuilder() {
+ if (requestMetadataBuilder_ == null) {
+ requestMetadataBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.contentwarehouse.v1.RequestMetadata,
+ com.google.cloud.contentwarehouse.v1.RequestMetadata.Builder,
+ com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder>(
+ getRequestMetadata(), getParentForChildren(), isClean());
+ requestMetadata_ = null;
+ }
+ return requestMetadataBuilder_;
+ }
+
+ @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.contentwarehouse.v1.RunPipelineRequest)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.RunPipelineRequest)
+ private static final com.google.cloud.contentwarehouse.v1.RunPipelineRequest DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.RunPipelineRequest();
+ }
+
+ public static com.google.cloud.contentwarehouse.v1.RunPipelineRequest getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser PARSER =
+ new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public RunPipelineRequest parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ Builder builder = newBuilder();
+ try {
+ builder.mergeFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(builder.buildPartial());
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e)
+ .setUnfinishedMessage(builder.buildPartial());
+ }
+ return builder.buildPartial();
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.contentwarehouse.v1.RunPipelineRequest getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+}
diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RunPipelineRequestOrBuilder.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RunPipelineRequestOrBuilder.java
new file mode 100644
index 000000000000..44c58304a5ac
--- /dev/null
+++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RunPipelineRequestOrBuilder.java
@@ -0,0 +1,257 @@
+/*
+ * 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/contentwarehouse/v1/pipeline_service.proto
+
+package com.google.cloud.contentwarehouse.v1;
+
+public interface RunPipelineRequestOrBuilder
+ extends
+ // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.RunPipelineRequest)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ *
+ *
+ *
+ * Required. The resource name which owns the resources of the pipeline.
+ * Format: projects/{project_number}/locations/{location}.
+ *
+ *
+ *
+ * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The name.
+ */
+ java.lang.String getName();
+ /**
+ *
+ *
+ *
+ * Required. The resource name which owns the resources of the pipeline.
+ * Format: projects/{project_number}/locations/{location}.
+ *
+ *
+ *
+ * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The bytes for name.
+ */
+ com.google.protobuf.ByteString getNameBytes();
+
+ /**
+ *
+ *
+ *
+ * Cloud Storage ingestion pipeline.
+ *
+ *
+ * .google.cloud.contentwarehouse.v1.GcsIngestPipeline gcs_ingest_pipeline = 2;
+ *
+ * @return Whether the gcsIngestPipeline field is set.
+ */
+ boolean hasGcsIngestPipeline();
+ /**
+ *
+ *
+ *
+ * Cloud Storage ingestion pipeline.
+ *
+ *
+ * .google.cloud.contentwarehouse.v1.GcsIngestPipeline gcs_ingest_pipeline = 2;
+ *
+ * @return The gcsIngestPipeline.
+ */
+ com.google.cloud.contentwarehouse.v1.GcsIngestPipeline getGcsIngestPipeline();
+ /**
+ *
+ *
+ *
+ * Cloud Storage ingestion pipeline.
+ *
+ *
+ * .google.cloud.contentwarehouse.v1.GcsIngestPipeline gcs_ingest_pipeline = 2;
+ */
+ com.google.cloud.contentwarehouse.v1.GcsIngestPipelineOrBuilder getGcsIngestPipelineOrBuilder();
+
+ /**
+ *
+ *
+ *
+ * Use DocAI processors to process documents in Cloud Storage and ingest
+ * them to Document Warehouse.
+ *
+ *
+ *
+ * .google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline gcs_ingest_with_doc_ai_processors_pipeline = 3;
+ *
+ *
+ * @return Whether the gcsIngestWithDocAiProcessorsPipeline field is set.
+ */
+ boolean hasGcsIngestWithDocAiProcessorsPipeline();
+ /**
+ *
+ *
+ *
+ * Use DocAI processors to process documents in Cloud Storage and ingest
+ * them to Document Warehouse.
+ *
+ *
+ *
+ * .google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline gcs_ingest_with_doc_ai_processors_pipeline = 3;
+ *
+ *
+ * @return The gcsIngestWithDocAiProcessorsPipeline.
+ */
+ com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline
+ getGcsIngestWithDocAiProcessorsPipeline();
+ /**
+ *
+ *
+ *
+ * Use DocAI processors to process documents in Cloud Storage and ingest
+ * them to Document Warehouse.
+ *
+ *
+ *
+ * .google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline gcs_ingest_with_doc_ai_processors_pipeline = 3;
+ *
+ */
+ com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipelineOrBuilder
+ getGcsIngestWithDocAiProcessorsPipelineOrBuilder();
+
+ /**
+ *
+ *
+ *
+ * Export docuemnts from Document Warehouse to CDW for training purpose.
+ *
+ *
+ * .google.cloud.contentwarehouse.v1.ExportToCdwPipeline export_cdw_pipeline = 4;
+ *
+ * @return Whether the exportCdwPipeline field is set.
+ */
+ boolean hasExportCdwPipeline();
+ /**
+ *
+ *
+ *
+ * Export docuemnts from Document Warehouse to CDW for training purpose.
+ *
+ *
+ * .google.cloud.contentwarehouse.v1.ExportToCdwPipeline export_cdw_pipeline = 4;
+ *
+ * @return The exportCdwPipeline.
+ */
+ com.google.cloud.contentwarehouse.v1.ExportToCdwPipeline getExportCdwPipeline();
+ /**
+ *
+ *
+ *
+ * Export docuemnts from Document Warehouse to CDW for training purpose.
+ *
+ *
+ * .google.cloud.contentwarehouse.v1.ExportToCdwPipeline export_cdw_pipeline = 4;
+ */
+ com.google.cloud.contentwarehouse.v1.ExportToCdwPipelineOrBuilder getExportCdwPipelineOrBuilder();
+
+ /**
+ *
+ *
+ *
+ * Use a DocAI processor to process documents in Document Warehouse, and
+ * re-ingest the updated results into Document Warehouse.
+ *
+ *
+ *
+ * .google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline process_with_doc_ai_pipeline = 5;
+ *
+ *
+ * @return Whether the processWithDocAiPipeline field is set.
+ */
+ boolean hasProcessWithDocAiPipeline();
+ /**
+ *
+ *
+ *
+ * Use a DocAI processor to process documents in Document Warehouse, and
+ * re-ingest the updated results into Document Warehouse.
+ *
+ *
+ *
+ * .google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline process_with_doc_ai_pipeline = 5;
+ *
+ *
+ * @return The processWithDocAiPipeline.
+ */
+ com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline getProcessWithDocAiPipeline();
+ /**
+ *
+ *
+ *
+ * Use a DocAI processor to process documents in Document Warehouse, and
+ * re-ingest the updated results into Document Warehouse.
+ *
+ *
+ *
+ * .google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline process_with_doc_ai_pipeline = 5;
+ *
+ */
+ com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipelineOrBuilder
+ getProcessWithDocAiPipelineOrBuilder();
+
+ /**
+ *
+ *
+ *
+ * The meta information collected about the end user, used to enforce access
+ * control for the service.
+ *
+ *
+ * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 6;
+ *
+ * @return Whether the requestMetadata field is set.
+ */
+ boolean hasRequestMetadata();
+ /**
+ *
+ *
+ *
+ * The meta information collected about the end user, used to enforce access
+ * control for the service.
+ *
+ *
+ * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 6;
+ *
+ * @return The requestMetadata.
+ */
+ com.google.cloud.contentwarehouse.v1.RequestMetadata getRequestMetadata();
+ /**
+ *
+ *
+ *
+ * The meta information collected about the end user, used to enforce access
+ * control for the service.
+ *
+ *
+ * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 6;
+ */
+ com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder getRequestMetadataOrBuilder();
+
+ com.google.cloud.contentwarehouse.v1.RunPipelineRequest.PipelineCase getPipelineCase();
+}
diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RunPipelineResponse.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RunPipelineResponse.java
new file mode 100644
index 000000000000..ce2b8886eeb8
--- /dev/null
+++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RunPipelineResponse.java
@@ -0,0 +1,432 @@
+/*
+ * 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/contentwarehouse/v1/pipelines.proto
+
+package com.google.cloud.contentwarehouse.v1;
+
+/**
+ *
+ *
+ *
+ * Response message of RunPipeline method.
+ *
+ *
+ * Protobuf type {@code google.cloud.contentwarehouse.v1.RunPipelineResponse}
+ */
+public final class RunPipelineResponse extends com.google.protobuf.GeneratedMessageV3
+ implements
+ // @@protoc_insertion_point(message_implements:google.cloud.contentwarehouse.v1.RunPipelineResponse)
+ RunPipelineResponseOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use RunPipelineResponse.newBuilder() to construct.
+ private RunPipelineResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+
+ private RunPipelineResponse() {}
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+ return new RunPipelineResponse();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.contentwarehouse.v1.PipelinesProto
+ .internal_static_google_cloud_contentwarehouse_v1_RunPipelineResponse_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.contentwarehouse.v1.PipelinesProto
+ .internal_static_google_cloud_contentwarehouse_v1_RunPipelineResponse_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.contentwarehouse.v1.RunPipelineResponse.class,
+ com.google.cloud.contentwarehouse.v1.RunPipelineResponse.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.contentwarehouse.v1.RunPipelineResponse)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.contentwarehouse.v1.RunPipelineResponse other =
+ (com.google.cloud.contentwarehouse.v1.RunPipelineResponse) 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.contentwarehouse.v1.RunPipelineResponse parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.contentwarehouse.v1.RunPipelineResponse 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.contentwarehouse.v1.RunPipelineResponse parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.contentwarehouse.v1.RunPipelineResponse 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.contentwarehouse.v1.RunPipelineResponse parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.contentwarehouse.v1.RunPipelineResponse parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.contentwarehouse.v1.RunPipelineResponse parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.contentwarehouse.v1.RunPipelineResponse 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.contentwarehouse.v1.RunPipelineResponse parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.contentwarehouse.v1.RunPipelineResponse 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.contentwarehouse.v1.RunPipelineResponse parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.contentwarehouse.v1.RunPipelineResponse 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.contentwarehouse.v1.RunPipelineResponse 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;
+ }
+ /**
+ *
+ *
+ *
+ * Response message of RunPipeline method.
+ *
+ *
+ * Protobuf type {@code google.cloud.contentwarehouse.v1.RunPipelineResponse}
+ */
+ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ implements
+ // @@protoc_insertion_point(builder_implements:google.cloud.contentwarehouse.v1.RunPipelineResponse)
+ com.google.cloud.contentwarehouse.v1.RunPipelineResponseOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.contentwarehouse.v1.PipelinesProto
+ .internal_static_google_cloud_contentwarehouse_v1_RunPipelineResponse_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.contentwarehouse.v1.PipelinesProto
+ .internal_static_google_cloud_contentwarehouse_v1_RunPipelineResponse_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.contentwarehouse.v1.RunPipelineResponse.class,
+ com.google.cloud.contentwarehouse.v1.RunPipelineResponse.Builder.class);
+ }
+
+ // Construct using com.google.cloud.contentwarehouse.v1.RunPipelineResponse.newBuilder()
+ private Builder() {}
+
+ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ }
+
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+ return com.google.cloud.contentwarehouse.v1.PipelinesProto
+ .internal_static_google_cloud_contentwarehouse_v1_RunPipelineResponse_descriptor;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.contentwarehouse.v1.RunPipelineResponse getDefaultInstanceForType() {
+ return com.google.cloud.contentwarehouse.v1.RunPipelineResponse.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public com.google.cloud.contentwarehouse.v1.RunPipelineResponse build() {
+ com.google.cloud.contentwarehouse.v1.RunPipelineResponse result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.contentwarehouse.v1.RunPipelineResponse buildPartial() {
+ com.google.cloud.contentwarehouse.v1.RunPipelineResponse result =
+ new com.google.cloud.contentwarehouse.v1.RunPipelineResponse(this);
+ onBuilt();
+ return result;
+ }
+
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+ return super.setField(field, value);
+ }
+
+ @java.lang.Override
+ public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+
+ @java.lang.Override
+ public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+ return super.addRepeatedField(field, value);
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof com.google.cloud.contentwarehouse.v1.RunPipelineResponse) {
+ return mergeFrom((com.google.cloud.contentwarehouse.v1.RunPipelineResponse) other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.RunPipelineResponse other) {
+ if (other == com.google.cloud.contentwarehouse.v1.RunPipelineResponse.getDefaultInstance())
+ return this;
+ this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ default:
+ {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.unwrapIOException();
+ } finally {
+ onChanged();
+ } // finally
+ return this;
+ }
+
+ @java.lang.Override
+ 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.contentwarehouse.v1.RunPipelineResponse)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.RunPipelineResponse)
+ private static final com.google.cloud.contentwarehouse.v1.RunPipelineResponse DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.RunPipelineResponse();
+ }
+
+ public static com.google.cloud.contentwarehouse.v1.RunPipelineResponse getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser PARSER =
+ new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public RunPipelineResponse parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ Builder builder = newBuilder();
+ try {
+ builder.mergeFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(builder.buildPartial());
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e)
+ .setUnfinishedMessage(builder.buildPartial());
+ }
+ return builder.buildPartial();
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.contentwarehouse.v1.RunPipelineResponse getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+}
diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RunPipelineResponseOrBuilder.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RunPipelineResponseOrBuilder.java
new file mode 100644
index 000000000000..ffb125a6a988
--- /dev/null
+++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RunPipelineResponseOrBuilder.java
@@ -0,0 +1,24 @@
+/*
+ * 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/contentwarehouse/v1/pipelines.proto
+
+package com.google.cloud.contentwarehouse.v1;
+
+public interface RunPipelineResponseOrBuilder
+ extends
+ // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.RunPipelineResponse)
+ com.google.protobuf.MessageOrBuilder {}
diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SearchDocumentsResponse.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SearchDocumentsResponse.java
index 7a238f740bfc..80e6220ba50c 100644
--- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SearchDocumentsResponse.java
+++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SearchDocumentsResponse.java
@@ -41,6 +41,7 @@ private SearchDocumentsResponse() {
matchingDocuments_ = java.util.Collections.emptyList();
nextPageToken_ = "";
histogramQueryResults_ = java.util.Collections.emptyList();
+ questionAnswer_ = "";
}
@java.lang.Override
@@ -1779,6 +1780,59 @@ public com.google.cloud.contentwarehouse.v1.HistogramQueryResult getHistogramQue
return histogramQueryResults_.get(index);
}
+ public static final int QUESTION_ANSWER_FIELD_NUMBER = 7;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object questionAnswer_ = "";
+ /**
+ *
+ *
+ *
+ * Experimental.
+ * Question answer from the query against the document.
+ *
+ *
+ * string question_answer = 7;
+ *
+ * @return The questionAnswer.
+ */
+ @java.lang.Override
+ public java.lang.String getQuestionAnswer() {
+ java.lang.Object ref = questionAnswer_;
+ 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();
+ questionAnswer_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Experimental.
+ * Question answer from the query against the document.
+ *
+ *
+ * string question_answer = 7;
+ *
+ * @return The bytes for questionAnswer.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getQuestionAnswerBytes() {
+ java.lang.Object ref = questionAnswer_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ questionAnswer_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
private byte memoizedIsInitialized = -1;
@java.lang.Override
@@ -1808,6 +1862,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
for (int i = 0; i < histogramQueryResults_.size(); i++) {
output.writeMessage(6, histogramQueryResults_.get(i));
}
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(questionAnswer_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 7, questionAnswer_);
+ }
getUnknownFields().writeTo(output);
}
@@ -1835,6 +1892,9 @@ public int getSerializedSize() {
com.google.protobuf.CodedOutputStream.computeMessageSize(
6, histogramQueryResults_.get(i));
}
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(questionAnswer_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, questionAnswer_);
+ }
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
@@ -1859,6 +1919,7 @@ public boolean equals(final java.lang.Object obj) {
if (!getMetadata().equals(other.getMetadata())) return false;
}
if (!getHistogramQueryResultsList().equals(other.getHistogramQueryResultsList())) return false;
+ if (!getQuestionAnswer().equals(other.getQuestionAnswer())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@@ -1886,6 +1947,8 @@ public int hashCode() {
hash = (37 * hash) + HISTOGRAM_QUERY_RESULTS_FIELD_NUMBER;
hash = (53 * hash) + getHistogramQueryResultsList().hashCode();
}
+ hash = (37 * hash) + QUESTION_ANSWER_FIELD_NUMBER;
+ hash = (53 * hash) + getQuestionAnswer().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
@@ -2047,6 +2110,7 @@ public Builder clear() {
histogramQueryResultsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000010);
+ questionAnswer_ = "";
return this;
}
@@ -2117,6 +2181,9 @@ private void buildPartial0(
if (((from_bitField0_ & 0x00000008) != 0)) {
result.metadata_ = metadataBuilder_ == null ? metadata_ : metadataBuilder_.build();
}
+ if (((from_bitField0_ & 0x00000020) != 0)) {
+ result.questionAnswer_ = questionAnswer_;
+ }
}
@java.lang.Override
@@ -2231,6 +2298,11 @@ public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.SearchDocumentsRes
}
}
}
+ if (!other.getQuestionAnswer().isEmpty()) {
+ questionAnswer_ = other.questionAnswer_;
+ bitField0_ |= 0x00000020;
+ onChanged();
+ }
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
@@ -2304,6 +2376,12 @@ public Builder mergeFrom(
}
break;
} // case 50
+ case 58:
+ {
+ questionAnswer_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000020;
+ break;
+ } // case 58
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
@@ -3569,6 +3647,117 @@ public Builder removeHistogramQueryResults(int index) {
return histogramQueryResultsBuilder_;
}
+ private java.lang.Object questionAnswer_ = "";
+ /**
+ *
+ *
+ *
+ * Experimental.
+ * Question answer from the query against the document.
+ *
+ *
+ * string question_answer = 7;
+ *
+ * @return The questionAnswer.
+ */
+ public java.lang.String getQuestionAnswer() {
+ java.lang.Object ref = questionAnswer_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ questionAnswer_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Experimental.
+ * Question answer from the query against the document.
+ *
+ *
+ * string question_answer = 7;
+ *
+ * @return The bytes for questionAnswer.
+ */
+ public com.google.protobuf.ByteString getQuestionAnswerBytes() {
+ java.lang.Object ref = questionAnswer_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ questionAnswer_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Experimental.
+ * Question answer from the query against the document.
+ *
+ *
+ * string question_answer = 7;
+ *
+ * @param value The questionAnswer to set.
+ * @return This builder for chaining.
+ */
+ public Builder setQuestionAnswer(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ questionAnswer_ = value;
+ bitField0_ |= 0x00000020;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Experimental.
+ * Question answer from the query against the document.
+ *
+ *
+ * string question_answer = 7;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearQuestionAnswer() {
+ questionAnswer_ = getDefaultInstance().getQuestionAnswer();
+ bitField0_ = (bitField0_ & ~0x00000020);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Experimental.
+ * Question answer from the query against the document.
+ *
+ *
+ * string question_answer = 7;
+ *
+ * @param value The bytes for questionAnswer to set.
+ * @return This builder for chaining.
+ */
+ public Builder setQuestionAnswerBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ questionAnswer_ = value;
+ bitField0_ |= 0x00000020;
+ onChanged();
+ return this;
+ }
+
@java.lang.Override
public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SearchDocumentsResponseOrBuilder.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SearchDocumentsResponseOrBuilder.java
index 5cb73e927aa1..6656e0f85b7f 100644
--- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SearchDocumentsResponseOrBuilder.java
+++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SearchDocumentsResponseOrBuilder.java
@@ -249,4 +249,31 @@ public interface SearchDocumentsResponseOrBuilder
*/
com.google.cloud.contentwarehouse.v1.HistogramQueryResultOrBuilder
getHistogramQueryResultsOrBuilder(int index);
+
+ /**
+ *
+ *
+ *
+ * Experimental.
+ * Question answer from the query against the document.
+ *
+ *
+ * string question_answer = 7;
+ *
+ * @return The questionAnswer.
+ */
+ java.lang.String getQuestionAnswer();
+ /**
+ *
+ *
+ *
+ * Experimental.
+ * Question answer from the query against the document.
+ *
+ *
+ * string question_answer = 7;
+ *
+ * @return The bytes for questionAnswer.
+ */
+ com.google.protobuf.ByteString getQuestionAnswerBytes();
}
diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/TimeFilter.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/TimeFilter.java
index 72baefdc475a..106a3b14fc63 100644
--- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/TimeFilter.java
+++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/TimeFilter.java
@@ -102,6 +102,16 @@ public enum TimeField implements com.google.protobuf.ProtocolMessageEnum {
* UPDATE_TIME = 2;
*/
UPDATE_TIME(2),
+ /**
+ *
+ *
+ *
+ * Time when document becomes mutable again.
+ *
+ *
+ * DISPOSITION_TIME = 3;
+ */
+ DISPOSITION_TIME(3),
UNRECOGNIZED(-1),
;
@@ -135,6 +145,16 @@ public enum TimeField implements com.google.protobuf.ProtocolMessageEnum {
* UPDATE_TIME = 2;
*/
public static final int UPDATE_TIME_VALUE = 2;
+ /**
+ *
+ *
+ *
+ * Time when document becomes mutable again.
+ *
+ *
+ * DISPOSITION_TIME = 3;
+ */
+ public static final int DISPOSITION_TIME_VALUE = 3;
public final int getNumber() {
if (this == UNRECOGNIZED) {
@@ -166,6 +186,8 @@ public static TimeField forNumber(int value) {
return CREATE_TIME;
case 2:
return UPDATE_TIME;
+ case 3:
+ return DISPOSITION_TIME;
default:
return null;
}
diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/proto/google/cloud/contentwarehouse/v1/common.proto b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/proto/google/cloud/contentwarehouse/v1/common.proto
index fd5e77453ab0..4164c7979756 100644
--- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/proto/google/cloud/contentwarehouse/v1/common.proto
+++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/proto/google/cloud/contentwarehouse/v1/common.proto
@@ -131,7 +131,7 @@ enum DatabaseType {
DB_INFRA_SPANNER = 1;
// Cloud Sql with a Postgres Sql instance
- DB_CLOUD_SQL_POSTGRES = 2;
+ DB_CLOUD_SQL_POSTGRES = 2 [deprecated = true];
}
// Access Control Mode.
diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/proto/google/cloud/contentwarehouse/v1/document.proto b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/proto/google/cloud/contentwarehouse/v1/document.proto
index 5c36d2a6d33d..5355e9767797 100644
--- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/proto/google/cloud/contentwarehouse/v1/document.proto
+++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/proto/google/cloud/contentwarehouse/v1/document.proto
@@ -122,6 +122,14 @@ message Document {
// The user who lastly updates the document.
string updater = 14;
+
+ // Output only. If linked to a Collection with RetentionPolicy, the date when
+ // the document becomes mutable.
+ google.protobuf.Timestamp disposition_time = 22
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Indicates if the document has a legal hold on it.
+ bool legal_hold = 23 [(google.api.field_behavior) = OUTPUT_ONLY];
}
// References to the documents.
@@ -158,6 +166,12 @@ message DocumentReference {
// Output only. The time when the document is deleted.
google.protobuf.Timestamp delete_time = 7
[(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Document is a folder with retention policy.
+ bool document_is_retention_folder = 8;
+
+ // Document is a folder with legal hold.
+ bool document_is_legal_hold_folder = 9;
}
// Property of a document.
diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/proto/google/cloud/contentwarehouse/v1/document_service.proto b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/proto/google/cloud/contentwarehouse/v1/document_service.proto
index caaebb92a9d8..75b7856c83f5 100644
--- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/proto/google/cloud/contentwarehouse/v1/document_service.proto
+++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/proto/google/cloud/contentwarehouse/v1/document_service.proto
@@ -248,6 +248,10 @@ message SearchDocumentsResponse {
// The histogram results that match with the specified
// [SearchDocumentsRequest.histogram_queries][google.cloud.contentwarehouse.v1.SearchDocumentsRequest.histogram_queries].
repeated HistogramQueryResult histogram_query_results = 6;
+
+ // Experimental.
+ // Question answer from the query against the document.
+ string question_answer = 7;
}
// Response message for DocumentService.FetchAcl.
diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/proto/google/cloud/contentwarehouse/v1/filters.proto b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/proto/google/cloud/contentwarehouse/v1/filters.proto
index ba0870cb1f9a..ababb2821e75 100644
--- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/proto/google/cloud/contentwarehouse/v1/filters.proto
+++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/proto/google/cloud/contentwarehouse/v1/filters.proto
@@ -138,6 +138,11 @@ message DocumentQuery {
// projects/{project_number}/locations/{location}/documents/{document_id}.
string folder_name_filter = 9;
+ // Search the documents in the list.
+ // Format:
+ // projects/{project_number}/locations/{location}/documents/{document_id}.
+ repeated string document_name_filter = 14;
+
// For custom synonyms.
// Customers provide the synonyms based on context. One customer can provide
// multiple set of synonyms based on different context. The search query will
@@ -175,6 +180,9 @@ message TimeFilter {
// Latest document update time.
UPDATE_TIME = 2;
+
+ // Time when document becomes mutable again.
+ DISPOSITION_TIME = 3;
}
google.type.Interval time_range = 1;
diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/proto/google/cloud/contentwarehouse/v1/pipeline_service.proto b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/proto/google/cloud/contentwarehouse/v1/pipeline_service.proto
new file mode 100644
index 000000000000..78f477f7f008
--- /dev/null
+++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/proto/google/cloud/contentwarehouse/v1/pipeline_service.proto
@@ -0,0 +1,87 @@
+// 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
+//
+// http://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.
+
+syntax = "proto3";
+
+package google.cloud.contentwarehouse.v1;
+
+import "google/api/annotations.proto";
+import "google/api/client.proto";
+import "google/api/field_behavior.proto";
+import "google/api/resource.proto";
+import "google/cloud/contentwarehouse/v1/common.proto";
+import "google/cloud/contentwarehouse/v1/pipelines.proto";
+import "google/longrunning/operations.proto";
+
+option csharp_namespace = "Google.Cloud.ContentWarehouse.V1";
+option go_package = "cloud.google.com/go/contentwarehouse/apiv1/contentwarehousepb;contentwarehousepb";
+option java_multiple_files = true;
+option java_outer_classname = "PipelineServiceProto";
+option java_package = "com.google.cloud.contentwarehouse.v1";
+option php_namespace = "Google\\Cloud\\ContentWarehouse\\V1";
+option ruby_package = "Google::Cloud::ContentWarehouse::V1";
+
+// This service lets you manage pipelines.
+service PipelineService {
+ option (google.api.default_host) = "contentwarehouse.googleapis.com";
+ option (google.api.oauth_scopes) =
+ "https://www.googleapis.com/auth/cloud-platform";
+
+ // Run a predefined pipeline.
+ rpc RunPipeline(RunPipelineRequest) returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ post: "/v1/{name=projects/*/locations/*}:runPipeline"
+ body: "*"
+ };
+ option (google.api.method_signature) = "name";
+ option (google.longrunning.operation_info) = {
+ response_type: "RunPipelineResponse"
+ metadata_type: "RunPipelineMetadata"
+ };
+ }
+}
+
+// Request message for DocumentService.RunPipeline.
+message RunPipelineRequest {
+ // Required. The resource name which owns the resources of the pipeline.
+ // Format: projects/{project_number}/locations/{location}.
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "contentwarehouse.googleapis.com/Location"
+ }
+ ];
+
+ // The predefined pipelines.
+ oneof pipeline {
+ // Cloud Storage ingestion pipeline.
+ GcsIngestPipeline gcs_ingest_pipeline = 2;
+
+ // Use DocAI processors to process documents in Cloud Storage and ingest
+ // them to Document Warehouse.
+ GcsIngestWithDocAiProcessorsPipeline
+ gcs_ingest_with_doc_ai_processors_pipeline = 3;
+
+ // Export docuemnts from Document Warehouse to CDW for training purpose.
+ ExportToCdwPipeline export_cdw_pipeline = 4;
+
+ // Use a DocAI processor to process documents in Document Warehouse, and
+ // re-ingest the updated results into Document Warehouse.
+ ProcessWithDocAiPipeline process_with_doc_ai_pipeline = 5;
+ }
+
+ // The meta information collected about the end user, used to enforce access
+ // control for the service.
+ RequestMetadata request_metadata = 6;
+}
diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/proto/google/cloud/contentwarehouse/v1/pipelines.proto b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/proto/google/cloud/contentwarehouse/v1/pipelines.proto
new file mode 100644
index 000000000000..27b2d5e4ff6b
--- /dev/null
+++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/proto/google/cloud/contentwarehouse/v1/pipelines.proto
@@ -0,0 +1,260 @@
+// 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
+//
+// http://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.
+
+syntax = "proto3";
+
+package google.cloud.contentwarehouse.v1;
+
+import "google/api/field_behavior.proto";
+import "google/api/resource.proto";
+import "google/cloud/contentwarehouse/v1/common.proto";
+import "google/iam/v1/policy.proto";
+import "google/rpc/status.proto";
+
+option csharp_namespace = "Google.Cloud.ContentWarehouse.V1";
+option go_package = "cloud.google.com/go/contentwarehouse/apiv1/contentwarehousepb;contentwarehousepb";
+option java_multiple_files = true;
+option java_outer_classname = "PipelinesProto";
+option java_package = "com.google.cloud.contentwarehouse.v1";
+option php_namespace = "Google\\Cloud\\ContentWarehouse\\V1";
+option ruby_package = "Google::Cloud::ContentWarehouse::V1";
+
+// Response message of RunPipeline method.
+message RunPipelineResponse {}
+
+// Metadata message of RunPipeline method.
+message RunPipelineMetadata {
+ // The metadata message for GcsIngest pipeline.
+ message GcsIngestPipelineMetadata {
+ // The input Cloud Storage folder in this pipeline.
+ // Format: `gs:///`.
+ string input_path = 1;
+ }
+
+ // The metadata message for Export-to-CDW pipeline.
+ message ExportToCdwPipelineMetadata {
+ // The input list of all the resource names of the documents to be exported.
+ repeated string documents = 1;
+
+ // The output CDW dataset resource name.
+ string doc_ai_dataset = 2;
+
+ // The output Cloud Storage folder in this pipeline.
+ string output_path = 3;
+ }
+
+ // The metadata message for Process-with-DocAi pipeline.
+ message ProcessWithDocAiPipelineMetadata {
+ // The input list of all the resource names of the documents to be
+ // processed.
+ repeated string documents = 1;
+
+ // The DocAI processor to process the documents with.
+ ProcessorInfo processor_info = 2;
+ }
+
+ // The status of processing a document.
+ message IndividualDocumentStatus {
+ // Document identifier of an existing document.
+ string document_id = 1;
+
+ // The status processing the document.
+ google.rpc.Status status = 2;
+ }
+
+ // Number of files that were processed by the pipeline.
+ int32 total_file_count = 1;
+
+ // Number of files that have failed at some point in the pipeline.
+ int32 failed_file_count = 2;
+
+ // User unique identification and groups information.
+ UserInfo user_info = 3;
+
+ // The pipeline metadata.
+ oneof pipeline_metadata {
+ // The pipeline metadata for GcsIngest pipeline.
+ GcsIngestPipelineMetadata gcs_ingest_pipeline_metadata = 4;
+
+ // The pipeline metadata for Export-to-CDW pipeline.
+ ExportToCdwPipelineMetadata export_to_cdw_pipeline_metadata = 6;
+
+ // The pipeline metadata for Process-with-DocAi pipeline.
+ ProcessWithDocAiPipelineMetadata process_with_doc_ai_pipeline_metadata = 7;
+ }
+
+ // The list of response details of each document.
+ repeated IndividualDocumentStatus individual_document_statuses = 5;
+}
+
+// The DocAI processor information.
+message ProcessorInfo {
+ // The processor resource name.
+ // Format is `projects/{project}/locations/{location}/processors/{processor}`,
+ // or
+ // `projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processorVersion}`
+ string processor_name = 1;
+
+ // The processor will process the documents with this document type.
+ string document_type = 2;
+
+ // The Document schema resource name. All documents processed by this
+ // processor will use this schema.
+ // Format:
+ // projects/{project_number}/locations/{location}/documentSchemas/{document_schema_id}.
+ string schema_name = 3;
+}
+
+// The ingestion pipeline config.
+message IngestPipelineConfig {
+ // The document level acl policy config.
+ // This refers to an Identity and Access (IAM) policy, which specifies access
+ // controls for all documents ingested by the pipeline. The
+ // [role][google.iam.v1.Binding.role] and
+ // [members][google.iam.v1.Binding.role] under the policy needs to be
+ // specified.
+ //
+ // The following roles are supported for document level acl control:
+ // * roles/contentwarehouse.documentAdmin
+ // * roles/contentwarehouse.documentEditor
+ // * roles/contentwarehouse.documentViewer
+ //
+ // The following members are supported for document level acl control:
+ // * user:user-email@example.com
+ // * group:group-email@example.com
+ // Note that for documents searched with LLM, only single level user or group
+ // acl check is supported.
+ google.iam.v1.Policy document_acl_policy = 1;
+
+ // The document text extraction enabled flag.
+ // If the flag is set to true, DWH will perform text extraction on the raw
+ // document.
+ bool enable_document_text_extraction = 2;
+
+ // Optional. The name of the folder to which all ingested documents will be
+ // linked during ingestion process. Format is
+ // `projects/{project}/locations/{location}/documents/{folder_id}`
+ string folder = 3 [(google.api.field_behavior) = OPTIONAL];
+}
+
+// The configuration of the Cloud Storage Ingestion pipeline.
+message GcsIngestPipeline {
+ // The input Cloud Storage folder. All files under this folder will be
+ // imported to Document Warehouse.
+ // Format: `gs:///`.
+ string input_path = 1;
+
+ // The Document Warehouse schema resource name. All documents processed by
+ // this pipeline will use this schema.
+ // Format:
+ // projects/{project_number}/locations/{location}/documentSchemas/{document_schema_id}.
+ string schema_name = 2;
+
+ // The Doc AI processor type name. Only used when the format of ingested
+ // files is Doc AI Document proto format.
+ string processor_type = 3;
+
+ // The flag whether to skip ingested documents.
+ // If it is set to true, documents in Cloud Storage contains key "status" with
+ // value "status=ingested" in custom metadata will be skipped to ingest.
+ bool skip_ingested_documents = 4;
+
+ // Optional. The config for the Cloud Storage Ingestion pipeline.
+ // It provides additional customization options to run the pipeline and can be
+ // skipped if it is not applicable.
+ IngestPipelineConfig pipeline_config = 5
+ [(google.api.field_behavior) = OPTIONAL];
+}
+
+// The configuration of the Cloud Storage Ingestion with DocAI Processors
+// pipeline.
+message GcsIngestWithDocAiProcessorsPipeline {
+ // The input Cloud Storage folder. All files under this folder will be
+ // imported to Document Warehouse.
+ // Format: `gs:///`.
+ string input_path = 1;
+
+ // The split and classify processor information.
+ // The split and classify result will be used to find a matched extract
+ // processor.
+ ProcessorInfo split_classify_processor_info = 2;
+
+ // The extract processors information.
+ // One matched extract processor will be used to process documents based on
+ // the classify processor result. If no classify processor is specified, the
+ // first extract processor will be used.
+ repeated ProcessorInfo extract_processor_infos = 3;
+
+ // The Cloud Storage folder path used to store the raw results from
+ // processors.
+ // Format: `gs:///`.
+ string processor_results_folder_path = 4;
+
+ // The flag whether to skip ingested documents.
+ // If it is set to true, documents in Cloud Storage contains key "status" with
+ // value "status=ingested" in custom metadata will be skipped to ingest.
+ bool skip_ingested_documents = 5;
+
+ // Optional. The config for the Cloud Storage Ingestion with DocAI Processors
+ // pipeline. It provides additional customization options to run the pipeline
+ // and can be skipped if it is not applicable.
+ IngestPipelineConfig pipeline_config = 6
+ [(google.api.field_behavior) = OPTIONAL];
+}
+
+// The configuration of exporting documents from the Document Warehouse to CDW
+// pipeline.
+message ExportToCdwPipeline {
+ // The list of all the resource names of the documents to be processed.
+ // Format:
+ // projects/{project_number}/locations/{location}/documents/{document_id}.
+ repeated string documents = 1;
+
+ // The Cloud Storage folder path used to store the exported documents before
+ // being sent to CDW.
+ // Format: `gs:///`.
+ string export_folder_path = 2;
+
+ // Optional. The CDW dataset resource name. This field is optional. If not
+ // set, the documents will be exported to Cloud Storage only. Format:
+ // projects/{project}/locations/{location}/processors/{processor}/dataset
+ string doc_ai_dataset = 3 [(google.api.field_behavior) = OPTIONAL];
+
+ // Ratio of training dataset split. When importing into Document AI Workbench,
+ // documents will be automatically split into training and test split category
+ // with the specified ratio. This field is required if doc_ai_dataset is set.
+ float training_split_ratio = 4;
+}
+
+// The configuration of processing documents in Document Warehouse with DocAi
+// processors pipeline.
+message ProcessWithDocAiPipeline {
+ // The list of all the resource names of the documents to be processed.
+ // Format:
+ // projects/{project_number}/locations/{location}/documents/{document_id}.
+ repeated string documents = 1;
+
+ // The Cloud Storage folder path used to store the exported documents before
+ // being sent to CDW.
+ // Format: `gs:///`.
+ string export_folder_path = 2;
+
+ // The CDW processor information.
+ ProcessorInfo processor_info = 3;
+
+ // The Cloud Storage folder path used to store the raw results from
+ // processors.
+ // Format: `gs://