diff --git a/java-datalineage/README.md b/java-datalineage/README.md
index 261af451b4a6..1f24ab8d9c66 100644
--- a/java-datalineage/README.md
+++ b/java-datalineage/README.md
@@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file:
Sample code: + * + *
{@code + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + * try (LineageClient lineageClient = LineageClient.create()) { + * String parent = "parent-995424086"; + * Struct openLineage = Struct.newBuilder().build(); + * ProcessOpenLineageRunEventResponse response = + * lineageClient.processOpenLineageRunEvent(parent, openLineage); + * } + * }+ * + * @param parent Required. The name of the project and its location that should own the process, + * run, and lineage event. + * @param openLineage Required. OpenLineage message following OpenLineage format: + * https://github.com/OpenLineage/OpenLineage/blob/main/spec/OpenLineage.json + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ProcessOpenLineageRunEventResponse processOpenLineageRunEvent( + String parent, Struct openLineage) { + ProcessOpenLineageRunEventRequest request = + ProcessOpenLineageRunEventRequest.newBuilder() + .setParent(parent) + .setOpenLineage(openLineage) + .build(); + return processOpenLineageRunEvent(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates new lineage events together with their parents: process and run. Updates the process + * and run if they already exist. Mapped from Open Lineage specification: + * https://github.com/OpenLineage/OpenLineage/blob/main/spec/OpenLineage.json. + * + *
Sample code: + * + *
{@code + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + * try (LineageClient lineageClient = LineageClient.create()) { + * ProcessOpenLineageRunEventRequest request = + * ProcessOpenLineageRunEventRequest.newBuilder() + * .setParent("parent-995424086") + * .setOpenLineage(Struct.newBuilder().build()) + * .setRequestId("requestId693933066") + * .build(); + * ProcessOpenLineageRunEventResponse response = + * lineageClient.processOpenLineageRunEvent(request); + * } + * }+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ProcessOpenLineageRunEventResponse processOpenLineageRunEvent( + ProcessOpenLineageRunEventRequest request) { + return processOpenLineageRunEventCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates new lineage events together with their parents: process and run. Updates the process + * and run if they already exist. Mapped from Open Lineage specification: + * https://github.com/OpenLineage/OpenLineage/blob/main/spec/OpenLineage.json. + * + *
Sample code: + * + *
{@code + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + * try (LineageClient lineageClient = LineageClient.create()) { + * ProcessOpenLineageRunEventRequest request = + * ProcessOpenLineageRunEventRequest.newBuilder() + * .setParent("parent-995424086") + * .setOpenLineage(Struct.newBuilder().build()) + * .setRequestId("requestId693933066") + * .build(); + * ApiFuture+ */ + public final UnaryCallablefuture = + * lineageClient.processOpenLineageRunEventCallable().futureCall(request); + * // Do something. + * ProcessOpenLineageRunEventResponse response = future.get(); + * } + * }
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 createProcess to 30 seconds: + *
For example, to set the total timeout of processOpenLineageRunEvent to 30 seconds: * *
{@code * // This snippet has been automatically generated and should be regarded as a code template only. @@ -67,10 +67,10 @@ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * LineageSettings.Builder lineageSettingsBuilder = LineageSettings.newBuilder(); * lineageSettingsBuilder - * .createProcessSettings() + * .processOpenLineageRunEventSettings() * .setRetrySettings( * lineageSettingsBuilder - * .createProcessSettings() + * .processOpenLineageRunEventSettings() * .getRetrySettings() * .toBuilder() * .setTotalTimeout(Duration.ofSeconds(30)) @@ -81,6 +81,12 @@ @Generated("by gapic-generator-java") public class LineageSettings extends ClientSettings*/ diff --git a/java-datalineage/google-cloud-datalineage/src/main/java/com/google/cloud/datacatalog/lineage/v1/stub/GrpcLineageStub.java b/java-datalineage/google-cloud-datalineage/src/main/java/com/google/cloud/datacatalog/lineage/v1/stub/GrpcLineageStub.java index 568d44ab67dc..9a655e497bea 100644 --- a/java-datalineage/google-cloud-datalineage/src/main/java/com/google/cloud/datacatalog/lineage/v1/stub/GrpcLineageStub.java +++ b/java-datalineage/google-cloud-datalineage/src/main/java/com/google/cloud/datacatalog/lineage/v1/stub/GrpcLineageStub.java @@ -50,6 +50,8 @@ import com.google.cloud.datacatalog.lineage.v1.ListRunsResponse; import com.google.cloud.datacatalog.lineage.v1.OperationMetadata; import com.google.cloud.datacatalog.lineage.v1.Process; +import com.google.cloud.datacatalog.lineage.v1.ProcessOpenLineageRunEventRequest; +import com.google.cloud.datacatalog.lineage.v1.ProcessOpenLineageRunEventResponse; import com.google.cloud.datacatalog.lineage.v1.Run; import com.google.cloud.datacatalog.lineage.v1.SearchLinksRequest; import com.google.cloud.datacatalog.lineage.v1.SearchLinksResponse; @@ -72,6 +74,20 @@ */ @Generated("by gapic-generator-java") public class GrpcLineageStub extends LineageStub { + private static final MethodDescriptor< + ProcessOpenLineageRunEventRequest, ProcessOpenLineageRunEventResponse> + processOpenLineageRunEventMethodDescriptor = + MethodDescriptor + .{ + /** Returns the object with the settings used for calls to processOpenLineageRunEvent. */ + public UnaryCallSettings + processOpenLineageRunEventSettings() { + return ((LineageStubSettings) getStubSettings()).processOpenLineageRunEventSettings(); + } + /** Returns the object with the settings used for calls to createProcess. */ public UnaryCallSettings createProcessSettings() { return ((LineageStubSettings) getStubSettings()).createProcessSettings(); @@ -296,6 +302,13 @@ public Builder applyToAllUnaryMethods( return this; } + /** Returns the builder for the settings used for calls to processOpenLineageRunEvent. */ + public UnaryCallSettings.Builder< + ProcessOpenLineageRunEventRequest, ProcessOpenLineageRunEventResponse> + processOpenLineageRunEventSettings() { + return getStubSettingsBuilder().processOpenLineageRunEventSettings(); + } + /** Returns the builder for the settings used for calls to createProcess. */ public UnaryCallSettings.Builder createProcessSettings() { return getStubSettingsBuilder().createProcessSettings(); diff --git a/java-datalineage/google-cloud-datalineage/src/main/java/com/google/cloud/datacatalog/lineage/v1/gapic_metadata.json b/java-datalineage/google-cloud-datalineage/src/main/java/com/google/cloud/datacatalog/lineage/v1/gapic_metadata.json index ee3a155cf465..c79143b5b1c7 100644 --- a/java-datalineage/google-cloud-datalineage/src/main/java/com/google/cloud/datacatalog/lineage/v1/gapic_metadata.json +++ b/java-datalineage/google-cloud-datalineage/src/main/java/com/google/cloud/datacatalog/lineage/v1/gapic_metadata.json @@ -49,6 +49,9 @@ "ListRuns": { "methods": ["listRuns", "listRuns", "listRuns", "listRunsPagedCallable", "listRunsCallable"] }, + "ProcessOpenLineageRunEvent": { + "methods": ["processOpenLineageRunEvent", "processOpenLineageRunEvent", "processOpenLineageRunEventCallable"] + }, "SearchLinks": { "methods": ["searchLinks", "searchLinksPagedCallable", "searchLinksCallable"] }, diff --git a/java-datalineage/google-cloud-datalineage/src/main/java/com/google/cloud/datacatalog/lineage/v1/package-info.java b/java-datalineage/google-cloud-datalineage/src/main/java/com/google/cloud/datacatalog/lineage/v1/package-info.java index a5f68263d919..68cc157c10d1 100644 --- a/java-datalineage/google-cloud-datalineage/src/main/java/com/google/cloud/datacatalog/lineage/v1/package-info.java +++ b/java-datalineage/google-cloud-datalineage/src/main/java/com/google/cloud/datacatalog/lineage/v1/package-info.java @@ -35,9 +35,10 @@ * // - 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 (LineageClient lineageClient = LineageClient.create()) { - * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - * Process process = Process.newBuilder().build(); - * Process response = lineageClient.createProcess(parent, process); + * String parent = "parent-995424086"; + * Struct openLineage = Struct.newBuilder().build(); + * ProcessOpenLineageRunEventResponse response = + * lineageClient.processOpenLineageRunEvent(parent, openLineage); * } * }
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 createProcess to 30 seconds: + *
For example, to set the total timeout of processOpenLineageRunEvent to 30 seconds: * *
{@code * // This snippet has been automatically generated and should be regarded as a code template only. @@ -114,10 +116,10 @@ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * LineageStubSettings.Builder lineageSettingsBuilder = LineageStubSettings.newBuilder(); * lineageSettingsBuilder - * .createProcessSettings() + * .processOpenLineageRunEventSettings() * .setRetrySettings( * lineageSettingsBuilder - * .createProcessSettings() + * .processOpenLineageRunEventSettings() * .getRetrySettings() * .toBuilder() * .setTotalTimeout(Duration.ofSeconds(30)) @@ -131,6 +133,9 @@ public class LineageStubSettings extends StubSettings{ private static final ImmutableList DEFAULT_SERVICE_SCOPES = ImmutableList. builder().add("https://www.googleapis.com/auth/cloud-platform").build(); + private final UnaryCallSettings< + ProcessOpenLineageRunEventRequest, ProcessOpenLineageRunEventResponse> + processOpenLineageRunEventSettings; private final UnaryCallSettings createProcessSettings; private final UnaryCallSettings updateProcessSettings; private final UnaryCallSettings getProcessSettings; @@ -454,6 +459,12 @@ public ApiFuture getFuturePagedResponse( } }; + /** Returns the object with the settings used for calls to processOpenLineageRunEvent. */ + public UnaryCallSettings + processOpenLineageRunEventSettings() { + return processOpenLineageRunEventSettings; + } + /** Returns the object with the settings used for calls to createProcess. */ public UnaryCallSettings createProcessSettings() { return createProcessSettings; @@ -659,6 +670,8 @@ public Builder toBuilder() { protected LineageStubSettings(Builder settingsBuilder) throws IOException { super(settingsBuilder); + processOpenLineageRunEventSettings = + settingsBuilder.processOpenLineageRunEventSettings().build(); createProcessSettings = settingsBuilder.createProcessSettings().build(); updateProcessSettings = settingsBuilder.updateProcessSettings().build(); getProcessSettings = settingsBuilder.getProcessSettings().build(); @@ -682,6 +695,9 @@ protected LineageStubSettings(Builder settingsBuilder) throws IOException { /** Builder for LineageStubSettings. */ public static class Builder extends StubSettings.Builder { private final ImmutableList > unaryMethodSettingsBuilders; + private final UnaryCallSettings.Builder< + ProcessOpenLineageRunEventRequest, ProcessOpenLineageRunEventResponse> + processOpenLineageRunEventSettings; private final UnaryCallSettings.Builder createProcessSettings; private final UnaryCallSettings.Builder updateProcessSettings; private final UnaryCallSettings.Builder getProcessSettings; @@ -755,6 +771,7 @@ protected Builder() { protected Builder(ClientContext clientContext) { super(clientContext); + processOpenLineageRunEventSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); createProcessSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); updateProcessSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); getProcessSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); @@ -777,6 +794,7 @@ protected Builder(ClientContext clientContext) { unaryMethodSettingsBuilders = ImmutableList. >of( + processOpenLineageRunEventSettings, createProcessSettings, updateProcessSettings, getProcessSettings, @@ -799,6 +817,7 @@ protected Builder(ClientContext clientContext) { protected Builder(LineageStubSettings settings) { super(settings); + processOpenLineageRunEventSettings = settings.processOpenLineageRunEventSettings.toBuilder(); createProcessSettings = settings.createProcessSettings.toBuilder(); updateProcessSettings = settings.updateProcessSettings.toBuilder(); getProcessSettings = settings.getProcessSettings.toBuilder(); @@ -820,6 +839,7 @@ protected Builder(LineageStubSettings settings) { unaryMethodSettingsBuilders = ImmutableList. >of( + processOpenLineageRunEventSettings, createProcessSettings, updateProcessSettings, getProcessSettings, @@ -865,6 +885,11 @@ private static Builder createHttpJsonDefault() { } private static Builder initDefaults(Builder builder) { + builder + .processOpenLineageRunEventSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + builder .createProcessSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) @@ -1010,6 +1035,13 @@ public Builder applyToAllUnaryMethods( return unaryMethodSettingsBuilders; } + /** Returns the builder for the settings used for calls to processOpenLineageRunEvent. */ + public UnaryCallSettings.Builder< + ProcessOpenLineageRunEventRequest, ProcessOpenLineageRunEventResponse> + processOpenLineageRunEventSettings() { + return processOpenLineageRunEventSettings; + } + /** Returns the builder for the settings used for calls to createProcess. */ public UnaryCallSettings.Builder createProcessSettings() { return createProcessSettings; diff --git a/java-datalineage/google-cloud-datalineage/src/main/resources/META-INF/native-image/com.google.cloud.datacatalog.lineage.v1/reflect-config.json b/java-datalineage/google-cloud-datalineage/src/main/resources/META-INF/native-image/com.google.cloud.datacatalog.lineage.v1/reflect-config.json index 74ba559d60f1..32db187676bd 100644 --- a/java-datalineage/google-cloud-datalineage/src/main/resources/META-INF/native-image/com.google.cloud.datacatalog.lineage.v1/reflect-config.json +++ b/java-datalineage/google-cloud-datalineage/src/main/resources/META-INF/native-image/com.google.cloud.datacatalog.lineage.v1/reflect-config.json @@ -872,6 +872,42 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.datacatalog.lineage.v1.ProcessOpenLineageRunEventRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.datacatalog.lineage.v1.ProcessOpenLineageRunEventRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.datacatalog.lineage.v1.ProcessOpenLineageRunEventResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.datacatalog.lineage.v1.ProcessOpenLineageRunEventResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.datacatalog.lineage.v1.Run", "queryAllDeclaredConstructors": true, diff --git a/java-datalineage/google-cloud-datalineage/src/test/java/com/google/cloud/datacatalog/lineage/v1/LineageClientHttpJsonTest.java b/java-datalineage/google-cloud-datalineage/src/test/java/com/google/cloud/datacatalog/lineage/v1/LineageClientHttpJsonTest.java index f8b498c62b14..aebfda967da3 100644 --- a/java-datalineage/google-cloud-datalineage/src/test/java/com/google/cloud/datacatalog/lineage/v1/LineageClientHttpJsonTest.java +++ b/java-datalineage/google-cloud-datalineage/src/test/java/com/google/cloud/datacatalog/lineage/v1/LineageClientHttpJsonTest.java @@ -37,6 +37,7 @@ import com.google.protobuf.Any; import com.google.protobuf.Empty; import com.google.protobuf.FieldMask; +import com.google.protobuf.Struct; import com.google.protobuf.Timestamp; import com.google.protobuf.Value; import java.io.IOException; @@ -87,6 +88,55 @@ public void tearDown() throws Exception { mockService.reset(); } + @Test + public void processOpenLineageRunEventTest() throws Exception { + ProcessOpenLineageRunEventResponse expectedResponse = + ProcessOpenLineageRunEventResponse.newBuilder() + .setProcess(ProcessName.of("[PROJECT]", "[LOCATION]", "[PROCESS]").toString()) + .setRun(RunName.of("[PROJECT]", "[LOCATION]", "[PROCESS]", "[RUN]").toString()) + .addAllLineageEvents(new ArrayList ()) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-5833/locations/location-5833"; + Struct openLineage = Struct.newBuilder().build(); + + ProcessOpenLineageRunEventResponse actualResponse = + client.processOpenLineageRunEvent(parent, openLineage); + 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 processOpenLineageRunEventExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-5833/locations/location-5833"; + Struct openLineage = Struct.newBuilder().build(); + client.processOpenLineageRunEvent(parent, openLineage); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + @Test public void createProcessTest() throws Exception { Process expectedResponse = diff --git a/java-datalineage/google-cloud-datalineage/src/test/java/com/google/cloud/datacatalog/lineage/v1/LineageClientTest.java b/java-datalineage/google-cloud-datalineage/src/test/java/com/google/cloud/datacatalog/lineage/v1/LineageClientTest.java index 1b7e088f7ec6..201a55dc9f9c 100644 --- a/java-datalineage/google-cloud-datalineage/src/test/java/com/google/cloud/datacatalog/lineage/v1/LineageClientTest.java +++ b/java-datalineage/google-cloud-datalineage/src/test/java/com/google/cloud/datacatalog/lineage/v1/LineageClientTest.java @@ -36,6 +36,7 @@ import com.google.protobuf.Any; import com.google.protobuf.Empty; import com.google.protobuf.FieldMask; +import com.google.protobuf.Struct; import com.google.protobuf.Timestamp; import com.google.protobuf.Value; import io.grpc.StatusRuntimeException; @@ -92,6 +93,51 @@ public void tearDown() throws Exception { client.close(); } + @Test + public void processOpenLineageRunEventTest() throws Exception { + ProcessOpenLineageRunEventResponse expectedResponse = + ProcessOpenLineageRunEventResponse.newBuilder() + .setProcess(ProcessName.of("[PROJECT]", "[LOCATION]", "[PROCESS]").toString()) + .setRun(RunName.of("[PROJECT]", "[LOCATION]", "[PROCESS]", "[RUN]").toString()) + .addAllLineageEvents(new ArrayList ()) + .build(); + mockLineage.addResponse(expectedResponse); + + String parent = "parent-995424086"; + Struct openLineage = Struct.newBuilder().build(); + + ProcessOpenLineageRunEventResponse actualResponse = + client.processOpenLineageRunEvent(parent, openLineage); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockLineage.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ProcessOpenLineageRunEventRequest actualRequest = + ((ProcessOpenLineageRunEventRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(openLineage, actualRequest.getOpenLineage()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void processOpenLineageRunEventExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockLineage.addException(exception); + + try { + String parent = "parent-995424086"; + Struct openLineage = Struct.newBuilder().build(); + client.processOpenLineageRunEvent(parent, openLineage); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + @Test public void createProcessTest() throws Exception { Process expectedResponse = diff --git a/java-datalineage/google-cloud-datalineage/src/test/java/com/google/cloud/datacatalog/lineage/v1/MockLineageImpl.java b/java-datalineage/google-cloud-datalineage/src/test/java/com/google/cloud/datacatalog/lineage/v1/MockLineageImpl.java index 4140572e0f1a..be63fa30c36f 100644 --- a/java-datalineage/google-cloud-datalineage/src/test/java/com/google/cloud/datacatalog/lineage/v1/MockLineageImpl.java +++ b/java-datalineage/google-cloud-datalineage/src/test/java/com/google/cloud/datacatalog/lineage/v1/MockLineageImpl.java @@ -60,6 +60,28 @@ public void reset() { responses = new LinkedList<>(); } + @Override + public void processOpenLineageRunEvent( + ProcessOpenLineageRunEventRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ProcessOpenLineageRunEventResponse) { + requests.add(request); + responseObserver.onNext(((ProcessOpenLineageRunEventResponse) 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 ProcessOpenLineageRunEvent, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ProcessOpenLineageRunEventResponse.class.getName(), + Exception.class.getName()))); + } + } + @Override public void createProcess( CreateProcessRequest request, StreamObserver responseObserver) { diff --git a/java-datalineage/grpc-google-cloud-datalineage-v1/src/main/java/com/google/cloud/datacatalog/lineage/v1/LineageGrpc.java b/java-datalineage/grpc-google-cloud-datalineage-v1/src/main/java/com/google/cloud/datacatalog/lineage/v1/LineageGrpc.java index f5981a45c295..53749456f830 100644 --- a/java-datalineage/grpc-google-cloud-datalineage-v1/src/main/java/com/google/cloud/datacatalog/lineage/v1/LineageGrpc.java +++ b/java-datalineage/grpc-google-cloud-datalineage-v1/src/main/java/com/google/cloud/datacatalog/lineage/v1/LineageGrpc.java @@ -38,6 +38,58 @@ private LineageGrpc() {} public static final java.lang.String SERVICE_NAME = "google.cloud.datacatalog.lineage.v1.Lineage"; // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.datacatalog.lineage.v1.ProcessOpenLineageRunEventRequest, + com.google.cloud.datacatalog.lineage.v1.ProcessOpenLineageRunEventResponse> + getProcessOpenLineageRunEventMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ProcessOpenLineageRunEvent", + requestType = com.google.cloud.datacatalog.lineage.v1.ProcessOpenLineageRunEventRequest.class, + responseType = + com.google.cloud.datacatalog.lineage.v1.ProcessOpenLineageRunEventResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.datacatalog.lineage.v1.ProcessOpenLineageRunEventRequest, + com.google.cloud.datacatalog.lineage.v1.ProcessOpenLineageRunEventResponse> + getProcessOpenLineageRunEventMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.datacatalog.lineage.v1.ProcessOpenLineageRunEventRequest, + com.google.cloud.datacatalog.lineage.v1.ProcessOpenLineageRunEventResponse> + getProcessOpenLineageRunEventMethod; + if ((getProcessOpenLineageRunEventMethod = LineageGrpc.getProcessOpenLineageRunEventMethod) + == null) { + synchronized (LineageGrpc.class) { + if ((getProcessOpenLineageRunEventMethod = LineageGrpc.getProcessOpenLineageRunEventMethod) + == null) { + LineageGrpc.getProcessOpenLineageRunEventMethod = + getProcessOpenLineageRunEventMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ProcessOpenLineageRunEvent")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datacatalog.lineage.v1 + .ProcessOpenLineageRunEventRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datacatalog.lineage.v1 + .ProcessOpenLineageRunEventResponse.getDefaultInstance())) + .setSchemaDescriptor( + new LineageMethodDescriptorSupplier("ProcessOpenLineageRunEvent")) + .build(); + } + } + } + return getProcessOpenLineageRunEventMethod; + } + private static volatile io.grpc.MethodDescriptor< com.google.cloud.datacatalog.lineage.v1.CreateProcessRequest, com.google.cloud.datacatalog.lineage.v1.Process> @@ -823,6 +875,25 @@ public LineageFutureStub newStub( */ public interface AsyncService { + /** + * + * + * + * Creates new lineage events together with their parents: process and run. + * Updates the process and run if they already exist. + * Mapped from Open Lineage specification: + * https://github.com/OpenLineage/OpenLineage/blob/main/spec/OpenLineage.json. + *+ */ + default void processOpenLineageRunEvent( + com.google.cloud.datacatalog.lineage.v1.ProcessOpenLineageRunEventRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.datacatalog.lineage.v1.ProcessOpenLineageRunEventResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getProcessOpenLineageRunEventMethod(), responseObserver); + } + /** * * @@ -1113,6 +1184,27 @@ protected LineageStub build(io.grpc.Channel channel, io.grpc.CallOptions callOpt return new LineageStub(channel, callOptions); } + /** + * + * + *+ * Creates new lineage events together with their parents: process and run. + * Updates the process and run if they already exist. + * Mapped from Open Lineage specification: + * https://github.com/OpenLineage/OpenLineage/blob/main/spec/OpenLineage.json. + *+ */ + public void processOpenLineageRunEvent( + com.google.cloud.datacatalog.lineage.v1.ProcessOpenLineageRunEventRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.datacatalog.lineage.v1.ProcessOpenLineageRunEventResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getProcessOpenLineageRunEventMethod(), getCallOptions()), + request, + responseObserver); + } + /** * * @@ -1412,6 +1504,23 @@ protected LineageBlockingStub build(io.grpc.Channel channel, io.grpc.CallOptions return new LineageBlockingStub(channel, callOptions); } + /** + * + * + *+ * Creates new lineage events together with their parents: process and run. + * Updates the process and run if they already exist. + * Mapped from Open Lineage specification: + * https://github.com/OpenLineage/OpenLineage/blob/main/spec/OpenLineage.json. + *+ */ + public com.google.cloud.datacatalog.lineage.v1.ProcessOpenLineageRunEventResponse + processOpenLineageRunEvent( + com.google.cloud.datacatalog.lineage.v1.ProcessOpenLineageRunEventRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getProcessOpenLineageRunEventMethod(), getCallOptions(), request); + } + /** * * @@ -1664,6 +1773,24 @@ protected LineageFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions c return new LineageFutureStub(channel, callOptions); } + /** + * + * + *+ * Creates new lineage events together with their parents: process and run. + * Updates the process and run if they already exist. + * Mapped from Open Lineage specification: + * https://github.com/OpenLineage/OpenLineage/blob/main/spec/OpenLineage.json. + *+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.datacatalog.lineage.v1.ProcessOpenLineageRunEventResponse> + processOpenLineageRunEvent( + com.google.cloud.datacatalog.lineage.v1.ProcessOpenLineageRunEventRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getProcessOpenLineageRunEventMethod(), getCallOptions()), request); + } + /** * * @@ -1911,22 +2038,23 @@ protected LineageFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions c } } - private static final int METHODID_CREATE_PROCESS = 0; - private static final int METHODID_UPDATE_PROCESS = 1; - private static final int METHODID_GET_PROCESS = 2; - private static final int METHODID_LIST_PROCESSES = 3; - private static final int METHODID_DELETE_PROCESS = 4; - private static final int METHODID_CREATE_RUN = 5; - private static final int METHODID_UPDATE_RUN = 6; - private static final int METHODID_GET_RUN = 7; - private static final int METHODID_LIST_RUNS = 8; - private static final int METHODID_DELETE_RUN = 9; - private static final int METHODID_CREATE_LINEAGE_EVENT = 10; - private static final int METHODID_GET_LINEAGE_EVENT = 11; - private static final int METHODID_LIST_LINEAGE_EVENTS = 12; - private static final int METHODID_DELETE_LINEAGE_EVENT = 13; - private static final int METHODID_SEARCH_LINKS = 14; - private static final int METHODID_BATCH_SEARCH_LINK_PROCESSES = 15; + private static final int METHODID_PROCESS_OPEN_LINEAGE_RUN_EVENT = 0; + private static final int METHODID_CREATE_PROCESS = 1; + private static final int METHODID_UPDATE_PROCESS = 2; + private static final int METHODID_GET_PROCESS = 3; + private static final int METHODID_LIST_PROCESSES = 4; + private static final int METHODID_DELETE_PROCESS = 5; + private static final int METHODID_CREATE_RUN = 6; + private static final int METHODID_UPDATE_RUN = 7; + private static final int METHODID_GET_RUN = 8; + private static final int METHODID_LIST_RUNS = 9; + private static final int METHODID_DELETE_RUN = 10; + private static final int METHODID_CREATE_LINEAGE_EVENT = 11; + private static final int METHODID_GET_LINEAGE_EVENT = 12; + private static final int METHODID_LIST_LINEAGE_EVENTS = 13; + private static final int METHODID_DELETE_LINEAGE_EVENT = 14; + private static final int METHODID_SEARCH_LINKS = 15; + private static final int METHODID_BATCH_SEARCH_LINK_PROCESSES = 16; private static final class MethodHandlersimplements io.grpc.stub.ServerCalls.UnaryMethod , @@ -1945,6 +2073,13 @@ private static final class MethodHandlers @java.lang.SuppressWarnings("unchecked") public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { switch (methodId) { + case METHODID_PROCESS_OPEN_LINEAGE_RUN_EVENT: + serviceImpl.processOpenLineageRunEvent( + (com.google.cloud.datacatalog.lineage.v1.ProcessOpenLineageRunEventRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.datacatalog.lineage.v1.ProcessOpenLineageRunEventResponse>) + responseObserver); + break; case METHODID_CREATE_PROCESS: serviceImpl.createProcess( (com.google.cloud.datacatalog.lineage.v1.CreateProcessRequest) request, @@ -2061,6 +2196,13 @@ public io.grpc.stub.StreamObserver invoke( public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getProcessOpenLineageRunEventMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.datacatalog.lineage.v1.ProcessOpenLineageRunEventRequest, + com.google.cloud.datacatalog.lineage.v1.ProcessOpenLineageRunEventResponse>( + service, METHODID_PROCESS_OPEN_LINEAGE_RUN_EVENT))) .addMethod( getCreateProcessMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( @@ -2216,6 +2358,7 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) .setSchemaDescriptor(new LineageFileDescriptorSupplier()) + .addMethod(getProcessOpenLineageRunEventMethod()) .addMethod(getCreateProcessMethod()) .addMethod(getUpdateProcessMethod()) .addMethod(getGetProcessMethod()) diff --git a/java-datalineage/proto-google-cloud-datalineage-v1/src/main/java/com/google/cloud/datacatalog/lineage/v1/BatchSearchLinkProcessesRequest.java b/java-datalineage/proto-google-cloud-datalineage-v1/src/main/java/com/google/cloud/datacatalog/lineage/v1/BatchSearchLinkProcessesRequest.java index e559ab910930..416565ed9c70 100644 --- a/java-datalineage/proto-google-cloud-datalineage-v1/src/main/java/com/google/cloud/datacatalog/lineage/v1/BatchSearchLinkProcessesRequest.java +++ b/java-datalineage/proto-google-cloud-datalineage-v1/src/main/java/com/google/cloud/datacatalog/lineage/v1/BatchSearchLinkProcessesRequest.java @@ -74,7 +74,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * - * Required. The project and location you want search in the format `projects/*/locations/*` + * Required. The project and location where you want to search. ** *@@ -99,7 +99,7 @@ public java.lang.String getParent() { * * *
- * Required. The project and location you want search in the format `projects/*/locations/*` + * Required. The project and location where you want to search. ** *@@ -733,7 +733,7 @@ public Builder mergeFrom( * * *
- * Required. The project and location you want search in the format `projects/*/locations/*` + * Required. The project and location where you want to search. ** *@@ -757,7 +757,7 @@ public java.lang.String getParent() { * * *
- * Required. The project and location you want search in the format `projects/*/locations/*` + * Required. The project and location where you want to search. ** *@@ -781,7 +781,7 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
- * Required. The project and location you want search in the format `projects/*/locations/*` + * Required. The project and location where you want to search. ** *@@ -804,7 +804,7 @@ public Builder setParent(java.lang.String value) { * * *
- * Required. The project and location you want search in the format `projects/*/locations/*` + * Required. The project and location where you want to search. ** *@@ -823,7 +823,7 @@ public Builder clearParent() { * * *
- * Required. The project and location you want search in the format `projects/*/locations/*` + * Required. The project and location where you want to search. ** *diff --git a/java-datalineage/proto-google-cloud-datalineage-v1/src/main/java/com/google/cloud/datacatalog/lineage/v1/BatchSearchLinkProcessesRequestOrBuilder.java b/java-datalineage/proto-google-cloud-datalineage-v1/src/main/java/com/google/cloud/datacatalog/lineage/v1/BatchSearchLinkProcessesRequestOrBuilder.java index 68766a124809..ec520132cbca 100644 --- a/java-datalineage/proto-google-cloud-datalineage-v1/src/main/java/com/google/cloud/datacatalog/lineage/v1/BatchSearchLinkProcessesRequestOrBuilder.java +++ b/java-datalineage/proto-google-cloud-datalineage-v1/src/main/java/com/google/cloud/datacatalog/lineage/v1/BatchSearchLinkProcessesRequestOrBuilder.java @@ -27,7 +27,7 @@ public interface BatchSearchLinkProcessesRequestOrBuilder * * *
- * Required. The project and location you want search in the format `projects/*/locations/*` + * Required. The project and location where you want to search. ** *@@ -41,7 +41,7 @@ public interface BatchSearchLinkProcessesRequestOrBuilder * * *
- * Required. The project and location you want search in the format `projects/*/locations/*` + * Required. The project and location where you want to search. ** *diff --git a/java-datalineage/proto-google-cloud-datalineage-v1/src/main/java/com/google/cloud/datacatalog/lineage/v1/EntityReference.java b/java-datalineage/proto-google-cloud-datalineage-v1/src/main/java/com/google/cloud/datacatalog/lineage/v1/EntityReference.java index 1c407cc22bf4..dec9c359b997 100644 --- a/java-datalineage/proto-google-cloud-datalineage-v1/src/main/java/com/google/cloud/datacatalog/lineage/v1/EntityReference.java +++ b/java-datalineage/proto-google-cloud-datalineage-v1/src/main/java/com/google/cloud/datacatalog/lineage/v1/EntityReference.java @@ -70,16 +70,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
- * Required. Fully Qualified Name of the entity. Useful for referencing - * entities that aren't represented as GCP resources, for example, tables in - * Dataproc Metastore API. - * - * Examples: - * - * * `bigquery:dataset.project_id.dataset_id` - * * `bigquery:table.project_id.dataset_id.table_id` - * * `pubsub:project_id.topic_id` - * * `dataproc_metastore:projectId.locationId.instanceId.databaseId.tableId` + * Required. [Fully Qualified Name + * (FQN)](https://cloud.google.com/data-catalog/docs/fully-qualified-names) + * of the entity. ** *string fully_qualified_name = 1 [(.google.api.field_behavior) = REQUIRED];
@@ -102,16 +95,9 @@ public java.lang.String getFullyQualifiedName() { * * *- * Required. Fully Qualified Name of the entity. Useful for referencing - * entities that aren't represented as GCP resources, for example, tables in - * Dataproc Metastore API. - * - * Examples: - * - * * `bigquery:dataset.project_id.dataset_id` - * * `bigquery:table.project_id.dataset_id.table_id` - * * `pubsub:project_id.topic_id` - * * `dataproc_metastore:projectId.locationId.instanceId.databaseId.tableId` + * Required. [Fully Qualified Name + * (FQN)](https://cloud.google.com/data-catalog/docs/fully-qualified-names) + * of the entity. ** *string fully_qualified_name = 1 [(.google.api.field_behavior) = REQUIRED];
@@ -479,16 +465,9 @@ public Builder mergeFrom( * * *- * Required. Fully Qualified Name of the entity. Useful for referencing - * entities that aren't represented as GCP resources, for example, tables in - * Dataproc Metastore API. - * - * Examples: - * - * * `bigquery:dataset.project_id.dataset_id` - * * `bigquery:table.project_id.dataset_id.table_id` - * * `pubsub:project_id.topic_id` - * * `dataproc_metastore:projectId.locationId.instanceId.databaseId.tableId` + * Required. [Fully Qualified Name + * (FQN)](https://cloud.google.com/data-catalog/docs/fully-qualified-names) + * of the entity. ** *string fully_qualified_name = 1 [(.google.api.field_behavior) = REQUIRED];
@@ -510,16 +489,9 @@ public java.lang.String getFullyQualifiedName() { * * *- * Required. Fully Qualified Name of the entity. Useful for referencing - * entities that aren't represented as GCP resources, for example, tables in - * Dataproc Metastore API. - * - * Examples: - * - * * `bigquery:dataset.project_id.dataset_id` - * * `bigquery:table.project_id.dataset_id.table_id` - * * `pubsub:project_id.topic_id` - * * `dataproc_metastore:projectId.locationId.instanceId.databaseId.tableId` + * Required. [Fully Qualified Name + * (FQN)](https://cloud.google.com/data-catalog/docs/fully-qualified-names) + * of the entity. ** *string fully_qualified_name = 1 [(.google.api.field_behavior) = REQUIRED];
@@ -541,16 +513,9 @@ public com.google.protobuf.ByteString getFullyQualifiedNameBytes() { * * *- * Required. Fully Qualified Name of the entity. Useful for referencing - * entities that aren't represented as GCP resources, for example, tables in - * Dataproc Metastore API. - * - * Examples: - * - * * `bigquery:dataset.project_id.dataset_id` - * * `bigquery:table.project_id.dataset_id.table_id` - * * `pubsub:project_id.topic_id` - * * `dataproc_metastore:projectId.locationId.instanceId.databaseId.tableId` + * Required. [Fully Qualified Name + * (FQN)](https://cloud.google.com/data-catalog/docs/fully-qualified-names) + * of the entity. ** *string fully_qualified_name = 1 [(.google.api.field_behavior) = REQUIRED];
@@ -571,16 +536,9 @@ public Builder setFullyQualifiedName(java.lang.String value) { * * *- * Required. Fully Qualified Name of the entity. Useful for referencing - * entities that aren't represented as GCP resources, for example, tables in - * Dataproc Metastore API. - * - * Examples: - * - * * `bigquery:dataset.project_id.dataset_id` - * * `bigquery:table.project_id.dataset_id.table_id` - * * `pubsub:project_id.topic_id` - * * `dataproc_metastore:projectId.locationId.instanceId.databaseId.tableId` + * Required. [Fully Qualified Name + * (FQN)](https://cloud.google.com/data-catalog/docs/fully-qualified-names) + * of the entity. ** *string fully_qualified_name = 1 [(.google.api.field_behavior) = REQUIRED];
@@ -597,16 +555,9 @@ public Builder clearFullyQualifiedName() { * * *- * Required. Fully Qualified Name of the entity. Useful for referencing - * entities that aren't represented as GCP resources, for example, tables in - * Dataproc Metastore API. - * - * Examples: - * - * * `bigquery:dataset.project_id.dataset_id` - * * `bigquery:table.project_id.dataset_id.table_id` - * * `pubsub:project_id.topic_id` - * * `dataproc_metastore:projectId.locationId.instanceId.databaseId.tableId` + * Required. [Fully Qualified Name + * (FQN)](https://cloud.google.com/data-catalog/docs/fully-qualified-names) + * of the entity. ** *string fully_qualified_name = 1 [(.google.api.field_behavior) = REQUIRED];
diff --git a/java-datalineage/proto-google-cloud-datalineage-v1/src/main/java/com/google/cloud/datacatalog/lineage/v1/EntityReferenceOrBuilder.java b/java-datalineage/proto-google-cloud-datalineage-v1/src/main/java/com/google/cloud/datacatalog/lineage/v1/EntityReferenceOrBuilder.java index d77b63229b8c..cb1e50dd97e6 100644 --- a/java-datalineage/proto-google-cloud-datalineage-v1/src/main/java/com/google/cloud/datacatalog/lineage/v1/EntityReferenceOrBuilder.java +++ b/java-datalineage/proto-google-cloud-datalineage-v1/src/main/java/com/google/cloud/datacatalog/lineage/v1/EntityReferenceOrBuilder.java @@ -27,16 +27,9 @@ public interface EntityReferenceOrBuilder * * *- * Required. Fully Qualified Name of the entity. Useful for referencing - * entities that aren't represented as GCP resources, for example, tables in - * Dataproc Metastore API. - * - * Examples: - * - * * `bigquery:dataset.project_id.dataset_id` - * * `bigquery:table.project_id.dataset_id.table_id` - * * `pubsub:project_id.topic_id` - * * `dataproc_metastore:projectId.locationId.instanceId.databaseId.tableId` + * Required. [Fully Qualified Name + * (FQN)](https://cloud.google.com/data-catalog/docs/fully-qualified-names) + * of the entity. ** *string fully_qualified_name = 1 [(.google.api.field_behavior) = REQUIRED];
@@ -48,16 +41,9 @@ public interface EntityReferenceOrBuilder * * *- * Required. Fully Qualified Name of the entity. Useful for referencing - * entities that aren't represented as GCP resources, for example, tables in - * Dataproc Metastore API. - * - * Examples: - * - * * `bigquery:dataset.project_id.dataset_id` - * * `bigquery:table.project_id.dataset_id.table_id` - * * `pubsub:project_id.topic_id` - * * `dataproc_metastore:projectId.locationId.instanceId.databaseId.tableId` + * Required. [Fully Qualified Name + * (FQN)](https://cloud.google.com/data-catalog/docs/fully-qualified-names) + * of the entity. ** *string fully_qualified_name = 1 [(.google.api.field_behavior) = REQUIRED];
diff --git a/java-datalineage/proto-google-cloud-datalineage-v1/src/main/java/com/google/cloud/datacatalog/lineage/v1/LineageEvent.java b/java-datalineage/proto-google-cloud-datalineage-v1/src/main/java/com/google/cloud/datacatalog/lineage/v1/LineageEvent.java index 85180bdae90c..8701d6ac1095 100644 --- a/java-datalineage/proto-google-cloud-datalineage-v1/src/main/java/com/google/cloud/datacatalog/lineage/v1/LineageEvent.java +++ b/java-datalineage/proto-google-cloud-datalineage-v1/src/main/java/com/google/cloud/datacatalog/lineage/v1/LineageEvent.java @@ -212,12 +212,12 @@ public com.google.cloud.datacatalog.lineage.v1.EventLinkOrBuilder getLinksOrBuil * * *- * Optional. The beginning of the transformation which resulted in this + * Required. The beginning of the transformation which resulted in this * lineage event. For streaming scenarios, it should be the beginning of the * period from which the lineage is being reported. ** - *.google.protobuf.Timestamp start_time = 6 [(.google.api.field_behavior) = OPTIONAL]; + *
.google.protobuf.Timestamp start_time = 6 [(.google.api.field_behavior) = REQUIRED]; *
* * @return Whether the startTime field is set. @@ -230,12 +230,12 @@ public boolean hasStartTime() { * * *- * Optional. The beginning of the transformation which resulted in this + * Required. The beginning of the transformation which resulted in this * lineage event. For streaming scenarios, it should be the beginning of the * period from which the lineage is being reported. ** - *.google.protobuf.Timestamp start_time = 6 [(.google.api.field_behavior) = OPTIONAL]; + *
.google.protobuf.Timestamp start_time = 6 [(.google.api.field_behavior) = REQUIRED]; *
* * @return The startTime. @@ -248,12 +248,12 @@ public com.google.protobuf.Timestamp getStartTime() { * * *- * Optional. The beginning of the transformation which resulted in this + * Required. The beginning of the transformation which resulted in this * lineage event. For streaming scenarios, it should be the beginning of the * period from which the lineage is being reported. ** - *.google.protobuf.Timestamp start_time = 6 [(.google.api.field_behavior) = OPTIONAL]; + *
.google.protobuf.Timestamp start_time = 6 [(.google.api.field_behavior) = REQUIRED]; *
*/ @java.lang.Override @@ -1319,12 +1319,12 @@ public com.google.cloud.datacatalog.lineage.v1.EventLink.Builder addLinksBuilder * * *- * Optional. The beginning of the transformation which resulted in this + * Required. The beginning of the transformation which resulted in this * lineage event. For streaming scenarios, it should be the beginning of the * period from which the lineage is being reported. ** - *.google.protobuf.Timestamp start_time = 6 [(.google.api.field_behavior) = OPTIONAL]; + *
.google.protobuf.Timestamp start_time = 6 [(.google.api.field_behavior) = REQUIRED]; *
* * @return Whether the startTime field is set. @@ -1336,12 +1336,12 @@ public boolean hasStartTime() { * * *- * Optional. The beginning of the transformation which resulted in this + * Required. The beginning of the transformation which resulted in this * lineage event. For streaming scenarios, it should be the beginning of the * period from which the lineage is being reported. ** - *.google.protobuf.Timestamp start_time = 6 [(.google.api.field_behavior) = OPTIONAL]; + *
.google.protobuf.Timestamp start_time = 6 [(.google.api.field_behavior) = REQUIRED]; *
* * @return The startTime. @@ -1357,12 +1357,12 @@ public com.google.protobuf.Timestamp getStartTime() { * * *- * Optional. The beginning of the transformation which resulted in this + * Required. The beginning of the transformation which resulted in this * lineage event. For streaming scenarios, it should be the beginning of the * period from which the lineage is being reported. ** - *.google.protobuf.Timestamp start_time = 6 [(.google.api.field_behavior) = OPTIONAL]; + *
.google.protobuf.Timestamp start_time = 6 [(.google.api.field_behavior) = REQUIRED]; *
*/ public Builder setStartTime(com.google.protobuf.Timestamp value) { @@ -1382,12 +1382,12 @@ public Builder setStartTime(com.google.protobuf.Timestamp value) { * * *- * Optional. The beginning of the transformation which resulted in this + * Required. The beginning of the transformation which resulted in this * lineage event. For streaming scenarios, it should be the beginning of the * period from which the lineage is being reported. ** - *.google.protobuf.Timestamp start_time = 6 [(.google.api.field_behavior) = OPTIONAL]; + *
.google.protobuf.Timestamp start_time = 6 [(.google.api.field_behavior) = REQUIRED]; *
*/ public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { @@ -1404,12 +1404,12 @@ public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValu * * *- * Optional. The beginning of the transformation which resulted in this + * Required. The beginning of the transformation which resulted in this * lineage event. For streaming scenarios, it should be the beginning of the * period from which the lineage is being reported. ** - *.google.protobuf.Timestamp start_time = 6 [(.google.api.field_behavior) = OPTIONAL]; + *
.google.protobuf.Timestamp start_time = 6 [(.google.api.field_behavior) = REQUIRED]; *
*/ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { @@ -1432,12 +1432,12 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { * * *- * Optional. The beginning of the transformation which resulted in this + * Required. The beginning of the transformation which resulted in this * lineage event. For streaming scenarios, it should be the beginning of the * period from which the lineage is being reported. ** - *.google.protobuf.Timestamp start_time = 6 [(.google.api.field_behavior) = OPTIONAL]; + *
.google.protobuf.Timestamp start_time = 6 [(.google.api.field_behavior) = REQUIRED]; *
*/ public Builder clearStartTime() { @@ -1454,12 +1454,12 @@ public Builder clearStartTime() { * * *- * Optional. The beginning of the transformation which resulted in this + * Required. The beginning of the transformation which resulted in this * lineage event. For streaming scenarios, it should be the beginning of the * period from which the lineage is being reported. ** - *.google.protobuf.Timestamp start_time = 6 [(.google.api.field_behavior) = OPTIONAL]; + *
.google.protobuf.Timestamp start_time = 6 [(.google.api.field_behavior) = REQUIRED]; *
*/ public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { @@ -1471,12 +1471,12 @@ public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { * * *- * Optional. The beginning of the transformation which resulted in this + * Required. The beginning of the transformation which resulted in this * lineage event. For streaming scenarios, it should be the beginning of the * period from which the lineage is being reported. ** - *.google.protobuf.Timestamp start_time = 6 [(.google.api.field_behavior) = OPTIONAL]; + *
.google.protobuf.Timestamp start_time = 6 [(.google.api.field_behavior) = REQUIRED]; *
*/ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { @@ -1490,12 +1490,12 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { * * *- * Optional. The beginning of the transformation which resulted in this + * Required. The beginning of the transformation which resulted in this * lineage event. For streaming scenarios, it should be the beginning of the * period from which the lineage is being reported. ** - *.google.protobuf.Timestamp start_time = 6 [(.google.api.field_behavior) = OPTIONAL]; + *
.google.protobuf.Timestamp start_time = 6 [(.google.api.field_behavior) = REQUIRED]; *
*/ private com.google.protobuf.SingleFieldBuilderV3< diff --git a/java-datalineage/proto-google-cloud-datalineage-v1/src/main/java/com/google/cloud/datacatalog/lineage/v1/LineageEventOrBuilder.java b/java-datalineage/proto-google-cloud-datalineage-v1/src/main/java/com/google/cloud/datacatalog/lineage/v1/LineageEventOrBuilder.java index 46c3ed31bf60..bf5387e357af 100644 --- a/java-datalineage/proto-google-cloud-datalineage-v1/src/main/java/com/google/cloud/datacatalog/lineage/v1/LineageEventOrBuilder.java +++ b/java-datalineage/proto-google-cloud-datalineage-v1/src/main/java/com/google/cloud/datacatalog/lineage/v1/LineageEventOrBuilder.java @@ -124,12 +124,12 @@ public interface LineageEventOrBuilder * * *- * Optional. The beginning of the transformation which resulted in this + * Required. The beginning of the transformation which resulted in this * lineage event. For streaming scenarios, it should be the beginning of the * period from which the lineage is being reported. ** - *.google.protobuf.Timestamp start_time = 6 [(.google.api.field_behavior) = OPTIONAL]; + *
.google.protobuf.Timestamp start_time = 6 [(.google.api.field_behavior) = REQUIRED]; *
* * @return Whether the startTime field is set. @@ -139,12 +139,12 @@ public interface LineageEventOrBuilder * * *- * Optional. The beginning of the transformation which resulted in this + * Required. The beginning of the transformation which resulted in this * lineage event. For streaming scenarios, it should be the beginning of the * period from which the lineage is being reported. ** - *.google.protobuf.Timestamp start_time = 6 [(.google.api.field_behavior) = OPTIONAL]; + *
.google.protobuf.Timestamp start_time = 6 [(.google.api.field_behavior) = REQUIRED]; *
* * @return The startTime. @@ -154,12 +154,12 @@ public interface LineageEventOrBuilder * * *- * Optional. The beginning of the transformation which resulted in this + * Required. The beginning of the transformation which resulted in this * lineage event. For streaming scenarios, it should be the beginning of the * period from which the lineage is being reported. ** - *.google.protobuf.Timestamp start_time = 6 [(.google.api.field_behavior) = OPTIONAL]; + *
*/ DELETE(1), + /** + * + * + *.google.protobuf.Timestamp start_time = 6 [(.google.api.field_behavior) = REQUIRED]; *
*/ com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder(); diff --git a/java-datalineage/proto-google-cloud-datalineage-v1/src/main/java/com/google/cloud/datacatalog/lineage/v1/LineageProto.java b/java-datalineage/proto-google-cloud-datalineage-v1/src/main/java/com/google/cloud/datacatalog/lineage/v1/LineageProto.java index c1389f18d9e6..e330d9c5ab88 100644 --- a/java-datalineage/proto-google-cloud-datalineage-v1/src/main/java/com/google/cloud/datacatalog/lineage/v1/LineageProto.java +++ b/java-datalineage/proto-google-cloud-datalineage-v1/src/main/java/com/google/cloud/datacatalog/lineage/v1/LineageProto.java @@ -59,6 +59,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_datacatalog_lineage_v1_OperationMetadata_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_datacatalog_lineage_v1_OperationMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datacatalog_lineage_v1_ProcessOpenLineageRunEventRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datacatalog_lineage_v1_ProcessOpenLineageRunEventRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datacatalog_lineage_v1_ProcessOpenLineageRunEventResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datacatalog_lineage_v1_ProcessOpenLineageRunEventResponse_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_datacatalog_lineage_v1_CreateProcessRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -205,7 +213,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\001(\tB\004\342A\001\005\022C\n\005links\030\010 \003(\0132..google.cloud." + "datacatalog.lineage.v1.EventLinkB\004\342A\001\001\0224" + "\n\nstart_time\030\006 \001(\0132\032.google.protobuf.Tim" - + "estampB\004\342A\001\001\0222\n\010end_time\030\007 \001(\0132\032.google." + + "estampB\004\342A\001\002\0222\n\010end_time\030\007 \001(\0132\032.google." + "protobuf.TimestampB\004\342A\001\001:\223\001\352A\217\001\n\'datalin" + "eage.googleapis.com/LineageEvent\022dprojec" + "ts/{project}/locations/{location}/proces" @@ -215,7 +223,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "v1.EntityReferenceB\004\342A\001\002\022J\n\006target\030\002 \001(\013" + "24.google.cloud.datacatalog.lineage.v1.E" + "ntityReferenceB\004\342A\001\002\"5\n\017EntityReference\022" - + "\"\n\024fully_qualified_name\030\001 \001(\tB\004\342A\001\002\"\340\003\n\021" + + "\"\n\024fully_qualified_name\030\001 \001(\tB\004\342A\001\002\"\354\003\n\021" + "OperationMetadata\022Q\n\005state\030\001 \001(\0162<.googl" + "e.cloud.datacatalog.lineage.v1.Operation" + "Metadata.StateB\004\342A\001\003\022Y\n\016operation_type\030\002" @@ -226,191 +234,208 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "buf.TimestampB\004\342A\001\003\0222\n\010end_time\030\006 \001(\0132\032." + "google.protobuf.TimestampB\004\342A\001\003\"S\n\005State" + "\022\025\n\021STATE_UNSPECIFIED\020\000\022\013\n\007PENDING\020\001\022\013\n\007" - + "RUNNING\020\002\022\r\n\tSUCCEEDED\020\003\022\n\n\006FAILED\020\004\"(\n\004" - + "Type\022\024\n\020TYPE_UNSPECIFIED\020\000\022\n\n\006DELETE\020\001\"\254" - + "\001\n\024CreateProcessRequest\022;\n\006parent\030\001 \001(\tB" - + "+\342A\001\002\372A$\022\"datalineage.googleapis.com/Pro" - + "cess\022C\n\007process\030\002 \001(\0132,.google.cloud.dat" - + "acatalog.lineage.v1.ProcessB\004\342A\001\002\022\022\n\nreq" - + "uest_id\030\003 \001(\t\"\243\001\n\024UpdateProcessRequest\022C" - + "\n\007process\030\001 \001(\0132,.google.cloud.datacatal" - + "og.lineage.v1.ProcessB\004\342A\001\002\022/\n\013update_ma" - + "sk\030\002 \001(\0132\032.google.protobuf.FieldMask\022\025\n\r" - + "allow_missing\030\003 \001(\010\"N\n\021GetProcessRequest" - + "\0229\n\004name\030\001 \001(\tB+\342A\001\002\372A$\n\"datalineage.goo" - + "gleapis.com/Process\"z\n\024ListProcessesRequ" - + "est\022;\n\006parent\030\001 \001(\tB+\342A\001\002\372A$\022\"datalineag" - + "e.googleapis.com/Process\022\021\n\tpage_size\030\002 " - + "\001(\005\022\022\n\npage_token\030\003 \001(\t\"q\n\025ListProcesses" - + "Response\022?\n\tprocesses\030\001 \003(\0132,.google.clo" - + "ud.datacatalog.lineage.v1.Process\022\027\n\017nex" - + "t_page_token\030\002 \001(\t\"h\n\024DeleteProcessReque" + + "RUNNING\020\002\022\r\n\tSUCCEEDED\020\003\022\n\n\006FAILED\020\004\"4\n\004" + + "Type\022\024\n\020TYPE_UNSPECIFIED\020\000\022\n\n\006DELETE\020\001\022\n" + + "\n\006CREATE\020\002\"\202\001\n!ProcessOpenLineageRunEven" + + "tRequest\022\024\n\006parent\030\001 \001(\tB\004\342A\001\002\0223\n\014open_l" + + "ineage\030\002 \001(\0132\027.google.protobuf.StructB\004\342" + + "A\001\002\022\022\n\nrequest_id\030\003 \001(\t\"\326\001\n\"ProcessOpenL" + + "ineageRunEventResponse\0228\n\007process\030\001 \001(\tB" + + "\'\372A$\n\"datalineage.googleapis.com/Process" + + "\0220\n\003run\030\002 \001(\tB#\372A \n\036datalineage.googleap" + + "is.com/Run\022D\n\016lineage_events\030\003 \003(\tB,\372A)\n" + + "\'datalineage.googleapis.com/LineageEvent" + + "\"\254\001\n\024CreateProcessRequest\022;\n\006parent\030\001 \001(" + + "\tB+\342A\001\002\372A$\022\"datalineage.googleapis.com/P" + + "rocess\022C\n\007process\030\002 \001(\0132,.google.cloud.d" + + "atacatalog.lineage.v1.ProcessB\004\342A\001\002\022\022\n\nr" + + "equest_id\030\003 \001(\t\"\243\001\n\024UpdateProcessRequest" + + "\022C\n\007process\030\001 \001(\0132,.google.cloud.datacat" + + "alog.lineage.v1.ProcessB\004\342A\001\002\022/\n\013update_" + + "mask\030\002 \001(\0132\032.google.protobuf.FieldMask\022\025" + + "\n\rallow_missing\030\003 \001(\010\"N\n\021GetProcessReque" + "st\0229\n\004name\030\001 \001(\tB+\342A\001\002\372A$\n\"datalineage.g" - + "oogleapis.com/Process\022\025\n\rallow_missing\030\002" - + " \001(\010\"\234\001\n\020CreateRunRequest\0227\n\006parent\030\001 \001(" - + "\tB\'\342A\001\002\372A \022\036datalineage.googleapis.com/R" - + "un\022;\n\003run\030\002 \001(\0132(.google.cloud.datacatal" - + "og.lineage.v1.RunB\004\342A\001\002\022\022\n\nrequest_id\030\003 " - + "\001(\t\"\200\001\n\020UpdateRunRequest\022;\n\003run\030\001 \001(\0132(." - + "google.cloud.datacatalog.lineage.v1.RunB" - + "\004\342A\001\002\022/\n\013update_mask\030\002 \001(\0132\032.google.prot" - + "obuf.FieldMask\"F\n\rGetRunRequest\0225\n\004name\030" - + "\001 \001(\tB\'\342A\001\002\372A \n\036datalineage.googleapis.c" - + "om/Run\"q\n\017ListRunsRequest\0227\n\006parent\030\001 \001(" - + "\tB\'\342A\001\002\372A \022\036datalineage.googleapis.com/R" - + "un\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(" - + "\t\"c\n\020ListRunsResponse\0226\n\004runs\030\001 \003(\0132(.go" - + "ogle.cloud.datacatalog.lineage.v1.Run\022\027\n" - + "\017next_page_token\030\002 \001(\t\"`\n\020DeleteRunReque" - + "st\0225\n\004name\030\001 \001(\tB\'\342A\001\002\372A \n\036datalineage.g" - + "oogleapis.com/Run\022\025\n\rallow_missing\030\002 \001(\010" - + "\"\301\001\n\031CreateLineageEventRequest\022@\n\006parent" - + "\030\001 \001(\tB0\342A\001\002\372A)\022\'datalineage.googleapis." - + "com/LineageEvent\022N\n\rlineage_event\030\002 \001(\0132" - + "1.google.cloud.datacatalog.lineage.v1.Li" - + "neageEventB\004\342A\001\002\022\022\n\nrequest_id\030\003 \001(\t\"X\n\026" - + "GetLineageEventRequest\022>\n\004name\030\001 \001(\tB0\342A" - + "\001\002\372A)\n\'datalineage.googleapis.com/Lineag" - + "eEvent\"\203\001\n\030ListLineageEventsRequest\022@\n\006p" - + "arent\030\001 \001(\tB0\342A\001\002\372A)\022\'datalineage.google" - + "apis.com/LineageEvent\022\021\n\tpage_size\030\002 \001(\005" - + "\022\022\n\npage_token\030\003 \001(\t\"\177\n\031ListLineageEvent" - + "sResponse\022I\n\016lineage_events\030\001 \003(\01321.goog" - + "le.cloud.datacatalog.lineage.v1.LineageE" - + "vent\022\027\n\017next_page_token\030\002 \001(\t\"r\n\031DeleteL" - + "ineageEventRequest\022>\n\004name\030\001 \001(\tB0\342A\001\002\372A" - + ")\n\'datalineage.googleapis.com/LineageEve" - + "nt\022\025\n\rallow_missing\030\002 \001(\010\"\254\002\n\022SearchLink" - + "sRequest\022;\n\006parent\030\001 \001(\tB+\342A\001\002\372A$\022\"datal" - + "ineage.googleapis.com/Process\022L\n\006source\030" - + "\004 \001(\01324.google.cloud.datacatalog.lineage" - + ".v1.EntityReferenceB\004\342A\001\001H\000\022L\n\006target\030\005 " - + "\001(\01324.google.cloud.datacatalog.lineage.v" - + "1.EntityReferenceB\004\342A\001\001H\000\022\027\n\tpage_size\030\002" - + " \001(\005B\004\342A\001\001\022\030\n\npage_token\030\003 \001(\tB\004\342A\001\001B\n\n\010" - + "criteria\"h\n\023SearchLinksResponse\0228\n\005links" - + "\030\001 \003(\0132).google.cloud.datacatalog.lineag" - + "e.v1.Link\022\027\n\017next_page_token\030\002 \001(\t\"\205\002\n\004L" - + "ink\022\023\n\004name\030\001 \001(\tB\005\342A\002\003\005\022D\n\006source\030\002 \001(\013" - + "24.google.cloud.datacatalog.lineage.v1.E" - + "ntityReference\022D\n\006target\030\003 \001(\01324.google." + + "oogleapis.com/Process\"z\n\024ListProcessesRe" + + "quest\022;\n\006parent\030\001 \001(\tB+\342A\001\002\372A$\022\"dataline" + + "age.googleapis.com/Process\022\021\n\tpage_size\030" + + "\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"q\n\025ListProcess" + + "esResponse\022?\n\tprocesses\030\001 \003(\0132,.google.c" + + "loud.datacatalog.lineage.v1.Process\022\027\n\017n" + + "ext_page_token\030\002 \001(\t\"h\n\024DeleteProcessReq" + + "uest\0229\n\004name\030\001 \001(\tB+\342A\001\002\372A$\n\"datalineage" + + ".googleapis.com/Process\022\025\n\rallow_missing" + + "\030\002 \001(\010\"\234\001\n\020CreateRunRequest\0227\n\006parent\030\001 " + + "\001(\tB\'\342A\001\002\372A \022\036datalineage.googleapis.com" + + "/Run\022;\n\003run\030\002 \001(\0132(.google.cloud.datacat" + + "alog.lineage.v1.RunB\004\342A\001\002\022\022\n\nrequest_id\030" + + "\003 \001(\t\"\227\001\n\020UpdateRunRequest\022;\n\003run\030\001 \001(\0132" + + "(.google.cloud.datacatalog.lineage.v1.Ru" + + "nB\004\342A\001\002\022/\n\013update_mask\030\002 \001(\0132\032.google.pr" + + "otobuf.FieldMask\022\025\n\rallow_missing\030\003 \001(\010\"" + + "F\n\rGetRunRequest\0225\n\004name\030\001 \001(\tB\'\342A\001\002\372A \n" + + "\036datalineage.googleapis.com/Run\"q\n\017ListR" + + "unsRequest\0227\n\006parent\030\001 \001(\tB\'\342A\001\002\372A \022\036dat" + + "alineage.googleapis.com/Run\022\021\n\tpage_size" + + "\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"c\n\020ListRunsRe" + + "sponse\0226\n\004runs\030\001 \003(\0132(.google.cloud.data" + + "catalog.lineage.v1.Run\022\027\n\017next_page_toke" + + "n\030\002 \001(\t\"`\n\020DeleteRunRequest\0225\n\004name\030\001 \001(" + + "\tB\'\342A\001\002\372A \n\036datalineage.googleapis.com/R" + + "un\022\025\n\rallow_missing\030\002 \001(\010\"\301\001\n\031CreateLine" + + "ageEventRequest\022@\n\006parent\030\001 \001(\tB0\342A\001\002\372A)" + + "\022\'datalineage.googleapis.com/LineageEven" + + "t\022N\n\rlineage_event\030\002 \001(\01321.google.cloud." + + "datacatalog.lineage.v1.LineageEventB\004\342A\001" + + "\002\022\022\n\nrequest_id\030\003 \001(\t\"X\n\026GetLineageEvent" + + "Request\022>\n\004name\030\001 \001(\tB0\342A\001\002\372A)\n\'dataline" + + "age.googleapis.com/LineageEvent\"\203\001\n\030List" + + "LineageEventsRequest\022@\n\006parent\030\001 \001(\tB0\342A" + + "\001\002\372A)\022\'datalineage.googleapis.com/Lineag" + + "eEvent\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030" + + "\003 \001(\t\"\177\n\031ListLineageEventsResponse\022I\n\016li" + + "neage_events\030\001 \003(\01321.google.cloud.dataca" + + "talog.lineage.v1.LineageEvent\022\027\n\017next_pa" + + "ge_token\030\002 \001(\t\"r\n\031DeleteLineageEventRequ" + + "est\022>\n\004name\030\001 \001(\tB0\342A\001\002\372A)\n\'datalineage." + + "googleapis.com/LineageEvent\022\025\n\rallow_mis" + + "sing\030\002 \001(\010\"\254\002\n\022SearchLinksRequest\022;\n\006par" + + "ent\030\001 \001(\tB+\342A\001\002\372A$\022\"datalineage.googleap" + + "is.com/Process\022L\n\006source\030\004 \001(\01324.google." + "cloud.datacatalog.lineage.v1.EntityRefer" - + "ence\022.\n\nstart_time\030\004 \001(\0132\032.google.protob" - + "uf.Timestamp\022,\n\010end_time\030\005 \001(\0132\032.google." - + "protobuf.Timestamp\"\232\001\n\037BatchSearchLinkPr" - + "ocessesRequest\022;\n\006parent\030\001 \001(\tB+\342A\001\002\372A$\022" - + "\"datalineage.googleapis.com/Process\022\023\n\005l" - + "inks\030\002 \003(\tB\004\342A\001\002\022\021\n\tpage_size\030\003 \001(\005\022\022\n\np" - + "age_token\030\004 \001(\t\"\205\001\n BatchSearchLinkProce" - + "ssesResponse\022H\n\rprocess_links\030\001 \003(\01321.go" - + "ogle.cloud.datacatalog.lineage.v1.Proces" - + "sLinks\022\027\n\017next_page_token\030\002 \001(\t\"\215\001\n\014Proc" - + "essLinks\0228\n\007process\030\001 \001(\tB\'\372A$\n\"dataline" - + "age.googleapis.com/Process\022C\n\005links\030\002 \003(" - + "\01324.google.cloud.datacatalog.lineage.v1." - + "ProcessLinkInfo\"}\n\017ProcessLinkInfo\022\014\n\004li" - + "nk\030\001 \001(\t\022.\n\nstart_time\030\002 \001(\0132\032.google.pr" - + "otobuf.Timestamp\022,\n\010end_time\030\003 \001(\0132\032.goo" - + "gle.protobuf.Timestamp\"\332\001\n\006Origin\022K\n\013sou" - + "rce_type\030\001 \001(\01626.google.cloud.datacatalo" - + "g.lineage.v1.Origin.SourceType\022\014\n\004name\030\002" - + " \001(\t\"u\n\nSourceType\022\033\n\027SOURCE_TYPE_UNSPEC" - + "IFIED\020\000\022\n\n\006CUSTOM\020\001\022\014\n\010BIGQUERY\020\002\022\017\n\013DAT" - + "A_FUSION\020\003\022\014\n\010COMPOSER\020\004\022\021\n\rLOOKER_STUDI" - + "O\020\0052\240\033\n\007Lineage\022\311\001\n\rCreateProcess\0229.goog" - + "le.cloud.datacatalog.lineage.v1.CreatePr" - + "ocessRequest\032,.google.cloud.datacatalog." - + "lineage.v1.Process\"O\332A\016parent,process\202\323\344" - + "\223\0028\"-/v1/{parent=projects/*/locations/*}" - + "/processes:\007process\022\326\001\n\rUpdateProcess\0229." - + "google.cloud.datacatalog.lineage.v1.Upda" + + "enceB\004\342A\001\001H\000\022L\n\006target\030\005 \001(\01324.google.cl" + + "oud.datacatalog.lineage.v1.EntityReferen" + + "ceB\004\342A\001\001H\000\022\027\n\tpage_size\030\002 \001(\005B\004\342A\001\001\022\030\n\np" + + "age_token\030\003 \001(\tB\004\342A\001\001B\n\n\010criteria\"h\n\023Sea" + + "rchLinksResponse\0228\n\005links\030\001 \003(\0132).google" + + ".cloud.datacatalog.lineage.v1.Link\022\027\n\017ne" + + "xt_page_token\030\002 \001(\t\"\205\002\n\004Link\022\023\n\004name\030\001 \001" + + "(\tB\005\342A\002\003\005\022D\n\006source\030\002 \001(\01324.google.cloud" + + ".datacatalog.lineage.v1.EntityReference\022" + + "D\n\006target\030\003 \001(\01324.google.cloud.datacatal" + + "og.lineage.v1.EntityReference\022.\n\nstart_t" + + "ime\030\004 \001(\0132\032.google.protobuf.Timestamp\022,\n" + + "\010end_time\030\005 \001(\0132\032.google.protobuf.Timest" + + "amp\"\232\001\n\037BatchSearchLinkProcessesRequest\022" + + ";\n\006parent\030\001 \001(\tB+\342A\001\002\372A$\022\"datalineage.go" + + "ogleapis.com/Process\022\023\n\005links\030\002 \003(\tB\004\342A\001" + + "\002\022\021\n\tpage_size\030\003 \001(\005\022\022\n\npage_token\030\004 \001(\t" + + "\"\205\001\n BatchSearchLinkProcessesResponse\022H\n" + + "\rprocess_links\030\001 \003(\01321.google.cloud.data" + + "catalog.lineage.v1.ProcessLinks\022\027\n\017next_" + + "page_token\030\002 \001(\t\"\215\001\n\014ProcessLinks\0228\n\007pro" + + "cess\030\001 \001(\tB\'\372A$\n\"datalineage.googleapis." + + "com/Process\022C\n\005links\030\002 \003(\01324.google.clou" + + "d.datacatalog.lineage.v1.ProcessLinkInfo" + + "\"}\n\017ProcessLinkInfo\022\014\n\004link\030\001 \001(\t\022.\n\nsta" + + "rt_time\030\002 \001(\0132\032.google.protobuf.Timestam" + + "p\022,\n\010end_time\030\003 \001(\0132\032.google.protobuf.Ti" + + "mestamp\"\351\001\n\006Origin\022K\n\013source_type\030\001 \001(\0162" + + "6.google.cloud.datacatalog.lineage.v1.Or" + + "igin.SourceType\022\014\n\004name\030\002 \001(\t\"\203\001\n\nSource" + + "Type\022\033\n\027SOURCE_TYPE_UNSPECIFIED\020\000\022\n\n\006CUS" + + "TOM\020\001\022\014\n\010BIGQUERY\020\002\022\017\n\013DATA_FUSION\020\003\022\014\n\010" + + "COMPOSER\020\004\022\021\n\rLOOKER_STUDIO\020\005\022\014\n\010DATAPRO" + + "C\020\0062\274\035\n\007Lineage\022\231\002\n\032ProcessOpenLineageRu" + + "nEvent\022F.google.cloud.datacatalog.lineag" + + "e.v1.ProcessOpenLineageRunEventRequest\032G" + + ".google.cloud.datacatalog.lineage.v1.Pro" + + "cessOpenLineageRunEventResponse\"j\332A\023pare" + + "nt,open_lineage\202\323\344\223\002N\">/v1/{parent=proje" + + "cts/*/locations/*}:processOpenLineageRun" + + "Event:\014open_lineage\022\311\001\n\rCreateProcess\0229." + + "google.cloud.datacatalog.lineage.v1.Crea" + "teProcessRequest\032,.google.cloud.datacata" - + "log.lineage.v1.Process\"\\\332A\023process,updat" - + "e_mask\202\323\344\223\002@25/v1/{process.name=projects" - + "/*/locations/*/processes/*}:\007process\022\260\001\n" - + "\nGetProcess\0226.google.cloud.datacatalog.l" - + "ineage.v1.GetProcessRequest\032,.google.clo" - + "ud.datacatalog.lineage.v1.Process\"<\332A\004na" - + "me\202\323\344\223\002/\022-/v1/{name=projects/*/locations" - + "/*/processes/*}\022\306\001\n\rListProcesses\0229.goog" - + "le.cloud.datacatalog.lineage.v1.ListProc" - + "essesRequest\032:.google.cloud.datacatalog." - + "lineage.v1.ListProcessesResponse\">\332A\006par" - + "ent\202\323\344\223\002/\022-/v1/{parent=projects/*/locati" - + "ons/*}/processes\022\371\001\n\rDeleteProcess\0229.goo" - + "gle.cloud.datacatalog.lineage.v1.DeleteP" - + "rocessRequest\032\035.google.longrunning.Opera" - + "tion\"\215\001\312AN\n\025google.protobuf.Empty\0225googl" - + "e.cloud.datacatalog.lineage.v1.Operation" - + "Metadata\332A\004name\202\323\344\223\002/*-/v1/{name=project" - + "s/*/locations/*/processes/*}\022\274\001\n\tCreateR" - + "un\0225.google.cloud.datacatalog.lineage.v1" - + ".CreateRunRequest\032(.google.cloud.datacat" - + "alog.lineage.v1.Run\"N\332A\nparent,run\202\323\344\223\002;" - + "\"4/v1/{parent=projects/*/locations/*/pro" - + "cesses/*}/runs:\003run\022\305\001\n\tUpdateRun\0225.goog" - + "le.cloud.datacatalog.lineage.v1.UpdateRu" - + "nRequest\032(.google.cloud.datacatalog.line" - + "age.v1.Run\"W\332A\017run,update_mask\202\323\344\223\002?28/v" - + "1/{run.name=projects/*/locations/*/proce" - + "sses/*/runs/*}:\003run\022\253\001\n\006GetRun\0222.google." - + "cloud.datacatalog.lineage.v1.GetRunReque" - + "st\032(.google.cloud.datacatalog.lineage.v1" - + ".Run\"C\332A\004name\202\323\344\223\0026\0224/v1/{name=projects/" - + "*/locations/*/processes/*/runs/*}\022\276\001\n\010Li" - + "stRuns\0224.google.cloud.datacatalog.lineag" - + "e.v1.ListRunsRequest\0325.google.cloud.data" - + "catalog.lineage.v1.ListRunsResponse\"E\332A\006" - + "parent\202\323\344\223\0026\0224/v1/{parent=projects/*/loc" - + "ations/*/processes/*}/runs\022\370\001\n\tDeleteRun" - + "\0225.google.cloud.datacatalog.lineage.v1.D" - + "eleteRunRequest\032\035.google.longrunning.Ope" - + "ration\"\224\001\312AN\n\025google.protobuf.Empty\0225goo" - + "gle.cloud.datacatalog.lineage.v1.Operati" - + "onMetadata\332A\004name\202\323\344\223\0026*4/v1/{name=proje" - + "cts/*/locations/*/processes/*/runs/*}\022\373\001" - + "\n\022CreateLineageEvent\022>.google.cloud.data" - + "catalog.lineage.v1.CreateLineageEventReq" - + "uest\0321.google.cloud.datacatalog.lineage." - + "v1.LineageEvent\"r\332A\024parent,lineage_event" - + "\202\323\344\223\002U\"D/v1/{parent=projects/*/locations" - + "/*/processes/*/runs/*}/lineageEvents:\rli" - + "neage_event\022\326\001\n\017GetLineageEvent\022;.google" - + ".cloud.datacatalog.lineage.v1.GetLineage" - + "EventRequest\0321.google.cloud.datacatalog." - + "lineage.v1.LineageEvent\"S\332A\004name\202\323\344\223\002F\022D" - + "/v1/{name=projects/*/locations/*/process" - + "es/*/runs/*/lineageEvents/*}\022\351\001\n\021ListLin" - + "eageEvents\022=.google.cloud.datacatalog.li" - + "neage.v1.ListLineageEventsRequest\032>.goog" - + "le.cloud.datacatalog.lineage.v1.ListLine" - + "ageEventsResponse\"U\332A\006parent\202\323\344\223\002F\022D/v1/" - + "{parent=projects/*/locations/*/processes" - + "/*/runs/*}/lineageEvents\022\301\001\n\022DeleteLinea" - + "geEvent\022>.google.cloud.datacatalog.linea" - + "ge.v1.DeleteLineageEventRequest\032\026.google" - + ".protobuf.Empty\"S\332A\004name\202\323\344\223\002F*D/v1/{nam" - + "e=projects/*/locations/*/processes/*/run" - + "s/*/lineageEvents/*}\022\274\001\n\013SearchLinks\0227.g" - + "oogle.cloud.datacatalog.lineage.v1.Searc" - + "hLinksRequest\0328.google.cloud.datacatalog" - + ".lineage.v1.SearchLinksResponse\":\202\323\344\223\0024\"" - + "//v1/{parent=projects/*/locations/*}:sea" - + "rchLinks:\001*\022\360\001\n\030BatchSearchLinkProcesses" - + "\022D.google.cloud.datacatalog.lineage.v1.B" - + "atchSearchLinkProcessesRequest\032E.google." - + "cloud.datacatalog.lineage.v1.BatchSearch" - + "LinkProcessesResponse\"G\202\323\344\223\002A\"\332A" + + "\006parent\202\323\344\223\002/\022-/v1/{parent=projects/*/lo" + + "cations/*}/processes\022\371\001\n\rDeleteProcess\0229" + + ".google.cloud.datacatalog.lineage.v1.Del" + + "eteProcessRequest\032\035.google.longrunning.O" + + "peration\"\215\001\312AN\n\025google.protobuf.Empty\0225g" + + "oogle.cloud.datacatalog.lineage.v1.Opera" + + "tionMetadata\332A\004name\202\323\344\223\002/*-/v1/{name=pro" + + "jects/*/locations/*/processes/*}\022\274\001\n\tCre" + + "ateRun\0225.google.cloud.datacatalog.lineag" + + "e.v1.CreateRunRequest\032(.google.cloud.dat" + + "acatalog.lineage.v1.Run\"N\332A\nparent,run\202\323" + + "\344\223\002;\"4/v1/{parent=projects/*/locations/*" + + "/processes/*}/runs:\003run\022\305\001\n\tUpdateRun\0225." + + "google.cloud.datacatalog.lineage.v1.Upda" + + "teRunRequest\032(.google.cloud.datacatalog." + + "lineage.v1.Run\"W\332A\017run,update_mask\202\323\344\223\002?" + + "28/v1/{run.name=projects/*/locations/*/p" + + "rocesses/*/runs/*}:\003run\022\253\001\n\006GetRun\0222.goo" + + "gle.cloud.datacatalog.lineage.v1.GetRunR" + + "equest\032(.google.cloud.datacatalog.lineag" + + "e.v1.Run\"C\332A\004name\202\323\344\223\0026\0224/v1/{name=proje" + + "cts/*/locations/*/processes/*/runs/*}\022\276\001" + + "\n\010ListRuns\0224.google.cloud.datacatalog.li" + + "neage.v1.ListRunsRequest\0325.google.cloud." + + "datacatalog.lineage.v1.ListRunsResponse\"" + + "E\332A\006parent\202\323\344\223\0026\0224/v1/{parent=projects/*" + + "/locations/*/processes/*}/runs\022\370\001\n\tDelet" + + "eRun\0225.google.cloud.datacatalog.lineage." + + "v1.DeleteRunRequest\032\035.google.longrunning" + + ".Operation\"\224\001\312AN\n\025google.protobuf.Empty\022" + + "5google.cloud.datacatalog.lineage.v1.Ope" + + "rationMetadata\332A\004name\202\323\344\223\0026*4/v1/{name=p" + + "rojects/*/locations/*/processes/*/runs/*" + + "}\022\373\001\n\022CreateLineageEvent\022>.google.cloud." + + "datacatalog.lineage.v1.CreateLineageEven" + + "tRequest\0321.google.cloud.datacatalog.line" + + "age.v1.LineageEvent\"r\332A\024parent,lineage_e" + + "vent\202\323\344\223\002U\"D/v1/{parent=projects/*/locat" + + "ions/*/processes/*/runs/*}/lineageEvents" + + ":\rlineage_event\022\326\001\n\017GetLineageEvent\022;.go" + + "ogle.cloud.datacatalog.lineage.v1.GetLin" + + "eageEventRequest\0321.google.cloud.datacata" + + "log.lineage.v1.LineageEvent\"S\332A\004name\202\323\344\223" + + "\002F\022D/v1/{name=projects/*/locations/*/pro" + + "cesses/*/runs/*/lineageEvents/*}\022\351\001\n\021Lis" + + "tLineageEvents\022=.google.cloud.datacatalo" + + "g.lineage.v1.ListLineageEventsRequest\032>." + + "google.cloud.datacatalog.lineage.v1.List" + + "LineageEventsResponse\"U\332A\006parent\202\323\344\223\002F\022D" + + "/v1/{parent=projects/*/locations/*/proce" + + "sses/*/runs/*}/lineageEvents\022\301\001\n\022DeleteL" + + "ineageEvent\022>.google.cloud.datacatalog.l" + + "ineage.v1.DeleteLineageEventRequest\032\026.go" + + "ogle.protobuf.Empty\"S\332A\004name\202\323\344\223\002F*D/v1/" + + "{name=projects/*/locations/*/processes/*" + + "/runs/*/lineageEvents/*}\022\274\001\n\013SearchLinks" + + "\0227.google.cloud.datacatalog.lineage.v1.S" + + "earchLinksRequest\0328.google.cloud.datacat" + + "alog.lineage.v1.SearchLinksResponse\":\202\323\344" + + "\223\0024\"//v1/{parent=projects/*/locations/*}" + + ":searchLinks:\001*\022\360\001\n\030BatchSearchLinkProce" + + "sses\022D.google.cloud.datacatalog.lineage." + + "v1.BatchSearchLinkProcessesRequest\032E.goo" + + "gle.cloud.datacatalog.lineage.v1.BatchSe" + + "archLinkProcessesResponse\"G\202\323\344\223\002A\"DELETE = 1;+ * The resource creation operation. + *+ * + *CREATE = 2;
+ */ + CREATE(2), UNRECOGNIZED(-1), ; @@ -321,6 +331,16 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { *DELETE = 1;
*/ public static final int DELETE_VALUE = 1; + /** + * + * + *+ * The resource creation operation. + *+ * + *CREATE = 2;
+ */ + public static final int CREATE_VALUE = 2; public final int getNumber() { if (this == UNRECOGNIZED) { @@ -350,6 +370,8 @@ public static Type forNumber(int value) { return TYPE_UNSPECIFIED; case 1: return DELETE; + case 2: + return CREATE; default: return null; } diff --git a/java-datalineage/proto-google-cloud-datalineage-v1/src/main/java/com/google/cloud/datacatalog/lineage/v1/Origin.java b/java-datalineage/proto-google-cloud-datalineage-v1/src/main/java/com/google/cloud/datacatalog/lineage/v1/Origin.java index a1c402cfbe33..5ad46dcb6f4a 100644 --- a/java-datalineage/proto-google-cloud-datalineage-v1/src/main/java/com/google/cloud/datacatalog/lineage/v1/Origin.java +++ b/java-datalineage/proto-google-cloud-datalineage-v1/src/main/java/com/google/cloud/datacatalog/lineage/v1/Origin.java @@ -133,6 +133,16 @@ public enum SourceType implements com.google.protobuf.ProtocolMessageEnum { *LOOKER_STUDIO = 5;
*/ LOOKER_STUDIO(5), + /** + * + * + *+ * Dataproc + *+ * + *DATAPROC = 6;
+ */ + DATAPROC(6), UNRECOGNIZED(-1), ; @@ -196,6 +206,16 @@ public enum SourceType implements com.google.protobuf.ProtocolMessageEnum { *LOOKER_STUDIO = 5;
*/ public static final int LOOKER_STUDIO_VALUE = 5; + /** + * + * + *+ * Dataproc + *+ * + *DATAPROC = 6;
+ */ + public static final int DATAPROC_VALUE = 6; public final int getNumber() { if (this == UNRECOGNIZED) { @@ -233,6 +253,8 @@ public static SourceType forNumber(int value) { return COMPOSER; case 5: return LOOKER_STUDIO; + case 6: + return DATAPROC; default: return null; } @@ -293,6 +315,10 @@ private SourceType(int value) { * ** Type of the source. + * + * Use of a source_type other than `CUSTOM` for process creation + * or updating is highly discouraged, and may be restricted in the future + * without notice. ** *.google.cloud.datacatalog.lineage.v1.Origin.SourceType source_type = 1;
@@ -308,6 +334,10 @@ public int getSourceTypeValue() { * ** Type of the source. + * + * Use of a source_type other than `CUSTOM` for process creation + * or updating is highly discouraged, and may be restricted in the future + * without notice. ** *.google.cloud.datacatalog.lineage.v1.Origin.SourceType source_type = 1;
@@ -763,6 +793,10 @@ public Builder mergeFrom( * ** Type of the source. + * + * Use of a source_type other than `CUSTOM` for process creation + * or updating is highly discouraged, and may be restricted in the future + * without notice. ** *.google.cloud.datacatalog.lineage.v1.Origin.SourceType source_type = 1;
@@ -778,6 +812,10 @@ public int getSourceTypeValue() { * ** Type of the source. + * + * Use of a source_type other than `CUSTOM` for process creation + * or updating is highly discouraged, and may be restricted in the future + * without notice. ** *.google.cloud.datacatalog.lineage.v1.Origin.SourceType source_type = 1;
@@ -796,6 +834,10 @@ public Builder setSourceTypeValue(int value) { * ** Type of the source. + * + * Use of a source_type other than `CUSTOM` for process creation + * or updating is highly discouraged, and may be restricted in the future + * without notice. ** *.google.cloud.datacatalog.lineage.v1.Origin.SourceType source_type = 1;
@@ -815,6 +857,10 @@ public com.google.cloud.datacatalog.lineage.v1.Origin.SourceType getSourceType() * ** Type of the source. + * + * Use of a source_type other than `CUSTOM` for process creation + * or updating is highly discouraged, and may be restricted in the future + * without notice. ** *.google.cloud.datacatalog.lineage.v1.Origin.SourceType source_type = 1;
@@ -836,6 +882,10 @@ public Builder setSourceType(com.google.cloud.datacatalog.lineage.v1.Origin.Sour * ** Type of the source. + * + * Use of a source_type other than `CUSTOM` for process creation + * or updating is highly discouraged, and may be restricted in the future + * without notice. ** *.google.cloud.datacatalog.lineage.v1.Origin.SourceType source_type = 1;
diff --git a/java-datalineage/proto-google-cloud-datalineage-v1/src/main/java/com/google/cloud/datacatalog/lineage/v1/OriginOrBuilder.java b/java-datalineage/proto-google-cloud-datalineage-v1/src/main/java/com/google/cloud/datacatalog/lineage/v1/OriginOrBuilder.java index 521893409e56..bd8ed3c64703 100644 --- a/java-datalineage/proto-google-cloud-datalineage-v1/src/main/java/com/google/cloud/datacatalog/lineage/v1/OriginOrBuilder.java +++ b/java-datalineage/proto-google-cloud-datalineage-v1/src/main/java/com/google/cloud/datacatalog/lineage/v1/OriginOrBuilder.java @@ -28,6 +28,10 @@ public interface OriginOrBuilder * ** Type of the source. + * + * Use of a source_type other than `CUSTOM` for process creation + * or updating is highly discouraged, and may be restricted in the future + * without notice. ** *.google.cloud.datacatalog.lineage.v1.Origin.SourceType source_type = 1;
@@ -40,6 +44,10 @@ public interface OriginOrBuilder * ** Type of the source. + * + * Use of a source_type other than `CUSTOM` for process creation + * or updating is highly discouraged, and may be restricted in the future + * without notice. ** *.google.cloud.datacatalog.lineage.v1.Origin.SourceType source_type = 1;
diff --git a/java-datalineage/proto-google-cloud-datalineage-v1/src/main/java/com/google/cloud/datacatalog/lineage/v1/Process.java b/java-datalineage/proto-google-cloud-datalineage-v1/src/main/java/com/google/cloud/datacatalog/lineage/v1/Process.java index 3cb6c5e942eb..314e2400785d 100644 --- a/java-datalineage/proto-google-cloud-datalineage-v1/src/main/java/com/google/cloud/datacatalog/lineage/v1/Process.java +++ b/java-datalineage/proto-google-cloud-datalineage-v1/src/main/java/com/google/cloud/datacatalog/lineage/v1/Process.java @@ -221,8 +221,11 @@ public int getAttributesCount() { * * *- * Optional. The attributes of the process. Can be anything, for example, - * "author". Up to 100 attributes are allowed. + * Optional. The attributes of the process. Should only be used for the + * purpose of non-semantic management (classifying, describing or labeling the + * process). + * + * Up to 100 attributes are allowed. ** *@@ -246,8 +249,11 @@ public java.util.Map
getAttributes( * * * - * Optional. The attributes of the process. Can be anything, for example, - * "author". Up to 100 attributes are allowed. + * Optional. The attributes of the process. Should only be used for the + * purpose of non-semantic management (classifying, describing or labeling the + * process). + * + * Up to 100 attributes are allowed. ** *@@ -262,8 +268,11 @@ public java.util.Map
getAttributesM * * * - * Optional. The attributes of the process. Can be anything, for example, - * "author". Up to 100 attributes are allowed. + * Optional. The attributes of the process. Should only be used for the + * purpose of non-semantic management (classifying, describing or labeling the + * process). + * + * Up to 100 attributes are allowed. ** *@@ -286,8 +295,11 @@ public java.util.Map
getAttributesM * * * - * Optional. The attributes of the process. Can be anything, for example, - * "author". Up to 100 attributes are allowed. + * Optional. The attributes of the process. Should only be used for the + * purpose of non-semantic management (classifying, describing or labeling the + * process). + * + * Up to 100 attributes are allowed. ** *@@ -1091,8 +1103,11 @@ public int getAttributesCount() { * * *
- * Optional. The attributes of the process. Can be anything, for example, - * "author". Up to 100 attributes are allowed. + * Optional. The attributes of the process. Should only be used for the + * purpose of non-semantic management (classifying, describing or labeling the + * process). + * + * Up to 100 attributes are allowed. ** *@@ -1116,8 +1131,11 @@ public java.util.Map
getAttributes( * * * - * Optional. The attributes of the process. Can be anything, for example, - * "author". Up to 100 attributes are allowed. + * Optional. The attributes of the process. Should only be used for the + * purpose of non-semantic management (classifying, describing or labeling the + * process). + * + * Up to 100 attributes are allowed. ** *@@ -1132,8 +1150,11 @@ public java.util.Map
getAttributesM * * * - * Optional. The attributes of the process. Can be anything, for example, - * "author". Up to 100 attributes are allowed. + * Optional. The attributes of the process. Should only be used for the + * purpose of non-semantic management (classifying, describing or labeling the + * process). + * + * Up to 100 attributes are allowed. ** *@@ -1156,8 +1177,11 @@ public java.util.Map
getAttributesM * * * - * Optional. The attributes of the process. Can be anything, for example, - * "author". Up to 100 attributes are allowed. + * Optional. The attributes of the process. Should only be used for the + * purpose of non-semantic management (classifying, describing or labeling the + * process). + * + * Up to 100 attributes are allowed. ** *@@ -1186,8 +1210,11 @@ public Builder clearAttributes() { * * *
- * Optional. The attributes of the process. Can be anything, for example, - * "author". Up to 100 attributes are allowed. + * Optional. The attributes of the process. Should only be used for the + * purpose of non-semantic management (classifying, describing or labeling the + * process). + * + * Up to 100 attributes are allowed. ** *@@ -1211,8 +1238,11 @@ public java.util.Map
getMutableAttr * * * - * Optional. The attributes of the process. Can be anything, for example, - * "author". Up to 100 attributes are allowed. + * Optional. The attributes of the process. Should only be used for the + * purpose of non-semantic management (classifying, describing or labeling the + * process). + * + * Up to 100 attributes are allowed. ** *@@ -1234,8 +1264,11 @@ public Builder putAttributes(java.lang.String key, com.google.protobuf.Value val * * *
- * Optional. The attributes of the process. Can be anything, for example, - * "author". Up to 100 attributes are allowed. + * Optional. The attributes of the process. Should only be used for the + * purpose of non-semantic management (classifying, describing or labeling the + * process). + * + * Up to 100 attributes are allowed. ** *diff --git a/java-datalineage/proto-google-cloud-datalineage-v1/src/main/java/com/google/cloud/datacatalog/lineage/v1/ProcessOpenLineageRunEventRequest.java b/java-datalineage/proto-google-cloud-datalineage-v1/src/main/java/com/google/cloud/datacatalog/lineage/v1/ProcessOpenLineageRunEventRequest.java new file mode 100644 index 000000000000..99d464cba461 --- /dev/null +++ b/java-datalineage/proto-google-cloud-datalineage-v1/src/main/java/com/google/cloud/datacatalog/lineage/v1/ProcessOpenLineageRunEventRequest.java @@ -0,0 +1,1134 @@ +/* + * 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/datacatalog/lineage/v1/lineage.proto + +package com.google.cloud.datacatalog.lineage.v1; + +/** + * + * + *
+ * Request message for + * [ProcessOpenLineageRunEvent][google.cloud.datacatalog.lineage.v1.ProcessOpenLineageRunEvent]. + *+ * + * Protobuf type {@code google.cloud.datacatalog.lineage.v1.ProcessOpenLineageRunEventRequest} + */ +public final class ProcessOpenLineageRunEventRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.lineage.v1.ProcessOpenLineageRunEventRequest) + ProcessOpenLineageRunEventRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ProcessOpenLineageRunEventRequest.newBuilder() to construct. + private ProcessOpenLineageRunEventRequest( + com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private ProcessOpenLineageRunEventRequest() { + parent_ = ""; + requestId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ProcessOpenLineageRunEventRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datacatalog.lineage.v1.LineageProto + .internal_static_google_cloud_datacatalog_lineage_v1_ProcessOpenLineageRunEventRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.datacatalog.lineage.v1.LineageProto + .internal_static_google_cloud_datacatalog_lineage_v1_ProcessOpenLineageRunEventRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.datacatalog.lineage.v1.ProcessOpenLineageRunEventRequest.class, + com.google.cloud.datacatalog.lineage.v1.ProcessOpenLineageRunEventRequest.Builder + .class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *+ * Required. The name of the project and its location that should own the + * process, run, and lineage event. + *+ * + *string parent = 1 [(.google.api.field_behavior) = REQUIRED];
+ * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *+ * Required. The name of the project and its location that should own the + * process, run, and lineage event. + *+ * + *string parent = 1 [(.google.api.field_behavior) = REQUIRED];
+ * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int OPEN_LINEAGE_FIELD_NUMBER = 2; + private com.google.protobuf.Struct openLineage_; + /** + * + * + *+ * Required. OpenLineage message following OpenLineage format: + * https://github.com/OpenLineage/OpenLineage/blob/main/spec/OpenLineage.json + *+ * + *.google.protobuf.Struct open_lineage = 2 [(.google.api.field_behavior) = REQUIRED]; + *
+ * + * @return Whether the openLineage field is set. + */ + @java.lang.Override + public boolean hasOpenLineage() { + return openLineage_ != null; + } + /** + * + * + *+ * Required. OpenLineage message following OpenLineage format: + * https://github.com/OpenLineage/OpenLineage/blob/main/spec/OpenLineage.json + *+ * + *.google.protobuf.Struct open_lineage = 2 [(.google.api.field_behavior) = REQUIRED]; + *
+ * + * @return The openLineage. + */ + @java.lang.Override + public com.google.protobuf.Struct getOpenLineage() { + return openLineage_ == null ? com.google.protobuf.Struct.getDefaultInstance() : openLineage_; + } + /** + * + * + *+ * Required. OpenLineage message following OpenLineage format: + * https://github.com/OpenLineage/OpenLineage/blob/main/spec/OpenLineage.json + *+ * + *.google.protobuf.Struct open_lineage = 2 [(.google.api.field_behavior) = REQUIRED]; + *
+ */ + @java.lang.Override + public com.google.protobuf.StructOrBuilder getOpenLineageOrBuilder() { + return openLineage_ == null ? com.google.protobuf.Struct.getDefaultInstance() : openLineage_; + } + + public static final int REQUEST_ID_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + /** + * + * + *+ * A unique identifier for this request. Restricted to 36 ASCII characters. + * A random UUID is recommended. This request is idempotent only if a + * `request_id` is provided. + *+ * + *string request_id = 3;
+ * + * @return The requestId. + */ + @java.lang.Override + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + 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(); + requestId_ = s; + return s; + } + } + /** + * + * + *+ * A unique identifier for this request. Restricted to 36 ASCII characters. + * A random UUID is recommended. This request is idempotent only if a + * `request_id` is provided. + *+ * + *string request_id = 3;
+ * + * @return The bytes for requestId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = 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(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (openLineage_ != null) { + output.writeMessage(2, getOpenLineage()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, requestId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (openLineage_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getOpenLineage()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, requestId_); + } + 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.datacatalog.lineage.v1.ProcessOpenLineageRunEventRequest)) { + return super.equals(obj); + } + com.google.cloud.datacatalog.lineage.v1.ProcessOpenLineageRunEventRequest other = + (com.google.cloud.datacatalog.lineage.v1.ProcessOpenLineageRunEventRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (hasOpenLineage() != other.hasOpenLineage()) return false; + if (hasOpenLineage()) { + if (!getOpenLineage().equals(other.getOpenLineage())) return false; + } + if (!getRequestId().equals(other.getRequestId())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + if (hasOpenLineage()) { + hash = (37 * hash) + OPEN_LINEAGE_FIELD_NUMBER; + hash = (53 * hash) + getOpenLineage().hashCode(); + } + hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.datacatalog.lineage.v1.ProcessOpenLineageRunEventRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datacatalog.lineage.v1.ProcessOpenLineageRunEventRequest 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.datacatalog.lineage.v1.ProcessOpenLineageRunEventRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datacatalog.lineage.v1.ProcessOpenLineageRunEventRequest 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.datacatalog.lineage.v1.ProcessOpenLineageRunEventRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datacatalog.lineage.v1.ProcessOpenLineageRunEventRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.datacatalog.lineage.v1.ProcessOpenLineageRunEventRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.datacatalog.lineage.v1.ProcessOpenLineageRunEventRequest 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.datacatalog.lineage.v1.ProcessOpenLineageRunEventRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.datacatalog.lineage.v1.ProcessOpenLineageRunEventRequest + 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.datacatalog.lineage.v1.ProcessOpenLineageRunEventRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.datacatalog.lineage.v1.ProcessOpenLineageRunEventRequest 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.datacatalog.lineage.v1.ProcessOpenLineageRunEventRequest 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 + * [ProcessOpenLineageRunEvent][google.cloud.datacatalog.lineage.v1.ProcessOpenLineageRunEvent]. + *+ * + * Protobuf type {@code google.cloud.datacatalog.lineage.v1.ProcessOpenLineageRunEventRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder+ implements + // @@protoc_insertion_point(builder_implements:google.cloud.datacatalog.lineage.v1.ProcessOpenLineageRunEventRequest) + com.google.cloud.datacatalog.lineage.v1.ProcessOpenLineageRunEventRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datacatalog.lineage.v1.LineageProto + .internal_static_google_cloud_datacatalog_lineage_v1_ProcessOpenLineageRunEventRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.datacatalog.lineage.v1.LineageProto + .internal_static_google_cloud_datacatalog_lineage_v1_ProcessOpenLineageRunEventRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.datacatalog.lineage.v1.ProcessOpenLineageRunEventRequest.class, + com.google.cloud.datacatalog.lineage.v1.ProcessOpenLineageRunEventRequest.Builder + .class); + } + + // Construct using + // com.google.cloud.datacatalog.lineage.v1.ProcessOpenLineageRunEventRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + openLineage_ = null; + if (openLineageBuilder_ != null) { + openLineageBuilder_.dispose(); + openLineageBuilder_ = null; + } + requestId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datacatalog.lineage.v1.LineageProto + .internal_static_google_cloud_datacatalog_lineage_v1_ProcessOpenLineageRunEventRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.datacatalog.lineage.v1.ProcessOpenLineageRunEventRequest + getDefaultInstanceForType() { + return com.google.cloud.datacatalog.lineage.v1.ProcessOpenLineageRunEventRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.datacatalog.lineage.v1.ProcessOpenLineageRunEventRequest build() { + com.google.cloud.datacatalog.lineage.v1.ProcessOpenLineageRunEventRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.datacatalog.lineage.v1.ProcessOpenLineageRunEventRequest + buildPartial() { + com.google.cloud.datacatalog.lineage.v1.ProcessOpenLineageRunEventRequest result = + new com.google.cloud.datacatalog.lineage.v1.ProcessOpenLineageRunEventRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.datacatalog.lineage.v1.ProcessOpenLineageRunEventRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.openLineage_ = + openLineageBuilder_ == null ? openLineage_ : openLineageBuilder_.build(); + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.requestId_ = requestId_; + } + } + + @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.datacatalog.lineage.v1.ProcessOpenLineageRunEventRequest) { + return mergeFrom( + (com.google.cloud.datacatalog.lineage.v1.ProcessOpenLineageRunEventRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.datacatalog.lineage.v1.ProcessOpenLineageRunEventRequest other) { + if (other + == com.google.cloud.datacatalog.lineage.v1.ProcessOpenLineageRunEventRequest + .getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasOpenLineage()) { + mergeOpenLineage(other.getOpenLineage()); + } + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + 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: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getOpenLineageFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + requestId_ = 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 parent_ = ""; + /** + * + * + * + * Required. The name of the project and its location that should own the + * process, run, and lineage event. + *+ * + *string parent = 1 [(.google.api.field_behavior) = REQUIRED];
+ * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *+ * Required. The name of the project and its location that should own the + * process, run, and lineage event. + *+ * + *string parent = 1 [(.google.api.field_behavior) = REQUIRED];
+ * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *+ * Required. The name of the project and its location that should own the + * process, run, and lineage event. + *+ * + *string parent = 1 [(.google.api.field_behavior) = REQUIRED];
+ * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *+ * Required. The name of the project and its location that should own the + * process, run, and lineage event. + *+ * + *string parent = 1 [(.google.api.field_behavior) = REQUIRED];
+ * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *+ * Required. The name of the project and its location that should own the + * process, run, and lineage event. + *+ * + *string parent = 1 [(.google.api.field_behavior) = REQUIRED];
+ * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.protobuf.Struct openLineage_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + openLineageBuilder_; + /** + * + * + *+ * Required. OpenLineage message following OpenLineage format: + * https://github.com/OpenLineage/OpenLineage/blob/main/spec/OpenLineage.json + *+ * + *.google.protobuf.Struct open_lineage = 2 [(.google.api.field_behavior) = REQUIRED]; + *
+ * + * @return Whether the openLineage field is set. + */ + public boolean hasOpenLineage() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *+ * Required. OpenLineage message following OpenLineage format: + * https://github.com/OpenLineage/OpenLineage/blob/main/spec/OpenLineage.json + *+ * + *.google.protobuf.Struct open_lineage = 2 [(.google.api.field_behavior) = REQUIRED]; + *
+ * + * @return The openLineage. + */ + public com.google.protobuf.Struct getOpenLineage() { + if (openLineageBuilder_ == null) { + return openLineage_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : openLineage_; + } else { + return openLineageBuilder_.getMessage(); + } + } + /** + * + * + *+ * Required. OpenLineage message following OpenLineage format: + * https://github.com/OpenLineage/OpenLineage/blob/main/spec/OpenLineage.json + *+ * + *.google.protobuf.Struct open_lineage = 2 [(.google.api.field_behavior) = REQUIRED]; + *
+ */ + public Builder setOpenLineage(com.google.protobuf.Struct value) { + if (openLineageBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + openLineage_ = value; + } else { + openLineageBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *+ * Required. OpenLineage message following OpenLineage format: + * https://github.com/OpenLineage/OpenLineage/blob/main/spec/OpenLineage.json + *+ * + *.google.protobuf.Struct open_lineage = 2 [(.google.api.field_behavior) = REQUIRED]; + *
+ */ + public Builder setOpenLineage(com.google.protobuf.Struct.Builder builderForValue) { + if (openLineageBuilder_ == null) { + openLineage_ = builderForValue.build(); + } else { + openLineageBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *+ * Required. OpenLineage message following OpenLineage format: + * https://github.com/OpenLineage/OpenLineage/blob/main/spec/OpenLineage.json + *+ * + *.google.protobuf.Struct open_lineage = 2 [(.google.api.field_behavior) = REQUIRED]; + *
+ */ + public Builder mergeOpenLineage(com.google.protobuf.Struct value) { + if (openLineageBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && openLineage_ != null + && openLineage_ != com.google.protobuf.Struct.getDefaultInstance()) { + getOpenLineageBuilder().mergeFrom(value); + } else { + openLineage_ = value; + } + } else { + openLineageBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *+ * Required. OpenLineage message following OpenLineage format: + * https://github.com/OpenLineage/OpenLineage/blob/main/spec/OpenLineage.json + *+ * + *.google.protobuf.Struct open_lineage = 2 [(.google.api.field_behavior) = REQUIRED]; + *
+ */ + public Builder clearOpenLineage() { + bitField0_ = (bitField0_ & ~0x00000002); + openLineage_ = null; + if (openLineageBuilder_ != null) { + openLineageBuilder_.dispose(); + openLineageBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *+ * Required. OpenLineage message following OpenLineage format: + * https://github.com/OpenLineage/OpenLineage/blob/main/spec/OpenLineage.json + *+ * + *.google.protobuf.Struct open_lineage = 2 [(.google.api.field_behavior) = REQUIRED]; + *
+ */ + public com.google.protobuf.Struct.Builder getOpenLineageBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getOpenLineageFieldBuilder().getBuilder(); + } + /** + * + * + *+ * Required. OpenLineage message following OpenLineage format: + * https://github.com/OpenLineage/OpenLineage/blob/main/spec/OpenLineage.json + *+ * + *.google.protobuf.Struct open_lineage = 2 [(.google.api.field_behavior) = REQUIRED]; + *
+ */ + public com.google.protobuf.StructOrBuilder getOpenLineageOrBuilder() { + if (openLineageBuilder_ != null) { + return openLineageBuilder_.getMessageOrBuilder(); + } else { + return openLineage_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : openLineage_; + } + } + /** + * + * + *+ * Required. OpenLineage message following OpenLineage format: + * https://github.com/OpenLineage/OpenLineage/blob/main/spec/OpenLineage.json + *+ * + *.google.protobuf.Struct open_lineage = 2 [(.google.api.field_behavior) = REQUIRED]; + *
+ */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + getOpenLineageFieldBuilder() { + if (openLineageBuilder_ == null) { + openLineageBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder>( + getOpenLineage(), getParentForChildren(), isClean()); + openLineage_ = null; + } + return openLineageBuilder_; + } + + private java.lang.Object requestId_ = ""; + /** + * + * + *+ * A unique identifier for this request. Restricted to 36 ASCII characters. + * A random UUID is recommended. This request is idempotent only if a + * `request_id` is provided. + *+ * + *string request_id = 3;
+ * + * @return The requestId. + */ + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *+ * A unique identifier for this request. Restricted to 36 ASCII characters. + * A random UUID is recommended. This request is idempotent only if a + * `request_id` is provided. + *+ * + *string request_id = 3;
+ * + * @return The bytes for requestId. + */ + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *+ * A unique identifier for this request. Restricted to 36 ASCII characters. + * A random UUID is recommended. This request is idempotent only if a + * `request_id` is provided. + *+ * + *string request_id = 3;
+ * + * @param value The requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + requestId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *+ * A unique identifier for this request. Restricted to 36 ASCII characters. + * A random UUID is recommended. This request is idempotent only if a + * `request_id` is provided. + *+ * + *string request_id = 3;
+ * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + requestId_ = getDefaultInstance().getRequestId(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *+ * A unique identifier for this request. Restricted to 36 ASCII characters. + * A random UUID is recommended. This request is idempotent only if a + * `request_id` is provided. + *+ * + *string request_id = 3;
+ * + * @param value The bytes for requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = 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.datacatalog.lineage.v1.ProcessOpenLineageRunEventRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.datacatalog.lineage.v1.ProcessOpenLineageRunEventRequest) + private static final com.google.cloud.datacatalog.lineage.v1.ProcessOpenLineageRunEventRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.datacatalog.lineage.v1.ProcessOpenLineageRunEventRequest(); + } + + public static com.google.cloud.datacatalog.lineage.v1.ProcessOpenLineageRunEventRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.ParserPARSER = + new com.google.protobuf.AbstractParser () { + @java.lang.Override + public ProcessOpenLineageRunEventRequest 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.datacatalog.lineage.v1.ProcessOpenLineageRunEventRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-datalineage/proto-google-cloud-datalineage-v1/src/main/java/com/google/cloud/datacatalog/lineage/v1/ProcessOpenLineageRunEventRequestOrBuilder.java b/java-datalineage/proto-google-cloud-datalineage-v1/src/main/java/com/google/cloud/datacatalog/lineage/v1/ProcessOpenLineageRunEventRequestOrBuilder.java new file mode 100644 index 000000000000..58f28cadb075 --- /dev/null +++ b/java-datalineage/proto-google-cloud-datalineage-v1/src/main/java/com/google/cloud/datacatalog/lineage/v1/ProcessOpenLineageRunEventRequestOrBuilder.java @@ -0,0 +1,122 @@ +/* + * 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/datacatalog/lineage/v1/lineage.proto + +package com.google.cloud.datacatalog.lineage.v1; + +public interface ProcessOpenLineageRunEventRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.lineage.v1.ProcessOpenLineageRunEventRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + * + * Required. The name of the project and its location that should own the + * process, run, and lineage event. + *+ * + *string parent = 1 [(.google.api.field_behavior) = REQUIRED];
+ * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *+ * Required. The name of the project and its location that should own the + * process, run, and lineage event. + *+ * + *string parent = 1 [(.google.api.field_behavior) = REQUIRED];
+ * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *+ * Required. OpenLineage message following OpenLineage format: + * https://github.com/OpenLineage/OpenLineage/blob/main/spec/OpenLineage.json + *+ * + *.google.protobuf.Struct open_lineage = 2 [(.google.api.field_behavior) = REQUIRED]; + *
+ * + * @return Whether the openLineage field is set. + */ + boolean hasOpenLineage(); + /** + * + * + *+ * Required. OpenLineage message following OpenLineage format: + * https://github.com/OpenLineage/OpenLineage/blob/main/spec/OpenLineage.json + *+ * + *.google.protobuf.Struct open_lineage = 2 [(.google.api.field_behavior) = REQUIRED]; + *
+ * + * @return The openLineage. + */ + com.google.protobuf.Struct getOpenLineage(); + /** + * + * + *+ * Required. OpenLineage message following OpenLineage format: + * https://github.com/OpenLineage/OpenLineage/blob/main/spec/OpenLineage.json + *+ * + *.google.protobuf.Struct open_lineage = 2 [(.google.api.field_behavior) = REQUIRED]; + *
+ */ + com.google.protobuf.StructOrBuilder getOpenLineageOrBuilder(); + + /** + * + * + *+ * A unique identifier for this request. Restricted to 36 ASCII characters. + * A random UUID is recommended. This request is idempotent only if a + * `request_id` is provided. + *+ * + *string request_id = 3;
+ * + * @return The requestId. + */ + java.lang.String getRequestId(); + /** + * + * + *+ * A unique identifier for this request. Restricted to 36 ASCII characters. + * A random UUID is recommended. This request is idempotent only if a + * `request_id` is provided. + *+ * + *string request_id = 3;
+ * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); +} diff --git a/java-datalineage/proto-google-cloud-datalineage-v1/src/main/java/com/google/cloud/datacatalog/lineage/v1/ProcessOpenLineageRunEventResponse.java b/java-datalineage/proto-google-cloud-datalineage-v1/src/main/java/com/google/cloud/datacatalog/lineage/v1/ProcessOpenLineageRunEventResponse.java new file mode 100644 index 000000000000..3d7b2d8544ed --- /dev/null +++ b/java-datalineage/proto-google-cloud-datalineage-v1/src/main/java/com/google/cloud/datacatalog/lineage/v1/ProcessOpenLineageRunEventResponse.java @@ -0,0 +1,1157 @@ +/* + * 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/datacatalog/lineage/v1/lineage.proto + +package com.google.cloud.datacatalog.lineage.v1; + +/** + * + * + *+ * Response message for + * [ProcessOpenLineageRunEvent][google.cloud.datacatalog.lineage.v1.ProcessOpenLineageRunEvent]. + *+ * + * Protobuf type {@code google.cloud.datacatalog.lineage.v1.ProcessOpenLineageRunEventResponse} + */ +public final class ProcessOpenLineageRunEventResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.lineage.v1.ProcessOpenLineageRunEventResponse) + ProcessOpenLineageRunEventResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ProcessOpenLineageRunEventResponse.newBuilder() to construct. + private ProcessOpenLineageRunEventResponse( + com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private ProcessOpenLineageRunEventResponse() { + process_ = ""; + run_ = ""; + lineageEvents_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ProcessOpenLineageRunEventResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datacatalog.lineage.v1.LineageProto + .internal_static_google_cloud_datacatalog_lineage_v1_ProcessOpenLineageRunEventResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.datacatalog.lineage.v1.LineageProto + .internal_static_google_cloud_datacatalog_lineage_v1_ProcessOpenLineageRunEventResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.datacatalog.lineage.v1.ProcessOpenLineageRunEventResponse.class, + com.google.cloud.datacatalog.lineage.v1.ProcessOpenLineageRunEventResponse.Builder + .class); + } + + public static final int PROCESS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object process_ = ""; + /** + * + * + *+ * Created process name. + * Format: `projects/{project}/locations/{location}/processes/{process}`. + *+ * + *string process = 1 [(.google.api.resource_reference) = { ... }
+ * + * @return The process. + */ + @java.lang.Override + public java.lang.String getProcess() { + java.lang.Object ref = process_; + 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(); + process_ = s; + return s; + } + } + /** + * + * + *+ * Created process name. + * Format: `projects/{project}/locations/{location}/processes/{process}`. + *+ * + *string process = 1 [(.google.api.resource_reference) = { ... }
+ * + * @return The bytes for process. + */ + @java.lang.Override + public com.google.protobuf.ByteString getProcessBytes() { + java.lang.Object ref = process_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + process_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RUN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object run_ = ""; + /** + * + * + *+ * Created run name. + * Format: + * `projects/{project}/locations/{location}/processes/{process}/runs/{run}`. + *+ * + *string run = 2 [(.google.api.resource_reference) = { ... }
+ * + * @return The run. + */ + @java.lang.Override + public java.lang.String getRun() { + java.lang.Object ref = run_; + 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(); + run_ = s; + return s; + } + } + /** + * + * + *+ * Created run name. + * Format: + * `projects/{project}/locations/{location}/processes/{process}/runs/{run}`. + *+ * + *string run = 2 [(.google.api.resource_reference) = { ... }
+ * + * @return The bytes for run. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRunBytes() { + java.lang.Object ref = run_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + run_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LINEAGE_EVENTS_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList lineageEvents_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + * + * + *+ * Created lineage event names. + * Format: + * `projects/{project}/locations/{location}/processes/{process}/runs/{run}/lineageEvents/{lineage_event}`. + *+ * + *repeated string lineage_events = 3 [(.google.api.resource_reference) = { ... }
+ * + * @return A list containing the lineageEvents. + */ + public com.google.protobuf.ProtocolStringList getLineageEventsList() { + return lineageEvents_; + } + /** + * + * + *+ * Created lineage event names. + * Format: + * `projects/{project}/locations/{location}/processes/{process}/runs/{run}/lineageEvents/{lineage_event}`. + *+ * + *repeated string lineage_events = 3 [(.google.api.resource_reference) = { ... }
+ * + * @return The count of lineageEvents. + */ + public int getLineageEventsCount() { + return lineageEvents_.size(); + } + /** + * + * + *+ * Created lineage event names. + * Format: + * `projects/{project}/locations/{location}/processes/{process}/runs/{run}/lineageEvents/{lineage_event}`. + *+ * + *repeated string lineage_events = 3 [(.google.api.resource_reference) = { ... }
+ * + * @param index The index of the element to return. + * @return The lineageEvents at the given index. + */ + public java.lang.String getLineageEvents(int index) { + return lineageEvents_.get(index); + } + /** + * + * + *+ * Created lineage event names. + * Format: + * `projects/{project}/locations/{location}/processes/{process}/runs/{run}/lineageEvents/{lineage_event}`. + *+ * + *repeated string lineage_events = 3 [(.google.api.resource_reference) = { ... }
+ * + * @param index The index of the value to return. + * @return The bytes of the lineageEvents at the given index. + */ + public com.google.protobuf.ByteString getLineageEventsBytes(int index) { + return lineageEvents_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(process_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, process_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(run_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, run_); + } + for (int i = 0; i < lineageEvents_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, lineageEvents_.getRaw(i)); + } + 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(process_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, process_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(run_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, run_); + } + { + int dataSize = 0; + for (int i = 0; i < lineageEvents_.size(); i++) { + dataSize += computeStringSizeNoTag(lineageEvents_.getRaw(i)); + } + size += dataSize; + size += 1 * getLineageEventsList().size(); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof com.google.cloud.datacatalog.lineage.v1.ProcessOpenLineageRunEventResponse)) { + return super.equals(obj); + } + com.google.cloud.datacatalog.lineage.v1.ProcessOpenLineageRunEventResponse other = + (com.google.cloud.datacatalog.lineage.v1.ProcessOpenLineageRunEventResponse) obj; + + if (!getProcess().equals(other.getProcess())) return false; + if (!getRun().equals(other.getRun())) return false; + if (!getLineageEventsList().equals(other.getLineageEventsList())) 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) + PROCESS_FIELD_NUMBER; + hash = (53 * hash) + getProcess().hashCode(); + hash = (37 * hash) + RUN_FIELD_NUMBER; + hash = (53 * hash) + getRun().hashCode(); + if (getLineageEventsCount() > 0) { + hash = (37 * hash) + LINEAGE_EVENTS_FIELD_NUMBER; + hash = (53 * hash) + getLineageEventsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.datacatalog.lineage.v1.ProcessOpenLineageRunEventResponse + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datacatalog.lineage.v1.ProcessOpenLineageRunEventResponse + 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.datacatalog.lineage.v1.ProcessOpenLineageRunEventResponse + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datacatalog.lineage.v1.ProcessOpenLineageRunEventResponse + 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.datacatalog.lineage.v1.ProcessOpenLineageRunEventResponse + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datacatalog.lineage.v1.ProcessOpenLineageRunEventResponse + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.datacatalog.lineage.v1.ProcessOpenLineageRunEventResponse + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.datacatalog.lineage.v1.ProcessOpenLineageRunEventResponse + 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.datacatalog.lineage.v1.ProcessOpenLineageRunEventResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.datacatalog.lineage.v1.ProcessOpenLineageRunEventResponse + 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.datacatalog.lineage.v1.ProcessOpenLineageRunEventResponse + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.datacatalog.lineage.v1.ProcessOpenLineageRunEventResponse + 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.datacatalog.lineage.v1.ProcessOpenLineageRunEventResponse 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 for + * [ProcessOpenLineageRunEvent][google.cloud.datacatalog.lineage.v1.ProcessOpenLineageRunEvent]. + *+ * + * Protobuf type {@code google.cloud.datacatalog.lineage.v1.ProcessOpenLineageRunEventResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder+ implements + // @@protoc_insertion_point(builder_implements:google.cloud.datacatalog.lineage.v1.ProcessOpenLineageRunEventResponse) + com.google.cloud.datacatalog.lineage.v1.ProcessOpenLineageRunEventResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datacatalog.lineage.v1.LineageProto + .internal_static_google_cloud_datacatalog_lineage_v1_ProcessOpenLineageRunEventResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.datacatalog.lineage.v1.LineageProto + .internal_static_google_cloud_datacatalog_lineage_v1_ProcessOpenLineageRunEventResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.datacatalog.lineage.v1.ProcessOpenLineageRunEventResponse.class, + com.google.cloud.datacatalog.lineage.v1.ProcessOpenLineageRunEventResponse.Builder + .class); + } + + // Construct using + // com.google.cloud.datacatalog.lineage.v1.ProcessOpenLineageRunEventResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + process_ = ""; + run_ = ""; + lineageEvents_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datacatalog.lineage.v1.LineageProto + .internal_static_google_cloud_datacatalog_lineage_v1_ProcessOpenLineageRunEventResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.datacatalog.lineage.v1.ProcessOpenLineageRunEventResponse + getDefaultInstanceForType() { + return com.google.cloud.datacatalog.lineage.v1.ProcessOpenLineageRunEventResponse + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.datacatalog.lineage.v1.ProcessOpenLineageRunEventResponse build() { + com.google.cloud.datacatalog.lineage.v1.ProcessOpenLineageRunEventResponse result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.datacatalog.lineage.v1.ProcessOpenLineageRunEventResponse + buildPartial() { + com.google.cloud.datacatalog.lineage.v1.ProcessOpenLineageRunEventResponse result = + new com.google.cloud.datacatalog.lineage.v1.ProcessOpenLineageRunEventResponse(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.datacatalog.lineage.v1.ProcessOpenLineageRunEventResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.process_ = process_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.run_ = run_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + lineageEvents_.makeImmutable(); + result.lineageEvents_ = lineageEvents_; + } + } + + @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.datacatalog.lineage.v1.ProcessOpenLineageRunEventResponse) { + return mergeFrom( + (com.google.cloud.datacatalog.lineage.v1.ProcessOpenLineageRunEventResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.datacatalog.lineage.v1.ProcessOpenLineageRunEventResponse other) { + if (other + == com.google.cloud.datacatalog.lineage.v1.ProcessOpenLineageRunEventResponse + .getDefaultInstance()) return this; + if (!other.getProcess().isEmpty()) { + process_ = other.process_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getRun().isEmpty()) { + run_ = other.run_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.lineageEvents_.isEmpty()) { + if (lineageEvents_.isEmpty()) { + lineageEvents_ = other.lineageEvents_; + bitField0_ |= 0x00000004; + } else { + ensureLineageEventsIsMutable(); + lineageEvents_.addAll(other.lineageEvents_); + } + 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: + { + process_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + run_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureLineageEventsIsMutable(); + lineageEvents_.add(s); + 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 process_ = ""; + /** + * + * + * + * Created process name. + * Format: `projects/{project}/locations/{location}/processes/{process}`. + *+ * + *string process = 1 [(.google.api.resource_reference) = { ... }
+ * + * @return The process. + */ + public java.lang.String getProcess() { + java.lang.Object ref = process_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + process_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *+ * Created process name. + * Format: `projects/{project}/locations/{location}/processes/{process}`. + *+ * + *string process = 1 [(.google.api.resource_reference) = { ... }
+ * + * @return The bytes for process. + */ + public com.google.protobuf.ByteString getProcessBytes() { + java.lang.Object ref = process_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + process_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *+ * Created process name. + * Format: `projects/{project}/locations/{location}/processes/{process}`. + *+ * + *string process = 1 [(.google.api.resource_reference) = { ... }
+ * + * @param value The process to set. + * @return This builder for chaining. + */ + public Builder setProcess(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + process_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *+ * Created process name. + * Format: `projects/{project}/locations/{location}/processes/{process}`. + *+ * + *string process = 1 [(.google.api.resource_reference) = { ... }
+ * + * @return This builder for chaining. + */ + public Builder clearProcess() { + process_ = getDefaultInstance().getProcess(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *+ * Created process name. + * Format: `projects/{project}/locations/{location}/processes/{process}`. + *+ * + *string process = 1 [(.google.api.resource_reference) = { ... }
+ * + * @param value The bytes for process to set. + * @return This builder for chaining. + */ + public Builder setProcessBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + process_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object run_ = ""; + /** + * + * + *+ * Created run name. + * Format: + * `projects/{project}/locations/{location}/processes/{process}/runs/{run}`. + *+ * + *string run = 2 [(.google.api.resource_reference) = { ... }
+ * + * @return The run. + */ + public java.lang.String getRun() { + java.lang.Object ref = run_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + run_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *+ * Created run name. + * Format: + * `projects/{project}/locations/{location}/processes/{process}/runs/{run}`. + *+ * + *string run = 2 [(.google.api.resource_reference) = { ... }
+ * + * @return The bytes for run. + */ + public com.google.protobuf.ByteString getRunBytes() { + java.lang.Object ref = run_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + run_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *+ * Created run name. + * Format: + * `projects/{project}/locations/{location}/processes/{process}/runs/{run}`. + *+ * + *string run = 2 [(.google.api.resource_reference) = { ... }
+ * + * @param value The run to set. + * @return This builder for chaining. + */ + public Builder setRun(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + run_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *+ * Created run name. + * Format: + * `projects/{project}/locations/{location}/processes/{process}/runs/{run}`. + *+ * + *string run = 2 [(.google.api.resource_reference) = { ... }
+ * + * @return This builder for chaining. + */ + public Builder clearRun() { + run_ = getDefaultInstance().getRun(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *+ * Created run name. + * Format: + * `projects/{project}/locations/{location}/processes/{process}/runs/{run}`. + *+ * + *string run = 2 [(.google.api.resource_reference) = { ... }
+ * + * @param value The bytes for run to set. + * @return This builder for chaining. + */ + public Builder setRunBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + run_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList lineageEvents_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureLineageEventsIsMutable() { + if (!lineageEvents_.isModifiable()) { + lineageEvents_ = new com.google.protobuf.LazyStringArrayList(lineageEvents_); + } + bitField0_ |= 0x00000004; + } + /** + * + * + *+ * Created lineage event names. + * Format: + * `projects/{project}/locations/{location}/processes/{process}/runs/{run}/lineageEvents/{lineage_event}`. + *+ * + *repeated string lineage_events = 3 [(.google.api.resource_reference) = { ... }
+ * + * @return A list containing the lineageEvents. + */ + public com.google.protobuf.ProtocolStringList getLineageEventsList() { + lineageEvents_.makeImmutable(); + return lineageEvents_; + } + /** + * + * + *+ * Created lineage event names. + * Format: + * `projects/{project}/locations/{location}/processes/{process}/runs/{run}/lineageEvents/{lineage_event}`. + *+ * + *repeated string lineage_events = 3 [(.google.api.resource_reference) = { ... }
+ * + * @return The count of lineageEvents. + */ + public int getLineageEventsCount() { + return lineageEvents_.size(); + } + /** + * + * + *+ * Created lineage event names. + * Format: + * `projects/{project}/locations/{location}/processes/{process}/runs/{run}/lineageEvents/{lineage_event}`. + *+ * + *repeated string lineage_events = 3 [(.google.api.resource_reference) = { ... }
+ * + * @param index The index of the element to return. + * @return The lineageEvents at the given index. + */ + public java.lang.String getLineageEvents(int index) { + return lineageEvents_.get(index); + } + /** + * + * + *+ * Created lineage event names. + * Format: + * `projects/{project}/locations/{location}/processes/{process}/runs/{run}/lineageEvents/{lineage_event}`. + *+ * + *repeated string lineage_events = 3 [(.google.api.resource_reference) = { ... }
+ * + * @param index The index of the value to return. + * @return The bytes of the lineageEvents at the given index. + */ + public com.google.protobuf.ByteString getLineageEventsBytes(int index) { + return lineageEvents_.getByteString(index); + } + /** + * + * + *+ * Created lineage event names. + * Format: + * `projects/{project}/locations/{location}/processes/{process}/runs/{run}/lineageEvents/{lineage_event}`. + *+ * + *repeated string lineage_events = 3 [(.google.api.resource_reference) = { ... }
+ * + * @param index The index to set the value at. + * @param value The lineageEvents to set. + * @return This builder for chaining. + */ + public Builder setLineageEvents(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureLineageEventsIsMutable(); + lineageEvents_.set(index, value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *+ * Created lineage event names. + * Format: + * `projects/{project}/locations/{location}/processes/{process}/runs/{run}/lineageEvents/{lineage_event}`. + *+ * + *repeated string lineage_events = 3 [(.google.api.resource_reference) = { ... }
+ * + * @param value The lineageEvents to add. + * @return This builder for chaining. + */ + public Builder addLineageEvents(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureLineageEventsIsMutable(); + lineageEvents_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *+ * Created lineage event names. + * Format: + * `projects/{project}/locations/{location}/processes/{process}/runs/{run}/lineageEvents/{lineage_event}`. + *+ * + *repeated string lineage_events = 3 [(.google.api.resource_reference) = { ... }
+ * + * @param values The lineageEvents to add. + * @return This builder for chaining. + */ + public Builder addAllLineageEvents(java.lang.Iterablevalues) { + ensureLineageEventsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, lineageEvents_); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + * + * Created lineage event names. + * Format: + * `projects/{project}/locations/{location}/processes/{process}/runs/{run}/lineageEvents/{lineage_event}`. + *+ * + *repeated string lineage_events = 3 [(.google.api.resource_reference) = { ... }
+ * + * @return This builder for chaining. + */ + public Builder clearLineageEvents() { + lineageEvents_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + ; + onChanged(); + return this; + } + /** + * + * + *+ * Created lineage event names. + * Format: + * `projects/{project}/locations/{location}/processes/{process}/runs/{run}/lineageEvents/{lineage_event}`. + *+ * + *repeated string lineage_events = 3 [(.google.api.resource_reference) = { ... }
+ * + * @param value The bytes of the lineageEvents to add. + * @return This builder for chaining. + */ + public Builder addLineageEventsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureLineageEventsIsMutable(); + lineageEvents_.add(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.datacatalog.lineage.v1.ProcessOpenLineageRunEventResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.datacatalog.lineage.v1.ProcessOpenLineageRunEventResponse) + private static final com.google.cloud.datacatalog.lineage.v1.ProcessOpenLineageRunEventResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.datacatalog.lineage.v1.ProcessOpenLineageRunEventResponse(); + } + + public static com.google.cloud.datacatalog.lineage.v1.ProcessOpenLineageRunEventResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.ParserPARSER = + new com.google.protobuf.AbstractParser () { + @java.lang.Override + public ProcessOpenLineageRunEventResponse 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.datacatalog.lineage.v1.ProcessOpenLineageRunEventResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-datalineage/proto-google-cloud-datalineage-v1/src/main/java/com/google/cloud/datacatalog/lineage/v1/ProcessOpenLineageRunEventResponseOrBuilder.java b/java-datalineage/proto-google-cloud-datalineage-v1/src/main/java/com/google/cloud/datacatalog/lineage/v1/ProcessOpenLineageRunEventResponseOrBuilder.java new file mode 100644 index 000000000000..3d944e6f275f --- /dev/null +++ b/java-datalineage/proto-google-cloud-datalineage-v1/src/main/java/com/google/cloud/datacatalog/lineage/v1/ProcessOpenLineageRunEventResponseOrBuilder.java @@ -0,0 +1,140 @@ +/* + * 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/datacatalog/lineage/v1/lineage.proto + +package com.google.cloud.datacatalog.lineage.v1; + +public interface ProcessOpenLineageRunEventResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.lineage.v1.ProcessOpenLineageRunEventResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + * + * Created process name. + * Format: `projects/{project}/locations/{location}/processes/{process}`. + *+ * + *string process = 1 [(.google.api.resource_reference) = { ... }
+ * + * @return The process. + */ + java.lang.String getProcess(); + /** + * + * + *+ * Created process name. + * Format: `projects/{project}/locations/{location}/processes/{process}`. + *+ * + *string process = 1 [(.google.api.resource_reference) = { ... }
+ * + * @return The bytes for process. + */ + com.google.protobuf.ByteString getProcessBytes(); + + /** + * + * + *+ * Created run name. + * Format: + * `projects/{project}/locations/{location}/processes/{process}/runs/{run}`. + *+ * + *string run = 2 [(.google.api.resource_reference) = { ... }
+ * + * @return The run. + */ + java.lang.String getRun(); + /** + * + * + *+ * Created run name. + * Format: + * `projects/{project}/locations/{location}/processes/{process}/runs/{run}`. + *+ * + *string run = 2 [(.google.api.resource_reference) = { ... }
+ * + * @return The bytes for run. + */ + com.google.protobuf.ByteString getRunBytes(); + + /** + * + * + *+ * Created lineage event names. + * Format: + * `projects/{project}/locations/{location}/processes/{process}/runs/{run}/lineageEvents/{lineage_event}`. + *+ * + *repeated string lineage_events = 3 [(.google.api.resource_reference) = { ... }
+ * + * @return A list containing the lineageEvents. + */ + java.util.ListgetLineageEventsList(); + /** + * + * + * + * Created lineage event names. + * Format: + * `projects/{project}/locations/{location}/processes/{process}/runs/{run}/lineageEvents/{lineage_event}`. + *+ * + *repeated string lineage_events = 3 [(.google.api.resource_reference) = { ... }
+ * + * @return The count of lineageEvents. + */ + int getLineageEventsCount(); + /** + * + * + *+ * Created lineage event names. + * Format: + * `projects/{project}/locations/{location}/processes/{process}/runs/{run}/lineageEvents/{lineage_event}`. + *+ * + *repeated string lineage_events = 3 [(.google.api.resource_reference) = { ... }
+ * + * @param index The index of the element to return. + * @return The lineageEvents at the given index. + */ + java.lang.String getLineageEvents(int index); + /** + * + * + *+ * Created lineage event names. + * Format: + * `projects/{project}/locations/{location}/processes/{process}/runs/{run}/lineageEvents/{lineage_event}`. + *+ * + *repeated string lineage_events = 3 [(.google.api.resource_reference) = { ... }
+ * + * @param index The index of the value to return. + * @return The bytes of the lineageEvents at the given index. + */ + com.google.protobuf.ByteString getLineageEventsBytes(int index); +} diff --git a/java-datalineage/proto-google-cloud-datalineage-v1/src/main/java/com/google/cloud/datacatalog/lineage/v1/ProcessOrBuilder.java b/java-datalineage/proto-google-cloud-datalineage-v1/src/main/java/com/google/cloud/datacatalog/lineage/v1/ProcessOrBuilder.java index 46adc18cc587..42dd835e2f64 100644 --- a/java-datalineage/proto-google-cloud-datalineage-v1/src/main/java/com/google/cloud/datacatalog/lineage/v1/ProcessOrBuilder.java +++ b/java-datalineage/proto-google-cloud-datalineage-v1/src/main/java/com/google/cloud/datacatalog/lineage/v1/ProcessOrBuilder.java @@ -89,8 +89,11 @@ public interface ProcessOrBuilder * * *- * Optional. The attributes of the process. Can be anything, for example, - * "author". Up to 100 attributes are allowed. + * Optional. The attributes of the process. Should only be used for the + * purpose of non-semantic management (classifying, describing or labeling the + * process). + * + * Up to 100 attributes are allowed. ** *@@ -102,8 +105,11 @@ public interface ProcessOrBuilder * * *
- * Optional. The attributes of the process. Can be anything, for example, - * "author". Up to 100 attributes are allowed. + * Optional. The attributes of the process. Should only be used for the + * purpose of non-semantic management (classifying, describing or labeling the + * process). + * + * Up to 100 attributes are allowed. ** *@@ -118,8 +124,11 @@ public interface ProcessOrBuilder * * *
- * Optional. The attributes of the process. Can be anything, for example, - * "author". Up to 100 attributes are allowed. + * Optional. The attributes of the process. Should only be used for the + * purpose of non-semantic management (classifying, describing or labeling the + * process). + * + * Up to 100 attributes are allowed. ** *@@ -131,8 +140,11 @@ public interface ProcessOrBuilder * * *
- * Optional. The attributes of the process. Can be anything, for example, - * "author". Up to 100 attributes are allowed. + * Optional. The attributes of the process. Should only be used for the + * purpose of non-semantic management (classifying, describing or labeling the + * process). + * + * Up to 100 attributes are allowed. ** *@@ -148,8 +160,11 @@ com.google.protobuf.Value getAttributesOrDefault( * * *
- * Optional. The attributes of the process. Can be anything, for example, - * "author". Up to 100 attributes are allowed. + * Optional. The attributes of the process. Should only be used for the + * purpose of non-semantic management (classifying, describing or labeling the + * process). + * + * Up to 100 attributes are allowed. ** *diff --git a/java-datalineage/proto-google-cloud-datalineage-v1/src/main/java/com/google/cloud/datacatalog/lineage/v1/Run.java b/java-datalineage/proto-google-cloud-datalineage-v1/src/main/java/com/google/cloud/datacatalog/lineage/v1/Run.java index fa07d163b53c..c502fd26e919 100644 --- a/java-datalineage/proto-google-cloud-datalineage-v1/src/main/java/com/google/cloud/datacatalog/lineage/v1/Run.java +++ b/java-datalineage/proto-google-cloud-datalineage-v1/src/main/java/com/google/cloud/datacatalog/lineage/v1/Run.java @@ -426,8 +426,10 @@ public int getAttributesCount() { * * *
- * Optional. The attributes of the run. Can be anything, for example, a string - * with an SQL request. Up to 100 attributes are allowed. + * Optional. The attributes of the run. Should only be used for the purpose of + * non-semantic management (classifying, describing or labeling the run). + * + * Up to 100 attributes are allowed. ** *@@ -451,8 +453,10 @@ public java.util.Map
getAttributes( * * * - * Optional. The attributes of the run. Can be anything, for example, a string - * with an SQL request. Up to 100 attributes are allowed. + * Optional. The attributes of the run. Should only be used for the purpose of + * non-semantic management (classifying, describing or labeling the run). + * + * Up to 100 attributes are allowed. ** *@@ -467,8 +471,10 @@ public java.util.Map
getAttributesM * * * - * Optional. The attributes of the run. Can be anything, for example, a string - * with an SQL request. Up to 100 attributes are allowed. + * Optional. The attributes of the run. Should only be used for the purpose of + * non-semantic management (classifying, describing or labeling the run). + * + * Up to 100 attributes are allowed. ** *@@ -491,8 +497,10 @@ public java.util.Map
getAttributesM * * * - * Optional. The attributes of the run. Can be anything, for example, a string - * with an SQL request. Up to 100 attributes are allowed. + * Optional. The attributes of the run. Should only be used for the purpose of + * non-semantic management (classifying, describing or labeling the run). + * + * Up to 100 attributes are allowed. ** *@@ -1427,8 +1435,10 @@ public int getAttributesCount() { * * *
- * Optional. The attributes of the run. Can be anything, for example, a string - * with an SQL request. Up to 100 attributes are allowed. + * Optional. The attributes of the run. Should only be used for the purpose of + * non-semantic management (classifying, describing or labeling the run). + * + * Up to 100 attributes are allowed. ** *@@ -1452,8 +1462,10 @@ public java.util.Map
getAttributes( * * * - * Optional. The attributes of the run. Can be anything, for example, a string - * with an SQL request. Up to 100 attributes are allowed. + * Optional. The attributes of the run. Should only be used for the purpose of + * non-semantic management (classifying, describing or labeling the run). + * + * Up to 100 attributes are allowed. ** *@@ -1468,8 +1480,10 @@ public java.util.Map
getAttributesM * * * - * Optional. The attributes of the run. Can be anything, for example, a string - * with an SQL request. Up to 100 attributes are allowed. + * Optional. The attributes of the run. Should only be used for the purpose of + * non-semantic management (classifying, describing or labeling the run). + * + * Up to 100 attributes are allowed. ** *@@ -1492,8 +1506,10 @@ public java.util.Map
getAttributesM * * * - * Optional. The attributes of the run. Can be anything, for example, a string - * with an SQL request. Up to 100 attributes are allowed. + * Optional. The attributes of the run. Should only be used for the purpose of + * non-semantic management (classifying, describing or labeling the run). + * + * Up to 100 attributes are allowed. ** *@@ -1522,8 +1538,10 @@ public Builder clearAttributes() { * * *
- * Optional. The attributes of the run. Can be anything, for example, a string - * with an SQL request. Up to 100 attributes are allowed. + * Optional. The attributes of the run. Should only be used for the purpose of + * non-semantic management (classifying, describing or labeling the run). + * + * Up to 100 attributes are allowed. ** *@@ -1547,8 +1565,10 @@ public java.util.Map
getMutableAttr * * * - * Optional. The attributes of the run. Can be anything, for example, a string - * with an SQL request. Up to 100 attributes are allowed. + * Optional. The attributes of the run. Should only be used for the purpose of + * non-semantic management (classifying, describing or labeling the run). + * + * Up to 100 attributes are allowed. ** *@@ -1570,8 +1590,10 @@ public Builder putAttributes(java.lang.String key, com.google.protobuf.Value val * * *
- * Optional. The attributes of the run. Can be anything, for example, a string - * with an SQL request. Up to 100 attributes are allowed. + * Optional. The attributes of the run. Should only be used for the purpose of + * non-semantic management (classifying, describing or labeling the run). + * + * Up to 100 attributes are allowed. ** *diff --git a/java-datalineage/proto-google-cloud-datalineage-v1/src/main/java/com/google/cloud/datacatalog/lineage/v1/RunOrBuilder.java b/java-datalineage/proto-google-cloud-datalineage-v1/src/main/java/com/google/cloud/datacatalog/lineage/v1/RunOrBuilder.java index a9dd1928427d..dc8722dfc156 100644 --- a/java-datalineage/proto-google-cloud-datalineage-v1/src/main/java/com/google/cloud/datacatalog/lineage/v1/RunOrBuilder.java +++ b/java-datalineage/proto-google-cloud-datalineage-v1/src/main/java/com/google/cloud/datacatalog/lineage/v1/RunOrBuilder.java @@ -89,8 +89,10 @@ public interface RunOrBuilder * * *
- * Optional. The attributes of the run. Can be anything, for example, a string - * with an SQL request. Up to 100 attributes are allowed. + * Optional. The attributes of the run. Should only be used for the purpose of + * non-semantic management (classifying, describing or labeling the run). + * + * Up to 100 attributes are allowed. ** *@@ -102,8 +104,10 @@ public interface RunOrBuilder * * *
- * Optional. The attributes of the run. Can be anything, for example, a string - * with an SQL request. Up to 100 attributes are allowed. + * Optional. The attributes of the run. Should only be used for the purpose of + * non-semantic management (classifying, describing or labeling the run). + * + * Up to 100 attributes are allowed. ** *@@ -118,8 +122,10 @@ public interface RunOrBuilder * * *
- * Optional. The attributes of the run. Can be anything, for example, a string - * with an SQL request. Up to 100 attributes are allowed. + * Optional. The attributes of the run. Should only be used for the purpose of + * non-semantic management (classifying, describing or labeling the run). + * + * Up to 100 attributes are allowed. ** *@@ -131,8 +137,10 @@ public interface RunOrBuilder * * *
- * Optional. The attributes of the run. Can be anything, for example, a string - * with an SQL request. Up to 100 attributes are allowed. + * Optional. The attributes of the run. Should only be used for the purpose of + * non-semantic management (classifying, describing or labeling the run). + * + * Up to 100 attributes are allowed. ** *@@ -148,8 +156,10 @@ com.google.protobuf.Value getAttributesOrDefault( * * *
- * Optional. The attributes of the run. Can be anything, for example, a string - * with an SQL request. Up to 100 attributes are allowed. + * Optional. The attributes of the run. Should only be used for the purpose of + * non-semantic management (classifying, describing or labeling the run). + * + * Up to 100 attributes are allowed. ** *diff --git a/java-datalineage/proto-google-cloud-datalineage-v1/src/main/java/com/google/cloud/datacatalog/lineage/v1/SearchLinksRequest.java b/java-datalineage/proto-google-cloud-datalineage-v1/src/main/java/com/google/cloud/datacatalog/lineage/v1/SearchLinksRequest.java index 56b85ceede86..8e5f6ff65ee8 100644 --- a/java-datalineage/proto-google-cloud-datalineage-v1/src/main/java/com/google/cloud/datacatalog/lineage/v1/SearchLinksRequest.java +++ b/java-datalineage/proto-google-cloud-datalineage-v1/src/main/java/com/google/cloud/datacatalog/lineage/v1/SearchLinksRequest.java @@ -121,7 +121,7 @@ public CriteriaCase getCriteriaCase() { * * *
- * Required. The project and location you want search in the format `projects/*/locations/*` + * Required. The project and location you want search in. ** *@@ -146,7 +146,7 @@ public java.lang.String getParent() { * * *
- * Required. The project and location you want search in the format `projects/*/locations/*` + * Required. The project and location you want search in. ** *@@ -868,7 +868,7 @@ public Builder clearCriteria() { * * *
- * Required. The project and location you want search in the format `projects/*/locations/*` + * Required. The project and location you want search in. ** *@@ -892,7 +892,7 @@ public java.lang.String getParent() { * * *
- * Required. The project and location you want search in the format `projects/*/locations/*` + * Required. The project and location you want search in. ** *@@ -916,7 +916,7 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
- * Required. The project and location you want search in the format `projects/*/locations/*` + * Required. The project and location you want search in. ** *@@ -939,7 +939,7 @@ public Builder setParent(java.lang.String value) { * * *
- * Required. The project and location you want search in the format `projects/*/locations/*` + * Required. The project and location you want search in. ** *@@ -958,7 +958,7 @@ public Builder clearParent() { * * *
- * Required. The project and location you want search in the format `projects/*/locations/*` + * Required. The project and location you want search in. ** *diff --git a/java-datalineage/proto-google-cloud-datalineage-v1/src/main/java/com/google/cloud/datacatalog/lineage/v1/SearchLinksRequestOrBuilder.java b/java-datalineage/proto-google-cloud-datalineage-v1/src/main/java/com/google/cloud/datacatalog/lineage/v1/SearchLinksRequestOrBuilder.java index 46fc22245a66..1df296c64f18 100644 --- a/java-datalineage/proto-google-cloud-datalineage-v1/src/main/java/com/google/cloud/datacatalog/lineage/v1/SearchLinksRequestOrBuilder.java +++ b/java-datalineage/proto-google-cloud-datalineage-v1/src/main/java/com/google/cloud/datacatalog/lineage/v1/SearchLinksRequestOrBuilder.java @@ -27,7 +27,7 @@ public interface SearchLinksRequestOrBuilder * * *
- * Required. The project and location you want search in the format `projects/*/locations/*` + * Required. The project and location you want search in. ** *@@ -41,7 +41,7 @@ public interface SearchLinksRequestOrBuilder * * *
- * Required. The project and location you want search in the format `projects/*/locations/*` + * Required. The project and location you want search in. ** *diff --git a/java-datalineage/proto-google-cloud-datalineage-v1/src/main/java/com/google/cloud/datacatalog/lineage/v1/UpdateRunRequest.java b/java-datalineage/proto-google-cloud-datalineage-v1/src/main/java/com/google/cloud/datacatalog/lineage/v1/UpdateRunRequest.java index 48caeb16b2bc..5d8083674ff6 100644 --- a/java-datalineage/proto-google-cloud-datalineage-v1/src/main/java/com/google/cloud/datacatalog/lineage/v1/UpdateRunRequest.java +++ b/java-datalineage/proto-google-cloud-datalineage-v1/src/main/java/com/google/cloud/datacatalog/lineage/v1/UpdateRunRequest.java @@ -177,6 +177,24 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } + public static final int ALLOW_MISSING_FIELD_NUMBER = 3; + private boolean allowMissing_ = false; + /** + * + * + *
+ * If set to true and the run is not found, the request creates it. + *+ * + *bool allow_missing = 3;
+ * + * @return The allowMissing. + */ + @java.lang.Override + public boolean getAllowMissing() { + return allowMissing_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -197,6 +215,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (updateMask_ != null) { output.writeMessage(2, getUpdateMask()); } + if (allowMissing_ != false) { + output.writeBool(3, allowMissing_); + } getUnknownFields().writeTo(output); } @@ -212,6 +233,9 @@ public int getSerializedSize() { if (updateMask_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); } + if (allowMissing_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, allowMissing_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -236,6 +260,7 @@ public boolean equals(final java.lang.Object obj) { if (hasUpdateMask()) { if (!getUpdateMask().equals(other.getUpdateMask())) return false; } + if (getAllowMissing() != other.getAllowMissing()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -255,6 +280,8 @@ public int hashCode() { hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; hash = (53 * hash) + getUpdateMask().hashCode(); } + hash = (37 * hash) + ALLOW_MISSING_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAllowMissing()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -406,6 +433,7 @@ public Builder clear() { updateMaskBuilder_.dispose(); updateMaskBuilder_ = null; } + allowMissing_ = false; return this; } @@ -448,6 +476,9 @@ private void buildPartial0(com.google.cloud.datacatalog.lineage.v1.UpdateRunRequ if (((from_bitField0_ & 0x00000002) != 0)) { result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.allowMissing_ = allowMissing_; + } } @java.lang.Override @@ -502,6 +533,9 @@ public Builder mergeFrom(com.google.cloud.datacatalog.lineage.v1.UpdateRunReques if (other.hasUpdateMask()) { mergeUpdateMask(other.getUpdateMask()); } + if (other.getAllowMissing() != false) { + setAllowMissing(other.getAllowMissing()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -540,6 +574,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000002; break; } // case 18 + case 24: + { + allowMissing_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 24 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -997,6 +1037,59 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { return updateMaskBuilder_; } + private boolean allowMissing_; + /** + * + * + *+ * If set to true and the run is not found, the request creates it. + *+ * + *bool allow_missing = 3;
+ * + * @return The allowMissing. + */ + @java.lang.Override + public boolean getAllowMissing() { + return allowMissing_; + } + /** + * + * + *+ * If set to true and the run is not found, the request creates it. + *+ * + *bool allow_missing = 3;
+ * + * @param value The allowMissing to set. + * @return This builder for chaining. + */ + public Builder setAllowMissing(boolean value) { + + allowMissing_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *+ * If set to true and the run is not found, the request creates it. + *+ * + *bool allow_missing = 3;
+ * + * @return This builder for chaining. + */ + public Builder clearAllowMissing() { + bitField0_ = (bitField0_ & ~0x00000004); + allowMissing_ = 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-datalineage/proto-google-cloud-datalineage-v1/src/main/java/com/google/cloud/datacatalog/lineage/v1/UpdateRunRequestOrBuilder.java b/java-datalineage/proto-google-cloud-datalineage-v1/src/main/java/com/google/cloud/datacatalog/lineage/v1/UpdateRunRequestOrBuilder.java index 0a269c567993..c901f07be80c 100644 --- a/java-datalineage/proto-google-cloud-datalineage-v1/src/main/java/com/google/cloud/datacatalog/lineage/v1/UpdateRunRequestOrBuilder.java +++ b/java-datalineage/proto-google-cloud-datalineage-v1/src/main/java/com/google/cloud/datacatalog/lineage/v1/UpdateRunRequestOrBuilder.java @@ -116,4 +116,17 @@ public interface UpdateRunRequestOrBuilder *.google.protobuf.FieldMask update_mask = 2;
*/ com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); + + /** + * + * + *+ * If set to true and the run is not found, the request creates it. + *+ * + *bool allow_missing = 3;
+ * + * @return The allowMissing. + */ + boolean getAllowMissing(); } diff --git a/java-datalineage/proto-google-cloud-datalineage-v1/src/main/proto/google/cloud/datacatalog/lineage/v1/lineage.proto b/java-datalineage/proto-google-cloud-datalineage-v1/src/main/proto/google/cloud/datacatalog/lineage/v1/lineage.proto index 1799cb045a1c..3ec3ceed1446 100644 --- a/java-datalineage/proto-google-cloud-datalineage-v1/src/main/proto/google/cloud/datacatalog/lineage/v1/lineage.proto +++ b/java-datalineage/proto-google-cloud-datalineage-v1/src/main/proto/google/cloud/datacatalog/lineage/v1/lineage.proto @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// 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. @@ -43,6 +43,19 @@ service Lineage { option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform"; + // Creates new lineage events together with their parents: process and run. + // Updates the process and run if they already exist. + // Mapped from Open Lineage specification: + // https://github.com/OpenLineage/OpenLineage/blob/main/spec/OpenLineage.json. + rpc ProcessOpenLineageRunEvent(ProcessOpenLineageRunEventRequest) + returns (ProcessOpenLineageRunEventResponse) { + option (google.api.http) = { + post: "/v1/{parent=projects/*/locations/*}:processOpenLineageRunEvent" + body: "open_lineage" + }; + option (google.api.method_signature) = "parent,open_lineage"; + } + // Creates a new process. rpc CreateProcess(CreateProcessRequest) returns (Process) { option (google.api.http) = { @@ -232,8 +245,11 @@ message Process { // or numbers, spaces or characters like `_-:&.` string display_name = 2 [(google.api.field_behavior) = OPTIONAL]; - // Optional. The attributes of the process. Can be anything, for example, - // "author". Up to 100 attributes are allowed. + // Optional. The attributes of the process. Should only be used for the + // purpose of non-semantic management (classifying, describing or labeling the + // process). + // + // Up to 100 attributes are allowed. mapattributes = 3 [(google.api.field_behavior) = OPTIONAL]; @@ -280,8 +296,10 @@ message Run { // or numbers, spaces or characters like `_-:&.` string display_name = 2 [(google.api.field_behavior) = OPTIONAL]; - // Optional. The attributes of the run. Can be anything, for example, a string - // with an SQL request. Up to 100 attributes are allowed. + // Optional. The attributes of the run. Should only be used for the purpose of + // non-semantic management (classifying, describing or labeling the run). + // + // Up to 100 attributes are allowed. map attributes = 3 [(google.api.field_behavior) = OPTIONAL]; @@ -316,11 +334,11 @@ message LineageEvent { // Optional. List of source-target pairs. Can't contain more than 100 tuples. repeated EventLink links = 8 [(google.api.field_behavior) = OPTIONAL]; - // Optional. The beginning of the transformation which resulted in this + // Required. The beginning of the transformation which resulted in this // lineage event. For streaming scenarios, it should be the beginning of the // period from which the lineage is being reported. google.protobuf.Timestamp start_time = 6 - [(google.api.field_behavior) = OPTIONAL]; + [(google.api.field_behavior) = REQUIRED]; // Optional. The end of the transformation which resulted in this lineage // event. For streaming scenarios, it should be the end of the period from @@ -340,16 +358,9 @@ message EventLink { // The soft reference to everything you can attach a lineage event to. message EntityReference { - // Required. Fully Qualified Name of the entity. Useful for referencing - // entities that aren't represented as GCP resources, for example, tables in - // Dataproc Metastore API. - // - // Examples: - // - // * `bigquery:dataset.project_id.dataset_id` - // * `bigquery:table.project_id.dataset_id.table_id` - // * `pubsub:project_id.topic_id` - // * `dataproc_metastore:projectId.locationId.instanceId.databaseId.tableId` + // Required. [Fully Qualified Name + // (FQN)](https://cloud.google.com/data-catalog/docs/fully-qualified-names) + // of the entity. string fully_qualified_name = 1 [(google.api.field_behavior) = REQUIRED]; } @@ -380,6 +391,9 @@ message OperationMetadata { // The resource deletion operation. DELETE = 1; + + // The resource creation operation. + CREATE = 2; } // Output only. The current operation state. @@ -406,6 +420,48 @@ message OperationMetadata { [(google.api.field_behavior) = OUTPUT_ONLY]; } +// Request message for +// [ProcessOpenLineageRunEvent][google.cloud.datacatalog.lineage.v1.ProcessOpenLineageRunEvent]. +message ProcessOpenLineageRunEventRequest { + // Required. The name of the project and its location that should own the + // process, run, and lineage event. + string parent = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. OpenLineage message following OpenLineage format: + // https://github.com/OpenLineage/OpenLineage/blob/main/spec/OpenLineage.json + google.protobuf.Struct open_lineage = 2 + [(google.api.field_behavior) = REQUIRED]; + + // A unique identifier for this request. Restricted to 36 ASCII characters. + // A random UUID is recommended. This request is idempotent only if a + // `request_id` is provided. + string request_id = 3; +} + +// Response message for +// [ProcessOpenLineageRunEvent][google.cloud.datacatalog.lineage.v1.ProcessOpenLineageRunEvent]. +message ProcessOpenLineageRunEventResponse { + // Created process name. + // Format: `projects/{project}/locations/{location}/processes/{process}`. + string process = 1 [(google.api.resource_reference) = { + type: "datalineage.googleapis.com/Process" + }]; + + // Created run name. + // Format: + // `projects/{project}/locations/{location}/processes/{process}/runs/{run}`. + string run = 2 [ + (google.api.resource_reference) = { type: "datalineage.googleapis.com/Run" } + ]; + + // Created lineage event names. + // Format: + // `projects/{project}/locations/{location}/processes/{process}/runs/{run}/lineageEvents/{lineage_event}`. + repeated string lineage_events = 3 [(google.api.resource_reference) = { + type: "datalineage.googleapis.com/LineageEvent" + }]; +} + // Request message for // [CreateProcess][google.cloud.datacatalog.lineage.v1.CreateProcess]. message CreateProcessRequest { @@ -542,6 +598,9 @@ message UpdateRunRequest { // The list of fields to update. Currently not used. The whole message is // updated. google.protobuf.FieldMask update_mask = 2; + + // If set to true and the run is not found, the request creates it. + bool allow_missing = 3; } // Request message for @@ -693,7 +752,7 @@ message DeleteLineageEventRequest { // Request message for // [SearchLinks][google.cloud.datacatalog.lineage.v1.Lineage.SearchLinks]. message SearchLinksRequest { - // Required. The project and location you want search in the format `projects/*/locations/*` + // Required. The project and location you want search in. string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -769,7 +828,7 @@ message Link { // Request message for // [BatchSearchLinkProcesses][google.cloud.datacatalog.lineage.v1.Lineage.BatchSearchLinkProcesses]. message BatchSearchLinkProcessesRequest { - // Required. The project and location you want search in the format `projects/*/locations/*` + // Required. The project and location where you want to search. string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -861,9 +920,16 @@ message Origin { // Looker Studio LOOKER_STUDIO = 5; + + // Dataproc + DATAPROC = 6; } // Type of the source. + // + // Use of a source_type other than `CUSTOM` for process creation + // or updating is highly discouraged, and may be restricted in the future + // without notice. SourceType source_type = 1; // If the source_type isn't CUSTOM, the value of this field should be a GCP diff --git a/java-datalineage/samples/snippets/generated/com/google/cloud/datacatalog/lineage/v1/lineage/processopenlineagerunevent/AsyncProcessOpenLineageRunEvent.java b/java-datalineage/samples/snippets/generated/com/google/cloud/datacatalog/lineage/v1/lineage/processopenlineagerunevent/AsyncProcessOpenLineageRunEvent.java new file mode 100644 index 000000000000..fbbaf0f6b7ec --- /dev/null +++ b/java-datalineage/samples/snippets/generated/com/google/cloud/datacatalog/lineage/v1/lineage/processopenlineagerunevent/AsyncProcessOpenLineageRunEvent.java @@ -0,0 +1,52 @@ +/* + * 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.datacatalog.lineage.v1.samples; + +// [START datalineage_v1_generated_Lineage_ProcessOpenLineageRunEvent_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.datacatalog.lineage.v1.LineageClient; +import com.google.cloud.datacatalog.lineage.v1.ProcessOpenLineageRunEventRequest; +import com.google.cloud.datacatalog.lineage.v1.ProcessOpenLineageRunEventResponse; +import com.google.protobuf.Struct; + +public class AsyncProcessOpenLineageRunEvent { + + public static void main(String[] args) throws Exception { + asyncProcessOpenLineageRunEvent(); + } + + public static void asyncProcessOpenLineageRunEvent() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (LineageClient lineageClient = LineageClient.create()) { + ProcessOpenLineageRunEventRequest request = + ProcessOpenLineageRunEventRequest.newBuilder() + .setParent("parent-995424086") + .setOpenLineage(Struct.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = + lineageClient.processOpenLineageRunEventCallable().futureCall(request); + // Do something. + ProcessOpenLineageRunEventResponse response = future.get(); + } + } +} +// [END datalineage_v1_generated_Lineage_ProcessOpenLineageRunEvent_async] diff --git a/java-datalineage/samples/snippets/generated/com/google/cloud/datacatalog/lineage/v1/lineage/processopenlineagerunevent/SyncProcessOpenLineageRunEvent.java b/java-datalineage/samples/snippets/generated/com/google/cloud/datacatalog/lineage/v1/lineage/processopenlineagerunevent/SyncProcessOpenLineageRunEvent.java new file mode 100644 index 000000000000..4779171d5c8b --- /dev/null +++ b/java-datalineage/samples/snippets/generated/com/google/cloud/datacatalog/lineage/v1/lineage/processopenlineagerunevent/SyncProcessOpenLineageRunEvent.java @@ -0,0 +1,49 @@ +/* + * 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.datacatalog.lineage.v1.samples; + +// [START datalineage_v1_generated_Lineage_ProcessOpenLineageRunEvent_sync] +import com.google.cloud.datacatalog.lineage.v1.LineageClient; +import com.google.cloud.datacatalog.lineage.v1.ProcessOpenLineageRunEventRequest; +import com.google.cloud.datacatalog.lineage.v1.ProcessOpenLineageRunEventResponse; +import com.google.protobuf.Struct; + +public class SyncProcessOpenLineageRunEvent { + + public static void main(String[] args) throws Exception { + syncProcessOpenLineageRunEvent(); + } + + public static void syncProcessOpenLineageRunEvent() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (LineageClient lineageClient = LineageClient.create()) { + ProcessOpenLineageRunEventRequest request = + ProcessOpenLineageRunEventRequest.newBuilder() + .setParent("parent-995424086") + .setOpenLineage(Struct.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + ProcessOpenLineageRunEventResponse response = + lineageClient.processOpenLineageRunEvent(request); + } + } +} +// [END datalineage_v1_generated_Lineage_ProcessOpenLineageRunEvent_sync] diff --git a/java-datalineage/samples/snippets/generated/com/google/cloud/datacatalog/lineage/v1/lineage/processopenlineagerunevent/SyncProcessOpenLineageRunEventStringStruct.java b/java-datalineage/samples/snippets/generated/com/google/cloud/datacatalog/lineage/v1/lineage/processopenlineagerunevent/SyncProcessOpenLineageRunEventStringStruct.java new file mode 100644 index 000000000000..f3ec288ca716 --- /dev/null +++ b/java-datalineage/samples/snippets/generated/com/google/cloud/datacatalog/lineage/v1/lineage/processopenlineagerunevent/SyncProcessOpenLineageRunEventStringStruct.java @@ -0,0 +1,44 @@ +/* + * 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.datacatalog.lineage.v1.samples; + +// [START datalineage_v1_generated_Lineage_ProcessOpenLineageRunEvent_StringStruct_sync] +import com.google.cloud.datacatalog.lineage.v1.LineageClient; +import com.google.cloud.datacatalog.lineage.v1.ProcessOpenLineageRunEventResponse; +import com.google.protobuf.Struct; + +public class SyncProcessOpenLineageRunEventStringStruct { + + public static void main(String[] args) throws Exception { + syncProcessOpenLineageRunEventStringStruct(); + } + + public static void syncProcessOpenLineageRunEventStringStruct() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (LineageClient lineageClient = LineageClient.create()) { + String parent = "parent-995424086"; + Struct openLineage = Struct.newBuilder().build(); + ProcessOpenLineageRunEventResponse response = + lineageClient.processOpenLineageRunEvent(parent, openLineage); + } + } +} +// [END datalineage_v1_generated_Lineage_ProcessOpenLineageRunEvent_StringStruct_sync] diff --git a/java-datalineage/samples/snippets/generated/com/google/cloud/datacatalog/lineage/v1/lineage/updaterun/AsyncUpdateRun.java b/java-datalineage/samples/snippets/generated/com/google/cloud/datacatalog/lineage/v1/lineage/updaterun/AsyncUpdateRun.java index a4c0e1444e0b..c4264bad2742 100644 --- a/java-datalineage/samples/snippets/generated/com/google/cloud/datacatalog/lineage/v1/lineage/updaterun/AsyncUpdateRun.java +++ b/java-datalineage/samples/snippets/generated/com/google/cloud/datacatalog/lineage/v1/lineage/updaterun/AsyncUpdateRun.java @@ -40,6 +40,7 @@ public static void asyncUpdateRun() throws Exception { UpdateRunRequest.newBuilder() .setRun(Run.newBuilder().build()) .setUpdateMask(FieldMask.newBuilder().build()) + .setAllowMissing(true) .build(); ApiFuture future = lineageClient.updateRunCallable().futureCall(request); // Do something. diff --git a/java-datalineage/samples/snippets/generated/com/google/cloud/datacatalog/lineage/v1/lineage/updaterun/SyncUpdateRun.java b/java-datalineage/samples/snippets/generated/com/google/cloud/datacatalog/lineage/v1/lineage/updaterun/SyncUpdateRun.java index 118783a97b3c..4241587b5626 100644 --- a/java-datalineage/samples/snippets/generated/com/google/cloud/datacatalog/lineage/v1/lineage/updaterun/SyncUpdateRun.java +++ b/java-datalineage/samples/snippets/generated/com/google/cloud/datacatalog/lineage/v1/lineage/updaterun/SyncUpdateRun.java @@ -39,6 +39,7 @@ public static void syncUpdateRun() throws Exception { UpdateRunRequest.newBuilder() .setRun(Run.newBuilder().build()) .setUpdateMask(FieldMask.newBuilder().build()) + .setAllowMissing(true) .build(); Run response = lineageClient.updateRun(request); } diff --git a/java-datalineage/samples/snippets/generated/com/google/cloud/datacatalog/lineage/v1/lineagesettings/createprocess/SyncCreateProcess.java b/java-datalineage/samples/snippets/generated/com/google/cloud/datacatalog/lineage/v1/lineagesettings/processopenlineagerunevent/SyncProcessOpenLineageRunEvent.java similarity index 79% rename from java-datalineage/samples/snippets/generated/com/google/cloud/datacatalog/lineage/v1/lineagesettings/createprocess/SyncCreateProcess.java rename to java-datalineage/samples/snippets/generated/com/google/cloud/datacatalog/lineage/v1/lineagesettings/processopenlineagerunevent/SyncProcessOpenLineageRunEvent.java index 7765fe300b75..4b1bd8803ea6 100644 --- a/java-datalineage/samples/snippets/generated/com/google/cloud/datacatalog/lineage/v1/lineagesettings/createprocess/SyncCreateProcess.java +++ b/java-datalineage/samples/snippets/generated/com/google/cloud/datacatalog/lineage/v1/lineagesettings/processopenlineagerunevent/SyncProcessOpenLineageRunEvent.java @@ -16,17 +16,17 @@ package com.google.cloud.datacatalog.lineage.v1.samples; -// [START datalineage_v1_generated_LineageSettings_CreateProcess_sync] +// [START datalineage_v1_generated_LineageSettings_ProcessOpenLineageRunEvent_sync] import com.google.cloud.datacatalog.lineage.v1.LineageSettings; import java.time.Duration; -public class SyncCreateProcess { +public class SyncProcessOpenLineageRunEvent { public static void main(String[] args) throws Exception { - syncCreateProcess(); + syncProcessOpenLineageRunEvent(); } - public static void syncCreateProcess() throws Exception { + public static void syncProcessOpenLineageRunEvent() throws Exception { // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. @@ -34,10 +34,10 @@ public static void syncCreateProcess() throws Exception { // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library LineageSettings.Builder lineageSettingsBuilder = LineageSettings.newBuilder(); lineageSettingsBuilder - .createProcessSettings() + .processOpenLineageRunEventSettings() .setRetrySettings( lineageSettingsBuilder - .createProcessSettings() + .processOpenLineageRunEventSettings() .getRetrySettings() .toBuilder() .setTotalTimeout(Duration.ofSeconds(30)) @@ -45,4 +45,4 @@ public static void syncCreateProcess() throws Exception { LineageSettings lineageSettings = lineageSettingsBuilder.build(); } } -// [END datalineage_v1_generated_LineageSettings_CreateProcess_sync] +// [END datalineage_v1_generated_LineageSettings_ProcessOpenLineageRunEvent_sync] diff --git a/java-datalineage/samples/snippets/generated/com/google/cloud/datacatalog/lineage/v1/stub/lineagestubsettings/createprocess/SyncCreateProcess.java b/java-datalineage/samples/snippets/generated/com/google/cloud/datacatalog/lineage/v1/stub/lineagestubsettings/processopenlineagerunevent/SyncProcessOpenLineageRunEvent.java similarity index 79% rename from java-datalineage/samples/snippets/generated/com/google/cloud/datacatalog/lineage/v1/stub/lineagestubsettings/createprocess/SyncCreateProcess.java rename to java-datalineage/samples/snippets/generated/com/google/cloud/datacatalog/lineage/v1/stub/lineagestubsettings/processopenlineagerunevent/SyncProcessOpenLineageRunEvent.java index 733d216564ea..3087f16d3bd7 100644 --- a/java-datalineage/samples/snippets/generated/com/google/cloud/datacatalog/lineage/v1/stub/lineagestubsettings/createprocess/SyncCreateProcess.java +++ b/java-datalineage/samples/snippets/generated/com/google/cloud/datacatalog/lineage/v1/stub/lineagestubsettings/processopenlineagerunevent/SyncProcessOpenLineageRunEvent.java @@ -16,17 +16,17 @@ package com.google.cloud.datacatalog.lineage.v1.stub.samples; -// [START datalineage_v1_generated_LineageStubSettings_CreateProcess_sync] +// [START datalineage_v1_generated_LineageStubSettings_ProcessOpenLineageRunEvent_sync] import com.google.cloud.datacatalog.lineage.v1.stub.LineageStubSettings; import java.time.Duration; -public class SyncCreateProcess { +public class SyncProcessOpenLineageRunEvent { public static void main(String[] args) throws Exception { - syncCreateProcess(); + syncProcessOpenLineageRunEvent(); } - public static void syncCreateProcess() throws Exception { + public static void syncProcessOpenLineageRunEvent() throws Exception { // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. @@ -34,10 +34,10 @@ public static void syncCreateProcess() throws Exception { // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library LineageStubSettings.Builder lineageSettingsBuilder = LineageStubSettings.newBuilder(); lineageSettingsBuilder - .createProcessSettings() + .processOpenLineageRunEventSettings() .setRetrySettings( lineageSettingsBuilder - .createProcessSettings() + .processOpenLineageRunEventSettings() .getRetrySettings() .toBuilder() .setTotalTimeout(Duration.ofSeconds(30)) @@ -45,4 +45,4 @@ public static void syncCreateProcess() throws Exception { LineageStubSettings lineageSettings = lineageSettingsBuilder.build(); } } -// [END datalineage_v1_generated_LineageStubSettings_CreateProcess_sync] +// [END datalineage_v1_generated_LineageStubSettings_ProcessOpenLineageRunEvent_sync]