def _make_operations_stub(client):
 if (client.emulator_host is None):
  return make_secure_stub(client.credentials, client.user_agent, operations_grpc.OperationsStub, OPERATIONS_API_HOST)
 else:
  return make_insecure_stub(operations_grpc.OperationsStub, client.emulator_host)

def _make_operations_stub ( client ) : if ( client . emulator_host is None ) : return make_secure_stub ( client . credentials , client . user_agent , operations_grpc . OperationsStub , OPERATIONS_API_HOST ) else : return make_insecure_stub ( operations_grpc . OperationsStub , client . emulator_host )
creates grpc stub to make requests to the operations api .