'Encode the nested protobuf into wire format.'

def ConvertToWireFormat(self, value):

    output = SerializeEntries(value.GetRawData().itervalues())
    return (self.encoded_tag, VarintEncode(len(output)), output)
