Skip to content

Commit 4f945ca

Browse files
Google APIscopybara-github
authored andcommitted
feat: publish Google Cloud's Enterprise Knowledge Graph service
Enterprise Knowledge Graph (EKG) organizes siloed information into organizational knowledge, which involves consolidating, standardizing, reconciling, and surfacing data in an efficient and useful way. It's a service provided to cloud enterprise customers. PiperOrigin-RevId: 477176998
1 parent 844d0f7 commit 4f945ca

6 files changed

Lines changed: 668 additions & 0 deletions

File tree

Lines changed: 153 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,153 @@
1+
# This file was automatically generated by BuildFileGenerator
2+
# https://github.com/googleapis/rules_gapic/tree/master/bazel
3+
4+
# Most of the manual changes to this file will be overwritten.
5+
# It's **only** allowed to change the following rule attribute values:
6+
# - names of *_gapic_assembly_* rules
7+
# - certain parameters of *_gapic_library rules, including but not limited to:
8+
# * extra_protoc_parameters
9+
# * extra_protoc_file_parameters
10+
# The complete list of preserved parameters can be found in the source code.
11+
12+
##############################################################################
13+
# Common
14+
##############################################################################
15+
load("@rules_proto//proto:defs.bzl", "proto_library")
16+
load(
17+
"@com_google_googleapis_imports//:imports.bzl",
18+
"cc_grpc_library",
19+
"cc_proto_library",
20+
"java_gapic_assembly_gradle_pkg",
21+
"java_gapic_library",
22+
"java_gapic_test",
23+
"java_grpc_library",
24+
"java_proto_library",
25+
"proto_library_with_info",
26+
"py_gapic_assembly_pkg",
27+
"py_gapic_library",
28+
"py_test",
29+
)
30+
31+
# This is an API workspace, having public visibility by default makes perfect sense.
32+
package(default_visibility = ["//visibility:public"])
33+
34+
proto_library(
35+
name = "enterpriseknowledgegraph_proto",
36+
srcs = [
37+
"job_state.proto",
38+
"operation_metadata.proto",
39+
"service.proto",
40+
],
41+
deps = [
42+
"//google/api:annotations_proto",
43+
"//google/api:client_proto",
44+
"//google/api:field_behavior_proto",
45+
"//google/api:resource_proto",
46+
"//google/rpc:status_proto",
47+
"@com_google_protobuf//:empty_proto",
48+
"@com_google_protobuf//:timestamp_proto",
49+
],
50+
)
51+
52+
proto_library_with_info(
53+
name = "enterpriseknowledgegraph_proto_with_info",
54+
deps = [
55+
":enterpriseknowledgegraph_proto",
56+
"//google/cloud:common_resources_proto",
57+
],
58+
)
59+
60+
java_proto_library(
61+
name = "enterpriseknowledgegraph_java_proto",
62+
deps = [
63+
":enterpriseknowledgegraph_proto",
64+
],
65+
)
66+
67+
java_grpc_library(
68+
name = "enterpriseknowledgegraph_java_grpc",
69+
srcs = [":enterpriseknowledgegraph_proto"],
70+
deps = [":enterpriseknowledgegraph_java_proto"],
71+
)
72+
73+
java_gapic_library(
74+
name = "enterpriseknowledgegraph_java_gapic",
75+
srcs = [":enterpriseknowledgegraph_proto_with_info"],
76+
gapic_yaml = None,
77+
grpc_service_config = "enterpriseknowledgegraph_grpc_service_config.json",
78+
service_yaml = "enterpriseknowledgegraph_v1.yaml",
79+
test_deps = [
80+
":enterpriseknowledgegraph_java_grpc",
81+
],
82+
transport = "grpc+rest",
83+
deps = [
84+
":enterpriseknowledgegraph_java_proto",
85+
"//google/api:api_java_proto",
86+
],
87+
)
88+
89+
java_gapic_test(
90+
name = "enterpriseknowledgegraph_java_gapic_test_suite",
91+
test_classes = [
92+
"com.google.cloud.enterpriseknowledgegraph.v1.EnterpriseKnowledgeGraphServiceClientHttpJsonTest",
93+
"com.google.cloud.enterpriseknowledgegraph.v1.EnterpriseKnowledgeGraphServiceClientTest",
94+
],
95+
runtime_deps = [":enterpriseknowledgegraph_java_gapic_test"],
96+
)
97+
98+
# Open Source Packages
99+
java_gapic_assembly_gradle_pkg(
100+
name = "google-cloud-enterpriseknowledgegraph-v1-java",
101+
include_samples = True,
102+
transport = "grpc+rest",
103+
deps = [
104+
":enterpriseknowledgegraph_java_gapic",
105+
":enterpriseknowledgegraph_java_grpc",
106+
":enterpriseknowledgegraph_java_proto",
107+
":enterpriseknowledgegraph_proto",
108+
],
109+
)
110+
111+
py_gapic_library(
112+
name = "enterpriseknowledgegraph_py_gapic",
113+
srcs = [
114+
":enterpriseknowledgegraph_proto",
115+
],
116+
grpc_service_config = "enterpriseknowledgegraph_grpc_service_config.json",
117+
service_yaml = "enterpriseknowledgegraph_v1.yaml",
118+
transport = "grpc+rest",
119+
deps = [
120+
],
121+
)
122+
123+
py_test(
124+
name = "enterpriseknowledgegraph_py_gapic_test",
125+
srcs = [
126+
"enterpriseknowledgegraph_py_gapic_pytest.py",
127+
"enterpriseknowledgegraph_py_gapic_test.py",
128+
],
129+
legacy_create_init = False,
130+
deps = [
131+
":enterpriseknowledgegraph_py_gapic",
132+
],
133+
)
134+
135+
# Open Source Packages
136+
py_gapic_assembly_pkg(
137+
name = "enterpriseknowledgegraph-v1-py",
138+
deps = [
139+
":enterpriseknowledgegraph_py_gapic",
140+
],
141+
)
142+
143+
cc_proto_library(
144+
name = "enterpriseknowledgegraph_cc_proto",
145+
deps = [":enterpriseknowledgegraph_proto"],
146+
)
147+
148+
cc_grpc_library(
149+
name = "enterpriseknowledgegraph_cc_grpc",
150+
srcs = [":enterpriseknowledgegraph_proto"],
151+
grpc_only = True,
152+
deps = [":enterpriseknowledgegraph_cc_proto"],
153+
)
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"methodConfig": [{
3+
"name": [
4+
{ "service": "google.cloud.enterpriseknowledgegraph.v1.EnterpriseKnowledgeGraphService", "method": "ListEntityReconciliationJobs" },
5+
{ "service": "google.cloud.enterpriseknowledgegraph.v1.EnterpriseKnowledgeGraphService", "method": "GetEntityReconciliationJob" }
6+
],
7+
"timeout": "60s",
8+
"retryPolicy": {
9+
"maxAttempts": 5,
10+
"initialBackoff": "1s",
11+
"maxBackoff": "10s",
12+
"backoffMultiplier": 1.3,
13+
"retryableStatusCodes": ["UNAVAILABLE"]
14+
}
15+
},
16+
{
17+
"name": [
18+
{ "service": "google.cloud.enterpriseknowledgegraph.v1.EnterpriseKnowledgeGraphService", "method": "CreateEntityReconciliationJob" },
19+
{ "service": "google.cloud.enterpriseknowledgegraph.v1.EnterpriseKnowledgeGraphService", "method": "DeleteEntityReconciliationJob" },
20+
{ "service": "google.cloud.enterpriseknowledgegraph.v1.EnterpriseKnowledgeGraphService", "method": "CancelEntityReconciliationJob" }
21+
],
22+
"timeout": "60s"
23+
}]
24+
}
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
type: google.api.Service
2+
config_version: 3
3+
name: enterpriseknowledgegraph.googleapis.com
4+
title: Enterprise Knowledge Graph API
5+
6+
apis:
7+
- name: google.cloud.enterpriseknowledgegraph.v1.EnterpriseKnowledgeGraphService
8+
- name: google.longrunning.Operations
9+
10+
types:
11+
- name: google.cloud.enterpriseknowledgegraph.v1.DeleteOperationMetadata
12+
13+
authentication:
14+
rules:
15+
- selector: 'google.cloud.enterpriseknowledgegraph.v1.EnterpriseKnowledgeGraphService.*'
16+
oauth:
17+
canonical_scopes: |-
18+
https://www.googleapis.com/auth/cloud-platform
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
// Copyright 2022 Google LLC
2+
//
3+
// Licensed under the Apache License, Version 2.0 (the "License");
4+
// you may not use this file except in compliance with the License.
5+
// You may obtain a copy of the License at
6+
//
7+
// http://www.apache.org/licenses/LICENSE-2.0
8+
//
9+
// Unless required by applicable law or agreed to in writing, software
10+
// distributed under the License is distributed on an "AS IS" BASIS,
11+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
// See the License for the specific language governing permissions and
13+
// limitations under the License.
14+
15+
syntax = "proto3";
16+
17+
package google.cloud.enterpriseknowledgegraph.v1;
18+
19+
option go_package = "google.golang.org/genproto/googleapis/cloud/enterpriseknowledgegraph/v1;enterpriseknowledgegraph";
20+
option java_multiple_files = true;
21+
option java_outer_classname = "JobStateProto";
22+
option java_package = "com.google.cloud.enterpriseknowledgegraph.v1";
23+
24+
// Describes the state of a job.
25+
enum JobState {
26+
// The job state is unspecified.
27+
JOB_STATE_UNSPECIFIED = 0;
28+
29+
// The service is preparing to run the job.
30+
JOB_STATE_PENDING = 9;
31+
32+
// The job is in progress.
33+
JOB_STATE_RUNNING = 1;
34+
35+
// The job completed successfully.
36+
JOB_STATE_SUCCEEDED = 2;
37+
38+
// The job failed.
39+
JOB_STATE_FAILED = 3;
40+
41+
// The job has been cancelled.
42+
JOB_STATE_CANCELLED = 4;
43+
44+
// Entity Recon API: The knowledge extraction job is running.
45+
JOB_STATE_KNOWLEDGE_EXTRACTION = 5;
46+
47+
// Entity Recon API: The preprocessing job is running.
48+
JOB_STATE_RECON_PREPROCESSING = 6;
49+
50+
// Entity Recon API: The clustering job is running.
51+
JOB_STATE_CLUSTERING = 7;
52+
53+
// Entity Recon API: The exporting clusters job is running.
54+
JOB_STATE_EXPORTING_CLUSTERS = 8;
55+
}
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
// Copyright 2022 Google LLC
2+
//
3+
// Licensed under the Apache License, Version 2.0 (the "License");
4+
// you may not use this file except in compliance with the License.
5+
// You may obtain a copy of the License at
6+
//
7+
// http://www.apache.org/licenses/LICENSE-2.0
8+
//
9+
// Unless required by applicable law or agreed to in writing, software
10+
// distributed under the License is distributed on an "AS IS" BASIS,
11+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
// See the License for the specific language governing permissions and
13+
// limitations under the License.
14+
15+
syntax = "proto3";
16+
17+
package google.cloud.enterpriseknowledgegraph.v1;
18+
19+
import "google/protobuf/timestamp.proto";
20+
21+
option go_package = "google.golang.org/genproto/googleapis/cloud/enterpriseknowledgegraph/v1;enterpriseknowledgegraph";
22+
option java_multiple_files = true;
23+
option java_outer_classname = "OperationMetadataProto";
24+
option java_package = "com.google.cloud.enterpriseknowledgegraph.v1";
25+
26+
// The common metadata for long running operations.
27+
message CommonOperationMetadata {
28+
// State of the longrunning operation.
29+
enum State {
30+
// Unspecified state.
31+
STATE_UNSPECIFIED = 0;
32+
33+
// Operation is still running.
34+
RUNNING = 1;
35+
36+
// Operation is being cancelled.
37+
CANCELLING = 2;
38+
39+
// Operation succeeded.
40+
SUCCEEDED = 3;
41+
42+
// Operation failed.
43+
FAILED = 4;
44+
45+
// Operation is cancelled.
46+
CANCELLED = 5;
47+
48+
// Operation is pending not running yet.
49+
PENDING = 6;
50+
}
51+
52+
// The state of the operation.
53+
State state = 1;
54+
55+
// The creation time of the operation.
56+
google.protobuf.Timestamp create_time = 2;
57+
58+
// The last update time of the operation.
59+
google.protobuf.Timestamp update_time = 3;
60+
}

0 commit comments

Comments
 (0)