Skip to content
This repository was archived by the owner on Dec 31, 2023. It is now read-only.

fix(deps): require google-api-core >= 1.31.5, >= 2.3.2 on v1 release #355

Merged
merged 3 commits into from
Apr 1, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,9 @@
master_doc = "index"

# General information about the project.
project = u"google-cloud-automl"
copyright = u"2019, Google"
author = u"Google APIs"
project = "google-cloud-automl"
copyright = "2019, Google"
author = "Google APIs"

# The version info for the project you're documenting, acts as replacement for
# |version| and |release|, also used in various other places throughout the
Expand Down Expand Up @@ -261,7 +261,7 @@
(
master_doc,
"google-cloud-automl.tex",
u"google-cloud-automl Documentation",
"google-cloud-automl Documentation",
author,
"manual",
)
Expand Down Expand Up @@ -296,7 +296,7 @@
(
master_doc,
"google-cloud-automl",
u"google-cloud-automl Documentation",
"google-cloud-automl Documentation",
[author],
1,
)
Expand All @@ -315,7 +315,7 @@
(
master_doc,
"google-cloud-automl",
u"google-cloud-automl Documentation",
"google-cloud-automl Documentation",
author,
"google-cloud-automl",
"google-cloud-automl Library",
Expand Down
6 changes: 4 additions & 2 deletions google/cloud/automl_v1/gapic/prediction_service_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,8 +185,10 @@ def __init__(
)
self.transport = transport
else:
self.transport = prediction_service_grpc_transport.PredictionServiceGrpcTransport(
address=api_endpoint, channel=channel, credentials=credentials
self.transport = (
prediction_service_grpc_transport.PredictionServiceGrpcTransport(
address=api_endpoint, channel=channel, credentials=credentials
)
)

if client_info is None:
Expand Down
72 changes: 36 additions & 36 deletions google/cloud/automl_v1/proto/prediction_service_pb2_grpc.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,16 @@
class PredictionServiceStub(object):
"""AutoML Prediction API.

On any input that is documented to expect a string parameter in
snake_case or kebab-case, either of those cases is accepted.
"""
On any input that is documented to expect a string parameter in
snake_case or kebab-case, either of those cases is accepted.
"""

def __init__(self, channel):
"""Constructor.

Args:
channel: A grpc.Channel.
"""
Args:
channel: A grpc.Channel.
"""
self.Predict = channel.unary_unary(
"/google.cloud.automl.v1.PredictionService/Predict",
request_serializer=google_dot_cloud_dot_automl__v1_dot_proto_dot_prediction__service__pb2.PredictRequest.SerializeToString,
Expand All @@ -37,45 +37,45 @@ def __init__(self, channel):
class PredictionServiceServicer(object):
"""AutoML Prediction API.

On any input that is documented to expect a string parameter in
snake_case or kebab-case, either of those cases is accepted.
"""
On any input that is documented to expect a string parameter in
snake_case or kebab-case, either of those cases is accepted.
"""

def Predict(self, request, context):
"""Perform an online prediction. The prediction result will be directly
returned in the response.
Available for following ML problems, and their expected request payloads:
* Image Classification - Image in .JPEG, .GIF or .PNG format, image_bytes
up to 30MB.
* Image Object Detection - Image in .JPEG, .GIF or .PNG format, image_bytes
up to 30MB.
* Text Classification - TextSnippet, content up to 60,000 characters,
UTF-8 encoded.
* Text Extraction - TextSnippet, content up to 30,000 characters,
UTF-8 NFC encoded.
* Translation - TextSnippet, content up to 25,000 characters, UTF-8
encoded.
* Text Sentiment - TextSnippet, content up 500 characters, UTF-8
encoded.
"""
returned in the response.
Available for following ML problems, and their expected request payloads:
* Image Classification - Image in .JPEG, .GIF or .PNG format, image_bytes
up to 30MB.
* Image Object Detection - Image in .JPEG, .GIF or .PNG format, image_bytes
up to 30MB.
* Text Classification - TextSnippet, content up to 60,000 characters,
UTF-8 encoded.
* Text Extraction - TextSnippet, content up to 30,000 characters,
UTF-8 NFC encoded.
* Translation - TextSnippet, content up to 25,000 characters, UTF-8
encoded.
* Text Sentiment - TextSnippet, content up 500 characters, UTF-8
encoded.
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details("Method not implemented!")
raise NotImplementedError("Method not implemented!")

def BatchPredict(self, request, context):
"""Perform a batch prediction. Unlike the online
[Predict][google.cloud.automl.v1.PredictionService.Predict], batch
prediction result won't be immediately available in the response. Instead,
a long running operation object is returned. User can poll the operation
result via [GetOperation][google.longrunning.Operations.GetOperation]
method. Once the operation is done,
[BatchPredictResult][google.cloud.automl.v1.BatchPredictResult] is returned
in the [response][google.longrunning.Operation.response] field. Available
for following ML problems:
* Image Classification
* Image Object Detection
* Text Extraction
"""
[Predict][google.cloud.automl.v1.PredictionService.Predict], batch
prediction result won't be immediately available in the response. Instead,
a long running operation object is returned. User can poll the operation
result via [GetOperation][google.longrunning.Operations.GetOperation]
method. Once the operation is done,
[BatchPredictResult][google.cloud.automl.v1.BatchPredictResult] is returned
in the [response][google.longrunning.Operation.response] field. Available
for following ML problems:
* Image Classification
* Image Object Detection
* Text Extraction
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details("Method not implemented!")
raise NotImplementedError("Method not implemented!")
Expand Down
Loading