(self, msg, type_url_prefix='type.googleapis.com/')
Packs the specified message into current Any message.
Packs the specified message into current Any message.
Packs the specified message into current Any message .
def Pack(self, msg, type_url_prefix='type.googleapis.com/'):
    """Packs the specified message into current Any message."""
    if len(type_url_prefix) < 1 or type_url_prefix[-1] != '/':
      self.type_url = '%s/%s' % (type_url_prefix, msg.DESCRIPTOR.full_name)
    else:
      self.type_url = '%s%s' % (type_url_prefix, msg.DESCRIPTOR.full_name)
    self.value = msg.SerializeToString()
def Pack ( self , msg , type_url_prefix = 'type.googleapis.com/' ) : if len ( type_url_prefix ) < 1 or type_url_prefix [ - 1 ] != '/' : self . type_url = '%s/%s' % ( type_url_prefix , msg . DESCRIPTOR . full_name ) else : self . type_url = '%s%s' % ( type_url_prefix , msg . DESCRIPTOR . full_name ) self . value = msg . SerializeToString ( )