Skip to content

Commit 2def625

Browse files
feat: [datalineage] add configmanagement v1 module (#12355)
Added new module under `datalineage` and updated the docs URL to the latest version. --------- Co-authored-by: cloud-java-bot <cloud-java-bot@google.com>
1 parent 5e161a7 commit 2def625

File tree

42 files changed

+12716
-3
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+12716
-3
lines changed

generation_config.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -809,11 +809,12 @@ libraries:
809809
- proto_path: google/cloud/datalabeling/v1beta1
810810
- api_shortname: datalineage
811811
name_pretty: Data Lineage
812-
product_documentation: https://cloud.google.com/data-catalog/docs/data-lineage/
812+
product_documentation: https://cloud.google.com/dataplex/docs/about-data-lineage
813813
api_description: Lineage is used to track data flows between assets over time.
814814
release_level: stable
815815
GAPICs:
816816
- proto_path: google/cloud/datacatalog/lineage/v1
817+
- proto_path: google/cloud/datacatalog/lineage/configmanagement/v1
817818
- api_shortname: datamanager
818819
name_pretty: Data Manager API
819820
product_documentation: https://developers.google.com/data-manager

java-datalineage/.OwlBot-hermetic.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,5 +31,14 @@ deep-copy-regex:
3131
dest: "/owl-bot-staging/java-datalineage/$1/google-cloud-datalineage/src"
3232
- source: "/google/cloud/datacatalog/lineage/(v.*)/.*-java/samples/snippets/generated"
3333
dest: "/owl-bot-staging/java-datalineage/$1/samples/snippets/generated"
34+
# configmanagement
35+
- source: "/google/cloud/datacatalog/lineage/configmanagement/(v.*)/.*-java/proto-google-.*/src"
36+
dest: "/owl-bot-staging/java-datalineage/$1/proto-google-cloud-datalineage-$1/src"
37+
- source: "/google/cloud/datacatalog/lineage/configmanagement/(v.*)/.*-java/grpc-google-.*/src"
38+
dest: "/owl-bot-staging/java-datalineage/$1/grpc-google-cloud-datalineage-$1/src"
39+
- source: "/google/cloud/datacatalog/lineage/configmanagement/(v.*)/.*-java/gapic-google-.*/src"
40+
dest: "/owl-bot-staging/java-datalineage/$1/google-cloud-datalineage/src"
41+
- source: "/google/cloud/datacatalog/lineage/configmanagement/(v.*)/.*-java/samples/snippets/generated"
42+
dest: "/owl-bot-staging/java-datalineage/$1/samples/snippets/generated"
3443

3544
api-name: datalineage

java-datalineage/.repo-metadata.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"api_shortname": "datalineage",
33
"name_pretty": "Data Lineage",
4-
"product_documentation": "https://cloud.google.com/data-catalog/docs/data-lineage/",
4+
"product_documentation": "https://cloud.google.com/dataplex/docs/about-data-lineage",
55
"api_description": "Lineage is used to track data flows between assets over time.",
66
"client_documentation": "https://cloud.google.com/java/docs/reference/google-cloud-datalineage/latest/overview",
77
"release_level": "stable",

java-datalineage/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ Apache 2.0 - See [LICENSE][license] for more information.
171171

172172
Java is a registered trademark of Oracle and/or its affiliates.
173173

174-
[product-docs]: https://cloud.google.com/data-catalog/docs/data-lineage/
174+
[product-docs]: https://cloud.google.com/dataplex/docs/about-data-lineage
175175
[javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-datalineage/latest/overview
176176
[stability-image]: https://img.shields.io/badge/stability-stable-green
177177
[maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-datalineage.svg

java-datalineage/google-cloud-datalineage/src/main/java/com/google/cloud/datacatalog/lineage/configmanagement/v1/ConfigManagementServiceClient.java

Lines changed: 438 additions & 0 deletions
Large diffs are not rendered by default.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,228 @@
1+
/*
2+
* Copyright 2026 Google LLC
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* https://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
17+
package com.google.cloud.datacatalog.lineage.configmanagement.v1;
18+
19+
import com.google.api.core.ApiFunction;
20+
import com.google.api.core.BetaApi;
21+
import com.google.api.gax.core.GoogleCredentialsProvider;
22+
import com.google.api.gax.core.InstantiatingExecutorProvider;
23+
import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider;
24+
import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider;
25+
import com.google.api.gax.rpc.ApiClientHeaderProvider;
26+
import com.google.api.gax.rpc.ClientContext;
27+
import com.google.api.gax.rpc.ClientSettings;
28+
import com.google.api.gax.rpc.TransportChannelProvider;
29+
import com.google.api.gax.rpc.UnaryCallSettings;
30+
import com.google.cloud.datacatalog.lineage.configmanagement.v1.stub.ConfigManagementServiceStubSettings;
31+
import java.io.IOException;
32+
import java.util.List;
33+
import javax.annotation.Generated;
34+
35+
// AUTO-GENERATED DOCUMENTATION AND CLASS.
36+
/**
37+
* Settings class to configure an instance of {@link ConfigManagementServiceClient}.
38+
*
39+
* <p>The default instance has everything set to sensible defaults:
40+
*
41+
* <ul>
42+
* <li>The default service address (datalineage.googleapis.com) and default port (443) are used.
43+
* <li>Credentials are acquired automatically through Application Default Credentials.
44+
* <li>Retries are configured for idempotent methods but not for non-idempotent methods.
45+
* </ul>
46+
*
47+
* <p>The builder of this class is recursive, so contained classes are themselves builders. When
48+
* build() is called, the tree of builders is called to create the complete settings object.
49+
*
50+
* <p>For example, to set the
51+
* [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings)
52+
* of getConfig:
53+
*
54+
* <pre>{@code
55+
* // This snippet has been automatically generated and should be regarded as a code template only.
56+
* // It will require modifications to work:
57+
* // - It may require correct/in-range values for request initialization.
58+
* // - It may require specifying regional endpoints when creating the service client as shown in
59+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
60+
* ConfigManagementServiceSettings.Builder configManagementServiceSettingsBuilder =
61+
* ConfigManagementServiceSettings.newBuilder();
62+
* configManagementServiceSettingsBuilder
63+
* .getConfigSettings()
64+
* .setRetrySettings(
65+
* configManagementServiceSettingsBuilder
66+
* .getConfigSettings()
67+
* .getRetrySettings()
68+
* .toBuilder()
69+
* .setInitialRetryDelayDuration(Duration.ofSeconds(1))
70+
* .setInitialRpcTimeoutDuration(Duration.ofSeconds(5))
71+
* .setMaxAttempts(5)
72+
* .setMaxRetryDelayDuration(Duration.ofSeconds(30))
73+
* .setMaxRpcTimeoutDuration(Duration.ofSeconds(60))
74+
* .setRetryDelayMultiplier(1.3)
75+
* .setRpcTimeoutMultiplier(1.5)
76+
* .setTotalTimeoutDuration(Duration.ofSeconds(300))
77+
* .build());
78+
* ConfigManagementServiceSettings configManagementServiceSettings =
79+
* configManagementServiceSettingsBuilder.build();
80+
* }</pre>
81+
*
82+
* Please refer to the [Client Side Retry
83+
* Guide](https://docs.cloud.google.com/java/docs/client-retries) for additional support in setting
84+
* retries.
85+
*/
86+
@Generated("by gapic-generator-java")
87+
public class ConfigManagementServiceSettings
88+
extends ClientSettings<ConfigManagementServiceSettings> {
89+
90+
/** Returns the object with the settings used for calls to getConfig. */
91+
public UnaryCallSettings<GetConfigRequest, Config> getConfigSettings() {
92+
return ((ConfigManagementServiceStubSettings) getStubSettings()).getConfigSettings();
93+
}
94+
95+
/** Returns the object with the settings used for calls to updateConfig. */
96+
public UnaryCallSettings<UpdateConfigRequest, Config> updateConfigSettings() {
97+
return ((ConfigManagementServiceStubSettings) getStubSettings()).updateConfigSettings();
98+
}
99+
100+
public static final ConfigManagementServiceSettings create(
101+
ConfigManagementServiceStubSettings stub) throws IOException {
102+
return new ConfigManagementServiceSettings.Builder(stub.toBuilder()).build();
103+
}
104+
105+
/** Returns a builder for the default ExecutorProvider for this service. */
106+
public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() {
107+
return ConfigManagementServiceStubSettings.defaultExecutorProviderBuilder();
108+
}
109+
110+
/** Returns the default service endpoint. */
111+
public static String getDefaultEndpoint() {
112+
return ConfigManagementServiceStubSettings.getDefaultEndpoint();
113+
}
114+
115+
/** Returns the default service scopes. */
116+
public static List<String> getDefaultServiceScopes() {
117+
return ConfigManagementServiceStubSettings.getDefaultServiceScopes();
118+
}
119+
120+
/** Returns a builder for the default credentials for this service. */
121+
public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() {
122+
return ConfigManagementServiceStubSettings.defaultCredentialsProviderBuilder();
123+
}
124+
125+
/** Returns a builder for the default gRPC ChannelProvider for this service. */
126+
public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() {
127+
return ConfigManagementServiceStubSettings.defaultGrpcTransportProviderBuilder();
128+
}
129+
130+
/** Returns a builder for the default REST ChannelProvider for this service. */
131+
@BetaApi
132+
public static InstantiatingHttpJsonChannelProvider.Builder
133+
defaultHttpJsonTransportProviderBuilder() {
134+
return ConfigManagementServiceStubSettings.defaultHttpJsonTransportProviderBuilder();
135+
}
136+
137+
public static TransportChannelProvider defaultTransportChannelProvider() {
138+
return ConfigManagementServiceStubSettings.defaultTransportChannelProvider();
139+
}
140+
141+
public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() {
142+
return ConfigManagementServiceStubSettings.defaultApiClientHeaderProviderBuilder();
143+
}
144+
145+
/** Returns a new gRPC builder for this class. */
146+
public static Builder newBuilder() {
147+
return Builder.createDefault();
148+
}
149+
150+
/** Returns a new REST builder for this class. */
151+
public static Builder newHttpJsonBuilder() {
152+
return Builder.createHttpJsonDefault();
153+
}
154+
155+
/** Returns a new builder for this class. */
156+
public static Builder newBuilder(ClientContext clientContext) {
157+
return new Builder(clientContext);
158+
}
159+
160+
/** Returns a builder containing all the values of this settings class. */
161+
public Builder toBuilder() {
162+
return new Builder(this);
163+
}
164+
165+
protected ConfigManagementServiceSettings(Builder settingsBuilder) throws IOException {
166+
super(settingsBuilder);
167+
}
168+
169+
/** Builder for ConfigManagementServiceSettings. */
170+
public static class Builder
171+
extends ClientSettings.Builder<ConfigManagementServiceSettings, Builder> {
172+
173+
protected Builder() throws IOException {
174+
this(((ClientContext) null));
175+
}
176+
177+
protected Builder(ClientContext clientContext) {
178+
super(ConfigManagementServiceStubSettings.newBuilder(clientContext));
179+
}
180+
181+
protected Builder(ConfigManagementServiceSettings settings) {
182+
super(settings.getStubSettings().toBuilder());
183+
}
184+
185+
protected Builder(ConfigManagementServiceStubSettings.Builder stubSettings) {
186+
super(stubSettings);
187+
}
188+
189+
private static Builder createDefault() {
190+
return new Builder(ConfigManagementServiceStubSettings.newBuilder());
191+
}
192+
193+
private static Builder createHttpJsonDefault() {
194+
return new Builder(ConfigManagementServiceStubSettings.newHttpJsonBuilder());
195+
}
196+
197+
public ConfigManagementServiceStubSettings.Builder getStubSettingsBuilder() {
198+
return ((ConfigManagementServiceStubSettings.Builder) getStubSettings());
199+
}
200+
201+
/**
202+
* Applies the given settings updater function to all of the unary API methods in this service.
203+
*
204+
* <p>Note: This method does not support applying settings to streaming methods.
205+
*/
206+
public Builder applyToAllUnaryMethods(
207+
ApiFunction<UnaryCallSettings.Builder<?, ?>, Void> settingsUpdater) {
208+
super.applyToAllUnaryMethods(
209+
getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater);
210+
return this;
211+
}
212+
213+
/** Returns the builder for the settings used for calls to getConfig. */
214+
public UnaryCallSettings.Builder<GetConfigRequest, Config> getConfigSettings() {
215+
return getStubSettingsBuilder().getConfigSettings();
216+
}
217+
218+
/** Returns the builder for the settings used for calls to updateConfig. */
219+
public UnaryCallSettings.Builder<UpdateConfigRequest, Config> updateConfigSettings() {
220+
return getStubSettingsBuilder().updateConfigSettings();
221+
}
222+
223+
@Override
224+
public ConfigManagementServiceSettings build() throws IOException {
225+
return new ConfigManagementServiceSettings(this);
226+
}
227+
}
228+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"schema": "1.0",
3+
"comment": "This file maps proto services/RPCs to the corresponding library clients/methods",
4+
"language": "java",
5+
"protoPackage": "google.cloud.datacatalog.lineage.configmanagement.v1",
6+
"libraryPackage": "com.google.cloud.datacatalog.lineage.configmanagement.v1",
7+
"services": {
8+
"ConfigManagementService": {
9+
"clients": {
10+
"grpc": {
11+
"libraryClient": "ConfigManagementServiceClient",
12+
"rpcs": {
13+
"GetConfig": {
14+
"methods": ["getConfig", "getConfig", "getConfig", "getConfigCallable"]
15+
},
16+
"UpdateConfig": {
17+
"methods": ["updateConfig", "updateConfig", "updateConfigCallable"]
18+
}
19+
}
20+
}
21+
}
22+
}
23+
}
24+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
/*
2+
* Copyright 2026 Google LLC
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* https://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
17+
/**
18+
* A client to Data Lineage API
19+
*
20+
* <p>The interfaces provided are listed below, along with usage samples.
21+
*
22+
* <p>======================= ConfigManagementServiceClient =======================
23+
*
24+
* <p>Service Description: Lineage Config Management service. Config Management service is used to
25+
* manage the configuration for Data Lineage. These Configs define different configuration options
26+
* for Lineage customers to control behaviour of lineage systems.
27+
*
28+
* <p>Sample for ConfigManagementServiceClient:
29+
*
30+
* <pre>{@code
31+
* // This snippet has been automatically generated and should be regarded as a code template only.
32+
* // It will require modifications to work:
33+
* // - It may require correct/in-range values for request initialization.
34+
* // - It may require specifying regional endpoints when creating the service client as shown in
35+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
36+
* try (ConfigManagementServiceClient configManagementServiceClient =
37+
* ConfigManagementServiceClient.create()) {
38+
* ConfigName name = ConfigName.ofProjectLocationName("[PROJECT]", "[LOCATION]");
39+
* Config response = configManagementServiceClient.getConfig(name);
40+
* }
41+
* }</pre>
42+
*/
43+
@Generated("by gapic-generator-java")
44+
package com.google.cloud.datacatalog.lineage.configmanagement.v1;
45+
46+
import javax.annotation.Generated;
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
/*
2+
* Copyright 2026 Google LLC
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* https://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
17+
package com.google.cloud.datacatalog.lineage.configmanagement.v1.stub;
18+
19+
import com.google.api.gax.core.BackgroundResource;
20+
import com.google.api.gax.rpc.UnaryCallable;
21+
import com.google.cloud.datacatalog.lineage.configmanagement.v1.Config;
22+
import com.google.cloud.datacatalog.lineage.configmanagement.v1.GetConfigRequest;
23+
import com.google.cloud.datacatalog.lineage.configmanagement.v1.UpdateConfigRequest;
24+
import javax.annotation.Generated;
25+
26+
// AUTO-GENERATED DOCUMENTATION AND CLASS.
27+
/**
28+
* Base stub class for the ConfigManagementService service API.
29+
*
30+
* <p>This class is for advanced usage and reflects the underlying API directly.
31+
*/
32+
@Generated("by gapic-generator-java")
33+
public abstract class ConfigManagementServiceStub implements BackgroundResource {
34+
35+
public UnaryCallable<GetConfigRequest, Config> getConfigCallable() {
36+
throw new UnsupportedOperationException("Not implemented: getConfigCallable()");
37+
}
38+
39+
public UnaryCallable<UpdateConfigRequest, Config> updateConfigCallable() {
40+
throw new UnsupportedOperationException("Not implemented: updateConfigCallable()");
41+
}
42+
43+
@Override
44+
public abstract void close();
45+
}

0 commit comments

Comments
 (0)