-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Run black at end of synth.py (#6698)
* Run black at end of synth.py * blacken logging
- Loading branch information
Showing
37 changed files
with
4,106 additions
and
2,540 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
998 changes: 668 additions & 330 deletions
998
logging/google/cloud/logging_v2/proto/log_entry_pb2.py
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! | ||
import grpc | ||
|
2,114 changes: 1,308 additions & 806 deletions
2,114
logging/google/cloud/logging_v2/proto/logging_config_pb2.py
Large diffs are not rendered by default.
Oops, something went wrong.
303 changes: 153 additions & 150 deletions
303
logging/google/cloud/logging_v2/proto/logging_config_pb2_grpc.py
Large diffs are not rendered by default.
Oops, something went wrong.
1,198 changes: 736 additions & 462 deletions
1,198
logging/google/cloud/logging_v2/proto/logging_metrics_pb2.py
Large diffs are not rendered by default.
Oops, something went wrong.
163 changes: 83 additions & 80 deletions
163
logging/google/cloud/logging_v2/proto/logging_metrics_pb2_grpc.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,115 +1,118 @@ | ||
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! | ||
import grpc | ||
|
||
from google.cloud.logging_v2.proto import logging_metrics_pb2 as google_dot_cloud_dot_logging__v2_dot_proto_dot_logging__metrics__pb2 | ||
from google.cloud.logging_v2.proto import ( | ||
logging_metrics_pb2 as google_dot_cloud_dot_logging__v2_dot_proto_dot_logging__metrics__pb2, | ||
) | ||
from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2 | ||
|
||
|
||
class MetricsServiceV2Stub(object): | ||
"""Service for configuring logs-based metrics. | ||
"""Service for configuring logs-based metrics. | ||
""" | ||
|
||
def __init__(self, channel): | ||
"""Constructor. | ||
def __init__(self, channel): | ||
"""Constructor. | ||
Args: | ||
channel: A grpc.Channel. | ||
""" | ||
self.ListLogMetrics = channel.unary_unary( | ||
'/google.logging.v2.MetricsServiceV2/ListLogMetrics', | ||
request_serializer=google_dot_cloud_dot_logging__v2_dot_proto_dot_logging__metrics__pb2.ListLogMetricsRequest.SerializeToString, | ||
response_deserializer=google_dot_cloud_dot_logging__v2_dot_proto_dot_logging__metrics__pb2.ListLogMetricsResponse.FromString, | ||
self.ListLogMetrics = channel.unary_unary( | ||
"/google.logging.v2.MetricsServiceV2/ListLogMetrics", | ||
request_serializer=google_dot_cloud_dot_logging__v2_dot_proto_dot_logging__metrics__pb2.ListLogMetricsRequest.SerializeToString, | ||
response_deserializer=google_dot_cloud_dot_logging__v2_dot_proto_dot_logging__metrics__pb2.ListLogMetricsResponse.FromString, | ||
) | ||
self.GetLogMetric = channel.unary_unary( | ||
'/google.logging.v2.MetricsServiceV2/GetLogMetric', | ||
request_serializer=google_dot_cloud_dot_logging__v2_dot_proto_dot_logging__metrics__pb2.GetLogMetricRequest.SerializeToString, | ||
response_deserializer=google_dot_cloud_dot_logging__v2_dot_proto_dot_logging__metrics__pb2.LogMetric.FromString, | ||
self.GetLogMetric = channel.unary_unary( | ||
"/google.logging.v2.MetricsServiceV2/GetLogMetric", | ||
request_serializer=google_dot_cloud_dot_logging__v2_dot_proto_dot_logging__metrics__pb2.GetLogMetricRequest.SerializeToString, | ||
response_deserializer=google_dot_cloud_dot_logging__v2_dot_proto_dot_logging__metrics__pb2.LogMetric.FromString, | ||
) | ||
self.CreateLogMetric = channel.unary_unary( | ||
'/google.logging.v2.MetricsServiceV2/CreateLogMetric', | ||
request_serializer=google_dot_cloud_dot_logging__v2_dot_proto_dot_logging__metrics__pb2.CreateLogMetricRequest.SerializeToString, | ||
response_deserializer=google_dot_cloud_dot_logging__v2_dot_proto_dot_logging__metrics__pb2.LogMetric.FromString, | ||
self.CreateLogMetric = channel.unary_unary( | ||
"/google.logging.v2.MetricsServiceV2/CreateLogMetric", | ||
request_serializer=google_dot_cloud_dot_logging__v2_dot_proto_dot_logging__metrics__pb2.CreateLogMetricRequest.SerializeToString, | ||
response_deserializer=google_dot_cloud_dot_logging__v2_dot_proto_dot_logging__metrics__pb2.LogMetric.FromString, | ||
) | ||
self.UpdateLogMetric = channel.unary_unary( | ||
'/google.logging.v2.MetricsServiceV2/UpdateLogMetric', | ||
request_serializer=google_dot_cloud_dot_logging__v2_dot_proto_dot_logging__metrics__pb2.UpdateLogMetricRequest.SerializeToString, | ||
response_deserializer=google_dot_cloud_dot_logging__v2_dot_proto_dot_logging__metrics__pb2.LogMetric.FromString, | ||
self.UpdateLogMetric = channel.unary_unary( | ||
"/google.logging.v2.MetricsServiceV2/UpdateLogMetric", | ||
request_serializer=google_dot_cloud_dot_logging__v2_dot_proto_dot_logging__metrics__pb2.UpdateLogMetricRequest.SerializeToString, | ||
response_deserializer=google_dot_cloud_dot_logging__v2_dot_proto_dot_logging__metrics__pb2.LogMetric.FromString, | ||
) | ||
self.DeleteLogMetric = channel.unary_unary( | ||
'/google.logging.v2.MetricsServiceV2/DeleteLogMetric', | ||
request_serializer=google_dot_cloud_dot_logging__v2_dot_proto_dot_logging__metrics__pb2.DeleteLogMetricRequest.SerializeToString, | ||
response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, | ||
self.DeleteLogMetric = channel.unary_unary( | ||
"/google.logging.v2.MetricsServiceV2/DeleteLogMetric", | ||
request_serializer=google_dot_cloud_dot_logging__v2_dot_proto_dot_logging__metrics__pb2.DeleteLogMetricRequest.SerializeToString, | ||
response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, | ||
) | ||
|
||
|
||
class MetricsServiceV2Servicer(object): | ||
"""Service for configuring logs-based metrics. | ||
"""Service for configuring logs-based metrics. | ||
""" | ||
|
||
def ListLogMetrics(self, request, context): | ||
"""Lists logs-based metrics. | ||
def ListLogMetrics(self, request, context): | ||
"""Lists logs-based metrics. | ||
""" | ||
context.set_code(grpc.StatusCode.UNIMPLEMENTED) | ||
context.set_details('Method not implemented!') | ||
raise NotImplementedError('Method not implemented!') | ||
context.set_code(grpc.StatusCode.UNIMPLEMENTED) | ||
context.set_details("Method not implemented!") | ||
raise NotImplementedError("Method not implemented!") | ||
|
||
def GetLogMetric(self, request, context): | ||
"""Gets a logs-based metric. | ||
def GetLogMetric(self, request, context): | ||
"""Gets a logs-based metric. | ||
""" | ||
context.set_code(grpc.StatusCode.UNIMPLEMENTED) | ||
context.set_details('Method not implemented!') | ||
raise NotImplementedError('Method not implemented!') | ||
context.set_code(grpc.StatusCode.UNIMPLEMENTED) | ||
context.set_details("Method not implemented!") | ||
raise NotImplementedError("Method not implemented!") | ||
|
||
def CreateLogMetric(self, request, context): | ||
"""Creates a logs-based metric. | ||
def CreateLogMetric(self, request, context): | ||
"""Creates a logs-based metric. | ||
""" | ||
context.set_code(grpc.StatusCode.UNIMPLEMENTED) | ||
context.set_details('Method not implemented!') | ||
raise NotImplementedError('Method not implemented!') | ||
context.set_code(grpc.StatusCode.UNIMPLEMENTED) | ||
context.set_details("Method not implemented!") | ||
raise NotImplementedError("Method not implemented!") | ||
|
||
def UpdateLogMetric(self, request, context): | ||
"""Creates or updates a logs-based metric. | ||
def UpdateLogMetric(self, request, context): | ||
"""Creates or updates a logs-based metric. | ||
""" | ||
context.set_code(grpc.StatusCode.UNIMPLEMENTED) | ||
context.set_details('Method not implemented!') | ||
raise NotImplementedError('Method not implemented!') | ||
context.set_code(grpc.StatusCode.UNIMPLEMENTED) | ||
context.set_details("Method not implemented!") | ||
raise NotImplementedError("Method not implemented!") | ||
|
||
def DeleteLogMetric(self, request, context): | ||
"""Deletes a logs-based metric. | ||
def DeleteLogMetric(self, request, context): | ||
"""Deletes a logs-based metric. | ||
""" | ||
context.set_code(grpc.StatusCode.UNIMPLEMENTED) | ||
context.set_details('Method not implemented!') | ||
raise NotImplementedError('Method not implemented!') | ||
context.set_code(grpc.StatusCode.UNIMPLEMENTED) | ||
context.set_details("Method not implemented!") | ||
raise NotImplementedError("Method not implemented!") | ||
|
||
|
||
def add_MetricsServiceV2Servicer_to_server(servicer, server): | ||
rpc_method_handlers = { | ||
'ListLogMetrics': grpc.unary_unary_rpc_method_handler( | ||
servicer.ListLogMetrics, | ||
request_deserializer=google_dot_cloud_dot_logging__v2_dot_proto_dot_logging__metrics__pb2.ListLogMetricsRequest.FromString, | ||
response_serializer=google_dot_cloud_dot_logging__v2_dot_proto_dot_logging__metrics__pb2.ListLogMetricsResponse.SerializeToString, | ||
), | ||
'GetLogMetric': grpc.unary_unary_rpc_method_handler( | ||
servicer.GetLogMetric, | ||
request_deserializer=google_dot_cloud_dot_logging__v2_dot_proto_dot_logging__metrics__pb2.GetLogMetricRequest.FromString, | ||
response_serializer=google_dot_cloud_dot_logging__v2_dot_proto_dot_logging__metrics__pb2.LogMetric.SerializeToString, | ||
), | ||
'CreateLogMetric': grpc.unary_unary_rpc_method_handler( | ||
servicer.CreateLogMetric, | ||
request_deserializer=google_dot_cloud_dot_logging__v2_dot_proto_dot_logging__metrics__pb2.CreateLogMetricRequest.FromString, | ||
response_serializer=google_dot_cloud_dot_logging__v2_dot_proto_dot_logging__metrics__pb2.LogMetric.SerializeToString, | ||
), | ||
'UpdateLogMetric': grpc.unary_unary_rpc_method_handler( | ||
servicer.UpdateLogMetric, | ||
request_deserializer=google_dot_cloud_dot_logging__v2_dot_proto_dot_logging__metrics__pb2.UpdateLogMetricRequest.FromString, | ||
response_serializer=google_dot_cloud_dot_logging__v2_dot_proto_dot_logging__metrics__pb2.LogMetric.SerializeToString, | ||
), | ||
'DeleteLogMetric': grpc.unary_unary_rpc_method_handler( | ||
servicer.DeleteLogMetric, | ||
request_deserializer=google_dot_cloud_dot_logging__v2_dot_proto_dot_logging__metrics__pb2.DeleteLogMetricRequest.FromString, | ||
response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, | ||
), | ||
} | ||
generic_handler = grpc.method_handlers_generic_handler( | ||
'google.logging.v2.MetricsServiceV2', rpc_method_handlers) | ||
server.add_generic_rpc_handlers((generic_handler,)) | ||
rpc_method_handlers = { | ||
"ListLogMetrics": grpc.unary_unary_rpc_method_handler( | ||
servicer.ListLogMetrics, | ||
request_deserializer=google_dot_cloud_dot_logging__v2_dot_proto_dot_logging__metrics__pb2.ListLogMetricsRequest.FromString, | ||
response_serializer=google_dot_cloud_dot_logging__v2_dot_proto_dot_logging__metrics__pb2.ListLogMetricsResponse.SerializeToString, | ||
), | ||
"GetLogMetric": grpc.unary_unary_rpc_method_handler( | ||
servicer.GetLogMetric, | ||
request_deserializer=google_dot_cloud_dot_logging__v2_dot_proto_dot_logging__metrics__pb2.GetLogMetricRequest.FromString, | ||
response_serializer=google_dot_cloud_dot_logging__v2_dot_proto_dot_logging__metrics__pb2.LogMetric.SerializeToString, | ||
), | ||
"CreateLogMetric": grpc.unary_unary_rpc_method_handler( | ||
servicer.CreateLogMetric, | ||
request_deserializer=google_dot_cloud_dot_logging__v2_dot_proto_dot_logging__metrics__pb2.CreateLogMetricRequest.FromString, | ||
response_serializer=google_dot_cloud_dot_logging__v2_dot_proto_dot_logging__metrics__pb2.LogMetric.SerializeToString, | ||
), | ||
"UpdateLogMetric": grpc.unary_unary_rpc_method_handler( | ||
servicer.UpdateLogMetric, | ||
request_deserializer=google_dot_cloud_dot_logging__v2_dot_proto_dot_logging__metrics__pb2.UpdateLogMetricRequest.FromString, | ||
response_serializer=google_dot_cloud_dot_logging__v2_dot_proto_dot_logging__metrics__pb2.LogMetric.SerializeToString, | ||
), | ||
"DeleteLogMetric": grpc.unary_unary_rpc_method_handler( | ||
servicer.DeleteLogMetric, | ||
request_deserializer=google_dot_cloud_dot_logging__v2_dot_proto_dot_logging__metrics__pb2.DeleteLogMetricRequest.FromString, | ||
response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, | ||
), | ||
} | ||
generic_handler = grpc.method_handlers_generic_handler( | ||
"google.logging.v2.MetricsServiceV2", rpc_method_handlers | ||
) | ||
server.add_generic_rpc_handlers((generic_handler,)) |
Oops, something went wrong.