Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bringing auto-gen import re-writing up to date with files. #1316

Merged
merged 1 commit into from
Dec 22, 2015

Commits on Dec 22, 2015

  1. Bringing auto-gen import re-writing up to date with files.

    There were some manual (via `sed` with the command line) edits
    made for certain gRPC related parts of `*_pb2.py` files that
    used dispatch tables to map service names onto request/response
    protobuf types. For example
    
      request_deserializers = {
        ('google.longrunning.Operations', 'CancelOperation'): google.longrunning.operations_pb2.CancelOperationRequest.FromString,
        ('google.longrunning.Operations', 'DeleteOperation'): google.longrunning.operations_pb2.DeleteOperationRequest.FromString,
        ('google.longrunning.Operations', 'GetOperation'): google.longrunning.operations_pb2.GetOperationRequest.FromString,
        ('google.longrunning.Operations', 'ListOperations'): google.longrunning.operations_pb2.ListOperationsRequest.FromString,
      }
    
    needed to be transformed into
    
      request_deserializers = {
        ('google.longrunning.Operations', 'CancelOperation'): gcloud.bigtable._generated.operations_pb2.CancelOperationRequest.FromString,
        ('google.longrunning.Operations', 'DeleteOperation'): gcloud.bigtable._generated.operations_pb2.DeleteOperationRequest.FromString,
        ('google.longrunning.Operations', 'GetOperation'): gcloud.bigtable._generated.operations_pb2.GetOperationRequest.FromString,
        ('google.longrunning.Operations', 'ListOperations'): gcloud.bigtable._generated.operations_pb2.ListOperationsRequest.FromString,
      }
    dhermes committed Dec 22, 2015
    Configuration menu
    Copy the full SHA
    0b2af7b View commit details
    Browse the repository at this point in the history