Skip to content

Commit 936ddf8

Browse files
authored
chore: remove matching engine add copyright header (googleapis#1137)
1 parent 8477be9 commit 936ddf8

18 files changed

+176
-15
lines changed

.sample_configs/param_handlers/create_batch_prediction_job_tabular_forecasting_sample.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
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+
116
def make_parent(parent: str) -> str:
217
parent = parent
318

google/cloud/aiplatform/__init__.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,6 @@
3838
Feature,
3939
Featurestore,
4040
)
41-
from google.cloud.aiplatform.matching_engine import (
42-
MatchingEngineIndex,
43-
MatchingEngineIndexEndpoint,
44-
)
4541
from google.cloud.aiplatform.metadata import metadata
4642
from google.cloud.aiplatform.models import Endpoint
4743
from google.cloud.aiplatform.models import Model
@@ -108,8 +104,6 @@
108104
"EntityType",
109105
"Feature",
110106
"Featurestore",
111-
"MatchingEngineIndex",
112-
"MatchingEngineIndexEndpoint",
113107
"ImageDataset",
114108
"HyperparameterTuningJob",
115109
"Model",

google/cloud/aiplatform/matching_engine/__init__.py renamed to google/cloud/aiplatform/_matching_engine/__init__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,15 @@
1515
# limitations under the License.
1616
#
1717

18-
from google.cloud.aiplatform.matching_engine.matching_engine_index import (
18+
from google.cloud.aiplatform._matching_engine.matching_engine_index import (
1919
MatchingEngineIndex,
2020
)
21-
from google.cloud.aiplatform.matching_engine.matching_engine_index_config import (
21+
from google.cloud.aiplatform._matching_engine.matching_engine_index_config import (
2222
BruteForceConfig as MatchingEngineBruteForceAlgorithmConfig,
2323
MatchingEngineIndexConfig as MatchingEngineIndexConfig,
2424
TreeAhConfig as MatchingEngineTreeAhAlgorithmConfig,
2525
)
26-
from google.cloud.aiplatform.matching_engine.matching_engine_index_endpoint import (
26+
from google.cloud.aiplatform._matching_engine.matching_engine_index_endpoint import (
2727
MatchingEngineIndexEndpoint,
2828
)
2929

google/cloud/aiplatform/matching_engine/match_service_pb2.py renamed to google/cloud/aiplatform/_matching_engine/match_service_pb2.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,19 @@
11
# -*- coding: utf-8 -*-
2+
3+
# Copyright 2022 Google LLC
4+
#
5+
# Licensed under the Apache License, Version 2.0 (the "License");
6+
# you may not use this file except in compliance with the License.
7+
# You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an "AS IS" BASIS,
13+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
# See the License for the specific language governing permissions and
15+
# limitations under the License.
16+
#
217
# Generated by the protocol buffer compiler. DO NOT EDIT!
318
# source: match_service.proto
419
"""Generated protocol buffer code."""

google/cloud/aiplatform/matching_engine/match_service_pb2_grpc.py renamed to google/cloud/aiplatform/_matching_engine/match_service_pb2_grpc.py

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,22 @@
1+
# -*- coding: utf-8 -*-
2+
3+
# Copyright 2022 Google LLC
4+
#
5+
# Licensed under the Apache License, Version 2.0 (the "License");
6+
# you may not use this file except in compliance with the License.
7+
# You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an "AS IS" BASIS,
13+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
# See the License for the specific language governing permissions and
15+
# limitations under the License.
16+
#
117
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
218
"""Client and server classes corresponding to protobuf-defined services."""
3-
from google.cloud.aiplatform.matching_engine import match_service_pb2
19+
from google.cloud.aiplatform._matching_engine import match_service_pb2
420

521
import grpc
622

google/cloud/aiplatform/matching_engine/matching_engine_index.py renamed to google/cloud/aiplatform/_matching_engine/matching_engine_index.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
matching_engine_index as gca_matching_engine_index,
2626
)
2727
from google.cloud.aiplatform import initializer
28-
from google.cloud.aiplatform.matching_engine import matching_engine_index_config
28+
from google.cloud.aiplatform._matching_engine import matching_engine_index_config
2929
from google.cloud.aiplatform import utils
3030

3131
_LOGGER = base.Logger(__name__)

google/cloud/aiplatform/matching_engine/matching_engine_index_config.py renamed to google/cloud/aiplatform/_matching_engine/matching_engine_index_config.py

File renamed without changes.

google/cloud/aiplatform/matching_engine/matching_engine_index_endpoint.py renamed to google/cloud/aiplatform/_matching_engine/matching_engine_index_endpoint.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,14 @@
2121
from google.auth import credentials as auth_credentials
2222
from google.cloud.aiplatform import base
2323
from google.cloud.aiplatform import initializer
24-
from google.cloud.aiplatform import matching_engine
24+
from google.cloud.aiplatform import _matching_engine
2525
from google.cloud.aiplatform import utils
2626
from google.cloud.aiplatform.compat.types import (
2727
machine_resources as gca_machine_resources_compat,
2828
matching_engine_index_endpoint as gca_matching_engine_index_endpoint,
2929
)
30-
from google.cloud.aiplatform.matching_engine import match_service_pb2
31-
from google.cloud.aiplatform.matching_engine import match_service_pb2_grpc
30+
from google.cloud.aiplatform._matching_engine import match_service_pb2
31+
from google.cloud.aiplatform._matching_engine import match_service_pb2_grpc
3232
from google.protobuf import field_mask_pb2
3333

3434
import grpc
@@ -432,7 +432,7 @@ def _build_deployed_index(
432432

433433
def deploy_index(
434434
self,
435-
index: matching_engine.MatchingEngineIndex,
435+
index: _matching_engine.MatchingEngineIndex,
436436
deployed_index_id: str,
437437
display_name: Optional[str] = None,
438438
machine_type: Optional[str] = None,

samples/snippets/helpers.py

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,20 @@
1+
# -*- coding: utf-8 -*-
2+
3+
# Copyright 2022 Google LLC
4+
#
5+
# Licensed under the Apache License, Version 2.0 (the "License");
6+
# you may not use this file except in compliance with the License.
7+
# You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an "AS IS" BASIS,
13+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
# See the License for the specific language governing permissions and
15+
# limitations under the License.
16+
#
17+
118
import collections
219
import re
320
import time

scripts/run_flaky_test_diagnostic.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
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+
116
import os
217
import pathlib
318
import sys

0 commit comments

Comments
 (0)